| /freebsd-12.1/stand/efi/libefi/ |
| H A D | devpath.c | 42 EFI_DEVICE_PATH *devpath; in efi_lookup_image_devpath() local 46 (void **)&devpath); in efi_lookup_image_devpath() 48 devpath = NULL; in efi_lookup_image_devpath() 49 return (devpath); in efi_lookup_image_devpath() 59 (void **)&devpath); in efi_lookup_devpath() 61 devpath = NULL; in efi_lookup_devpath() 62 return (devpath); in efi_lookup_devpath() 71 if (devpath == NULL) in efi_devpath_name() 100 devpath = NextDevicePathNode(devpath); in efi_devpath_last_node() 101 return (devpath); in efi_devpath_last_node() [all …]
|
| H A D | efipart.c | 218 EFI_DEVICE_PATH *devpath; in efipart_inithandles() local 287 pd->pd_devpath = devpath; in efipart_inithandles() 413 EFI_DEVICE_PATH *devpath, *node; in efipart_updatecd() local 465 devpath = efi_devpath_trim(cd->pd_devpath); in efipart_updatecd() 466 if (devpath == NULL) { in efipart_updatecd() 473 parent->pd_devpath = devpath; in efipart_updatecd() 476 free(devpath); in efipart_updatecd() 602 EFI_DEVICE_PATH *devpath, *node; in efipart_updatehd() local 654 if (devpath == NULL) { in efipart_updatehd() 662 parent->pd_devpath = devpath; in efipart_updatehd() [all …]
|
| H A D | efinet.c | 271 EFI_DEVICE_PATH *devpath, *node; in efinet_dev_init() local 298 devpath = efi_lookup_devpath(handles[i]); in efinet_dev_init() 299 if (devpath == NULL) in efinet_dev_init() 301 if ((node = efi_devpath_last_node(devpath)) == NULL) in efinet_dev_init()
|
| H A D | Makefile | 10 devpath.c \
|
| /freebsd-12.1/stand/efi/boot1/ |
| H A D | boot1.c | 105 imgpath->SubType != devpath->SubType) in nodes_match() 109 if (len != DevicePathNodeLength(devpath)) in nodes_match() 129 IsDevicePathType(devpath, MEDIA_DEVICE_PATH)) in device_paths_match() 132 if (!nodes_match(imgpath, devpath)) in device_paths_match() 136 devpath = NextDevicePathNode(devpath); in device_paths_match() 146 devpath_last(EFI_DEVICE_PATH *devpath) in devpath_last() argument 150 devpath = NextDevicePathNode(devpath); in devpath_last() 152 return (devpath); in devpath_last() 305 EFI_DEVICE_PATH *devpath; in probe_handle() local 321 CHAR16 *text = efi_devpath_name(devpath); in probe_handle() [all …]
|
| H A D | boot_module.h | 50 EFI_DEVICE_PATH *devpath; member
|
| H A D | ufs_module.c | 150 CHAR16 *text = efi_devpath_name(dev->devpath); in load()
|
| H A D | zfs_module.c | 155 CHAR16 *text = efi_devpath_name(devinfo->devpath); in load()
|
| /freebsd-12.1/cddl/contrib/opensolaris/lib/libzfs/common/ |
| H A D | libzfs_fru.c | 108 char *devpath, *frustr; in libzfs_fru_gather() local 120 FM_FMRI_AUTH_CHASSIS, &devpath, &err) == 0) in libzfs_fru_gather() 137 if (libzfs_fru_lookup(hdl, devpath) != NULL) { in libzfs_fru_gather() 138 _topo_hdl_strfree(thp, devpath); in libzfs_fru_gather() 143 _topo_hdl_strfree(thp, devpath); in libzfs_fru_gather() 152 _topo_hdl_strfree(thp, devpath); in libzfs_fru_gather() 162 _topo_hdl_strfree(thp, devpath); in libzfs_fru_gather() 171 _topo_hdl_strfree(thp, devpath); in libzfs_fru_gather() 176 _topo_hdl_strfree(thp, devpath); in libzfs_fru_gather() 309 size_t idx = fru_strhash(devpath); in libzfs_fru_lookup() [all …]
|
| /freebsd-12.1/lib/libgeom/ |
| H A D | geom_util.c | 276 g_device_path_open(const char *devpath, int *fdp, int dowrite) in g_device_path_open() argument 286 fd = open(devpath, dowrite ? O_RDWR : O_RDONLY); in g_device_path_open() 288 if ((path = strdup(devpath)) == NULL) { in g_device_path_open() 296 if (*devpath == '/') in g_device_path_open() 299 asprintf(&path, "%s%s", _PATH_DEV, devpath); in g_device_path_open() 326 g_device_path(const char *devpath) in g_device_path() argument 328 return (g_device_path_open(devpath, NULL, 0)); in g_device_path()
|
| /freebsd-12.1/usr.sbin/jail/ |
| H A D | command.c | 280 char *acs, *cs, *comcs, *devpath; in run_command() local 504 devpath = alloca(strlen(path) + 5); in run_command() 505 sprintf(devpath, "%s/dev", path); in run_command() 511 argv[1] = devpath; in run_command() 523 argv[5] = devpath; in run_command() 535 devpath = alloca(strlen(path) + 8); in run_command() 542 argv[1] = devpath; in run_command() 549 argv[4] = devpath; in run_command() 562 sprintf(devpath, "%s/proc", path); in run_command() 568 argv[1] = devpath; in run_command() [all …]
|
| /freebsd-12.1/contrib/netbsd-tests/dev/cgd/ |
| H A D | t_cgd_3des.c | 696 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 D | t_cgd_blowfish.c | 1932 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 D | t_cgd_aes.c | 3097 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-12.1/sys/xen/xenbus/ |
| H A D | xenbusb.c | 645 char *devpath; in xenbusb_add_device() local 653 devpath = sbuf_data(devpath_sbuf); in xenbusb_add_device() 658 if (xs_exists(XST_NIL, devpath, "") != 0) { in xenbusb_add_device() 663 child = xenbusb_device_exists(dev, devpath); in xenbusb_add_device() 672 state = xenbus_read_driver_state(devpath); in xenbusb_add_device() 680 "State %d\n", devpath, state); in xenbusb_add_device() 687 ivars->xd_node = strdup(devpath, M_XENBUS); in xenbusb_add_device() 688 ivars->xd_node_len = strlen(devpath); in xenbusb_add_device() 695 devpath); in xenbusb_add_device()
|
| /freebsd-12.1/contrib/ofed/libibverbs/ |
| H A D | device.c | 179 char *devpath; in __ibv_open_device() local 184 if (asprintf(&devpath, "/dev/%s", device->dev_name) < 0) in __ibv_open_device() 191 cmd_fd = open(devpath, O_RDWR | O_CLOEXEC); in __ibv_open_device() 192 free(devpath); in __ibv_open_device()
|
| /freebsd-12.1/stand/powerpc/kboot/ |
| H A D | main.c | 218 const char *devpath, *filepath; in kboot_getdev() local 223 devpath = devspec; in kboot_getdev() 226 devpath = getenv("currdev"); in kboot_getdev() 231 if (strncmp(dv->dv_name, devpath, strlen(dv->dv_name)) == 0) in kboot_getdev() 246 desc->d_opendata = strdup(devpath); in kboot_getdev()
|
| /freebsd-12.1/stand/efi/loader/ |
| H A D | main.c | 458 EFI_DEVICE_PATH *devpath, *copy; in find_currdev() local 566 devpath = efi_lookup_image_devpath(IH); in find_currdev() 567 while (devpath != NULL) { in find_currdev() 568 h = efi_devpath_handle(devpath); in find_currdev() 581 devpath = efi_lookup_devpath(h); in find_currdev() 582 if (devpath != NULL) { in find_currdev() 583 copy = efi_devpath_trim(devpath); in find_currdev() 584 devpath = copy; in find_currdev()
|
| /freebsd-12.1/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_store.c | 91 const char *devpath, 542 bhnd_nvstore_path *path, const char *devpath, bhnd_nvram_plist *plist, in bhnd_nvstore_export_devpath_alias() argument 562 error = bhnd_nvram_plist_append_string(plist, pathvar, devpath); in bhnd_nvstore_export_devpath_alias() 600 error = bhnd_nvram_plist_append_string(plist, pathvar, devpath); in bhnd_nvstore_export_devpath_alias()
|
| /freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| H A D | vdev_disk.c | 899 vdev_disk_read_rootlabel(char *devpath, char *devid, nvlist_t **config) in vdev_disk_read_rootlabel() argument 920 if (error && (error = ldi_open_by_name(devpath, FREAD, kcred, &vd_lh, in vdev_disk_read_rootlabel()
|
| H A D | spa.c | 4998 spa_generate_rootconf(char *devpath, char *devid, uint64_t *guid) argument 5004 if (vdev_disk_read_rootlabel(devpath, devid, &config) != 0) 5082 spa_import_rootpool(char *devpath, char *devid) argument 5094 config = spa_generate_rootconf(devpath, devid, &guid); 5097 if (strstr(devpath, "/iscsi/ssd") != NULL) { 5099 get_iscsi_bootpath_phy(devpath); 5100 config = spa_generate_rootconf(devpath, devid, &guid); 5106 devpath);
|
| /freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/os/ |
| H A D | fm.c | 967 const char *devpath, const char *devid, const char *tpl0) in fm_fmri_dev_set() argument 984 err |= nvlist_add_string(fmri_dev, FM_FMRI_DEV_PATH, devpath); in fm_fmri_dev_set()
|
| /freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
| H A D | spa.h | 643 extern int spa_import_rootpool(char *devpath, char *devid);
|