Lines Matching defs:image_handle

49 static int load_mbr_header(uintptr_t image_handle, mbr_entry_t *mbr_entry)
57 result = io_seek(image_handle, IO_SEEK_SET, MBR_OFFSET);
62 result = io_read(image_handle, (uintptr_t)&mbr_sector,
96 static int load_gpt_header(uintptr_t image_handle, size_t header_offset,
104 result = io_seek(image_handle, IO_SEEK_SET, header_offset);
110 result = io_read(image_handle, (uintptr_t)&header,
154 static int load_mbr_entry(uintptr_t image_handle, mbr_entry_t *mbr_entry,
163 result = io_seek(image_handle, IO_SEEK_SET, MBR_OFFSET);
168 result = io_read(image_handle, (uintptr_t)&mbr_sector,
192 static int load_mbr_entries(uintptr_t image_handle)
200 load_mbr_entry(image_handle, &mbr_entry, i);
212 static int load_gpt_entry(uintptr_t image_handle, gpt_entry_t *entry)
218 result = io_read(image_handle, (uintptr_t)entry, sizeof(gpt_entry_t),
234 static int load_partition_gpt(uintptr_t image_handle,
241 result = io_seek(image_handle, IO_SEEK_SET, gpt_entry_offset);
249 result = load_gpt_entry(image_handle, &entry);
284 uintptr_t dev_handle, image_spec, image_handle;
310 result = io_open(dev_handle, image_spec, &image_handle);
319 result = load_gpt_header(image_handle, gpt_header_offset, &part_lba);
330 result = load_partition_gpt(image_handle, 0);
333 io_close(image_handle);
342 static int load_primary_gpt(uintptr_t image_handle, unsigned int first_lba)
350 result = load_gpt_header(image_handle, gpt_header_offset, &part_lba);
357 return load_partition_gpt(image_handle, part_lba);
365 uintptr_t dev_handle, image_handle, image_spec = 0;
376 result = io_open(dev_handle, image_spec, &image_handle);
382 result = load_mbr_header(image_handle, &mbr_entry);
388 result = load_primary_gpt(image_handle, mbr_entry.first_lba);
390 io_close(image_handle);
395 result = load_mbr_entries(image_handle);
399 io_close(image_handle);