Lines Matching refs:le32_to_cpu
148 if (le32_to_cpu(part->starting_lba) != GPT_PRIMARY_PARTITION_TABLE_LBA) in pmbr_part_valid()
217 sz = le32_to_cpu(mbr->partition_record[part].size_in_lba); in is_pmbr_valid()
282 count = (size_t)le32_to_cpu(gpt->num_partition_entries) * in alloc_read_gpt_entries()
283 le32_to_cpu(gpt->sizeof_partition_entry); in alloc_read_gpt_entries()
358 if (le32_to_cpu((*gpt)->header_size) > in is_gpt_valid()
361 le32_to_cpu((*gpt)->header_size), in is_gpt_valid()
367 if (le32_to_cpu((*gpt)->header_size) < sizeof(gpt_header)) { in is_gpt_valid()
369 le32_to_cpu((*gpt)->header_size), in is_gpt_valid()
375 origcrc = le32_to_cpu((*gpt)->header_crc32); in is_gpt_valid()
377 crc = efi_crc32((const unsigned char *) (*gpt), le32_to_cpu((*gpt)->header_size)); in is_gpt_valid()
418 if (le32_to_cpu((*gpt)->sizeof_partition_entry) != sizeof(gpt_entry)) { in is_gpt_valid()
424 pt_size = (u64)le32_to_cpu((*gpt)->num_partition_entries) * in is_gpt_valid()
425 le32_to_cpu((*gpt)->sizeof_partition_entry); in is_gpt_valid()
438 if (crc != le32_to_cpu((*gpt)->partition_entry_array_crc32)) { in is_gpt_valid()
522 if (le32_to_cpu(pgpt->num_partition_entries) != in compare_gpts()
523 le32_to_cpu(agpt->num_partition_entries)) { in compare_gpts()
526 le32_to_cpu(pgpt->num_partition_entries), in compare_gpts()
527 le32_to_cpu(agpt->num_partition_entries)); in compare_gpts()
530 if (le32_to_cpu(pgpt->sizeof_partition_entry) != in compare_gpts()
531 le32_to_cpu(agpt->sizeof_partition_entry)) { in compare_gpts()
534 le32_to_cpu(pgpt->sizeof_partition_entry), in compare_gpts()
535 le32_to_cpu(agpt->sizeof_partition_entry)); in compare_gpts()
538 if (le32_to_cpu(pgpt->partition_entry_array_crc32) != in compare_gpts()
539 le32_to_cpu(agpt->partition_entry_array_crc32)) { in compare_gpts()
542 le32_to_cpu(pgpt->partition_entry_array_crc32), in compare_gpts()
543 le32_to_cpu(agpt->partition_entry_array_crc32)); in compare_gpts()
718 for (i = 0; i < le32_to_cpu(gpt->num_partition_entries) && i < state->limit-1; i++) { in efi_partition()