/illumos-gate/usr/src/test/zfs-tests/cmd/devname2devid/ |
H A D | devname2devid.c | 29 #include <devid.h> 40 * devid id1,sd@SSEAGATE_ST318404LSUN18G_3BT2G0Z300002146G4CR/a 42 * devid id1,sd@SSEAGATE_ST318404LSUN18G_3BT2G0Z300002146G4CR/wd 44 * devid id1,sd@SSEAGATE_ST318404LSUN18G_3BT2G0Z300002146G4CR/b 59 ddi_devid_t devid; local 78 if (devid_get(fd, &devid) != 0) { 86 if ((devidstr = devid_str_encode(devid, minor_name)) == 0) { 91 (void) printf("devid %s\n", devidstr); 102 if (devid_deviceid_to_nmlist(search_path, devid, DEVID_MINOR_NAME_ALL, 117 devid_free(devid); [all...] |
/illumos-gate/usr/src/uts/common/io/scsi/impl/ |
H A D | scsi_fm.c | 37 const char *devpath, const char *minor_name, const char *devid, 96 char *devid, char *tpl0, int sflag, nvlist_t *pl, ...) 149 fm_dev_ereport_postv(dip, eqdip, devpath, minor_name, devid, tpl0, 94 scsi_fm_ereport_post(struct scsi_device *sd, int path_instance, char *devpath, const char *error_class, uint64_t ena, char *devid, char *tpl0, int sflag, nvlist_t *pl, ...) argument
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | mach_ddi_impl.c | 87 int devid, venid, ssid, ssvid, rev, class_code; local 93 if ((devid = ddi_prop_get_int(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, 100 (void) ddi_prop_update_int(DDI_DEV_T_NONE, dip, "device-id", devid); 135 venid, devid, ssvid, ssid, rev); 137 venid, devid, ssvid, ssid); 138 (void) sprintf(new_compat[2], "pciex%x,%x.%x", venid, devid, rev); 139 (void) sprintf(new_compat[3], "pciex%x,%x", venid, devid); 142 (void) sprintf(new_compat[6], "pci%x,%x", venid, devid);
|
/illumos-gate/usr/src/lib/libipmi/common/ |
H A D | ipmi_fru.c | 55 uint8_t count, devid; local 60 devid = fru_loc->_devid_or_slaveaddr._logical._is_fl_devid; 67 cmd.ic_data = &devid; 86 cmd_data_in.ifr_devid = devid;
|
H A D | ipmi_sunoem.c | 81 ipmi_deviceid_t *devid; local 83 if ((devid = ipmi_get_deviceid(ihp)) == NULL) 86 if (!ipmi_is_sun_ilom(devid))
|
H A D | ipmi_user.c | 188 ipmi_deviceid_t *devid; local 205 if ((devid = ipmi_get_deviceid(ihp)) == NULL) 208 if (!ipmi_is_sun_ilom(devid))
|
/illumos-gate/usr/src/common/devid/ |
H A D | devid_smp.c | 29 * Solaris devid / guid values. 51 * Typically the wwnstr makes a good devid, however in some cases the wwnstr 56 * to form the devid. 69 * Description: This routine finds and encodes a unique devid given the 77 * devid - id returned 93 ddi_devid_t *devid) /* OUT */ 110 DEVID_ASSERT(devid != NULL); 111 *devid = NULL; 135 /* no vid/pid match, use wwn for devid */ 139 /* extract the special vendor-specific 'devid seria 84 ddi_devid_smp_encode( int version, char *driver_name, char *wwnstr, uchar_t *srmir_buf, size_t srmir_len, ddi_devid_t *devid) argument [all...] |
H A D | devid.c | 45 ddi_devid_valid(ddi_devid_t devid) argument 47 devid_valid(ddi_devid_t devid) 50 impl_devid_t *id = (impl_devid_t *)devid; 53 DEVID_ASSERT(devid != NULL); 75 * Return the sizeof a device id. If called with NULL devid it returns 80 ddi_devid_sizeof(ddi_devid_t devid) argument 82 devid_sizeof(ddi_devid_t devid) 85 impl_devid_t *id = (impl_devid_t *)devid; 90 DEVID_ASSERT(DEVID_FUNC(devid_valid)(devid) == DEVID_RET_VALID); 123 /* get current devid type 173 ddi_devid_free(ddi_devid_t devid) argument 187 ddi_devid_str_encode(ddi_devid_t devid, char *minor_name) argument [all...] |
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | path.c | 183 ddi_devid_t devid; local 188 if (devid_str_decode(dp->name, &devid, NULL) != 0) { 195 if (pp->disks[i]->devid != NULL && 196 devid_compare(pp->disks[i]->devid, devid) == 0) { 206 devid_free(devid); 221 ddi_devid_t devid; local 226 if (devid_str_decode(dp->name, &devid, NULL) != 0) { 233 if (pp->disks[i]->devid != NULL && 234 devid_compare(pp->disks[i]->devid, devi [all...] |
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | dev.h | 49 struct dev_id devid; /* device ID string (sent to DHCP server) */ member in struct:dev
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_scsi.c | 419 int devid; local 435 (devid = open(devname, O_RDWR | O_NDELAY)) < 0) { 450 switch (ndmp_open_list_add(connection, adptnm, sid, lun, devid)) { 470 session->ns_scsi.sd_devid = devid;
|
H A D | ndmpd_tape.c | 118 int devid; local 143 (devid = tape_open(request->device.name, 150 (void) close(devid); 161 switch (ndmp_open_list_add(connection, adptnm, sid, lun, devid)) { 1210 int devid; local 1229 (devid = open(devname, O_RDWR | O_NDELAY)) < 0) { 1234 (void) close(devid);
|
/illumos-gate/usr/src/cmd/fm/modules/common/fdd-msg/ |
H A D | fdd_msg.c | 82 ipmi_deviceid_t *devid; local 84 if ((devid = ipmi_get_deviceid(ipmi_hdl)) == NULL) 87 if (!ipmi_is_sun_ilom(devid))
|
/illumos-gate/usr/src/uts/common/io/cardbus/ |
H A D | cardbus_parse.h | 46 uint16_t devid; member in struct:cb_deviceset_props
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_namespace.c | 242 if ((nm.devid = (uintptr_t)malloc(nm.devid_size)) == NULL) { 247 (void) free((void *)(uintptr_t)nm.devid); 251 return ((void *)(uintptr_t)nm.devid); 255 * set the devid. 283 * the initial add so that the correct devid is picked up. 286 * get the devid. If the wrong side is used then it would 287 * be possible to get the wrong devid in the namespace, hence 295 * on the devid. 394 * The arguments, minorname and devid, are only used with the partial 406 ddi_devid_t devid, /* onl 398 add_name( mdsetname_t *sp, side_t sideno, mdkey_t key, char *dname, minor_t mnum, char *bname, char *minorname, ddi_devid_t devid, md_error_t *ep ) argument [all...] |
H A D | meta_print.c | 365 * meta_print_devid: print out the devid information, given a mddevid_t list. 384 char *devid = ""; local 419 devid = "-"; 423 devid = devid_str_encode(did, NULL); 430 reloc, devid) < 0) 436 devid_str_free(devid);
|
H A D | meta_se_notify.c | 200 do_mdnotify(char *se_subclass, uint32_t tag, set_t setno, md_dev64_t devid) argument 222 NOTIFY_MD(md_tag, setno, devid, ev_type); 324 md_dev64_t devid 333 do_mdnotify(se_subclass, tag, setno, devid); 365 (uint64_t)devid); 371 devname = obj2devname(tag, setno, devid);
|
H A D | meta_getdevs.c | 584 meta_deviceid_to_nmlist(char *search_path, ddi_devid_t devid, char *minor_name, argument 593 res = devid_deviceid_to_nmlist(search_path, devid, minor_name, retlist);
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | dev.c | 32 #include <devid.h> 135 char *devid = NULL, *tpl0id = NULL; local 145 /* Get devid, if present */ 146 err = nvlist_lookup_string(nvl, FM_FMRI_DEV_ID, &devid); 171 /* device-id part, topo_fmristr_build does nothing if devid is NULL */ 173 buf, buflen, devid, ":" FM_FMRI_DEV_ID "=", NULL); 183 * there is a devid component so we continue to do that 187 * dev:///<devid-and-tpl0>//pci@0,0/... 189 * where <devid-and-tpl0> = 190 * [:devid 236 char *cur, *devid = NULL, *tpl0id = NULL; local 380 char *devid = NULL, *path; local 460 char *devid = NULL, *path; local [all...] |
/illumos-gate/usr/src/lib/libdevid/ |
H A D | deviceid.c | 208 * Convert the specified devid/minor_name into a devid_nmlist_t array 221 ddi_devid_t devid, 255 /* translate devid/minor_name to /devices paths */ 256 again: if (modctl(MODDEVID2PATHS, devid, minor_name, 0, &lens, NULL) != 0) 260 if (modctl(MODDEVID2PATHS, devid, minor_name, 0, &lens, paths) != 0) { 286 * iterate over all the devtspectype resolutions of the devid and 219 devid_deviceid_to_nmlist( char *search_path, ddi_devid_t devid, char *minor_name, devid_nmlist_t **retlist) argument
|
/illumos-gate/usr/src/cmd/oplhpd/ |
H A D | scf_notify.c | 251 unsigned int devid, funcid; /* bus addr */ local 288 if (sscanf(tmp, "%x,%x", &devid, &funcid) != 2) { 290 if (sscanf(tmp, "%x", &devid) != 1) { 291 devid = 0; 308 * Case 1. devid > sdevid 309 * Case 2. devid == sdevid && funcid > sfuncid 311 if ((devid > sdevid) || ((devid == sdevid) && 314 devid = sdevid; 321 * Case 1. devid > [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/md/ |
H A D | dumpnamespace.c | 227 process_nmn_record(uintptr_t addr, int shared, int devid) argument 240 if (devid) { 274 if (devid) { 366 process_nm_next_hdr(uintptr_t addr, int shared, int devid) argument 389 process_nmn_record((uintptr_t)nhdr.nmn_record, shared, devid);
|
/illumos-gate/usr/src/cmd/srptadm/ |
H A D | srptadm.c | 479 stmfDevid devid; local 513 ret = stmfDevidFromIscsiName(euibuf, &devid); 515 ret = stmfGetTargetProperties(&devid, &props);
|
/illumos-gate/usr/src/lib/storage/libg_fc/common/ |
H A D | io.c | 61 #include <devid.h> 728 * Retrieves a devid from a device path. 735 * devid: ptr to ddi_devid_t struct 738 * On success, devid points to device tree handle to devid 739 * di_fini on root will invalidate devid pointer 746 g_devid_get(char *devpath, ddi_devid_t *devid, di_node_t root, argument 756 if (devpath == NULL || devid == NULL || drvr_name == NULL) { 764 *devid = NULL; 795 *devid [all...] |
/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | devtree_device_disco.c | 224 ddi_devid_t devid; local 585 if (di_prop_lookup_strings(DDI_DEV_T_ANY, node, "devid", 587 if (devid_str_decode(propStringData, &devid, NULL) != -1) { 588 guidStr = devid_to_guid(devid); 602 "failed to get devid guid on (%s) : %s", 606 devid_free(devid); 613 "failed to decode devid prop on (%s) : %s", 619 "failed to get devid prop on (%s) : %s", 646 ddi_devid_t devid; local 998 if (di_prop_lookup_strings(DDI_DEV_T_ANY, clientnode, "devid", [all...] |