/openbsd-current/sys/scsi/ |
H A D | mpath_sym.c | 105 struct scsi_inquiry_data *inq = &sa->sa_sc_link->inqdata; local 115 if (bcmp(s->vendor, inq->vendor, strlen(s->vendor)) == 0 && 116 bcmp(s->product, inq->product, strlen(s->product)) == 0) 122 if (bcmp(s->vendor, inq->vendor, strlen(s->vendor)) == 0 && 123 bcmp(s->product, inq->product, strlen(s->product)) == 0) 136 struct scsi_inquiry_data *inq = &link->inqdata; local 148 if (bcmp(s->vendor, inq->vendor, strlen(s->vendor)) == 0 && 149 bcmp(s->product, inq->product, strlen(s->product)) == 0) {
|
H A D | safte.c | 112 struct scsi_inquiry_data *inq = &sa->sa_sc_link->inqdata; local 116 if ((inq->device & SID_TYPE) == T_PROCESSOR && 117 SID_ANSII_REV(inq) == SCSI_REV_SPC) 120 if ((inq->device & SID_TYPE) != T_PROCESSOR || 121 SID_ANSII_REV(inq) != SCSI_REV_2 || 122 SID_RESPONSE_FORMAT(inq) != SID_SCSI2_RESPONSE) 125 if (inq->additional_length < SID_SCSI2_ALEN + sizeof(*si)) 128 si = (struct safte_inq *)&inq->extra;
|
H A D | mpath_hds.c | 119 struct scsi_inquiry_data *inq = &link->inqdata; local 129 if (bcmp(s->vendor, inq->vendor, strlen(s->vendor)) == 0 && 130 bcmp(s->product, inq->product, strlen(s->product)) == 0 &&
|
H A D | mpath_emc.c | 117 struct scsi_inquiry_data *inq = &sa->sa_sc_link->inqdata; local 127 if (bcmp(s->vendor, inq->vendor, strlen(s->vendor)) == 0 && 128 bcmp(s->product, inq->product, strlen(s->product)) == 0)
|
H A D | mpath_rdac.c | 179 struct scsi_inquiry_data *inq = &sa->sa_sc_link->inqdata; local 189 if (bcmp(s->vendor, inq->vendor, strlen(s->vendor)) == 0 && 190 bcmp(s->product, inq->product, strlen(s->product)) == 0)
|
H A D | ses.c | 126 struct scsi_inquiry_data *inq = &sa->sa_sc_link->inqdata; local 128 if ((inq->device & SID_TYPE) == T_ENCLOSURE && 129 SID_ANSII_REV(inq) >= SCSI_REV_2) 133 if ((inq->device & SID_TYPE) == T_PROCESSOR && 134 SID_ANSII_REV(inq) == SCSI_REV_SPC)
|
/openbsd-current/sys/dev/sdmmc/ |
H A D | sdmmc_scsi.c | 393 struct scsi_inquiry_data inq; local 395 char vendor[sizeof(inq.vendor) + 1]; 396 char product[sizeof(inq.product) + 1]; 397 char revision[sizeof(inq.revision) + 1]; 443 memset(&inq, 0, sizeof inq); 444 inq.device = T_DIRECT; 446 inq.dev_qual2 = SID_REMOVABLE; 447 inq.version = SCSI_REV_2; 448 inq [all...] |
/openbsd-current/sys/dev/ata/ |
H A D | atascsi.c | 657 struct scsi_inquiry *inq = (struct scsi_inquiry *)&xs->cmd; local 659 if (xs->cmdlen != sizeof(*inq)) { 664 if (ISSET(inq->flags, SI_EVPD)) { 665 switch (inq->pagecode) { 698 struct scsi_inquiry_data inq; local 704 bzero(&inq, sizeof(inq)); 706 inq.device = T_DIRECT; 707 inq.version = SCSI_REV_SPC3; 708 inq 1721 struct scsi_inquiry_data inq; local [all...] |
/openbsd-current/sys/dev/ic/ |
H A D | cac.c | 565 struct scsi_inquiry_data inq; local 608 bzero(&inq, sizeof inq); 609 inq.device = T_DIRECT; 610 inq.dev_qual2 = 0; 611 inq.version = SCSI_REV_2; 612 inq.response_format = SID_SCSI2_RESPONSE; 613 inq.additional_length = SID_SCSI2_ALEN; 614 inq.flags |= SID_CmdQue; 615 strlcpy(inq [all...] |
H A D | twe.c | 751 struct scsi_inquiry_data inq; local 797 bzero(&inq, sizeof inq); 798 inq.device = 800 inq.dev_qual2 = 802 inq.version = SCSI_REV_2; 803 inq.response_format = SID_SCSI2_RESPONSE; 804 inq.additional_length = SID_SCSI2_ALEN; 805 strlcpy(inq.vendor, "3WARE ", sizeof inq [all...] |
H A D | gdt_common.c | 862 struct scsi_inquiry_data inq; local 893 bzero(&inq, sizeof inq); 894 inq.device = 896 inq.dev_qual2 = 898 inq.version = SCSI_REV_2; 899 inq.response_format = SID_SCSI2_RESPONSE; 900 inq.additional_length = SID_SCSI2_ALEN; 901 inq.flags |= SID_CmdQue; 902 strlcpy(inq [all...] |
H A D | ami.c | 376 struct ami_inquiry *inq; local 443 inq = AMIMEM_KVA(am); 461 sc->sc_nunits = inq->ain_nlogdrv; 462 ami_copyhds(sc, inq->ain_ldsize, inq->ain_ldprop, 463 inq->ain_ldstat); 465 bcopy (inq->ain_fwver, sc->sc_fwver, 4); 467 bcopy (inq->ain_biosver, sc->sc_biosver, 4); 469 sc->sc_channels = inq->ain_channels; 470 sc->sc_targets = inq 1300 struct scsi_inquiry_data inq; local 1657 struct scsi_inquiry_data *inq = inqbuf; local [all...] |
H A D | ciss.c | 92 int ciss_inq(struct ciss_softc *sc, struct ciss_inquiry *inq); 139 struct ciss_inquiry *inq; local 305 inq = sc->scratch; 306 if (ciss_inq(sc, inq)) { 314 if (!(inq->flags & CISS_INQ_BIGMAP)) { 316 inq->flags, CISS_INQ_BITS); 323 sc->maxunits = inq->numld; 324 sc->nbus = inq->nscsi_bus; 325 sc->ndrives = inq->buswidth? inq 710 ciss_inq(struct ciss_softc *sc, struct ciss_inquiry *inq) argument [all...] |
H A D | nvme.c | 796 struct scsi_inquiry *inq = (struct scsi_inquiry *)&xs->cmd; local 798 if (!ISSET(inq->flags, SI_EVPD)) { 803 switch (inq->pagecode) { 805 /* printf("%s: %d\n", __func__, inq->pagecode); */ 816 struct scsi_inquiry_data inq; local 823 memset(&inq, 0, sizeof(inq)); 825 inq.device = T_DIRECT; 826 inq.version = SCSI_REV_SPC4; 827 inq [all...] |
H A D | aac.c | 2103 struct scsi_inquiry_data inq; local 2135 bzero(&inq, sizeof inq); 2137 inq.device = T_DIRECT; 2138 inq.dev_qual2 = 0; 2139 inq.version = SCSI_REV_2; 2140 inq.response_format = SID_SCSI2_RESPONSE; 2141 inq.additional_length = SID_SCSI2_ALEN; 2142 inq.flags |= SID_CmdQue; 2143 strlcpy(inq [all...] |
H A D | adwlib.c | 2181 ADW_SCSI_INQUIRY *inq; local 2202 inq = (ADW_SCSI_INQUIRY *) scsiq->vdata_addr; 2207 if ((inq->rsp_data_fmt < 2) /*SCSI-1 | CCS*/ && 2208 (inq->ansi_apr_ver < 2)) { 2233 if ((sc->wdtr_able & tidmask) && inq->WBus16) { 2272 if ((sc->sdtr_able & tidmask) && inq->Sync) { 2307 if((inq->Clocking) & INQ_CLOCKING_DT_ONLY){ 2331 if ((sc->tagqng_able & tidmask) && inq->CmdQue) {
|
H A D | advlib.c | 3027 AscInquiryHandling(ASC_SOFTC *sc, u_int8_t tid_no, ASC_SCSI_INQUIRY *inq) argument 3041 if (inq->byte3.rsp_data_fmt >= 2 || inq->byte2.ansi_apr_ver >= 2) { 3042 if ((sc->sdtr_enable & tid_bit) && inq->byte7.Sync) 3045 if ((sc->cmd_qng_enabled & tid_bit) && inq->byte7.CmdQue) 3046 if (AscTagQueuingSafe(inq)) { 3065 AscAsyncFix(sc, tid_no, inq); 3070 AscTagQueuingSafe(ASC_SCSI_INQUIRY *inq) argument 3072 if ((inq->add_len >= 32) && 3073 (AscCompareString(inq 3082 AscAsyncFix(ASC_SOFTC *sc, u_int8_t tid_no, ASC_SCSI_INQUIRY *inq) argument [all...] |
H A D | mpi.c | 756 struct scsi_inquiry inq; local 768 memset(&inq, 0, sizeof(inq)); 769 inq.opcode = INQUIRY; 770 _lto2b(sizeof(struct scsi_inquiry_data), inq.length); 790 io->cdb_length = sizeof(inq); 802 memcpy(io->cdb, &inq, sizeof(inq)); 811 (u_int32_t)sizeof(inq)); 3151 DNPRINTF(MPI_D_IOCTL, "inq\ [all...] |
/openbsd-current/sys/arch/sparc64/dev/ |
H A D | vdsk.c | 1143 struct scsi_inquiry *inq = (struct scsi_inquiry *)&xs->cmd; local 1145 if (ISSET(inq->flags, SI_EVPD)) 1155 struct scsi_inquiry_data inq; local 1158 bzero(&inq, sizeof(inq)); 1163 inq.device = T_CDROM; 1168 inq.device = T_DIRECT; 1172 inq.version = SCSI_REV_SPC3; 1173 inq.response_format = SID_SCSI2_RESPONSE; 1174 inq [all...] |
/openbsd-current/sys/dev/pv/ |
H A D | xbf.c | 813 struct scsi_inquiry *inq = (struct scsi_inquiry *)&xs->cmd; local 815 if (ISSET(inq->flags, SI_EVPD)) 825 struct scsi_inquiry_data inq; local 827 bzero(&inq, sizeof(inq)); 831 inq.device = T_CDROM; 834 inq.device = T_DIRECT; 838 inq.version = SCSI_REV_SPC3; 839 inq.response_format = SID_SCSI2_RESPONSE; 840 inq [all...] |
H A D | hvs.c | 572 is_inquiry_valid(struct scsi_inquiry_data *inq) argument 574 if ((inq->device & SID_TYPE) == T_NODEVICE) 576 if ((inq->device & SID_QUAL) == SID_QUAL_BAD_LU) 585 struct scsi_inquiry_data *inq = (struct scsi_inquiry_data *)xs->data; local 590 SID_SCSI2_HDRLEN + inq->additional_length : 0; 598 !is_inquiry_valid(inq) && datalen >= 4 && 599 (inq->version == 0 || inq->response_format == 0)) { 600 inq->version = SCSI_REV_SPC3; 601 inq [all...] |
H A D | vioblk.c | 563 struct scsi_inquiry *inq = (struct scsi_inquiry *)&xs->cmd; local 566 if (ISSET(inq->flags, SI_EVPD)) {
|
/openbsd-current/sys/arch/luna88k/stand/boot/ |
H A D | sd.c | 108 static struct scsi_generic_cdb inq = { variable in typeref:struct:scsi_generic_cdb 154 if (scsi_immed_command(&sc->sc_sc, target, unit, &inq,
|
/openbsd-current/sys/dev/pci/ |
H A D | ips.c | 833 struct scsi_inquiry_data inq; local 914 bzero(&inq, sizeof(inq)); 915 inq.device = T_DIRECT; 916 inq.version = SCSI_REV_2; 917 inq.response_format = SID_SCSI2_RESPONSE; 918 inq.additional_length = SID_SCSI2_ALEN; 919 inq.flags |= SID_CmdQue; 920 strlcpy(inq.vendor, "IBM", sizeof(inq [all...] |
/openbsd-current/sys/dev/ |
H A D | softraid.c | 2490 DNPRINTF(SR_D_IOCTL, "inq\n"); 4006 struct scsi_inquiry_data inq; local 4016 bzero(&inq, sizeof(inq)); 4017 inq.device = T_DIRECT; 4018 inq.dev_qual2 = 0; 4019 inq.version = SCSI_REV_2; 4020 inq.response_format = SID_SCSI2_RESPONSE; 4021 inq.additional_length = SID_SCSI2_ALEN; 4022 inq [all...] |