/illumos-gate/usr/src/boot/efi/libefi/ |
H A D | efinet.c | 297 EFI_DEVICE_PATH *devpath, *node; in efinet_dev_init() local 315 devpath = efi_lookup_devpath(handles[i]); in efinet_dev_init() 316 if (devpath == NULL) in efinet_dev_init() 318 if ((node = efi_devpath_last_node(devpath)) == NULL) in efinet_dev_init()
|
/illumos-gate/usr/src/cmd/hal/hald/solaris/ |
H A D | devinfo_usb.c | 314 gchar *devpath = NULL; in parse_usb_if_descr() local 322 if ((devpath = di_devfs_path (node)) == NULL) in parse_usb_if_descr() 327 p = strrchr (devpath, '/'); in parse_usb_if_descr() 332 if ((tmp_node = di_init (devpath, DINFOCPYALL)) == DI_NODE_NIL) in parse_usb_if_descr() 361 if (devpath != NULL) in parse_usb_if_descr() 362 di_devfs_path_free (devpath); in parse_usb_if_descr()
|
/illumos-gate/usr/src/lib/libdevice/ |
H A D | devctl.c | 985 char devpath[MAXPATHLEN]; in devctl_bus_dev_create() local 1003 (void) memset(devpath, 0, sizeof (devpath)); in devctl_bus_dev_create() 1004 (void) strcat(devpath, DCP(dcp)->opath); in devctl_bus_dev_create() 1014 lastslash = strrchr(devpath, '/'); in devctl_bus_dev_create() 1021 (void) strcat(devpath, "/"); in devctl_bus_dev_create() 1022 (void) strlcat(devpath, devname, MAXPATHLEN); in devctl_bus_dev_create() 1023 *new_dcp = dc_mkhndl(DEVCTL_CLONE, devpath, 0, dcp); in devctl_bus_dev_create()
|
/illumos-gate/usr/src/lib/libdevid/ |
H A D | deviceid.c | 201 char *devpath = (char *)di_devlink_path(dl); in devlink_callback() local 203 if (strncmp(devpath, cbip->cbi_search_path, in devlink_callback() 205 if (nmlist_add(cbip->cbi_nlhp, devpath) == NULL) { in devlink_callback()
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | x86_adm.c | 77 print_errString(int errnum, char *devpath) in print_errString() argument 84 if (devpath == NULL) { in print_errString() 89 "%s - %s.\n\n", errStr, devpath); in print_errString()
|
/illumos-gate/usr/src/psm/stand/boot/sparc/common/ |
H A D | boot_plat.c | 350 is_netdev(char *devpath) in is_netdev() argument 352 pnode_t node = prom_finddevice(devpath); in is_netdev() 367 options = prom_path_options(devpath); in is_netdev()
|
H A D | boot_plat.h | 56 extern boolean_t is_netdev(char *devpath);
|
/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/ |
H A D | tavor.c | 613 char *devpath; in fw_identify() local 628 devpath = di_devfs_path(thisnode); in fw_identify() 635 di_devfs_path_free(devpath); in fw_identify() 640 devlength = strlen(devpath) + strlen(devprefix) + in fw_identify() 646 di_devfs_path_free(devpath); in fw_identify() 651 "%s%s%s", devprefix, devpath, devsuffix); in fw_identify() 661 di_devfs_path_free(devpath); in fw_identify() 670 di_devfs_path_free(devpath); in fw_identify() 681 di_devfs_path_free(devpath); in fw_identify() 696 di_devfs_path_free(devpath); in fw_identify() [all …]
|
H A D | hermon.c | 264 char *devpath; in fw_identify() local 280 devpath = di_devfs_path(thisnode); in fw_identify() 285 di_devfs_path_free(devpath); in fw_identify() 290 devlength = strlen(devpath) + strlen(devprefix) + in fw_identify() 297 di_devfs_path_free(devpath); in fw_identify() 301 "%s%s%s", devprefix, devpath, devsuffix); in fw_identify() 308 di_devfs_path_free(devpath); in fw_identify() 318 di_devfs_path_free(devpath); in fw_identify() 329 di_devfs_path_free(devpath); in fw_identify() 344 di_devfs_path_free(devpath); in fw_identify() [all …]
|
/illumos-gate/usr/src/lib/storage/libg_fc/common/ |
H A D | io.c | 746 g_devid_get(char *devpath, ddi_devid_t *devid, di_node_t root, in g_devid_get() argument 756 if (devpath == NULL || devid == NULL || drvr_name == NULL) { in g_devid_get() 771 if (strstr(devpath, DEV_PREFIX)) { in g_devid_get() 772 strcat(rootpath, devpath + strlen(DEV_PREFIX) - 1); in g_devid_get() 773 if (strchr(devpath, ':')) { in g_devid_get()
|
H A D | map.c | 4316 if (devpath == NULL) { in g_get_multipath() 4388 if (strncmp(mplistp->devpath, in get_multipath_disk() 4436 if (devpath == NULL) { in get_multipath() 4442 len = strlen(devpath) - strlen(ptr); in get_multipath() 4443 (void) strncpy(path, devpath, len); in get_multipath() 4446 (void) strcpy(path, devpath); in get_multipath() 5477 mpl->devpath = (char *)calloc(1, in devid_get_all() 5480 if (mpl->devpath == NULL) { in devid_get_all() 5512 if (mplistp->devpath != NULL) { in mplist_free() 5513 free(mplistp->devpath); in mplist_free() [all …]
|
/illumos-gate/usr/src/cmd/hal/probing/volume/ |
H A D | probe-volume.c | 424 char *devpath, *rdevpath; in main() local 471 if (!(is_dos = dos_to_dev(device_file, &devpath, &dos_num))) { in main() 472 devpath = device_file; in main() 498 fd = open (devpath, O_RDONLY | O_NONBLOCK); in main()
|
/illumos-gate/usr/src/uts/common/sys/scsi/ |
H A D | scsi_fm.h | 42 char *devpath, const char *error_class, uint64_t ena,
|
/illumos-gate/usr/src/cmd/hal/utils/ |
H A D | fsutils.h | 18 boolean_t dos_to_dev(char *path, char **devpath, int *num);
|
/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | Sun_sasScsiReportLUNs.c | 33 SendScsiReportLUNs(const char *devpath, void *responseBuffer, in SendScsiReportLUNs() argument 57 status = send_uscsi_cmd(devpath, &ucmd_buf); in SendScsiReportLUNs()
|
H A D | Sun_sasScsiReadCapacity.c | 33 SendScsiReadCapacity(const char *devpath, void *responseBuffer, in SendScsiReadCapacity() argument 57 status = send_uscsi_cmd(devpath, &ucmd_buf); in SendScsiReadCapacity()
|
H A D | Sun_sasScsiInquiry.c | 36 SendScsiInquiry(const char *devpath, HBA_UINT8 cdb1, HBA_UINT8 cdb2, in SendScsiInquiry() argument 62 status = send_uscsi_cmd(devpath, &ucmd_buf); in SendScsiInquiry()
|
H A D | sun_sas.h | 171 char *devpath; member 286 extern HBA_STATUS send_uscsi_cmd(const char *devpath, struct uscsi_cmd *ucmd);
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/ |
H A D | disk_nvme.c | 99 const char *devpath; in devlink_cb() local 102 if ((devpath = di_devlink_path(dl)) == NULL || in devlink_cb() 103 (dlarg->dla_logical_disk = topo_mod_strdup(mod, devpath)) == in devlink_cb() 124 get_logical_disk(topo_mod_t *mod, const char *devpath, uint_t *bufsz) in get_logical_disk() argument 130 if (asprintf(&minorpath, "%s:a", devpath) < 0) { in get_logical_disk()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/ |
H A D | ap_sbd.c | 813 char *devpath; in ap_cm_devpath() local 839 if ((devpath = calloc(1, len)) == NULL) in ap_cm_devpath() 842 (void) snprintf(devpath, len, "%s%s", DEVDIR, path); in ap_cm_devpath() 844 devpath = NULL; in ap_cm_devpath() 846 DBG("ap_cm_path(%d)=%s\n", seq, devpath ? devpath : ""); in ap_cm_devpath() 848 return (devpath); in ap_cm_devpath()
|
/illumos-gate/usr/src/lib/libppt/common/ |
H A D | libppt.c | 474 const char *devpath; in ppt_devpath_to_dev() local 481 devpath = fs_to_phys_path(fspath); in ppt_devpath_to_dev() 493 if (strcmp(name, devpath) == 0) { in ppt_devpath_to_dev()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/mmp/ |
H A D | mmp.kshlib | 224 typeset devpath=$2 235 log_must zdb -e -p $devpath $pool >$tmpfile 2>/dev/null
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | pcibus.c | 171 char *devpath = NULL; in pciexfn_add_ufm() local 175 if (topo_prop_get_string(node, TOPO_PGROUP_IO, TOPO_IO_DEV, &devpath, in pciexfn_add_ufm() 197 topo_mod_strfree(mod, devpath); in pciexfn_add_ufm() 202 tud.tud_path = devpath; in pciexfn_add_ufm() 205 topo_mod_strfree(mod, devpath); in pciexfn_add_ufm()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_utils.c | 783 char *root_path, *cp, *client_path, devpath[MAXPATHLEN]; in path_apid_state_change() local 901 (void) snprintf(devpath, in path_apid_state_change() 905 dev_list[0] = devpath; in path_apid_state_change() 1156 hba_dev_cmp(const char *hba, const char *devpath) in hba_dev_cmp() argument 1164 (void) snprintf(l_dev, sizeof (l_dev), "%s", devpath); in hba_dev_cmp()
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_devperm.c | 273 devfs_resolve_link(char *devpath, char **devfs_path) in devfs_resolve_link() argument 285 linksize = readlink(devpath, contents, PATH_MAX); in devfs_resolve_link() 305 if ((ptr = strrchr(devpath, '/')) == NULL) { in devfs_resolve_link() 310 (void) strcpy(stage_link, devpath); in devfs_resolve_link()
|