Lines Matching refs:inq
796 struct scsi_inquiry *inq = (struct scsi_inquiry *)&xs->cmd;
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;
823 memset(&inq, 0, sizeof(inq));
825 inq.device = T_DIRECT;
826 inq.version = SCSI_REV_SPC4;
827 inq.response_format = SID_SCSI2_RESPONSE;
828 inq.additional_length = SID_SCSI2_ALEN;
829 inq.flags |= SID_CmdQue;
830 memcpy(inq.vendor, "NVMe ", sizeof(inq.vendor));
831 memcpy(inq.product, sc->sc_identify.mn, sizeof(inq.product));
832 memcpy(inq.revision, sc->sc_identify.fr, sizeof(inq.revision));
834 scsi_copy_internal_data(xs, &inq, sizeof(inq));