Searched refs:gpt_header (Results 1 – 3 of 3) sorted by relevance
/device/google/bonito/gpt-utils/ |
D | gpt-utils.cpp | 290 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 …]
|
/device/google/coral/gpt-utils/ |
D | gpt-utils.cpp | 290 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 …]
|
/device/google/crosshatch/gpt-utils/ |
D | gpt-utils.cpp | 290 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 …]
|