Home
last modified time | relevance | path

Searched refs:devpath (Results 1 – 25 of 27) sorted by relevance

12

/freebsd/stand/efi/libefi/
H A Ddevpath.c46 EFI_DEVICE_PATH *devpath; in efi_lookup_image_devpath() local
50 (void **)&devpath); in efi_lookup_image_devpath()
52 devpath = NULL; in efi_lookup_image_devpath()
53 return (devpath); in efi_lookup_image_devpath()
59 EFI_DEVICE_PATH *devpath; in efi_lookup_devpath() local
63 (void **)&devpath); in efi_lookup_devpath()
65 devpath = NULL; in efi_lookup_devpath()
66 return (devpath); in efi_lookup_devpath()
424 efi_translate_devpath(EFI_DEVICE_PATH *devpath) in efi_translate_devpath() argument
426 EFI_DEVICE_PATH *dp = NextDevicePathNode(devpath); in efi_translate_devpath()
[all …]
H A Deficom.c130 efi_serial_get_index(EFI_DEVICE_PATH *devpath, int idx) in efi_serial_get_index() argument
135 while (!IsDevicePathEnd(devpath)) { in efi_serial_get_index()
136 if (DevicePathType(devpath) == MESSAGING_DEVICE_PATH && in efi_serial_get_index()
137 DevicePathSubType(devpath) == MSG_UART_DP) in efi_serial_get_index()
140 if (DevicePathType(devpath) == ACPI_DEVICE_PATH && in efi_serial_get_index()
141 (DevicePathSubType(devpath) == ACPI_DP || in efi_serial_get_index()
142 DevicePathSubType(devpath) == ACPI_EXTENDED_DP)) { in efi_serial_get_index()
144 acpi = (ACPI_HID_DEVICE_PATH *)devpath; in efi_serial_get_index()
150 devpath = NextDevicePathNode(devpath); in efi_serial_get_index()
165 EFI_DEVICE_PATH *devpath; in efi_serial_get_handle() local
[all …]
H A Defihttp.c181 EFI_DEVICE_PATH *imgpath, *devpath; in efihttp_dev_init() local
191 devpath = imgpath; in efihttp_dev_init()
193 for (; !IsDevicePathEnd(devpath); in efihttp_dev_init()
194 devpath = NextDevicePathNode(devpath)) { in efihttp_dev_init()
195 if (DevicePathType(devpath) != MESSAGING_DEVICE_PATH || in efihttp_dev_init()
196 DevicePathSubType(devpath) != MSG_URI_DP) in efihttp_dev_init()
198 uri = (URI_DEVICE_PATH *)devpath; in efihttp_dev_init()
230 EFI_DEVICE_PATH *devpath, *imgpath; in efihttp_dev_open() local
248 devpath = imgpath; in efihttp_dev_open()
249 status = BS->LocateDevicePath(&httpsb_guid, &devpath, &handle); in efihttp_dev_open()
H A Defipart.c215 efipart_find_parent(pdinfo_list_t *pdi, EFI_DEVICE_PATH *devpath) in efipart_find_parent() argument
221 parent = efi_devpath_trim(devpath); in efipart_find_parent()
240 EFI_DEVICE_PATH *devpath) in efipart_ignore_device() argument
302 node = efi_devpath_last_node(devpath); in efipart_ignore_device()
313 parent = efi_devpath_trim(devpath); in efipart_ignore_device()
327 node = efi_devpath_last_node(devpath); in efipart_ignore_device()
353 EFI_DEVICE_PATH *devpath; in efipart_inithandles() local
386 if ((devpath = efi_lookup_devpath(hin[i])) == NULL) in efipart_inithandles()
396 if (efipart_ignore_device(hin[i], blkio, devpath)) in efipart_inithandles()
408 pd->pd_devpath = devpath; in efipart_inithandles()
H A Definet.c361 EFI_DEVICE_PATH *devpath, *node; in efinet_dev_init() local
389 devpath = efi_lookup_devpath(handles[i]); in efinet_dev_init()
390 if (devpath == NULL) in efinet_dev_init()
392 if ((node = efi_devpath_last_node(devpath)) == NULL) in efinet_dev_init()
H A DMakefile8 devpath.c \
/freebsd/stand/efi/gptboot/
H A Dproto.c122 partition_number(EFI_DEVICE_PATH *devpath) in partition_number() argument
127 md = efi_devpath_last_node(devpath); in partition_number()
144 EFI_DEVICE_PATH *devpath, *trimmed = NULL; in probe_handle() local
148 status = OpenProtocolByHandle(h, &DevicePathGUID, (void **)&devpath); in probe_handle()
153 CHAR16 *text = efi_devpath_name(devpath); in probe_handle()
163 if (!efi_devpath_same_disk(imgpath, devpath)) { in probe_handle()
165 if (!efi_devpath_match(trimmed, devpath)) { in probe_handle()
182 devinfo->devpath = devpath; in probe_handle()
188 DPRINTF("Found partition %d\n", partition_number(devpath)); in probe_handle()
218 if (partition_number(dev->devpath) == part) in find_partition()
/freebsd/lib/libgeom/
H A Dgeom_util.c273 g_device_path_open(const char *devpath, int *fdp, int dowrite) in g_device_path_open() argument
283 fd = open(devpath, dowrite ? O_RDWR : O_RDONLY); in g_device_path_open()
285 if ((path = strdup(devpath)) == NULL) { in g_device_path_open()
293 if (*devpath == '/') in g_device_path_open()
296 asprintf(&path, "%s%s", _PATH_DEV, devpath); in g_device_path_open()
323 g_device_path(const char *devpath) in g_device_path() argument
325 return (g_device_path_open(devpath, NULL, 0)); in g_device_path()
/freebsd/stand/efi/boot1/
H A Dproto.c59 EFI_DEVICE_PATH *devpath; in probe_handle() local
65 status = OpenProtocolByHandle(h, &DevicePathGUID, (void **)&devpath); in probe_handle()
76 CHAR16 *text = efi_devpath_name(devpath); in probe_handle()
94 preferred = efi_devpath_same_disk(imgpath, devpath); in probe_handle()
103 devinfo->devpath = devpath; in probe_handle()
H A Dboot_module.h48 EFI_DEVICE_PATH *devpath; member
H A Dufs_module.c147 CHAR16 *text = efi_devpath_name(dev->devpath); in load()
H A Dzfs_module.c153 CHAR16 *text = efi_devpath_name(devinfo->devpath); in load()
/freebsd/usr.sbin/jail/
H A Dcommand.c293 char *acs, *cs, *comcs, *devpath; in run_command() local
535 devpath = alloca(strlen(path) + 5); in run_command()
536 sprintf(devpath, "%s/dev", path); in run_command()
537 if (check_path(j, "mount.devfs", devpath, 0, in run_command()
542 argv[1] = devpath; in run_command()
554 argv[5] = devpath; in run_command()
566 devpath = alloca(strlen(path) + 8); in run_command()
567 sprintf(devpath, "%s/dev/fd", path); in run_command()
568 if (check_path(j, "mount.fdescfs", devpath, 0, in run_command()
573 argv[1] = devpath; in run_command()
[all …]
/freebsd/contrib/netbsd-tests/dev/cgd/
H A Dt_cgd_3des.c696 open_disk(const char *devpath, const char *imgpath, size_t size) in open_disk() argument
707 if (rump_pub_etfs_register_withsize(devpath, in open_disk()
723 char devpath[32]; in open_cgd() local
725 sprintf(devpath, "/dev/rcgd%d%c", devno, getrawpartition() + 'a'); in open_cgd()
727 return rump_sys_open(devpath, O_RDWR, 0); in open_cgd()
H A Dt_cgd_blowfish.c1932 open_disk(const char *devpath, const char *imgpath, size_t size) in open_disk() argument
1943 if (rump_pub_etfs_register_withsize(devpath, in open_disk()
1959 char devpath[32]; in open_cgd() local
1961 sprintf(devpath, "/dev/rcgd%d%c", devno, getrawpartition() + 'a'); in open_cgd()
1963 return rump_sys_open(devpath, O_RDWR, 0); in open_cgd()
H A Dt_cgd_aes.c3097 open_disk(const char *devpath, const char *imgpath, size_t size) in open_disk() argument
3108 if (rump_pub_etfs_register_withsize(devpath, in open_disk()
3124 char devpath[32]; in open_cgd() local
3126 sprintf(devpath, "/dev/rcgd%d%c", devno, getrawpartition() + 'a'); in open_cgd()
3128 return rump_sys_open(devpath, O_RDWR, 0); in open_cgd()
/freebsd/sys/xen/xenbus/
H A Dxenbusb.c638 char *devpath; in xenbusb_add_device() local
646 devpath = sbuf_data(devpath_sbuf); in xenbusb_add_device()
651 if (xs_exists(XST_NIL, devpath, "") != 0) { in xenbusb_add_device()
656 child = xenbusb_device_exists(dev, devpath); in xenbusb_add_device()
665 state = xenbus_read_driver_state(devpath); in xenbusb_add_device()
673 "State %d\n", devpath, state); in xenbusb_add_device()
680 ivars->xd_node = strdup(devpath, M_XENBUS); in xenbusb_add_device()
681 ivars->xd_node_len = strlen(devpath); in xenbusb_add_device()
688 devpath); in xenbusb_add_device()
/freebsd/stand/efi/loader/
H A Dmain.c529 EFI_DEVICE_PATH *devpath, *copy; in find_currdev() local
558 devpath = efi_name_to_devpath(rootdev); in find_currdev()
559 if (devpath == NULL) in find_currdev()
561 dp = efiblk_get_pdinfo_by_device_path(devpath); in find_currdev()
562 efi_devpath_free(devpath); in find_currdev()
668 devpath = efi_lookup_image_devpath(IH); in find_currdev()
669 while (devpath != NULL) { in find_currdev()
670 h = efi_devpath_handle(devpath); in find_currdev()
683 devpath = efi_lookup_devpath(h); in find_currdev()
684 if (devpath != NULL) { in find_currdev()
[all …]
/freebsd/sys/contrib/openzfs/cmd/zed/agents/
H A Dzfs_mod.c918 const char *devpath = NULL, *devid = NULL; in zfs_deliver_add() local
930 (void) nvlist_lookup_string(nvl, DEV_PHYS_PATH, &devpath); in zfs_deliver_add()
937 devid, devpath ? devpath : "NULL", is_slice); in zfs_deliver_add()
949 if (devpath != NULL && devphys_iter(devpath, devid, zfs_process_add, in zfs_deliver_add()
956 if (devpath != NULL) { in zfs_deliver_add()
960 "/dev/disk/by-vdev/%s", devpath); in zfs_deliver_add()
/freebsd/usr.sbin/fstyp/
H A Dhammer2.c174 extract_device_name(const char *devpath) in extract_device_name() argument
178 if (!devpath) in extract_device_name()
181 p = strdup(devpath); in extract_device_name()
/freebsd/contrib/ofed/libibverbs/
H A Ddevice.c207 char *devpath; in __ibv_open_device() local
212 if (asprintf(&devpath, "/dev/%s", device->dev_name) < 0) in __ibv_open_device()
219 cmd_fd = open(devpath, O_RDWR | O_CLOEXEC); in __ibv_open_device()
220 free(devpath); in __ibv_open_device()
/freebsd/sys/contrib/openzfs/cmd/zed/
H A Dzed_disk_event.c191 const char *bus, *uuid, *devpath; in zed_udev_monitor() local
295 devpath = udev_device_get_devpath(dev); in zed_udev_monitor()
297 strstr(devpath, "/nvme/") == NULL)) { in zed_udev_monitor()
/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_store.c88 const char *devpath,
536 bhnd_nvstore_path *path, const char *devpath, bhnd_nvram_plist *plist, in bhnd_nvstore_export_devpath_alias() argument
556 error = bhnd_nvram_plist_append_string(plist, pathvar, devpath); in bhnd_nvstore_export_devpath_alias()
594 error = bhnd_nvram_plist_append_string(plist, pathvar, devpath); in bhnd_nvstore_export_devpath_alias()
/freebsd/lib/libvmmapi/
H A Dvmmapi.c87 char devpath[PATH_MAX]; in vm_device_open() local
90 (void)snprintf(devpath, sizeof(devpath), "/dev/vmm/%s", name); in vm_device_open()
91 return (open(devpath, O_RDWR)); in vm_device_open()
/freebsd/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_vdev.c960 char devpath[MAXPATHLEN]; in make_disks() local
999 if (realpath(path, devpath) == NULL) { in make_disks()
1016 fd = open(devpath, O_RDWR|O_EXCL); in make_disks()
1039 char *devnode = strrchr(devpath, '/') + 1; in make_disks()

12