Lines Matching refs:le32_to_cpu
146 if (le32_to_cpu(part->starting_lba) != GPT_PRIMARY_PARTITION_TABLE_LBA) in pmbr_part_valid()
215 sz = le32_to_cpu(mbr->partition_record[part].size_in_lba); in is_pmbr_valid()
280 count = (size_t)le32_to_cpu(gpt->num_partition_entries) * in alloc_read_gpt_entries()
281 le32_to_cpu(gpt->sizeof_partition_entry); in alloc_read_gpt_entries()
356 if (le32_to_cpu((*gpt)->header_size) > in is_gpt_valid()
359 le32_to_cpu((*gpt)->header_size), in is_gpt_valid()
365 if (le32_to_cpu((*gpt)->header_size) < sizeof(gpt_header)) { in is_gpt_valid()
367 le32_to_cpu((*gpt)->header_size), in is_gpt_valid()
373 origcrc = le32_to_cpu((*gpt)->header_crc32); in is_gpt_valid()
375 crc = efi_crc32((const unsigned char *) (*gpt), le32_to_cpu((*gpt)->header_size)); in is_gpt_valid()
416 if (le32_to_cpu((*gpt)->sizeof_partition_entry) != sizeof(gpt_entry)) { in is_gpt_valid()
422 pt_size = (u64)le32_to_cpu((*gpt)->num_partition_entries) * in is_gpt_valid()
423 le32_to_cpu((*gpt)->sizeof_partition_entry); in is_gpt_valid()
436 if (crc != le32_to_cpu((*gpt)->partition_entry_array_crc32)) { in is_gpt_valid()
520 if (le32_to_cpu(pgpt->num_partition_entries) != in compare_gpts()
521 le32_to_cpu(agpt->num_partition_entries)) { in compare_gpts()
524 le32_to_cpu(pgpt->num_partition_entries), in compare_gpts()
525 le32_to_cpu(agpt->num_partition_entries)); in compare_gpts()
528 if (le32_to_cpu(pgpt->sizeof_partition_entry) != in compare_gpts()
529 le32_to_cpu(agpt->sizeof_partition_entry)) { in compare_gpts()
532 le32_to_cpu(pgpt->sizeof_partition_entry), in compare_gpts()
533 le32_to_cpu(agpt->sizeof_partition_entry)); in compare_gpts()
536 if (le32_to_cpu(pgpt->partition_entry_array_crc32) != in compare_gpts()
537 le32_to_cpu(agpt->partition_entry_array_crc32)) { in compare_gpts()
540 le32_to_cpu(pgpt->partition_entry_array_crc32), in compare_gpts()
541 le32_to_cpu(agpt->partition_entry_array_crc32)); in compare_gpts()
728 for (i = 0; i < le32_to_cpu(gpt->num_partition_entries) && i < state->limit-1; i++) { in efi_partition()