Lines Matching defs:inqp
4335 scsa2usb_fake_inquiry(scsa2usb_state_t *scsa2usbp, struct scsi_inquiry *inqp)
4343 bzero(inqp, sizeof (struct scsi_inquiry));
4344 for (len = 0; len < sizeof (inqp->inq_vid); len++) {
4345 *(inqp->inq_vid + len) = ' ';
4348 for (len = 0; len < sizeof (inqp->inq_pid); len++) {
4349 *(inqp->inq_pid + len) = ' ';
4352 inqp->inq_dtype = DTYPE_DIRECT;
4353 inqp->inq_rmb = 1;
4354 inqp->inq_ansi = 2;
4355 inqp->inq_rdf = RDF_SCSI2;
4356 inqp->inq_len = sizeof (struct scsi_inquiry)-4;
4361 sizeof (inqp->inq_vid)) {
4362 len = sizeof (inqp->inq_vid);
4364 bcopy(dev_data->dev_mfg, inqp->inq_vid, len);
4369 sizeof (inqp->inq_pid)) {
4370 len = sizeof (inqp->inq_pid);
4372 bcopy(dev_data->dev_product, inqp->inq_pid, len);
4376 inqp->inq_revision[0] = 0x30 +
4378 inqp->inq_revision[1] = 0x30 +
4380 inqp->inq_revision[2] = 0x30 +
4382 inqp->inq_revision[3] = 0x30 +