Lines Matching refs:drive
57 struct drive_path drive; \
288 if (dpath->drive.mbr_type != MBR_TYPE_EFI_PARTITION_TABLE_HEADER) in efi_get_boot_option()
292 if (dpath->drive.signature_type != SIGNATURE_TYPE_GUID) in efi_get_boot_option()
296 efi_guid_to_id128(dpath->drive.signature, &p_uuid); in efi_get_boot_option()
380 option->path_len = offsetof(struct device_path, drive) + sizeof(struct drive_path) + in efi_add_boot_option()
390 devicep->length = offsetof(struct device_path, drive) + sizeof(struct drive_path); in efi_add_boot_option()
391 memcpy(&devicep->drive.part_nr, &part, sizeof(uint32_t)); in efi_add_boot_option()
392 memcpy(&devicep->drive.part_start, &pstart, sizeof(uint64_t)); in efi_add_boot_option()
393 memcpy(&devicep->drive.part_size, &psize, sizeof(uint64_t)); in efi_add_boot_option()
394 id128_to_efi_guid(part_uuid, devicep->drive.signature); in efi_add_boot_option()
395 devicep->drive.mbr_type = MBR_TYPE_EFI_PARTITION_TABLE_HEADER; in efi_add_boot_option()
396 devicep->drive.signature_type = SIGNATURE_TYPE_GUID; in efi_add_boot_option()