/freebsd-11-stable/stand/efi/libefi/ |
H A D | devpath.c | 27 __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 D | efipart.c | 144 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 D | Makefile | 10 devpath.c \
|
H A D | efinet.c | 271 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 D | boot1.c | 86 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 D | boot_module.h | 50 EFI_DEVICE_PATH *devpath; member in struct:dev_info
|
H A D | ufs_module.c | 150 CHAR16 *text = efi_devpath_name(dev->devpath);
|
H A D | zfs_module.c | 155 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 D | libzfs_fru.c | 108 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 D | geom_util.c | 276 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 D | command.c | 280 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 D | xenbusb.c | 645 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 D | device.c | 179 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 D | main.c | 218 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 D | main.c | 290 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 D | fm.c | 959 * 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 D | vdev_disk.c | 854 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 D | spa.c | 4990 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 D | t_cgd_3des.c | 696 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 D | t_cgd_blowfish.c | 1932 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 D | t_cgd_aes.c | 3097 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 D | spa.h | 643 extern int spa_import_rootpool(char *devpath, char *devid);
|