Lines Matching refs:rt_le32_to_cpu

76     if (rt_le32_to_cpu(part->starting_lba) != GPT_PRIMARY_PARTITION_TABLE_LBA)  in pmbr_part_valid()
149 sz = rt_le32_to_cpu(mbr->partition_record[part].size_in_lba); in is_pmbr_valid()
219 count = (rt_size_t)rt_le32_to_cpu(gpt->num_partition_entries) * in alloc_read_gpt_entries()
220 rt_le32_to_cpu(gpt->sizeof_partition_entry); in alloc_read_gpt_entries()
320 if (rt_le32_to_cpu((*gpt)->header_size) > logical_block_size) in is_gpt_valid()
324 rt_le32_to_cpu((*gpt)->header_size), in is_gpt_valid()
331 if (rt_le32_to_cpu((*gpt)->header_size) < sizeof(gpt_header)) in is_gpt_valid()
335 rt_le32_to_cpu((*gpt)->header_size), in is_gpt_valid()
342 origcrc = rt_le32_to_cpu((*gpt)->header_crc32); in is_gpt_valid()
344 crc = efi_crc32((const rt_uint8_t *)(*gpt), rt_le32_to_cpu((*gpt)->header_size)); in is_gpt_valid()
403 if (rt_le32_to_cpu((*gpt)->sizeof_partition_entry) != sizeof(gpt_entry)) in is_gpt_valid()
411 pt_size = (rt_uint64_t)rt_le32_to_cpu((*gpt)->num_partition_entries) * in is_gpt_valid()
412 rt_le32_to_cpu((*gpt)->sizeof_partition_entry); in is_gpt_valid()
422 if (crc != rt_le32_to_cpu((*gpt)->partition_entry_array_crc32)) in is_gpt_valid()
527 if (rt_le32_to_cpu(pgpt->num_partition_entries) != in compare_gpts()
528 rt_le32_to_cpu(agpt->num_partition_entries)) in compare_gpts()
532 rt_le32_to_cpu(pgpt->num_partition_entries), in compare_gpts()
533 rt_le32_to_cpu(agpt->num_partition_entries)); in compare_gpts()
538 if (rt_le32_to_cpu(pgpt->sizeof_partition_entry) != in compare_gpts()
539 rt_le32_to_cpu(agpt->sizeof_partition_entry)) in compare_gpts()
543 rt_le32_to_cpu(pgpt->sizeof_partition_entry), in compare_gpts()
544 rt_le32_to_cpu(agpt->sizeof_partition_entry)); in compare_gpts()
549 if (rt_le32_to_cpu(pgpt->partition_entry_array_crc32) != in compare_gpts()
550 rt_le32_to_cpu(agpt->partition_entry_array_crc32)) in compare_gpts()
554 rt_le32_to_cpu(pgpt->partition_entry_array_crc32), in compare_gpts()
555 rt_le32_to_cpu(agpt->partition_entry_array_crc32)); in compare_gpts()
715 entries_nr = rt_le32_to_cpu(gpt->num_partition_entries); in efi_partition()