Lines Matching refs:GET_4_BYTES
92 #define GET_4_BYTES(ptr) ((uint32_t) *((uint8_t *)(ptr)) | \ macro
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()
353 gpt_header_size = GET_4_BYTES(gpt_header + HEADER_SIZE_OFFSET); in gpt2_set_boot_chain()
436 gpt_header_size = GET_4_BYTES(gpt_header + HEADER_SIZE_OFFSET); in gpt_get_state()
438 crc = GET_4_BYTES(gpt_header + HEADER_CRC_OFFSET); in gpt_get_state()
506 gpt_header_size = GET_4_BYTES(gpt_header + HEADER_SIZE_OFFSET); in gpt_set_state()
1277 pentry_size = GET_4_BYTES(hdr + PENTRY_SIZE_OFFSET); in gpt_get_pentry_arr()
1279 GET_4_BYTES(hdr + PARTITION_COUNT_OFFSET) * pentry_size; in gpt_get_pentry_arr()
1321 pentry_size = GET_4_BYTES(hdr + PENTRY_SIZE_OFFSET); in gpt_set_pentry_arr()
1323 GET_4_BYTES(hdr + PARTITION_COUNT_OFFSET) * pentry_size; in gpt_set_pentry_arr()
1393 gpt_header_size = GET_4_BYTES(disk->hdr + HEADER_SIZE_OFFSET); in gpt_disk_get_disk_info()
1432 disk->pentry_size = GET_4_BYTES(disk->hdr + PENTRY_SIZE_OFFSET); in gpt_disk_get_disk_info()
1434 GET_4_BYTES(disk->hdr + PARTITION_COUNT_OFFSET) * in gpt_disk_get_disk_info()
1436 disk->pentry_arr_crc = GET_4_BYTES(disk->hdr + PARTITION_CRC_OFFSET); in gpt_disk_get_disk_info()
1437 disk->pentry_arr_bak_crc = GET_4_BYTES(disk->hdr_bak + in gpt_disk_get_disk_info()
1493 gpt_header_size = GET_4_BYTES(disk->hdr + HEADER_SIZE_OFFSET); in gpt_disk_update_crc()