Lines Matching refs:inqp
4359 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()
4380 inqp->inq_len = sizeof (struct scsi_inquiry)-4; in scsa2usb_fake_inquiry()
4385 sizeof (inqp->inq_vid)) { in scsa2usb_fake_inquiry()
4386 len = sizeof (inqp->inq_vid); in scsa2usb_fake_inquiry()
4388 bcopy(dev_data->dev_mfg, inqp->inq_vid, len); in scsa2usb_fake_inquiry()
4393 sizeof (inqp->inq_pid)) { in scsa2usb_fake_inquiry()
4394 len = sizeof (inqp->inq_pid); in scsa2usb_fake_inquiry()
4396 bcopy(dev_data->dev_product, inqp->inq_pid, len); in scsa2usb_fake_inquiry()
4400 inqp->inq_revision[0] = 0x30 + in scsa2usb_fake_inquiry()
4402 inqp->inq_revision[1] = 0x30 + in scsa2usb_fake_inquiry()
4404 inqp->inq_revision[2] = 0x30 + in scsa2usb_fake_inquiry()
4406 inqp->inq_revision[3] = 0x30 + in scsa2usb_fake_inquiry()