/freebsd-10-stable/sys/boot/efi/boot1/ |
H A D | boot1.c | 88 nodes_match(EFI_DEVICE_PATH *imgpath, EFI_DEVICE_PATH *devpath) argument 92 if (imgpath == NULL || imgpath->Type != devpath->Type || 93 imgpath->SubType != devpath->SubType) 97 if (len != DevicePathNodeLength(devpath)) 100 return (memcmp(imgpath, devpath, (size_t)len) == 0); 105 * in imgpath and devpath match up to their respect occurances of a media 109 device_paths_match(EFI_DEVICE_PATH *imgpath, EFI_DEVICE_PATH *devpath) argument 115 while (!IsDevicePathEnd(imgpath) && !IsDevicePathEnd(devpath)) { 117 IsDevicePathType(devpath, MEDIA_DEVICE_PATH)) 120 if (!nodes_match(imgpath, devpath)) 134 devpath_last(EFI_DEVICE_PATH *devpath) argument 151 devpath_node_str(char *buf, size_t size, EFI_DEVICE_PATH *devpath) argument 275 devpath_strlcat(char *buf, size_t size, EFI_DEVICE_PATH *devpath) argument 306 devpath_str(EFI_DEVICE_PATH *devpath) argument 466 EFI_DEVICE_PATH *devpath; local [all...] |
H A D | boot_module.h | 50 EFI_DEVICE_PATH *devpath; member in struct:dev_info 113 extern int devpath_strlcat(char *buf, size_t size, EFI_DEVICE_PATH *devpath); 114 extern char *devpath_str(EFI_DEVICE_PATH *devpath);
|
H A D | ufs_module.c | 104 DPRINTF("Loading '%s' from %s\n", filepath, devpath_str(dev->devpath));
|
H A D | zfs_module.c | 106 DPRINTF("load: '%s' spa: '%s', devpath: %s\n", filepath, spa->spa_name, 107 devpath_str(devinfo->devpath));
|
/freebsd-10-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-10-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-10-stable/contrib/ofed/libibverbs/src/ |
H A D | device.c | 127 char *devpath; local 131 if (asprintf(&devpath, "/dev/%s", device->dev_name) < 0) 138 cmd_fd = open(devpath, O_RDWR); 139 free(devpath);
|
/freebsd-10-stable/sys/boot/efi/libefi/ |
H A D | efipart.c | 66 EFI_DEVICE_PATH *devpath, *devpathcpy, *tmpdevpath, *node; local 97 (void **)&devpath); 102 node = devpath; 127 memcpy(devpathcpy, devpath, devpathlen);
|
/freebsd-10-stable/usr.sbin/jail/ |
H A D | command.c | 278 char *cs, *comcs, *devpath; local 502 devpath = alloca(strlen(path) + 5); 503 sprintf(devpath, "%s/dev", path); 504 if (check_path(j, "mount.devfs", devpath, 0, 509 argv[1] = devpath; 521 argv[5] = devpath; 533 devpath = alloca(strlen(path) + 8); 534 sprintf(devpath, "%s/dev/fd", path); 535 if (check_path(j, "mount.fdescfs", devpath, 0, 540 argv[1] = devpath; [all...] |
/freebsd-10-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-10-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-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | vdev_disk.c | 841 vdev_disk_read_rootlabel(char *devpath, char *devid, nvlist_t **config) argument 862 if (error && (error = ldi_open_by_name(devpath, FREAD, kcred, &vd_lh,
|
H A D | spa.c | 3861 spa_generate_rootconf(char *devpath, char *devid, uint64_t *guid) argument 3867 if (vdev_disk_read_rootlabel(devpath, devid, &config) != 0) 3945 spa_import_rootpool(char *devpath, char *devid) argument 3957 config = spa_generate_rootconf(devpath, devid, &guid); 3960 if (strstr(devpath, "/iscsi/ssd") != NULL) { 3962 get_iscsi_bootpath_phy(devpath); 3963 config = spa_generate_rootconf(devpath, devid, &guid); 3969 devpath);
|
/freebsd-10-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-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
H A D | spa.h | 634 extern int spa_import_rootpool(char *devpath, char *devid);
|