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

/freebsd-11-stable/stand/efi/libefi/
H A Ddevpath.c27 __FBSDID("$FreeBSD: stable/11/stand/efi/libefi/devpath.c 367457 2020-11-07 18:10:59Z dim $");
41 EFI_DEVICE_PATH *devpath; local
45 (VOID **)&devpath);
47 devpath = NULL;
48 return (devpath);
54 EFI_DEVICE_PATH *devpath; local
57 status = BS->HandleProtocol(handle, &DevicePathGUID, (VOID **)&devpath);
59 devpath = NULL;
60 return (devpath);
64 efi_devpath_name(EFI_DEVICE_PATH *devpath) argument
92 efi_devpath_last_node(EFI_DEVICE_PATH *devpath) argument
103 efi_devpath_trim(EFI_DEVICE_PATH *devpath) argument
124 efi_devpath_handle(EFI_DEVICE_PATH *devpath) argument
[all...]
H A Defipart.c144 EFI_DEVICE_PATH *media, *devpath; local
152 devpath = efi_lookup_devpath(h);
153 if (devpath == NULL)
155 if (!efi_devpath_match_node(media, efi_devpath_to_media_path(devpath)))
272 EFI_DEVICE_PATH *devpath, *node; local
290 devpath = efi_lookup_devpath(efipart_handles[i]);
291 if (devpath == NULL)
294 /* Only continue testing when dp is prefix in devpath. */
295 if (!efi_devpath_is_prefix(dp, devpath))
302 if ((node = efi_devpath_last_node(devpath))
339 efipart_fdinfo_add(EFI_HANDLE handle, uint32_t uid, EFI_DEVICE_PATH *devpath) argument
362 EFI_DEVICE_PATH *devpath, *node; local
396 efipart_cdinfo_add(EFI_HANDLE handle, EFI_HANDLE alias, EFI_DEVICE_PATH *devpath) argument
434 EFI_DEVICE_PATH *devpath, *devpathcpy, *tmpdevpath, *node; local
602 EFI_DEVICE_PATH *devpath; local
689 EFI_DEVICE_PATH *devpath, *devpathcpy, *tmpdevpath, *node; local
[all...]
H A DMakefile10 devpath.c \
H A Definet.c271 EFI_DEVICE_PATH *devpath, *node; local
298 devpath = efi_lookup_devpath(handles[i]);
299 if (devpath == NULL)
301 if ((node = efi_devpath_last_node(devpath)) == NULL)
/freebsd-11-stable/stand/efi/boot1/
H A Dboot1.c86 nodes_match(EFI_DEVICE_PATH *imgpath, EFI_DEVICE_PATH *devpath) argument
90 if (imgpath == NULL || imgpath->Type != devpath->Type ||
91 imgpath->SubType != devpath->SubType)
95 if (len != DevicePathNodeLength(devpath))
98 return (memcmp(imgpath, devpath, (size_t)len) == 0);
103 * in imgpath and devpath match up to their respective occurrences of a
107 device_paths_match(EFI_DEVICE_PATH *imgpath, EFI_DEVICE_PATH *devpath) argument
113 while (!IsDevicePathEnd(imgpath) && !IsDevicePathEnd(devpath)) {
115 IsDevicePathType(devpath, MEDIA_DEVICE_PATH))
118 if (!nodes_match(imgpath, devpath))
132 devpath_last(EFI_DEVICE_PATH *devpath) argument
290 EFI_DEVICE_PATH *devpath; local
[all...]
H A Dboot_module.h50 EFI_DEVICE_PATH *devpath; member in struct:dev_info
H A Dufs_module.c150 CHAR16 *text = efi_devpath_name(dev->devpath);
H A Dzfs_module.c155 CHAR16 *text = efi_devpath_name(devinfo->devpath);
156 DPRINTF("load: '%s' spa: '%s', devpath: %S\n", filepath,
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_fru.c108 char *devpath, *frustr; local
120 FM_FMRI_AUTH_CHASSIS, &devpath, &err) == 0)
121 (void) strlcpy(hdl->libzfs_chassis_id, devpath,
134 if (_topo_prop_get_string(tn, "io", "devfs-path", &devpath, &err) != 0)
137 if (libzfs_fru_lookup(hdl, devpath) != NULL) {
138 _topo_hdl_strfree(thp, devpath);
143 _topo_hdl_strfree(thp, devpath);
152 _topo_hdl_strfree(thp, devpath);
162 _topo_hdl_strfree(thp, devpath);
167 if ((frup->zf_device = strdup(devpath))
307 libzfs_fru_lookup(libzfs_handle_t *hdl, const char *devpath) argument
[all...]
/freebsd-11-stable/lib/libgeom/
H A Dgeom_util.c276 g_device_path_open(const char *devpath, int *fdp, int dowrite) argument
286 fd = open(devpath, dowrite ? O_RDWR : O_RDONLY);
298 if ((path = strdup(devpath)) == NULL) {
310 if (*devpath != '/') {
311 asprintf(&path, "%s%s", _PATH_DEV, devpath);
339 g_device_path(const char *devpath) argument
341 return (g_device_path_open(devpath, NULL, 0));
/freebsd-11-stable/usr.sbin/jail/
H A Dcommand.c280 char *acs, *cs, *comcs, *devpath; local
503 devpath = alloca(strlen(path) + 5);
504 sprintf(devpath, "%s/dev", path);
505 if (check_path(j, "mount.devfs", devpath, 0,
510 argv[1] = devpath;
522 argv[5] = devpath;
534 devpath = alloca(strlen(path) + 8);
535 sprintf(devpath, "%s/dev/fd", path);
536 if (check_path(j, "mount.fdescfs", devpath, 0,
541 argv[1] = devpath;
[all...]
/freebsd-11-stable/sys/xen/xenbus/
H A Dxenbusb.c645 char *devpath; local
653 devpath = sbuf_data(devpath_sbuf);
658 if (xs_exists(XST_NIL, devpath, "") != 0) {
663 child = xenbusb_device_exists(dev, devpath);
672 state = xenbus_read_driver_state(devpath);
680 "State %d\n", devpath, state);
687 ivars->xd_node = strdup(devpath, M_XENBUS);
688 ivars->xd_node_len = strlen(devpath);
695 devpath);
/freebsd-11-stable/contrib/ofed/libibverbs/
H A Ddevice.c179 char *devpath; local
184 if (asprintf(&devpath, "/dev/%s", device->dev_name) < 0)
191 cmd_fd = open(devpath, O_RDWR | O_CLOEXEC);
192 free(devpath);
/freebsd-11-stable/stand/powerpc/kboot/
H A Dmain.c218 const char *devpath, *filepath; local
223 devpath = devspec;
226 devpath = getenv("currdev");
231 if (strncmp(dv->dv_name, devpath, strlen(dv->dv_name)) == 0)
246 desc->d_opendata = strdup(devpath);
/freebsd-11-stable/stand/efi/loader/
H A Dmain.c290 EFI_DEVICE_PATH *devpath, *copy; local
365 devpath = efi_lookup_image_devpath(IH);
366 while (devpath != NULL) {
367 h = efi_devpath_handle(devpath);
380 devpath = efi_lookup_devpath(h);
381 if (devpath != NULL) {
382 copy = efi_devpath_trim(devpath);
383 devpath = copy;
683 /* Determine the devpath of our image so we can prefer it. */
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/os/
H A Dfm.c959 * devpath string <devpath>
967 const char *devpath, const char *devid, const char *tpl0)
984 err |= nvlist_add_string(fmri_dev, FM_FMRI_DEV_PATH, devpath);
966 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-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dvdev_disk.c854 vdev_disk_read_rootlabel(char *devpath, char *devid, nvlist_t **config) argument
875 if (error && (error = ldi_open_by_name(devpath, FREAD, kcred, &vd_lh,
H A Dspa.c4990 spa_generate_rootconf(char *devpath, char *devid, uint64_t *guid) argument
4996 if (vdev_disk_read_rootlabel(devpath, devid, &config) != 0)
5074 spa_import_rootpool(char *devpath, char *devid) argument
5086 config = spa_generate_rootconf(devpath, devid, &guid);
5089 if (strstr(devpath, "/iscsi/ssd") != NULL) {
5091 get_iscsi_bootpath_phy(devpath);
5092 config = spa_generate_rootconf(devpath, devid, &guid);
5098 devpath);
/freebsd-11-stable/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);
H A Dt_cgd_aes.c3097 open_disk(const char *devpath, const char *imgpath, size_t size) argument
3108 if (rump_pub_etfs_register_withsize(devpath,
3124 char devpath[32]; local
3126 sprintf(devpath, "/dev/rcgd%d%c", devno, getrawpartition() + 'a');
3128 return rump_sys_open(devpath, O_RDWR, 0);
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Dspa.h643 extern int spa_import_rootpool(char *devpath, char *devid);

Completed in 321 milliseconds