Lines Matching refs:le32_to_cpu
162 if (le32_to_cpu(part->starting_lba) != GPT_PRIMARY_PARTITION_TABLE_LBA) in pmbr_part_valid()
231 sz = le32_to_cpu(mbr->partition_record[part].size_in_lba); in is_pmbr_valid()
296 count = (size_t)le32_to_cpu(gpt->num_partition_entries) * in alloc_read_gpt_entries()
297 le32_to_cpu(gpt->sizeof_partition_entry); in alloc_read_gpt_entries()
372 if (le32_to_cpu((*gpt)->header_size) > in is_gpt_valid()
375 le32_to_cpu((*gpt)->header_size), in is_gpt_valid()
381 if (le32_to_cpu((*gpt)->header_size) < sizeof(gpt_header)) { in is_gpt_valid()
383 le32_to_cpu((*gpt)->header_size), in is_gpt_valid()
389 origcrc = le32_to_cpu((*gpt)->header_crc32); in is_gpt_valid()
391 crc = efi_crc32((const unsigned char *) (*gpt), le32_to_cpu((*gpt)->header_size)); in is_gpt_valid()
432 if (le32_to_cpu((*gpt)->sizeof_partition_entry) != sizeof(gpt_entry)) { in is_gpt_valid()
438 pt_size = (u64)le32_to_cpu((*gpt)->num_partition_entries) * in is_gpt_valid()
439 le32_to_cpu((*gpt)->sizeof_partition_entry); in is_gpt_valid()
452 if (crc != le32_to_cpu((*gpt)->partition_entry_array_crc32)) { in is_gpt_valid()
536 if (le32_to_cpu(pgpt->num_partition_entries) != in compare_gpts()
537 le32_to_cpu(agpt->num_partition_entries)) { in compare_gpts()
540 le32_to_cpu(pgpt->num_partition_entries), in compare_gpts()
541 le32_to_cpu(agpt->num_partition_entries)); in compare_gpts()
544 if (le32_to_cpu(pgpt->sizeof_partition_entry) != in compare_gpts()
545 le32_to_cpu(agpt->sizeof_partition_entry)) { in compare_gpts()
548 le32_to_cpu(pgpt->sizeof_partition_entry), in compare_gpts()
549 le32_to_cpu(agpt->sizeof_partition_entry)); in compare_gpts()
552 if (le32_to_cpu(pgpt->partition_entry_array_crc32) != in compare_gpts()
553 le32_to_cpu(agpt->partition_entry_array_crc32)) { in compare_gpts()
556 le32_to_cpu(pgpt->partition_entry_array_crc32), in compare_gpts()
557 le32_to_cpu(agpt->partition_entry_array_crc32)); in compare_gpts()
707 for (i = 0; i < le32_to_cpu(gpt->num_partition_entries) && i < state->limit-1; i++) { in efi_partition()