Home
last modified time | relevance | path

Searched refs:inqp (Results 1 – 7 of 7) sorted by relevance

/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_sata.c199 struct scsi_inquiry *inqp; in pmcs_sata_special_work() local
281 inqp = (struct scsi_inquiry *)rp; in pmcs_sata_special_work()
282 inqp->inq_qual = 0; in pmcs_sata_special_work()
283 inqp->inq_ansi = 5; /* spc3 */ in pmcs_sata_special_work()
284 inqp->inq_rdf = 2; /* response format 2 */ in pmcs_sata_special_work()
285 inqp->inq_len = 32; in pmcs_sata_special_work()
288 inqp->inq_cmdque = 1; in pmcs_sata_special_work()
291 (void) memcpy(inqp->inq_vid, "ATA ", 8); in pmcs_sata_special_work()
293 a = (void *)inqp->inq_pid; in pmcs_sata_special_work()
302 inqp->inq_revision[0] = in pmcs_sata_special_work()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dsgen.c398 sgen_inq_node_t *inqp, *inqnextp; in sgen_cleanup_binddb() local
407 for (inqp = sgen_binddb.sdb_inq_nodes; inqp != NULL; inqp = inqnextp) { in sgen_cleanup_binddb()
408 inqnextp = inqp->node_next; in sgen_cleanup_binddb()
409 ASSERT(inqp->node_vendor && inqp->node_product); in sgen_cleanup_binddb()
410 kmem_free(inqp->node_vendor, in sgen_cleanup_binddb()
411 strlen(inqp->node_vendor) + 1); in sgen_cleanup_binddb()
412 kmem_free(inqp->node_product, in sgen_cleanup_binddb()
413 strlen(inqp->node_product) + 1); in sgen_cleanup_binddb()
414 kmem_free(inqp, sizeof (sgen_inq_node_t)); in sgen_cleanup_binddb()
H A Dses.c320 is_enc_dev(ses_softc_t *ssc, struct scsi_inquiry *inqp, int iqlen, enctyp *ep) in is_enc_dev() argument
322 uchar_t dt = (inqp->inq_dtype & DTYPE_MASK); in is_enc_dev()
323 uchar_t *iqd = (uchar_t *)inqp; in is_enc_dev()
326 if (strncmp(inqp->inq_vid, SEN_ID, SEN_ID_LEN) == 0) { in is_enc_dev()
329 } else if (inqp->inq_rdf == RDF_SCSI2) { in is_enc_dev()
343 if ((iqd[6] & 0x40) && inqp->inq_rdf >= RDF_SCSI2) { in is_enc_dev()
/illumos-gate/usr/src/uts/intel/io/amr/
H A Damr.c1559 struct scsi_inquiry inqp; in amr_tran_start() local
1560 uint8_t *sinq_p = (uint8_t *)&inqp; in amr_tran_start()
1562 bzero(&inqp, sizeof (struct scsi_inquiry)); in amr_tran_start()
1572 inqp.inq_len = AMR_INQ_ADDITIONAL_LEN; in amr_tran_start()
1573 inqp.inq_ansi = AMR_INQ_ANSI_VER; in amr_tran_start()
1574 inqp.inq_rdf = AMR_INQ_RESP_DATA_FORMAT; in amr_tran_start()
1576 inqp.inq_cmdque = 1; in amr_tran_start()
1577 bcopy("MegaRaid", inqp.inq_vid, in amr_tran_start()
1578 sizeof (inqp.inq_vid)); in amr_tran_start()
1580 inqp.inq_pid, in amr_tran_start()
[all …]
/illumos-gate/usr/src/uts/common/io/usb/scsa2usb/
H A Dscsa2usb.c4359 scsa2usb_fake_inquiry(scsa2usb_state_t *scsa2usbp, struct scsi_inquiry *inqp) in scsa2usb_fake_inquiry() argument
4367 bzero(inqp, sizeof (struct scsi_inquiry)); in scsa2usb_fake_inquiry()
4368 for (len = 0; len < sizeof (inqp->inq_vid); len++) { in scsa2usb_fake_inquiry()
4369 *(inqp->inq_vid + len) = ' '; in scsa2usb_fake_inquiry()
4372 for (len = 0; len < sizeof (inqp->inq_pid); len++) { in scsa2usb_fake_inquiry()
4373 *(inqp->inq_pid + len) = ' '; in scsa2usb_fake_inquiry()
4376 inqp->inq_dtype = DTYPE_DIRECT; in scsa2usb_fake_inquiry()
4377 inqp->inq_rmb = 1; in scsa2usb_fake_inquiry()
4378 inqp->inq_ansi = 2; in scsa2usb_fake_inquiry()
4379 inqp->inq_rdf = RDF_SCSI2; in scsa2usb_fake_inquiry()
[all …]
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/
H A Data_disk.c2644 struct scsi_inquiry *inqp = &ata_drvp->ad_inquiry; in ata_disk_fake_inquiry() local
2649 inqp->inq_rmb = 1; /* scsi removable bit */ in ata_disk_fake_inquiry()
2651 (void) strncpy(inqp->inq_vid, "Gen-ATA ", sizeof (inqp->inq_vid)); in ata_disk_fake_inquiry()
2652 inqp->inq_dtype = DTYPE_DIRECT; in ata_disk_fake_inquiry()
2653 inqp->inq_qual = DPQ_POSSIBLE; in ata_disk_fake_inquiry()
2655 (void) strncpy(inqp->inq_pid, ata_idp->ai_model, in ata_disk_fake_inquiry()
2656 sizeof (inqp->inq_pid)); in ata_disk_fake_inquiry()
2657 (void) strncpy(inqp->inq_revision, ata_idp->ai_fw, in ata_disk_fake_inquiry()
2658 sizeof (inqp->inq_revision)); in ata_disk_fake_inquiry()
/illumos-gate/usr/src/uts/common/io/aac/
H A Daac.c3962 struct scsi_inquiry *inqp = (struct scsi_inquiry *)b_addr; in aac_inquiry() local
3970 if (inqp == NULL || bp->b_bcount < len) in aac_inquiry()
3973 bzero(inqp, len); in aac_inquiry()
3974 inqp->inq_len = AAC_ADDITIONAL_LEN; in aac_inquiry()
3975 inqp->inq_ansi = AAC_ANSI_VER; in aac_inquiry()
3976 inqp->inq_rdf = AAC_RESP_DATA_FORMAT; in aac_inquiry()
3977 (void) aac_vendor_id(softs, (uchar_t *)inqp->inq_vid); in aac_inquiry()
3978 (void) aac_product_id(softs, (uchar_t *)inqp->inq_pid); in aac_inquiry()
3979 bcopy("V1.0", inqp->inq_revision, 4); in aac_inquiry()
3980 inqp->inq_cmdque = 1; /* enable tagged-queuing */ in aac_inquiry()
[all …]