Lines Matching refs:calc_crc32
83 uint32_t calc_crc32; in validate_gpt_header() local
98 calc_crc32 = efi_crc32((const unsigned char *)gpt_h, in validate_gpt_header()
103 if (calc_crc32 != le32_to_cpu(crc32_backup)) { in validate_gpt_header()
106 le32_to_cpu(crc32_backup), calc_crc32); in validate_gpt_header()
144 uint32_t calc_crc32; in validate_gpt_entries() local
147 calc_crc32 = efi_crc32((const unsigned char *)gpt_e, in validate_gpt_entries()
151 if (calc_crc32 != le32_to_cpu(gpt_h->partition_entry_array_crc32)) { in validate_gpt_entries()
155 calc_crc32); in validate_gpt_entries()
164 uint32_t calc_crc32; in prepare_backup_gpt_header() local
175 calc_crc32 = efi_crc32((const unsigned char *)gpt_h, in prepare_backup_gpt_header()
177 gpt_h->header_crc32 = cpu_to_le32(calc_crc32); in prepare_backup_gpt_header()
394 u32 calc_crc32; in write_gpt_table() local
402 calc_crc32 = efi_crc32((const unsigned char *)gpt_e, in write_gpt_table()
405 gpt_h->partition_entry_array_crc32 = cpu_to_le32(calc_crc32); in write_gpt_table()
407 calc_crc32 = efi_crc32((const unsigned char *)gpt_h, in write_gpt_table()
409 gpt_h->header_crc32 = cpu_to_le32(calc_crc32); in write_gpt_table()