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()
1275 pentry_size = GET_4_BYTES(hdr + PENTRY_SIZE_OFFSET); in gpt_get_pentry_arr()
1277 GET_4_BYTES(hdr + PARTITION_COUNT_OFFSET) * pentry_size; in gpt_get_pentry_arr()
1319 pentry_size = GET_4_BYTES(hdr + PENTRY_SIZE_OFFSET); in gpt_set_pentry_arr()
1321 GET_4_BYTES(hdr + PARTITION_COUNT_OFFSET) * pentry_size; in gpt_set_pentry_arr()
1391 gpt_header_size = GET_4_BYTES(disk->hdr + HEADER_SIZE_OFFSET); in gpt_disk_get_disk_info()
1430 disk->pentry_size = GET_4_BYTES(disk->hdr + PENTRY_SIZE_OFFSET); in gpt_disk_get_disk_info()
1432 GET_4_BYTES(disk->hdr + PARTITION_COUNT_OFFSET) * in gpt_disk_get_disk_info()
1434 disk->pentry_arr_crc = GET_4_BYTES(disk->hdr + PARTITION_CRC_OFFSET); in gpt_disk_get_disk_info()
1435 disk->pentry_arr_bak_crc = GET_4_BYTES(disk->hdr_bak + in gpt_disk_get_disk_info()
1491 gpt_header_size = GET_4_BYTES(disk->hdr + HEADER_SIZE_OFFSET); in gpt_disk_update_crc()