Searched refs:devpath (Results 1 - 25 of 26) sorted by relevance

12

/freebsd-current/stand/efi/libefi/
H A Ddevpath.c44 EFI_DEVICE_PATH *devpath; local
48 (void **)&devpath);
50 devpath = NULL;
51 return (devpath);
57 EFI_DEVICE_PATH *devpath; local
61 (void **)&devpath);
63 devpath = NULL;
64 return (devpath);
422 efi_translate_devpath(EFI_DEVICE_PATH *devpath) argument
424 EFI_DEVICE_PATH *dp = NextDevicePathNode(devpath);
464 efi_devpath_to_name(EFI_DEVICE_PATH *devpath) argument
499 efi_devpath_name(EFI_DEVICE_PATH *devpath) argument
527 EFI_DEVICE_PATH *devpath; local
558 efi_devpath_free(EFI_DEVICE_PATH *devpath) argument
565 efi_devpath_last_node(EFI_DEVICE_PATH *devpath) argument
579 efi_devpath_next_instance(EFI_DEVICE_PATH *devpath) argument
593 efi_devpath_trim(EFI_DEVICE_PATH *devpath) argument
614 efi_devpath_handle(EFI_DEVICE_PATH *devpath) argument
750 EFI_DEVICE_PATH *media, *devpath; local
[all...]
H A Deficom.c129 efi_serial_get_index(EFI_DEVICE_PATH *devpath, int idx) argument
134 while (!IsDevicePathEnd(devpath)) {
135 if (DevicePathType(devpath) == MESSAGING_DEVICE_PATH &&
136 DevicePathSubType(devpath) == MSG_UART_DP)
139 if (DevicePathType(devpath) == ACPI_DEVICE_PATH &&
140 (DevicePathSubType(devpath) == ACPI_DP ||
141 DevicePathSubType(devpath) == ACPI_EXTENDED_DP)) {
143 acpi = (ACPI_HID_DEVICE_PATH *)devpath;
149 devpath = NextDevicePathNode(devpath);
164 EFI_DEVICE_PATH *devpath; local
[all...]
H A DMakefile9 devpath.c \
H A Defihttp.c182 EFI_DEVICE_PATH *imgpath, *devpath; local
192 devpath = imgpath;
194 for (; !IsDevicePathEnd(devpath);
195 devpath = NextDevicePathNode(devpath)) {
196 if (DevicePathType(devpath) != MESSAGING_DEVICE_PATH ||
197 DevicePathSubType(devpath) != MSG_URI_DP)
199 uri = (URI_DEVICE_PATH *)devpath;
231 EFI_DEVICE_PATH *devpath, *imgpath; local
249 devpath
[all...]
H A Defipart.c214 efipart_find_parent(pdinfo_list_t *pdi, EFI_DEVICE_PATH *devpath) argument
220 parent = efi_devpath_trim(devpath);
239 EFI_DEVICE_PATH *devpath)
301 node = efi_devpath_last_node(devpath);
312 parent = efi_devpath_trim(devpath);
326 node = efi_devpath_last_node(devpath);
352 EFI_DEVICE_PATH *devpath; local
382 * Get devpath and open protocol.
385 if ((devpath = efi_lookup_devpath(hin[i])) == NULL)
395 if (efipart_ignore_device(hin[i], blkio, devpath))
238 efipart_ignore_device(EFI_HANDLE h, EFI_BLOCK_IO *blkio, EFI_DEVICE_PATH *devpath) argument
[all...]
H A Definet.c359 EFI_DEVICE_PATH *devpath, *node; local
387 devpath = efi_lookup_devpath(handles[i]);
388 if (devpath == NULL)
390 if ((node = efi_devpath_last_node(devpath)) == NULL)
/freebsd-current/stand/efi/gptboot/
H A Dproto.c120 partition_number(EFI_DEVICE_PATH *devpath) argument
125 md = efi_devpath_last_node(devpath);
142 EFI_DEVICE_PATH *devpath, *trimmed = NULL; local
146 status = OpenProtocolByHandle(h, &DevicePathGUID, (void **)&devpath);
151 CHAR16 *text = efi_devpath_name(devpath);
161 if (!efi_devpath_same_disk(imgpath, devpath)) {
163 if (!efi_devpath_match(trimmed, devpath)) {
180 devinfo->devpath = devpath;
186 DPRINTF("Found partition %d\n", partition_number(devpath));
[all...]
/freebsd-current/lib/libgeom/
H A Dgeom_util.c273 g_device_path_open(const char *devpath, int *fdp, int dowrite) argument
283 fd = open(devpath, dowrite ? O_RDWR : O_RDONLY);
285 if ((path = strdup(devpath)) == NULL) {
293 if (*devpath == '/')
296 asprintf(&path, "%s%s", _PATH_DEV, devpath);
323 g_device_path(const char *devpath) argument
325 return (g_device_path_open(devpath, NULL, 0));
/freebsd-current/stand/efi/boot1/
H A Dproto.c57 EFI_DEVICE_PATH *devpath; local
63 status = OpenProtocolByHandle(h, &DevicePathGUID, (void **)&devpath);
74 CHAR16 *text = efi_devpath_name(devpath);
92 preferred = efi_devpath_same_disk(imgpath, devpath);
101 devinfo->devpath = devpath;
H A Dboot_module.h48 EFI_DEVICE_PATH *devpath; member in struct:dev_info
H A Dufs_module.c147 CHAR16 *text = efi_devpath_name(dev->devpath);
H A Dboot1.c116 if ((status = BS->LoadImage(TRUE, IH, efi_devpath_last_node(dev->devpath),
240 /* Determine the devpath of our image so we can prefer it. */
H A Dzfs_module.c153 CHAR16 *text = efi_devpath_name(devinfo->devpath);
154 DPRINTF("load: '%s' spa: '%s', devpath: %S\n", filepath,
/freebsd-current/usr.sbin/jail/
H A Dcommand.c293 char *acs, *cs, *comcs, *devpath; local
517 devpath = alloca(strlen(path) + 5);
518 sprintf(devpath, "%s/dev", path);
519 if (check_path(j, "mount.devfs", devpath, 0,
524 argv[1] = devpath;
536 argv[5] = devpath;
548 devpath = alloca(strlen(path) + 8);
549 sprintf(devpath, "%s/dev/fd", path);
550 if (check_path(j, "mount.fdescfs", devpath, 0,
555 argv[1] = devpath;
[all...]
/freebsd-current/sys/xen/xenbus/
H A Dxenbusb.c639 char *devpath; local
647 devpath = sbuf_data(devpath_sbuf);
652 if (xs_exists(XST_NIL, devpath, "") != 0) {
657 child = xenbusb_device_exists(dev, devpath);
666 state = xenbus_read_driver_state(devpath);
674 "State %d\n", devpath, state);
681 ivars->xd_node = strdup(devpath, M_XENBUS);
682 ivars->xd_node_len = strlen(devpath);
689 devpath);
/freebsd-current/contrib/ofed/libibverbs/
H A Ddevice.c208 char *devpath; local
213 if (asprintf(&devpath, "/dev/%s", device->dev_name) < 0)
220 cmd_fd = open(devpath, O_RDWR | O_CLOEXEC);
221 free(devpath);
/freebsd-current/stand/efi/loader/
H A Dmain.c493 EFI_DEVICE_PATH *devpath, *copy; local
522 devpath = efi_name_to_devpath(rootdev);
523 if (devpath == NULL)
525 dp = efiblk_get_pdinfo_by_device_path(devpath);
526 efi_devpath_free(devpath);
632 devpath = efi_lookup_image_devpath(IH);
633 while (devpath != NULL) {
634 h = efi_devpath_handle(devpath);
647 devpath = efi_lookup_devpath(h);
648 if (devpath !
1478 EFI_DEVICE_PATH *devpath; local
[all...]
/freebsd-current/usr.sbin/fstyp/
H A Dhammer2.c174 extract_device_name(const char *devpath) argument
178 if (!devpath)
181 p = strdup(devpath);
/freebsd-current/sys/contrib/openzfs/cmd/zed/
H A Dzed_disk_event.c189 const char *bus, *uuid, *devpath; local
293 devpath = udev_device_get_devpath(dev);
295 strstr(devpath, "/nvme/") == NULL)) {
/freebsd-current/sys/contrib/openzfs/cmd/zed/agents/
H A Dzfs_mod.c915 const char *devpath = NULL, *devid = NULL; local
927 (void) nvlist_lookup_string(nvl, DEV_PHYS_PATH, &devpath);
934 devid, devpath ? devpath : "NULL", is_slice);
946 if (devpath != NULL && devphys_iter(devpath, devid, zfs_process_add,
953 if (devpath != NULL) {
957 "/dev/disk/by-vdev/%s", devpath);
/freebsd-current/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_store.c88 const char *devpath,
521 * @param path The NVRAM path for which a devpath alias
523 * @param devpath The devpathXX path value for @p path.
524 * @param plist The property list to which @p path's devpath
536 bhnd_nvstore_path *path, const char *devpath, bhnd_nvram_plist *plist,
551 bhnd_nv_asprintf(&pathvar, "devpath%lu", *alias_val);
556 error = bhnd_nvram_plist_append_string(plist, pathvar, devpath);
576 bhnd_nv_asprintf(&pathvar, "devpath%lu", *alias_val);
594 error = bhnd_nvram_plist_append_string(plist, pathvar, devpath);
535 bhnd_nvstore_export_devpath_alias(struct bhnd_nvram_store *sc, bhnd_nvstore_path *path, const char *devpath, bhnd_nvram_plist *plist, u_long *alias_val) argument
/freebsd-current/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_vdev.c968 char devpath[MAXPATHLEN]; local
1007 if (realpath(path, devpath) == NULL) {
1024 fd = open(devpath, O_RDWR|O_EXCL);
1047 char *devnode = strrchr(devpath, '/') + 1;
/freebsd-current/sys/contrib/openzfs/module/zfs/
H A Dfm.c991 * devpath string <devpath>
999 const char *devpath, const char *devid, const char *tpl0)
1016 err |= nvlist_add_string(fmri_dev, FM_FMRI_DEV_PATH, devpath);
998 fm_fmri_dev_set(nvlist_t *fmri_dev, int version, const nvlist_t *auth, const char *devpath, const char *devid, const char *tpl0) argument
/freebsd-current/contrib/netbsd-tests/dev/cgd/
H A Dt_cgd_3des.c696 open_disk(const char *devpath, const char *imgpath, size_t size) argument
707 if (rump_pub_etfs_register_withsize(devpath,
723 char devpath[32]; local
725 sprintf(devpath, "/dev/rcgd%d%c", devno, getrawpartition() + 'a');
727 return rump_sys_open(devpath, O_RDWR, 0);
H A Dt_cgd_blowfish.c1932 open_disk(const char *devpath, const char *imgpath, size_t size) argument
1943 if (rump_pub_etfs_register_withsize(devpath,
1959 char devpath[32]; local
1961 sprintf(devpath, "/dev/rcgd%d%c", devno, getrawpartition() + 'a');
1963 return rump_sys_open(devpath, O_RDWR, 0);

Completed in 357 milliseconds

12