Searched refs:gptEntry (Results 1 – 2 of 2) sorted by relevance
530 gpt_entry *gptEntry = (gpt_entry *)(gpt + 2 * SECTOR_SIZE); in create_gpt_buffer() local561 gen_rand_uuid(gptEntry->partition_type_guid.raw); in create_gpt_buffer()562 gen_rand_uuid(gptEntry->unique_partition_guid.raw); in create_gpt_buffer()563 gptEntry->starting_lba = cpu_to_le64(p_param[i].offset); in create_gpt_buffer()564 gptEntry->ending_lba = cpu_to_le64(gptEntry->starting_lba + p_param[i].size - 1); in create_gpt_buffer()565 gptEntry->attributes.raw = 0; in create_gpt_buffer()572 gptEntry->attributes.raw = PART_PROPERTY_BOOTABLE; in create_gpt_buffer()575 gptEntry->ending_lba = cpu_to_le64(diskSectors - 34); in create_gpt_buffer()582 gptEntry->partition_name[j] = p_param[i].name[j]; in create_gpt_buffer()585 memcpy(gptEntry->unique_partition_guid.raw, p_config[j].value, 16); in create_gpt_buffer()[all …]
3554 gpt_entry *gptEntry = (gpt_entry *)(gpt + 2 * SECTOR_SIZE); in create_gpt_buffer() local3585 gen_rand_uuid(gptEntry->partition_type_guid.raw); in create_gpt_buffer()3586 gen_rand_uuid(gptEntry->unique_partition_guid.raw); in create_gpt_buffer()3587 gptEntry->starting_lba = cpu_to_le64(vecParts[i].uiItemOffset); in create_gpt_buffer()3588 gptEntry->ending_lba = cpu_to_le64(gptEntry->starting_lba + vecParts[i].uiItemSize - 1); in create_gpt_buffer()3589 gptEntry->attributes.raw = 0; in create_gpt_buffer()3597 gptEntry->attributes.raw = PART_PROPERTY_BOOTABLE; in create_gpt_buffer()3601 gptEntry->ending_lba = cpu_to_le64(diskSectors - 34); in create_gpt_buffer()3608 gptEntry->partition_name[j] = vecParts[i].szItemName[j]; in create_gpt_buffer()3612 memcpy(gptEntry->unique_partition_guid.raw, vecUuid[pos].szItemValue, 16); in create_gpt_buffer()[all …]