Home
last modified time | relevance | path

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

/titanic_50/usr/src/uts/common/io/scsi/conf/
H A Dscsi_confsubr.c44 (sd->sd_inq->inq_ansi == 0x1)) { \
1098 if (sd->sd_inq == NULL) { in scsi_hba_probe_pi()
1099 sd->sd_inq = (struct scsi_inquiry *) in scsi_hba_probe_pi()
1102 if (sd->sd_inq == NULL) { in scsi_hba_probe_pi()
1149 bzero((caddr_t)sd->sd_inq, SUN_INQSIZE); in scsi_hba_probe_pi()
1325 (caddr_t)sd->sd_inq, (SUN_INQSIZE - inq_pkt->pkt_resid)); in scsi_hba_probe_pi()
1335 (sd->sd_address.a_lun > 0) && (sd->sd_inq->inq_ansi == 0x1)) { in scsi_hba_probe_pi()
1520 struct scsi_inquiry *inq = sd->sd_inq; in create_inquiry_props()
1711 struct scsi_inquiry *inq = sd->sd_inq; in scsi_establish_LUN_limit()
/titanic_50/usr/src/uts/intel/io/dktp/dcdev/
H A Ddadk.c379 if (!devp->sd_inq || (devp->sd_inq->inq_dtype == DTYPE_NOTPRESENT) || in dadk_probe()
380 (devp->sd_inq->inq_dtype == DTYPE_UNKNOWN)) { in dadk_probe()
384 switch (devp->sd_inq->inq_dtype) { in dadk_probe()
404 dadkp->dad_extp->tg_rmb = dadkp->dad_rmb = devp->sd_inq->inq_rmb; in dadk_probe()
411 gda_inqfill((caddr_t)devp->sd_inq->inq_vid, 8, &name[strlen(name)]); in dadk_probe()
413 gda_inqfill((caddr_t)devp->sd_inq->inq_pid, 16, &name[strlen(name)]); in dadk_probe()
1678 if (dadkp && dadkp->dad_sd && dadkp->dad_sd->sd_inq) { in dadk_inquiry()
1679 *sinqpp = dadkp->dad_sd->sd_inq; in dadk_inquiry()
H A Dgda.c277 gda_inqfill(devp->sd_inq->inq_vid, 8, &buf[strlen(buf)]); in gda_errmsg()
/titanic_50/usr/src/uts/common/sys/scsi/conf/
H A Ddevice.h112 struct scsi_inquiry *sd_inq; member
/titanic_50/usr/src/uts/common/io/scsi/impl/
H A Dscsi_subr.c1159 inq_fill(devp->sd_inq->inq_vid, 8, &buf[strlen(buf)]); in scsi_generic_errmsg()
1168 inq_fill(devp->sd_inq->inq_serial, 12, &buf[strlen(buf)]); in scsi_generic_errmsg()
1362 struct scsi_inquiry *inq = devp->sd_inq; in scsi_get_device_type_string()
1495 ASSERT(sd && sd->sd_inq); in scsi_get_scsi_maxluns()
1502 if (sd->sd_inq->inq_ansi < SCSI_VERSION_3) in scsi_get_scsi_maxluns()
1522 if ((sd->sd_inq->inq_ansi <= SCSI_VERSION_1) && in scsi_get_scsi_maxluns()
H A Dscsi_watch.c67 (devp->sd_inq->inq_ansi == 0x1)) { \
299 dtype = devp->sd_inq->inq_dtype & DTYPE_MASK; in scsi_watch_request_submit_impl()
313 (devp->sd_inq->inq_ansi > 2)) { in scsi_watch_request_submit_impl()
H A Dscsi_hba.c2200 if (sd->sd_inq) { in scsi_busctl_uninitchild()
2201 kmem_free(sd->sd_inq, SUN_INQSIZE); in scsi_busctl_uninitchild()
2202 sd->sd_inq = (struct scsi_inquiry *)NULL; in scsi_busctl_uninitchild()
5103 struct scsi_inquiry *inq = sdprobe->sd_inq; in scsi_device_createchild()
6495 if (sdchild && (sdchild->sd_inq == NULL)) { in scsi_device_config()
6496 sdchild->sd_inq = sdprobe->sd_inq; in scsi_device_config()
6497 sdprobe->sd_inq = NULL; in scsi_device_config()
6546 if ((sdchild->sd_inq == NULL) || in scsi_device_config()
6557 ASSERT(sdchild->sd_inq); in scsi_device_config()
7173 ASSERT(sd0 && sd0->sd_uninit_prevent && sd0->sd_dev && sd0->sd_inq); in scsi_hba_enum_lsf_of_t()
[all …]
/titanic_50/usr/src/uts/common/io/scsi/targets/
H A Dses.c272 if (is_enc_dev(NULL, devp->sd_inq, SUN_INQSIZE, &ep)) { in ses_probe()
424 if (!(is_enc_dev(NULL, devp->sd_inq, SUN_INQSIZE, &etyp))) { in ses_doattach()
512 int wd = ((devp->sd_inq->inq_rdf == RDF_SCSI2) && in ses_doattach()
513 (devp->sd_inq->inq_wbus16 || devp->sd_inq->inq_wbus32)) in ses_doattach()
H A Dsgen.c92 if ((devp)->sd_inq->inq_ansi == 0x1) { \
443 bcopy(scsidevp->sd_inq->inq_vid, vend_str, SGEN_VENDID_MAX); in sgen_bind_byinq()
445 bcopy(scsidevp->sd_inq->inq_pid, prod_str, SGEN_PRODID_MAX); in sgen_bind_byinq()
487 if (nodep->node_type == scsidevp->sd_inq->inq_dtype) { in sgen_bind_bytype()
601 inq = scsidevp->sd_inq; /* valid while device is probed... */ in sgen_do_attach()
H A Dsd.c2758 switch (devp->sd_inq->inq_dtype) { in sdprobe()
4453 struct scsi_inquiry *sd_inq; in sd_sdconf_id_match() local
4457 sd_inq = un->un_sd->sd_inq; in sd_sdconf_id_match()
4466 if (strncasecmp(sd_inq->inq_vid, id, idlen) != 0) { in sd_sdconf_id_match()
4542 p2 = un->un_sd->sd_inq->inq_vid; in sd_blank_cmp()
7292 switch (devp->sd_inq->inq_dtype) { in sd_unit_attach()
7360 switch (devp->sd_inq->inq_dtype) { in sd_unit_attach()
7774 int tq_trigger_flag = (((devp->sd_inq->inq_ansi == 4) || in sd_unit_attach()
7775 (devp->sd_inq->inq_ansi == 5)) && in sd_unit_attach()
7776 devp->sd_inq->inq_bque) || devp->sd_inq->inq_cmdque; in sd_unit_attach()
[all …]
H A Dst.c65 if ((devp)->sd_inq->inq_ansi == 0x1) { \
846 if (devp->sd_inq->inq_dtype == in st_probe()
994 wide = ((devp->sd_inq->inq_rdf == RDF_SCSI2) && in st_attach()
995 (devp->sd_inq->inq_wbus16 || devp->sd_inq->inq_wbus32)) ? 1 : 0; in st_attach()
1627 if (devp->sd_inq->inq_dtype == in st_doattach()
1824 if (devp->sd_inq) { in st_doattach()
3653 if (un->un_sd->sd_inq->inq_ansi < 2) { in st_close()
7320 (un->un_sd->sd_inq->inq_ansi > 1)) { in st_get_density()
14411 if (un->un_sd->sd_inq->inq_ansi < 3) { in st_read_attributes()
16576 if (un->un_sd->sd_inq->inq_ansi < 3) { in st_get_media_id_via_media_serial_cmd()
/titanic_50/usr/src/uts/common/sys/scsi/adapters/mpt_sas/
H A Dmptsas_var.h1079 #define MPTSAS_VALID_LUN(sd_inq) \ argument
1080 (((sd_inq->inq_dtype & 0xe0) != 0x20) && \
1081 ((sd_inq->inq_dtype & 0x1f) != 0x1f))
/titanic_50/usr/src/uts/common/io/scsi/adapters/mpt_sas/
H A Dmptsas.c389 static int mptsas_create_lun(dev_info_t *pdip, struct scsi_inquiry *sd_inq,
14292 struct scsi_inquiry *sd_inq = NULL; in mptsas_probe_lun() local
14295 sd_inq = (struct scsi_inquiry *)kmem_alloc(SUN_INQSIZE, KM_SLEEP); in mptsas_probe_lun()
14297 rval = mptsas_inquiry(mpt, ptgt, lun, 0, (uchar_t *)sd_inq, in mptsas_probe_lun()
14300 if ((rval == DDI_SUCCESS) && MPTSAS_VALID_LUN(sd_inq)) { in mptsas_probe_lun()
14301 rval = mptsas_create_lun(pdip, sd_inq, dip, ptgt, lun); in mptsas_probe_lun()
14306 kmem_free(sd_inq, SUN_INQSIZE); in mptsas_probe_lun()
14582 struct scsi_inquiry *sd_inq = NULL; in mptsas_config_raid() local
14596 sd_inq = (struct scsi_inquiry *)kmem_alloc(SUN_INQSIZE, KM_SLEEP); in mptsas_config_raid()
14597 rval = mptsas_inquiry(mpt, ptgt, 0, 0, (uchar_t *)sd_inq, in mptsas_config_raid()
[all …]
/titanic_50/usr/src/uts/common/io/mr_sas/
H A Dmr_sas_tbolt.c3630 tgt, dtype, sd->sd_inq->inq_vid); in mrsas_tbolt_config_pd()
3635 tgt, dtype, sd->sd_inq->inq_vid)); in mrsas_tbolt_config_pd()
3639 if (sd->sd_inq) { in mrsas_tbolt_config_pd()
3640 kmem_free(sd->sd_inq, SUN_INQSIZE); in mrsas_tbolt_config_pd()
3641 sd->sd_inq = (struct scsi_inquiry *)NULL; in mrsas_tbolt_config_pd()
H A Dmr_sas.c7649 if (sd->sd_inq) { in mrsas_config_ld()
7650 kmem_free(sd->sd_inq, SUN_INQSIZE); in mrsas_config_ld()
7651 sd->sd_inq = (struct scsi_inquiry *)NULL; in mrsas_config_ld()
7671 int dtype = sd->sd_inq->inq_dtype & DTYPE_MASK; in mrsas_config_scsi_device()
7675 scsi_hba_nodename_compatible_get(sd->sd_inq, NULL, dtype, in mrsas_config_scsi_device()
/titanic_50/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci.c4271 if (psd->sd_inq) in vhci_pathinfo_uninit()
4272 kmem_free((caddr_t)psd->sd_inq, sizeof (struct scsi_inquiry)); in vhci_pathinfo_uninit()
4666 struct scsi_inquiry *inq = devp->sd_inq; in vhci_get_device_type_mpxio_options()
5253 bcopy(psd->sd_inq->inq_vid, ld->prop.prodInfo.vendor, 8); in vhci_pathinfo_online()
5254 bcopy(psd->sd_inq->inq_pid, ld->prop.prodInfo.product, 16); in vhci_pathinfo_online()
5255 bcopy(psd->sd_inq->inq_revision, ld->prop.prodInfo.revision, 4); in vhci_pathinfo_online()
8626 ASSERT(psd && psd->sd_inq); in vhci_dev_fo()
8627 if ((psd == NULL) || (psd->sd_inq == NULL)) { in vhci_dev_fo()
8667 sf->sf_sfo->sfo_device_probe(psd, psd->sd_inq, in vhci_dev_fo()
H A Dmpapi_impl.c3684 switch (psd->sd_inq->inq_tpgs) { in vhci_mpapi_update_tpg_data()
/titanic_50/usr/src/uts/common/sys/scsi/targets/
H A Dstdef.h1344 #define ST_INQUIRY (ST_SCSI_DEVP->sd_inq)
H A Dsddef.h733 #define SD_INQUIRY(un) ((un)->un_sd->sd_inq)
/titanic_50/usr/src/uts/common/io/aac/
H A Daac.c7144 int dtype = sd->sd_inq->inq_dtype & DTYPE_MASK; in aac_config_child()
7149 scsi_hba_nodename_compatible_get(sd->sd_inq, NULL, dtype, in aac_config_child()
7233 dtype = sd->sd_inq->inq_dtype & DTYPE_MASK; in aac_probe_lun()
7238 tgt, dtype, sd->sd_inq->inq_vid); in aac_probe_lun()
7284 if (sd.sd_inq) { in aac_config_lun()
7285 kmem_free(sd.sd_inq, SUN_INQSIZE); in aac_config_lun()
7286 sd.sd_inq = (struct scsi_inquiry *)NULL; in aac_config_lun()
/titanic_50/usr/src/uts/common/io/1394/targets/scsa1394/
H A Dhba.c1064 bcopy(&lp->l_fake_inq, sd->sd_inq, SUN_INQSIZE); in scsa1394_scsi_tgt_probe()
1071 sd->sd_inq->inq_rmb = 1; in scsa1394_scsi_tgt_probe()
/titanic_50/usr/src/uts/intel/io/dktp/controller/ata/
H A Data_disk.c378 devp->sd_inq = &ata_drvp->ad_inquiry; in ata_disk_init_drive()
/titanic_50/usr/src/uts/intel/io/scsi/adapters/arcmsr/
H A Darcmsr.c2312 int dtype = sd->sd_inq->inq_dtype & DTYPE_MASK; in arcmsr_config_child()
2315 scsi_hba_nodename_compatible_get(sd->sd_inq, NULL, dtype, in arcmsr_config_child()
/titanic_50/usr/src/uts/common/io/usb/scsa2usb/
H A Dscsa2usb.c2269 sd->sd_inq->inq_rmb = 1; in scsa2usb_scsi_tgt_probe()