Home
last modified time | relevance | path

Searched refs:gpt_header (Results 1 – 1 of 1) sorted by relevance

/device/google/marlin/recovery/gpt-utils/
Dgpt-utils.cpp290 uint8_t *gpt_header = NULL; in gpt2_set_boot_chain() local
302 gpt_header = (uint8_t*)malloc(blk_size); in gpt2_set_boot_chain()
303 if (!gpt_header) { in gpt2_set_boot_chain()
317 r = blk_rw(fd, 0, blk_size, gpt_header, blk_size); in gpt2_set_boot_chain()
324 GET_8_BYTES(gpt_header + PENTRIES_OFFSET) * blk_size; in gpt2_set_boot_chain()
325 pentry_size = GET_4_BYTES(gpt_header + PENTRY_SIZE_OFFSET); in gpt2_set_boot_chain()
327 GET_4_BYTES(gpt_header + PARTITION_COUNT_OFFSET) * pentry_size; in gpt2_set_boot_chain()
342 if (GET_4_BYTES(gpt_header + PARTITION_CRC_OFFSET) != crc) { in gpt2_set_boot_chain()
349 r = blk_rw(fd, 0, gpt2_header_offset, gpt_header, blk_size); in gpt2_set_boot_chain()
353 gpt_header_size = GET_4_BYTES(gpt_header + HEADER_SIZE_OFFSET); in gpt2_set_boot_chain()
[all …]