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 = 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()
442 le32_to_cpu((*gpt)->num_partition_entries) * in is_gpt_valid()
443 le32_to_cpu((*gpt)->sizeof_partition_entry)); in is_gpt_valid()
445 if (crc != le32_to_cpu((*gpt)->partition_entry_array_crc32)) { in is_gpt_valid()
529 if (le32_to_cpu(pgpt->num_partition_entries) != in compare_gpts()
530 le32_to_cpu(agpt->num_partition_entries)) { in compare_gpts()
533 le32_to_cpu(pgpt->num_partition_entries), in compare_gpts()
534 le32_to_cpu(agpt->num_partition_entries)); in compare_gpts()
537 if (le32_to_cpu(pgpt->sizeof_partition_entry) != in compare_gpts()
538 le32_to_cpu(agpt->sizeof_partition_entry)) { in compare_gpts()
541 le32_to_cpu(pgpt->sizeof_partition_entry), in compare_gpts()
542 le32_to_cpu(agpt->sizeof_partition_entry)); in compare_gpts()
545 if (le32_to_cpu(pgpt->partition_entry_array_crc32) != in compare_gpts()
546 le32_to_cpu(agpt->partition_entry_array_crc32)) { in compare_gpts()
549 le32_to_cpu(pgpt->partition_entry_array_crc32), in compare_gpts()
550 le32_to_cpu(agpt->partition_entry_array_crc32)); in compare_gpts()
700 for (i = 0; i < le32_to_cpu(gpt->num_partition_entries) && i < state->limit-1; i++) { in efi_partition()