Lines Matching refs:gptEntry

537 	gpt_entry  *gptEntry  = NULL;  in get_lba_from_gpt()  local
544 gptEntry = (gpt_entry *)(master + 2 * SECTOR_SIZE + i * GPT_ENTRY_SIZE); in get_lba_from_gpt()
545 if (memcmp(zerobuf, (u8 *)gptEntry, GPT_ENTRY_SIZE) == 0) in get_lba_from_gpt()
548 if (gptEntry->partition_name[j] != pszName[j]) in get_lba_from_gpt()
550 if (gptEntry->partition_name[j] != 0) in get_lba_from_gpt()
558 *lba = le64_to_cpu(gptEntry->starting_lba); in get_lba_from_gpt()
559 if (gptMasterHead->last_usable_lba == gptEntry->ending_lba) in get_lba_from_gpt()
562 *lba_end = le64_to_cpu(gptEntry->ending_lba); in get_lba_from_gpt()
666 gpt_entry *gptEntry = (gpt_entry *)(gpt + 2 * SECTOR_SIZE); in create_gpt_buffer() local
696 gen_rand_uuid(gptEntry->partition_type_guid.raw); in create_gpt_buffer()
697 gen_rand_uuid(gptEntry->unique_partition_guid.raw); in create_gpt_buffer()
698 gptEntry->starting_lba = cpu_to_le64(vecParts[i].uiItemOffset); in create_gpt_buffer()
699 gptEntry->ending_lba = cpu_to_le64(gptEntry->starting_lba + vecParts[i].uiItemSize - 1); in create_gpt_buffer()
700 gptEntry->attributes.raw = 0; in create_gpt_buffer()
705 gptEntry->attributes.raw = PART_PROPERTY_BOOTABLE; in create_gpt_buffer()
707 gptEntry->ending_lba = cpu_to_le64(diskSectors - 34); in create_gpt_buffer()
712 gptEntry->partition_name[j] = vecParts[i].szItemName[j]; in create_gpt_buffer()
714 memcpy(gptEntry->unique_partition_guid.raw, vecUuid[pos].szItemValue, 16); in create_gpt_buffer()
715 gptEntry++; in create_gpt_buffer()
2039 gpt_entry *gptEntry = NULL; in print_gpt() local
2069 gptEntry = (gpt_entry *)(master_gpt + 2 * SECTOR_SIZE + i * GPT_ENTRY_SIZE); in print_gpt()
2070 if (memcmp(zerobuf, (u8 *)gptEntry, GPT_ENTRY_SIZE) == 0) in print_gpt()
2074 while (gptEntry->partition_name[j]) { in print_gpt()
2075 partName[j] = (char)gptEntry->partition_name[j]; in print_gpt()
2078 printf("%02d %08X %s\r\n", i, (u32)le64_to_cpu(gptEntry->starting_lba), partName); in print_gpt()