Searched refs:dpath (Results 1 – 2 of 2) sorted by relevance
269 struct device_path *dpath; in efi_get_boot_option() local271 dpath = (struct device_path *)(dbuf + dnext); in efi_get_boot_option()272 if (dpath->length < 4) in efi_get_boot_option()276 … if (dpath->type == END_DEVICE_PATH_TYPE && dpath->sub_type == END_ENTIRE_DEVICE_PATH_SUBTYPE) in efi_get_boot_option()279 dnext += dpath->length; in efi_get_boot_option()282 if (dpath->type != MEDIA_DEVICE_PATH) in efi_get_boot_option()286 if (dpath->sub_type == MEDIA_HARDDRIVE_DP) { in efi_get_boot_option()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()[all …]
250 _cleanup_free_ char *dpath = NULL; in run() local276 dpath = strdup(argv[1]); in run()277 if (!dpath) in run()280 device = dpath; in run()