Lines Matching refs:crc
292 uint32_t crc; in gpt2_set_boot_chain() local
341 crc = crc32(0, pentries, pentries_array_size); in gpt2_set_boot_chain()
342 if (GET_4_BYTES(gpt_header + PARTITION_CRC_OFFSET) != crc) { in gpt2_set_boot_chain()
364 crc = crc32(0, pentries, pentries_array_size); in gpt2_set_boot_chain()
365 PUT_4_BYTES(gpt_header + PARTITION_CRC_OFFSET, crc); in gpt2_set_boot_chain()
369 crc = crc32(0, gpt_header, gpt_header_size); in gpt2_set_boot_chain()
370 PUT_4_BYTES(gpt_header + HEADER_CRC_OFFSET, crc); in gpt2_set_boot_chain()
405 uint32_t crc; in gpt_get_state() local
438 crc = GET_4_BYTES(gpt_header + HEADER_CRC_OFFSET); in gpt_get_state()
441 if (crc32(0, gpt_header, gpt_header_size) != crc) in gpt_get_state()
471 uint32_t crc; in gpt_set_state() local
510 crc = crc32(0, gpt_header, gpt_header_size); in gpt_set_state()
511 PUT_4_BYTES(gpt_header + HEADER_CRC_OFFSET, crc); in gpt_set_state()