Searched refs:sd_inq (Results 1 - 24 of 24) sorted by relevance

/illumos-gate/usr/src/uts/common/sys/scsi/conf/
H A Ddevice.h112 struct scsi_inquiry *sd_inq; member in struct:scsi_device
/illumos-gate/usr/src/uts/common/io/scsi/conf/
H A Dscsi_confsubr.c44 (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 Ddadk.c379 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 Dgda.c277 gda_inqfill(devp->sd_inq->inq_vid, 8, &buf[strlen(buf)]);
/illumos-gate/usr/src/uts/common/io/scsi/impl/
H A Dscsi_watch.c67 (devp->sd_inq->inq_ansi == 0x1)) { \
299 dtype = devp->sd_inq->inq_dtype & DTYPE_MASK;
313 (devp->sd_inq->inq_ansi > 2)) {
H A Dscsi_subr.c1159 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 Dscsi_hba.c2194 * 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 Dses.c272 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 Dsgen.c92 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 Dsd.c2756 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 Dst.c65 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 Dmptsas_var.h1067 #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 Dmptsas.c385 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 Dscsi_vhci.c4271 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 Dmpapi_impl.c3684 switch (psd->sd_inq->inq_tpgs) {
/illumos-gate/usr/src/uts/common/io/mr_sas/
H A Dmr_sas_tbolt.c3630 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 Dmr_sas.c7649 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 Dstdef.h1344 #define ST_INQUIRY (ST_SCSI_DEVP->sd_inq)
H A Dsddef.h731 #define SD_INQUIRY(un) ((un)->un_sd->sd_inq)
/illumos-gate/usr/src/uts/common/io/aac/
H A Daac.c7144 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 Dhba.c1064 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 Data_disk.c378 devp->sd_inq = &ata_drvp->ad_inquiry;
/illumos-gate/usr/src/uts/intel/io/scsi/adapters/arcmsr/
H A Darcmsr.c2312 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 Dscsa2usb.c2269 sd->sd_inq->inq_rmb = 1;

Completed in 640 milliseconds