/illumos-gate/usr/src/uts/common/sys/scsi/conf/ |
H A D | device.h | 112 struct scsi_inquiry *sd_inq; member in struct:scsi_device
|
/illumos-gate/usr/src/uts/common/io/scsi/conf/ |
H A D | scsi_confsubr.c | 44 (sd->sd_inq->inq_ansi == 0x1)) { \ 437 * NOTE: The 'sd_inq' inquiry data is now freed by scsi_hba/scsi_vhci code 449 * NOTE: The 'sd_inq' inquiry data is now freed by scsi_hba/scsi_vhci code 1098 if (sd->sd_inq == NULL) { 1099 sd->sd_inq = (struct scsi_inquiry *) 1102 if (sd->sd_inq == NULL) { 1146 * incorrect after we have real sd_inq data (for lun0) we will do a 1149 bzero((caddr_t)sd->sd_inq, SUN_INQSIZE); 1325 (caddr_t)sd->sd_inq, (SUN_INQSIZE - inq_pkt->pkt_resid)); 1335 (sd->sd_address.a_lun > 0) && (sd->sd_inq [all...] |
/illumos-gate/usr/src/uts/intel/io/dktp/dcdev/ |
H A D | dadk.c | 379 if (!devp->sd_inq || (devp->sd_inq->inq_dtype == DTYPE_NOTPRESENT) || 380 (devp->sd_inq->inq_dtype == DTYPE_UNKNOWN)) { 384 switch (devp->sd_inq->inq_dtype) { 404 dadkp->dad_extp->tg_rmb = dadkp->dad_rmb = devp->sd_inq->inq_rmb; 411 gda_inqfill((caddr_t)devp->sd_inq->inq_vid, 8, &name[strlen(name)]); 413 gda_inqfill((caddr_t)devp->sd_inq->inq_pid, 16, &name[strlen(name)]); 1678 if (dadkp && dadkp->dad_sd && dadkp->dad_sd->sd_inq) { 1679 *sinqpp = dadkp->dad_sd->sd_inq;
|
H A D | gda.c | 277 gda_inqfill(devp->sd_inq->inq_vid, 8, &buf[strlen(buf)]);
|
/illumos-gate/usr/src/uts/common/io/scsi/impl/ |
H A D | scsi_watch.c | 67 (devp->sd_inq->inq_ansi == 0x1)) { \ 299 dtype = devp->sd_inq->inq_dtype & DTYPE_MASK; 313 (devp->sd_inq->inq_ansi > 2)) {
|
H A D | scsi_subr.c | 1159 inq_fill(devp->sd_inq->inq_vid, 8, &buf[strlen(buf)]); 1168 inq_fill(devp->sd_inq->inq_serial, 12, &buf[strlen(buf)]); 1362 struct scsi_inquiry *inq = devp->sd_inq; 1495 ASSERT(sd && sd->sd_inq); 1502 if (sd->sd_inq->inq_ansi < SCSI_VERSION_3) 1522 if ((sd->sd_inq->inq_ansi <= SCSI_VERSION_1) &&
|
H A D | scsi_hba.c | 2194 * sd_inq to deal with deallocation in its tran_tgt_free 2195 * (setting sd_inq back to NULL) without upsetting the 2200 if (sd->sd_inq) { 2201 kmem_free(sd->sd_inq, SUN_INQSIZE); 2202 sd->sd_inq = (struct scsi_inquiry *)NULL; 5103 struct scsi_inquiry *inq = sdprobe->sd_inq; 5479 * NOTE: We assume that sd_inq is not path-specific. 6495 if (sdchild && (sdchild->sd_inq == NULL)) { 6496 sdchild->sd_inq = sdprobe->sd_inq; [all...] |
/illumos-gate/usr/src/uts/common/io/scsi/targets/ |
H A D | ses.c | 272 if (is_enc_dev(NULL, devp->sd_inq, SUN_INQSIZE, &ep)) { 424 if (!(is_enc_dev(NULL, devp->sd_inq, SUN_INQSIZE, &etyp))) { 512 int wd = ((devp->sd_inq->inq_rdf == RDF_SCSI2) && 513 (devp->sd_inq->inq_wbus16 || devp->sd_inq->inq_wbus32))
|
H A D | sgen.c | 92 if ((devp)->sd_inq->inq_ansi == 0x1) { \ 443 bcopy(scsidevp->sd_inq->inq_vid, vend_str, SGEN_VENDID_MAX); 445 bcopy(scsidevp->sd_inq->inq_pid, prod_str, SGEN_PRODID_MAX); 487 if (nodep->node_type == scsidevp->sd_inq->inq_dtype) { 601 inq = scsidevp->sd_inq; /* valid while device is probed... */
|
H A D | sd.c | 2756 switch (devp->sd_inq->inq_dtype) { 4451 struct scsi_inquiry *sd_inq; local 4455 sd_inq = un->un_sd->sd_inq; 4464 if (strncasecmp(sd_inq->inq_vid, id, idlen) != 0) { 4540 p2 = un->un_sd->sd_inq->inq_vid; 7266 * and point the sd_inq member of the scsi_device structure to it. 7278 switch (devp->sd_inq->inq_dtype) { 7346 switch (devp->sd_inq->inq_dtype) { 7760 int tq_trigger_flag = (((devp->sd_inq [all...] |
H A D | st.c | 65 if ((devp)->sd_inq->inq_ansi == 0x1) { \ 846 if (devp->sd_inq->inq_dtype == 994 wide = ((devp->sd_inq->inq_rdf == RDF_SCSI2) && 995 (devp->sd_inq->inq_wbus16 || devp->sd_inq->inq_wbus32)) ? 1 : 0; 1612 * If the INQUIRY command succeeds, the field sd_inq in the 1627 if (devp->sd_inq->inq_dtype == 1824 if (devp->sd_inq) { 3653 if (un->un_sd->sd_inq->inq_ansi < 2) { 7320 (un->un_sd->sd_inq [all...] |
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/mpt_sas/ |
H A D | mptsas_var.h | 1067 #define MPTSAS_VALID_LUN(sd_inq) \ 1068 (((sd_inq->inq_dtype & 0xe0) != 0x20) && \ 1069 ((sd_inq->inq_dtype & 0x1f) != 0x1f))
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/mpt_sas/ |
H A D | mptsas.c | 385 static int mptsas_create_lun(dev_info_t *pdip, struct scsi_inquiry *sd_inq, 13991 struct scsi_inquiry *sd_inq = NULL; local 13994 sd_inq = (struct scsi_inquiry *)kmem_alloc(SUN_INQSIZE, KM_SLEEP); 13996 rval = mptsas_inquiry(mpt, ptgt, lun, 0, (uchar_t *)sd_inq, 13999 if ((rval == DDI_SUCCESS) && MPTSAS_VALID_LUN(sd_inq)) { 14000 rval = mptsas_create_lun(pdip, sd_inq, dip, ptgt, lun); 14005 kmem_free(sd_inq, SUN_INQSIZE); 14279 struct scsi_inquiry *sd_inq = NULL; local 14293 sd_inq = (struct scsi_inquiry *)kmem_alloc(SUN_INQSIZE, KM_SLEEP); 14294 rval = mptsas_inquiry(mpt, ptgt, 0, 0, (uchar_t *)sd_inq, 14887 mptsas_create_lun(dev_info_t *pdip, struct scsi_inquiry *sd_inq, dev_info_t **lun_dip, mptsas_target_t *ptgt, int lun) argument [all...] |
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/ |
H A D | scsi_vhci.c | 4271 if (psd->sd_inq) 4272 kmem_free((caddr_t)psd->sd_inq, sizeof (struct scsi_inquiry)); 4666 struct scsi_inquiry *inq = devp->sd_inq; 5253 bcopy(psd->sd_inq->inq_vid, ld->prop.prodInfo.vendor, 8); 5254 bcopy(psd->sd_inq->inq_pid, ld->prop.prodInfo.product, 16); 5255 bcopy(psd->sd_inq->inq_revision, ld->prop.prodInfo.revision, 4); 8626 ASSERT(psd && psd->sd_inq); 8627 if ((psd == NULL) || (psd->sd_inq == NULL)) { 8667 sf->sf_sfo->sfo_device_probe(psd, psd->sd_inq,
|
H A D | mpapi_impl.c | 3684 switch (psd->sd_inq->inq_tpgs) {
|
/illumos-gate/usr/src/uts/common/io/mr_sas/ |
H A D | mr_sas_tbolt.c | 3630 tgt, dtype, sd->sd_inq->inq_vid); 3635 tgt, dtype, sd->sd_inq->inq_vid)); 3639 if (sd->sd_inq) { 3640 kmem_free(sd->sd_inq, SUN_INQSIZE); 3641 sd->sd_inq = (struct scsi_inquiry *)NULL;
|
H A D | mr_sas.c | 7649 if (sd->sd_inq) { 7650 kmem_free(sd->sd_inq, SUN_INQSIZE); 7651 sd->sd_inq = (struct scsi_inquiry *)NULL; 7671 int dtype = sd->sd_inq->inq_dtype & DTYPE_MASK; 7675 scsi_hba_nodename_compatible_get(sd->sd_inq, NULL, dtype,
|
/illumos-gate/usr/src/uts/common/sys/scsi/targets/ |
H A D | stdef.h | 1344 #define ST_INQUIRY (ST_SCSI_DEVP->sd_inq)
|
H A D | sddef.h | 731 #define SD_INQUIRY(un) ((un)->un_sd->sd_inq)
|
/illumos-gate/usr/src/uts/common/io/aac/ |
H A D | aac.c | 7144 int dtype = sd->sd_inq->inq_dtype & DTYPE_MASK; 7149 scsi_hba_nodename_compatible_get(sd->sd_inq, NULL, dtype, 7233 dtype = sd->sd_inq->inq_dtype & DTYPE_MASK; 7238 tgt, dtype, sd->sd_inq->inq_vid); 7284 if (sd.sd_inq) { 7285 kmem_free(sd.sd_inq, SUN_INQSIZE); 7286 sd.sd_inq = (struct scsi_inquiry *)NULL;
|
/illumos-gate/usr/src/uts/common/io/1394/targets/scsa1394/ |
H A D | hba.c | 1064 bcopy(&lp->l_fake_inq, sd->sd_inq, SUN_INQSIZE); 1071 sd->sd_inq->inq_rmb = 1;
|
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/ |
H A D | ata_disk.c | 378 devp->sd_inq = &ata_drvp->ad_inquiry;
|
/illumos-gate/usr/src/uts/intel/io/scsi/adapters/arcmsr/ |
H A D | arcmsr.c | 2312 int dtype = sd->sd_inq->inq_dtype & DTYPE_MASK; 2315 scsi_hba_nodename_compatible_get(sd->sd_inq, NULL, dtype,
|
/illumos-gate/usr/src/uts/common/io/usb/scsa2usb/ |
H A D | scsa2usb.c | 2269 sd->sd_inq->inq_rmb = 1;
|