Lines Matching refs:dpath
269 struct device_path *dpath; in efi_get_boot_option() local
271 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()
301 if (dpath->sub_type == MEDIA_FILEPATH_DP && !p && ret_path) { in efi_get_boot_option()
302 p = utf16_to_utf8(dpath->path, dpath->length-4); in efi_get_boot_option()