Lines Matching refs:inq
657 struct scsi_inquiry *inq = (struct scsi_inquiry *)&xs->cmd;
659 if (xs->cmdlen != sizeof(*inq)) {
664 if (ISSET(inq->flags, SI_EVPD)) {
665 switch (inq->pagecode) {
698 struct scsi_inquiry_data inq;
704 bzero(&inq, sizeof(inq));
706 inq.device = T_DIRECT;
707 inq.version = SCSI_REV_SPC3;
708 inq.response_format = SID_SCSI2_RESPONSE;
709 inq.additional_length = SID_SCSI2_ALEN;
710 inq.flags |= SID_CmdQue;
711 bcopy("ATA ", inq.vendor, sizeof(inq.vendor));
712 ata_swapcopy(ap->ap_identify.model, inq.product,
713 sizeof(inq.product));
714 ata_swapcopy(ap->ap_identify.firmware, inq.revision,
715 sizeof(inq.revision));
717 scsi_copy_internal_data(xs, &inq, sizeof(inq));
1721 struct scsi_inquiry_data inq;
1730 bzero(&inq, sizeof(inq));
1731 inq.device = 0x1E; /* "well known logical unit" seems reasonable */
1732 inq.version = SCSI_REV_SPC3;
1733 inq.response_format = SID_SCSI2_RESPONSE;
1734 inq.additional_length = SID_SCSI2_ALEN;
1735 inq.flags |= SID_CmdQue;
1736 bcopy("ATA ", inq.vendor, sizeof(inq.vendor));
1742 bcopy("Port Multiplier", inq.product, sizeof(inq.product));
1743 bcopy(" ", inq.revision, sizeof(inq.revision));
1745 scsi_copy_internal_data(xs, &inq, sizeof(inq));