Searched defs:devid (Results 1 - 25 of 117) sorted by relevance

12345

/illumos-gate/usr/src/test/zfs-tests/cmd/devname2devid/
H A Ddevname2devid.c29 #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 Dscsi_fm.c37 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 Dmach_ddi_impl.c87 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/common/devid/
H A Ddevid_smp.c29 * 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 Ddevid.c48 ddi_devid_valid(ddi_devid_t devid) argument
50 devid_valid(ddi_devid_t devid)
53 impl_devid_t *id = (impl_devid_t *)devid;
56 DEVID_ASSERT(devid != NULL);
78 * Return the sizeof a device id. If called with NULL devid it returns
83 ddi_devid_sizeof(ddi_devid_t devid) argument
85 devid_sizeof(ddi_devid_t devid)
88 impl_devid_t *id = (impl_devid_t *)devid;
93 DEVID_ASSERT(DEVID_FUNC(devid_valid)(devid) == DEVID_RET_VALID);
126 /* get current devid type
176 ddi_devid_free(ddi_devid_t devid) argument
190 ddi_devid_str_encode(ddi_devid_t devid, char *minor_name) argument
[all...]
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_fru.c63 uint8_t count, devid, chunksz; local
68 devid = fru_loc->_devid_or_slaveaddr._logical._is_fl_devid;
75 cmd.ic_data = &devid;
95 cmd_data_in.ifr_devid = devid;
H A Dipmi_sunoem.c81 ipmi_deviceid_t *devid; local
83 if ((devid = ipmi_get_deviceid(ihp)) == NULL)
86 if (!ipmi_is_sun_ilom(devid))
H A Dipmi_user.c188 ipmi_deviceid_t *devid; local
205 if ((devid = ipmi_get_deviceid(ihp)) == NULL)
208 if (!ipmi_is_sun_ilom(devid))
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dpath.c183 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 Ddev.h49 struct dev_id devid; /* device ID string (sent to DHCP server) */ member in struct:dev
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_scsi.c419 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 Dndmpd_tape.c118 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/uts/common/io/cardbus/
H A Dcardbus_parse.h46 uint16_t devid; member in struct:cb_deviceset_props
/illumos-gate/usr/src/cmd/fm/modules/common/fdd-msg/
H A Dfdd_msg.c82 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/lib/fm/topo/libtopo/common/
H A Ddev.c32 #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/cmd/oplhpd/
H A Dscf_notify.c251 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/lib/storage/libg_fc/common/
H A Dio.c61 #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/uts/i86pc/io/fipe/
H A Dfipe_drv.c57 uint16_t devid; member in struct:fipe_pci_id
192 uint16_t venid, devid, subvenid, subsysid; local
194 /* Get device unit address, it's "devid,funcid" in hexadecimal. */
206 devid = pci_config_get16(handle, PCI_CONF_DEVID);
215 (ip->devid == 0xffffu || ip->devid == devid) &&
/illumos-gate/usr/src/uts/common/io/sfxge/common/
H A Defx_nic.c37 __in uint16_t devid,
41 switch (devid) {
35 efx_family( __in uint16_t venid, __in uint16_t devid, __out efx_family_t *efp) argument
/illumos-gate/usr/src/lib/libdevid/
H A Ddeviceid.c128 ddi_devid_t devid; local
134 if (devid_get(fd, &devid) == 0) {
137 ret = devid_str_encode(devid, minor);
140 devid_free(devid);
232 * Convert the specified devid/minor_name into a devid_nmlist_t array
243 devid_deviceid_to_nmlist(char *search_path, ddi_devid_t devid, char *minor_name, argument
276 /* translate devid/minor_name to /devices paths */
277 again: if (modctl(MODDEVID2PATHS, devid, minor_name, 0, &lens, NULL) != 0)
281 if (modctl(MODDEVID2PATHS, devid, minor_name, 0, &lens, paths) != 0) {
307 * iterate over all the devtspectype resolutions of the devid an
[all...]
/illumos-gate/usr/src/cmd/srptadm/
H A Dsrptadm.c479 stmfDevid devid; local
513 ret = stmfDevidFromIscsiName(euibuf, &devid);
515 ret = stmfGetTargetProperties(&devid, &props);
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dsmp.c193 ddi_devid_t devid = NULL; local
211 /* if we have not already registered a devid, then do so now */
212 if (ddi_devid_get(dip, &devid) != DDI_SUCCESS) {
213 /* get the srmir identity information for use in devid */
218 /* Convert smp unit-address and srmir into devid */
221 srmir, srmirlen, &devid) == DDI_SUCCESS) {
222 /* register the devid */
223 (void) ddi_devid_register(dip, devid);
228 /* We don't need the devid for our own operation, so free now. */
229 if (devid)
[all...]
/illumos-gate/usr/src/cmd/stat/common/
H A Ddsr.c55 #include <devid.h>
62 static di_node_t di_root; /* from di_init: for devid */
120 char *devid; local
189 if (devidp != NULL) { /* lookup the devid */
202 /* and lookup devid property on the node */
204 DEVID_PROP_NAME, &devid) != -1)
205 *devidp = devid;
277 char *devid = NULL; local
331 &devpath, &adevpath, want_devid ? &devid : NULL) == 0)
360 entry->devidstr = devid;
[all...]
/illumos-gate/usr/src/uts/common/io/vioblk/
H A Dvioblk.c598 vioblk_bd_devid(void *arg, dev_info_t *dip, ddi_devid_t *devid) argument
611 devid));
/illumos-gate/usr/src/lib/sun_sas/common/
H A Ddevtree_device_disco.c225 ddi_devid_t devid; local
587 if (di_prop_lookup_strings(DDI_DEV_T_ANY, node, "devid",
589 if (devid_str_decode(propStringData, &devid, NULL) != -1) {
590 guidStr = devid_to_guid(devid);
604 "failed to get devid guid on (%s) : %s",
608 devid_free(devid);
615 "failed to decode devid prop on (%s) : %s",
621 "failed to get devid prop on (%s) : %s",
648 ddi_devid_t devid; local
1001 if (di_prop_lookup_strings(DDI_DEV_T_ANY, clientnode, "devid",
[all...]

Completed in 287 milliseconds

12345