Home
last modified time | relevance | path

Searched refs:inq (Results 1 – 25 of 31) sorted by relevance

12

/openbsd/sys/scsi/
H A Dmpath_sym.c105 struct scsi_inquiry_data *inq = &sa->sa_sc_link->inqdata; in sym_match() local
115 if (bcmp(s->vendor, inq->vendor, strlen(s->vendor)) == 0 && in sym_match()
116 bcmp(s->product, inq->product, strlen(s->product)) == 0) in sym_match()
122 if (bcmp(s->vendor, inq->vendor, strlen(s->vendor)) == 0 && in sym_match()
123 bcmp(s->product, inq->product, strlen(s->product)) == 0) in sym_match()
136 struct scsi_inquiry_data *inq = &link->inqdata; in sym_attach() local
148 if (bcmp(s->vendor, inq->vendor, strlen(s->vendor)) == 0 && in sym_attach()
149 bcmp(s->product, inq->product, strlen(s->product)) == 0) { in sym_attach()
H A Dsafte.c112 struct scsi_inquiry_data *inq = &sa->sa_sc_link->inqdata; in safte_match() local
116 if ((inq->device & SID_TYPE) == T_PROCESSOR && in safte_match()
117 SID_ANSII_REV(inq) == SCSI_REV_SPC) in safte_match()
120 if ((inq->device & SID_TYPE) != T_PROCESSOR || in safte_match()
121 SID_ANSII_REV(inq) != SCSI_REV_2 || in safte_match()
122 SID_RESPONSE_FORMAT(inq) != SID_SCSI2_RESPONSE) in safte_match()
125 if (inq->additional_length < SID_SCSI2_ALEN + sizeof(*si)) in safte_match()
128 si = (struct safte_inq *)&inq->extra; in safte_match()
H A Dmpath_emc.c117 struct scsi_inquiry_data *inq = &sa->sa_sc_link->inqdata; in emc_match() local
127 if (bcmp(s->vendor, inq->vendor, strlen(s->vendor)) == 0 && in emc_match()
128 bcmp(s->product, inq->product, strlen(s->product)) == 0) in emc_match()
H A Dmpath_hds.c119 struct scsi_inquiry_data *inq = &link->inqdata; in hds_match() local
129 if (bcmp(s->vendor, inq->vendor, strlen(s->vendor)) == 0 && in hds_match()
130 bcmp(s->product, inq->product, strlen(s->product)) == 0 && in hds_match()
H A Dmpath_rdac.c179 struct scsi_inquiry_data *inq = &sa->sa_sc_link->inqdata; in rdac_match() local
189 if (bcmp(s->vendor, inq->vendor, strlen(s->vendor)) == 0 && in rdac_match()
190 bcmp(s->product, inq->product, strlen(s->product)) == 0) in rdac_match()
H A Dses.c126 struct scsi_inquiry_data *inq = &sa->sa_sc_link->inqdata; in ses_match() local
128 if ((inq->device & SID_TYPE) == T_ENCLOSURE && in ses_match()
129 SID_ANSII_REV(inq) >= SCSI_REV_2) in ses_match()
133 if ((inq->device & SID_TYPE) == T_PROCESSOR && in ses_match()
134 SID_ANSII_REV(inq) == SCSI_REV_SPC) in ses_match()
/openbsd/sys/dev/sdmmc/
H A Dsdmmc_scsi.c393 struct scsi_inquiry_data inq; in sdmmc_inquiry() local
395 char vendor[sizeof(inq.vendor) + 1]; in sdmmc_inquiry()
396 char product[sizeof(inq.product) + 1]; in sdmmc_inquiry()
443 memset(&inq, 0, sizeof inq); in sdmmc_inquiry()
444 inq.device = T_DIRECT; in sdmmc_inquiry()
446 inq.dev_qual2 = SID_REMOVABLE; in sdmmc_inquiry()
447 inq.version = SCSI_REV_2; in sdmmc_inquiry()
450 memcpy(inq.vendor, vendor, sizeof(inq.vendor)); in sdmmc_inquiry()
451 memcpy(inq.product, product, sizeof(inq.product)); in sdmmc_inquiry()
452 memcpy(inq.revision, revision, sizeof(inq.revision)); in sdmmc_inquiry()
[all …]
/openbsd/sys/dev/ata/
H A Datascsi.c665 switch (inq->pagecode) { in atascsi_disk_inq()
704 bzero(&inq, sizeof(inq)); in atascsi_disk_inquiry()
706 inq.device = T_DIRECT; in atascsi_disk_inquiry()
710 inq.flags |= SID_CmdQue; in atascsi_disk_inquiry()
711 bcopy("ATA ", inq.vendor, sizeof(inq.vendor)); in atascsi_disk_inquiry()
717 scsi_copy_internal_data(xs, &inq, sizeof(inq)); in atascsi_disk_inquiry()
1730 bzero(&inq, sizeof(inq)); in atascsi_pmp_inq()
1736 bcopy("ATA ", inq.vendor, sizeof(inq.vendor)); in atascsi_pmp_inq()
1742 bcopy("Port Multiplier", inq.product, sizeof(inq.product)); in atascsi_pmp_inq()
1743 bcopy(" ", inq.revision, sizeof(inq.revision)); in atascsi_pmp_inq()
[all …]
/openbsd/sys/dev/ic/
H A Dsti.c554 struct sti_inqconfout inq; in sti_screen_setup() local
587 bzero(&inq, sizeof(inq)); in sti_screen_setup()
589 inq.ext = &einq; in sti_screen_setup()
600 if (inq.owidth == inq.width && inq.oheight == inq.height) in sti_screen_setup()
605 inq.fbwidth - inq.width; in sti_screen_setup()
607 inq.fbheight - inq.height; in sti_screen_setup()
616 scr->owidth = inq.owidth; in sti_screen_setup()
626 inq.planes, inq.attributes, STI_INQCONF_BITS, in sti_screen_setup()
630 scr->scr_bpp = inq.bppu; in sti_screen_setup()
956 (inq->fbwidth - inq->width - inq->owidth)) { in sti_fetchfonts()
[all …]
H A Dcac.c565 struct scsi_inquiry_data inq; in cac_scsi_cmd() local
608 bzero(&inq, sizeof inq); in cac_scsi_cmd()
609 inq.device = T_DIRECT; in cac_scsi_cmd()
610 inq.dev_qual2 = 0; in cac_scsi_cmd()
611 inq.version = SCSI_REV_2; in cac_scsi_cmd()
613 inq.additional_length = SID_SCSI2_ALEN; in cac_scsi_cmd()
614 inq.flags |= SID_CmdQue; in cac_scsi_cmd()
615 strlcpy(inq.vendor, "Compaq ", sizeof inq.vendor); in cac_scsi_cmd()
623 snprintf(inq.product, sizeof inq.product, "%s vol #%02d", in cac_scsi_cmd()
625 strlcpy(inq.revision, " ", sizeof inq.revision); in cac_scsi_cmd()
[all …]
H A Dtwe.c751 struct scsi_inquiry_data inq; in twe_scsi_cmd() local
797 bzero(&inq, sizeof inq); in twe_scsi_cmd()
798 inq.device = in twe_scsi_cmd()
800 inq.dev_qual2 = in twe_scsi_cmd()
802 inq.version = SCSI_REV_2; in twe_scsi_cmd()
803 inq.response_format = SID_SCSI2_RESPONSE; in twe_scsi_cmd()
804 inq.additional_length = SID_SCSI2_ALEN; in twe_scsi_cmd()
805 strlcpy(inq.vendor, "3WARE ", sizeof inq.vendor); in twe_scsi_cmd()
806 snprintf(inq.product, sizeof inq.product, "Host drive #%02d", in twe_scsi_cmd()
808 strlcpy(inq.revision, " ", sizeof inq.revision); in twe_scsi_cmd()
[all …]
H A Dami.c376 struct ami_inquiry *inq; in ami_attach() local
443 inq = AMIMEM_KVA(am); in ami_attach()
462 ami_copyhds(sc, inq->ain_ldsize, inq->ain_ldprop, in ami_attach()
463 inq->ain_ldstat); in ami_attach()
1384 bzero(&inq, sizeof(inq)); in ami_scsi_cmd()
1385 inq.device = T_DIRECT; in ami_scsi_cmd()
1386 inq.dev_qual2 = 0; in ami_scsi_cmd()
1391 strlcpy(inq.vendor, "AMI ", sizeof(inq.vendor)); in ami_scsi_cmd()
1392 snprintf(inq.product, sizeof(inq.product), in ami_scsi_cmd()
1394 strlcpy(inq.revision, " ", sizeof(inq.revision)); in ami_scsi_cmd()
[all …]
H A Dgdt_common.c862 struct scsi_inquiry_data inq; in gdt_internal_cache_cmd() local
893 bzero(&inq, sizeof inq); in gdt_internal_cache_cmd()
894 inq.device = in gdt_internal_cache_cmd()
896 inq.dev_qual2 = in gdt_internal_cache_cmd()
898 inq.version = SCSI_REV_2; in gdt_internal_cache_cmd()
900 inq.additional_length = SID_SCSI2_ALEN; in gdt_internal_cache_cmd()
901 inq.flags |= SID_CmdQue; in gdt_internal_cache_cmd()
902 strlcpy(inq.vendor, "ICP ", sizeof inq.vendor); in gdt_internal_cache_cmd()
903 snprintf(inq.product, sizeof inq.product, "Host drive #%02d", in gdt_internal_cache_cmd()
905 strlcpy(inq.revision, " ", sizeof inq.revision); in gdt_internal_cache_cmd()
[all …]
H A Dciss.c139 struct ciss_inquiry *inq; in ciss_attach() local
305 inq = sc->scratch; in ciss_attach()
306 if (ciss_inq(sc, inq)) { in ciss_attach()
316 inq->flags, CISS_INQ_BITS); in ciss_attach()
323 sc->maxunits = inq->numld; in ciss_attach()
324 sc->nbus = inq->nscsi_bus; in ciss_attach()
325 sc->ndrives = inq->buswidth? inq->buswidth : 256; in ciss_attach()
327 inq->numld, inq->numld == 1? "" : "s", in ciss_attach()
328 inq->hw_rev, inq->fw_running, inq->fw_stored); in ciss_attach()
721 ccb->ccb_len = sizeof(*inq); in ciss_inq()
[all …]
H A Dnvme.c828 if (!ISSET(inq->flags, SI_EVPD)) { in nvme_scsi_inq()
833 switch (inq->pagecode) { in nvme_scsi_inq()
846 struct scsi_inquiry_data inq; in nvme_scsi_inquiry() local
853 memset(&inq, 0, sizeof(inq)); in nvme_scsi_inquiry()
855 inq.device = T_DIRECT; in nvme_scsi_inquiry()
856 inq.version = SCSI_REV_SPC4; in nvme_scsi_inquiry()
859 inq.flags |= SID_CmdQue; in nvme_scsi_inquiry()
860 memcpy(inq.vendor, "NVMe ", sizeof(inq.vendor)); in nvme_scsi_inquiry()
861 memcpy(inq.product, sc->sc_identify.mn, sizeof(inq.product)); in nvme_scsi_inquiry()
862 memcpy(inq.revision, sc->sc_identify.fr, sizeof(inq.revision)); in nvme_scsi_inquiry()
[all …]
H A Daac.c2103 struct scsi_inquiry_data inq; in aac_internal_cache_cmd() local
2135 bzero(&inq, sizeof inq); in aac_internal_cache_cmd()
2137 inq.device = T_DIRECT; in aac_internal_cache_cmd()
2138 inq.dev_qual2 = 0; in aac_internal_cache_cmd()
2139 inq.version = SCSI_REV_2; in aac_internal_cache_cmd()
2141 inq.additional_length = SID_SCSI2_ALEN; in aac_internal_cache_cmd()
2142 inq.flags |= SID_CmdQue; in aac_internal_cache_cmd()
2143 strlcpy(inq.vendor, "Adaptec", sizeof inq.vendor); in aac_internal_cache_cmd()
2144 snprintf(inq.product, sizeof inq.product, "Container #%02d", in aac_internal_cache_cmd()
2146 strlcpy(inq.revision, " ", sizeof inq.revision); in aac_internal_cache_cmd()
[all …]
H A Dadvlib.c3041 if (inq->byte3.rsp_data_fmt >= 2 || inq->byte2.ansi_apr_ver >= 2) { in AscInquiryHandling()
3042 if ((sc->sdtr_enable & tid_bit) && inq->byte7.Sync) in AscInquiryHandling()
3045 if ((sc->cmd_qng_enabled & tid_bit) && inq->byte7.CmdQue) in AscInquiryHandling()
3046 if (AscTagQueuingSafe(inq)) { in AscInquiryHandling()
3065 AscAsyncFix(sc, tid_no, inq); in AscInquiryHandling()
3070 AscTagQueuingSafe(ASC_SCSI_INQUIRY *inq) in AscTagQueuingSafe() argument
3072 if ((inq->add_len >= 32) && in AscTagQueuingSafe()
3087 dvc_type = inq->byte0.peri_dvc_type; in AscAsyncFix()
3093 (AscCompareString(inq->vendor_id, "HP ", 3) == 0)) { in AscAsyncFix()
3111 (AscCompareString(inq->vendor_id, "NEC ", 8) == 0) && in AscAsyncFix()
[all …]
H A Dadwlib.c2181 ADW_SCSI_INQUIRY *inq; in AdwInquiryHandling() local
2202 inq = (ADW_SCSI_INQUIRY *) scsiq->vdata_addr; in AdwInquiryHandling()
2207 if ((inq->rsp_data_fmt < 2) /*SCSI-1 | CCS*/ && in AdwInquiryHandling()
2208 (inq->ansi_apr_ver < 2)) { in AdwInquiryHandling()
2233 if ((sc->wdtr_able & tidmask) && inq->WBus16) { in AdwInquiryHandling()
2272 if ((sc->sdtr_able & tidmask) && inq->Sync) { in AdwInquiryHandling()
2307 if((inq->Clocking) & INQ_CLOCKING_DT_ONLY){ in AdwInquiryHandling()
2331 if ((sc->tagqng_able & tidmask) && inq->CmdQue) { in AdwInquiryHandling()
/openbsd/sys/arch/sparc64/dev/
H A Dvdsk.c1145 if (ISSET(inq->flags, SI_EVPD)) in vdsk_scsi_inq()
1155 struct scsi_inquiry_data inq; in vdsk_scsi_inquiry() local
1158 bzero(&inq, sizeof(inq)); in vdsk_scsi_inquiry()
1163 inq.device = T_CDROM; in vdsk_scsi_inquiry()
1168 inq.device = T_DIRECT; in vdsk_scsi_inquiry()
1172 inq.version = SCSI_REV_SPC3; in vdsk_scsi_inquiry()
1175 inq.flags |= SID_CmdQue; in vdsk_scsi_inquiry()
1176 bcopy("SUN ", inq.vendor, sizeof(inq.vendor)); in vdsk_scsi_inquiry()
1177 bcopy("Virtual Disk ", inq.product, sizeof(inq.product)); in vdsk_scsi_inquiry()
1179 bcopy(buf, inq.revision, sizeof(inq.revision)); in vdsk_scsi_inquiry()
[all …]
/openbsd/sys/dev/pv/
H A Dhvs.c572 is_inquiry_valid(struct scsi_inquiry_data *inq) in is_inquiry_valid() argument
574 if ((inq->device & SID_TYPE) == T_NODEVICE) in is_inquiry_valid()
576 if ((inq->device & SID_QUAL) == SID_QUAL_BAD_LU) in is_inquiry_valid()
590 SID_SCSI2_HDRLEN + inq->additional_length : 0; in fixup_inquiry()
598 !is_inquiry_valid(inq) && datalen >= 4 && in fixup_inquiry()
599 (inq->version == 0 || inq->response_format == 0)) { in fixup_inquiry()
600 inq->version = SCSI_REV_SPC3; in fixup_inquiry()
601 inq->response_format = SID_SCSI2_RESPONSE; in fixup_inquiry()
607 scsi_strvis(vendor, inq->vendor, sizeof(vendor)); in fixup_inquiry()
610 (SID_ANSII_REV(inq) == SCSI_REV_SPC2) && in fixup_inquiry()
[all …]
H A Dxbf.c815 if (ISSET(inq->flags, SI_EVPD)) in xbf_scsi_inq()
825 struct scsi_inquiry_data inq; in xbf_scsi_inquiry() local
827 bzero(&inq, sizeof(inq)); in xbf_scsi_inquiry()
831 inq.device = T_CDROM; in xbf_scsi_inquiry()
834 inq.device = T_DIRECT; in xbf_scsi_inquiry()
838 inq.version = SCSI_REV_SPC3; in xbf_scsi_inquiry()
841 inq.flags |= SID_CmdQue; in xbf_scsi_inquiry()
842 bcopy("Xen ", inq.vendor, sizeof(inq.vendor)); in xbf_scsi_inquiry()
843 bcopy(sc->sc_prod, inq.product, sizeof(inq.product)); in xbf_scsi_inquiry()
844 bcopy("0000", inq.revision, sizeof(inq.revision)); in xbf_scsi_inquiry()
[all …]
H A Dvioblk.c567 struct scsi_inquiry *inq = (struct scsi_inquiry *)&xs->cmd; in vioblk_scsi_inq() local
570 if (ISSET(inq->flags, SI_EVPD)) { in vioblk_scsi_inq()
/openbsd/sys/dev/pci/
H A Dips.c833 struct scsi_inquiry_data inq; in ips_scsi_cmd() local
914 bzero(&inq, sizeof(inq)); in ips_scsi_cmd()
915 inq.device = T_DIRECT; in ips_scsi_cmd()
916 inq.version = SCSI_REV_2; in ips_scsi_cmd()
917 inq.response_format = SID_SCSI2_RESPONSE; in ips_scsi_cmd()
918 inq.additional_length = SID_SCSI2_ALEN; in ips_scsi_cmd()
919 inq.flags |= SID_CmdQue; in ips_scsi_cmd()
920 strlcpy(inq.vendor, "IBM", sizeof(inq.vendor)); in ips_scsi_cmd()
921 snprintf(inq.product, sizeof(inq.product), in ips_scsi_cmd()
923 strlcpy(inq.revision, "1.0", sizeof(inq.revision)); in ips_scsi_cmd()
[all …]
/openbsd/sys/arch/luna88k/stand/boot/
H A Dsd.c108 static struct scsi_generic_cdb inq = { variable
154 if (scsi_immed_command(&sc->sc_sc, target, unit, &inq, in sdident()
/openbsd/sys/dev/
H A Dsoftraid.c4006 struct scsi_inquiry_data inq; in sr_raid_inquiry() local
4016 bzero(&inq, sizeof(inq)); in sr_raid_inquiry()
4017 inq.device = T_DIRECT; in sr_raid_inquiry()
4018 inq.dev_qual2 = 0; in sr_raid_inquiry()
4019 inq.version = SCSI_REV_2; in sr_raid_inquiry()
4021 inq.additional_length = SID_SCSI2_ALEN; in sr_raid_inquiry()
4022 inq.flags |= SID_CmdQue; in sr_raid_inquiry()
4024 sizeof(inq.vendor)); in sr_raid_inquiry()
4026 sizeof(inq.product)); in sr_raid_inquiry()
4028 sizeof(inq.revision)); in sr_raid_inquiry()
[all …]

12