/illumos-gate/usr/src/uts/common/io/scsi/conf/ |
H A D | scsi_confsubr.c | 44 (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()
|
/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) || 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 D | gda.c | 277 gda_inqfill(devp->sd_inq->inq_vid, 8, &buf[strlen(buf)]); in gda_errmsg()
|
/illumos-gate/usr/src/uts/common/sys/scsi/conf/ |
H A D | device.h | 112 struct scsi_inquiry *sd_inq; member
|
/illumos-gate/usr/src/uts/common/io/scsi/impl/ |
H A D | scsi_subr.c | 1158 inq_fill(devp->sd_inq->inq_vid, 8, &buf[strlen(buf)]); in scsi_generic_errmsg() 1167 inq_fill(devp->sd_inq->inq_serial, 12, &buf[strlen(buf)]); in scsi_generic_errmsg() 1361 struct scsi_inquiry *inq = devp->sd_inq; in scsi_get_device_type_string() 1494 ASSERT(sd && sd->sd_inq); in scsi_get_scsi_maxluns() 1501 if (sd->sd_inq->inq_ansi < SCSI_VERSION_3) in scsi_get_scsi_maxluns() 1521 if ((sd->sd_inq->inq_ansi <= SCSI_VERSION_1) && in scsi_get_scsi_maxluns()
|
H A D | scsi_watch.c | 67 (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 D | scsi_hba.c | 2204 if (sd->sd_inq) { in scsi_busctl_uninitchild() 2205 kmem_free(sd->sd_inq, SUN_INQSIZE); in scsi_busctl_uninitchild() 2206 sd->sd_inq = (struct scsi_inquiry *)NULL; in scsi_busctl_uninitchild() 5108 struct scsi_inquiry *inq = sdprobe->sd_inq; in scsi_device_createchild() 6501 if (sdchild && (sdchild->sd_inq == NULL)) { in scsi_device_config() 6502 sdchild->sd_inq = sdprobe->sd_inq; in scsi_device_config() 6503 sdprobe->sd_inq = NULL; in scsi_device_config() 6552 if ((sdchild->sd_inq == NULL) || in scsi_device_config() 6563 ASSERT(sdchild->sd_inq); in scsi_device_config() 7178 ASSERT(sd0 && sd0->sd_uninit_prevent && sd0->sd_dev && sd0->sd_inq); in scsi_hba_enum_lsf_of_t() [all …]
|
/illumos-gate/usr/src/uts/common/io/scsi/targets/ |
H A D | ses.c | 266 if (is_enc_dev(NULL, devp->sd_inq, SUN_INQSIZE, &ep)) { in ses_probe() 418 if (!(is_enc_dev(NULL, devp->sd_inq, SUN_INQSIZE, &etyp))) { in ses_doattach() 506 int wd = ((devp->sd_inq->inq_rdf == RDF_SCSI2) && in ses_doattach() 507 (devp->sd_inq->inq_wbus16 || devp->sd_inq->inq_wbus32)) in ses_doattach() 1688 inq = (void *)ssc->ses_devp->sd_inq; in ses_register_dev_id()
|
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); 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 D | sd.c | 2266 switch (devp->sd_inq->inq_dtype) { in sdprobe() 3918 struct scsi_inquiry *sd_inq; in sd_sdconf_id_match() local 3922 sd_inq = un->un_sd->sd_inq; in sd_sdconf_id_match() 3931 if (strncasecmp(sd_inq->inq_vid, id, idlen) != 0) { in sd_sdconf_id_match() 4007 p2 = un->un_sd->sd_inq->inq_vid; in sd_blank_cmp() 6755 switch (devp->sd_inq->inq_dtype) { in sd_unit_attach() 6821 switch (devp->sd_inq->inq_dtype) { in sd_unit_attach() 7229 int tq_trigger_flag = (((devp->sd_inq->inq_ansi == 4) || in sd_unit_attach() 7230 (devp->sd_inq->inq_ansi == 5)) && in sd_unit_attach() 7231 devp->sd_inq->inq_bque) || devp->sd_inq->inq_cmdque; in sd_unit_attach() [all …]
|
H A D | st.c | 65 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() 14413 if (un->un_sd->sd_inq->inq_ansi < 3) { in st_read_attributes() 16578 if (un->un_sd->sd_inq->inq_ansi < 3) { in st_get_media_id_via_media_serial_cmd()
|
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/mpt_sas/ |
H A D | mptsas_var.h | 1093 #define MPTSAS_VALID_LUN(sd_inq) \ argument 1094 (((sd_inq->inq_dtype & 0xe0) != 0x20) && \ 1095 ((sd_inq->inq_dtype & 0x1f) != 0x1f))
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/mpt_sas/ |
H A D | mptsas.c | 401 static int mptsas_create_lun(dev_info_t *pdip, struct scsi_inquiry *sd_inq, 14377 struct scsi_inquiry *sd_inq = NULL; in mptsas_probe_lun() local 14380 sd_inq = (struct scsi_inquiry *)kmem_alloc(SUN_INQSIZE, KM_SLEEP); in mptsas_probe_lun() 14382 rval = mptsas_inquiry(mpt, ptgt, lun, 0, (uchar_t *)sd_inq, in mptsas_probe_lun() 14385 if ((rval == DDI_SUCCESS) && MPTSAS_VALID_LUN(sd_inq)) { in mptsas_probe_lun() 14386 rval = mptsas_create_lun(pdip, sd_inq, dip, ptgt, lun); in mptsas_probe_lun() 14391 kmem_free(sd_inq, SUN_INQSIZE); in mptsas_probe_lun() 14667 struct scsi_inquiry *sd_inq = NULL; in mptsas_config_raid() local 14681 sd_inq = (struct scsi_inquiry *)kmem_alloc(SUN_INQSIZE, KM_SLEEP); in mptsas_config_raid() 14682 rval = mptsas_inquiry(mpt, ptgt, 0, 0, (uchar_t *)sd_inq, in mptsas_config_raid() [all …]
|
/illumos-gate/usr/src/uts/common/io/mr_sas/ |
H A D | mr_sas_tbolt.c | 3578 tgt, dtype, sd->sd_inq->inq_vid); in mrsas_tbolt_config_pd() 3583 tgt, dtype, sd->sd_inq->inq_vid)); in mrsas_tbolt_config_pd() 3587 if (sd->sd_inq) { in mrsas_tbolt_config_pd() 3588 kmem_free(sd->sd_inq, SUN_INQSIZE); in mrsas_tbolt_config_pd() 3589 sd->sd_inq = (struct scsi_inquiry *)NULL; in mrsas_tbolt_config_pd()
|
H A D | mr_sas.c | 7612 if (sd->sd_inq) { in mrsas_config_ld() 7613 kmem_free(sd->sd_inq, SUN_INQSIZE); in mrsas_config_ld() 7614 sd->sd_inq = (struct scsi_inquiry *)NULL; in mrsas_config_ld() 7634 int dtype = sd->sd_inq->inq_dtype & DTYPE_MASK; in mrsas_config_scsi_device() 7638 scsi_hba_nodename_compatible_get(sd->sd_inq, NULL, dtype, in mrsas_config_scsi_device()
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/ |
H A D | scsi_vhci.c | 4278 if (psd->sd_inq) in vhci_pathinfo_uninit() 4279 kmem_free((caddr_t)psd->sd_inq, sizeof (struct scsi_inquiry)); in vhci_pathinfo_uninit() 4673 struct scsi_inquiry *inq = devp->sd_inq; in vhci_get_device_type_mpxio_options() 5260 bcopy(psd->sd_inq->inq_vid, ld->prop.prodInfo.vendor, 8); in vhci_pathinfo_online() 5261 bcopy(psd->sd_inq->inq_pid, ld->prop.prodInfo.product, 16); in vhci_pathinfo_online() 5262 bcopy(psd->sd_inq->inq_revision, ld->prop.prodInfo.revision, 4); in vhci_pathinfo_online() 8632 ASSERT(psd && psd->sd_inq); in vhci_dev_fo() 8633 if ((psd == NULL) || (psd->sd_inq == NULL)) { in vhci_dev_fo() 8673 sf->sf_sfo->sfo_device_probe(psd, psd->sd_inq, in vhci_dev_fo()
|
H A D | mpapi_impl.c | 3670 switch (psd->sd_inq->inq_tpgs) { in vhci_mpapi_update_tpg_data()
|
/illumos-gate/usr/src/uts/common/io/aac/ |
H A D | aac.c | 7150 int dtype = sd->sd_inq->inq_dtype & DTYPE_MASK; in aac_config_child() 7155 scsi_hba_nodename_compatible_get(sd->sd_inq, NULL, dtype, in aac_config_child() 7239 dtype = sd->sd_inq->inq_dtype & DTYPE_MASK; in aac_probe_lun() 7244 tgt, dtype, sd->sd_inq->inq_vid); in aac_probe_lun() 7290 if (sd.sd_inq) { in aac_config_lun() 7291 kmem_free(sd.sd_inq, SUN_INQSIZE); in aac_config_lun() 7292 sd.sd_inq = (struct scsi_inquiry *)NULL; in aac_config_lun()
|
/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 | 759 #define SD_INQUIRY(un) ((un)->un_sd->sd_inq)
|
/illumos-gate/usr/src/uts/common/io/1394/targets/scsa1394/ |
H A D | hba.c | 1063 bcopy(&lp->l_fake_inq, sd->sd_inq, SUN_INQSIZE); in scsa1394_scsi_tgt_probe() 1070 sd->sd_inq->inq_rmb = 1; in scsa1394_scsi_tgt_probe()
|
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/ |
H A D | ata_disk.c | 378 devp->sd_inq = &ata_drvp->ad_inquiry; in ata_disk_init_drive()
|
/illumos-gate/usr/src/uts/intel/io/scsi/adapters/arcmsr/ |
H A D | arcmsr.c | 2309 int dtype = sd->sd_inq->inq_dtype & DTYPE_MASK; in arcmsr_config_child() 2312 scsi_hba_nodename_compatible_get(sd->sd_inq, NULL, dtype, in arcmsr_config_child()
|
/illumos-gate/usr/src/uts/common/io/usb/scsa2usb/ |
H A D | scsa2usb.c | 2274 sd->sd_inq->inq_rmb = 1; in scsa2usb_scsi_tgt_probe()
|