/freebsd-9.3-release/share/examples/scsi_target/ |
H A D | scsi_cmds.c | 298 struct scsi_inquiry *inq; local 304 inq = (struct scsi_inquiry *)a_descr->cdb; 314 if ((inq->byte2 & SI_EVPD) != 0) { 321 } else if (inq->page_code != 0) { 331 scsi_2btoul(inq->length)); 342 struct scsi_inquiry_data *inq; local 344 inq = &inq_data; 345 bzero(inq, sizeof(*inq)); 346 inq [all...] |
/freebsd-9.3-release/sys/netgraph/bluetooth/drivers/bt3c/ |
H A D | ng_bt3c_pccard.c | 348 IF_DRAIN(&sc->inq); 394 _IF_QLEN(&sc->inq), /* XXX */ 395 sc->inq.ifq_maxlen, /* XXX */ 450 sc->inq.ifq_maxlen; 480 sc->inq.ifq_maxlen = ((ng_bt3c_node_qlen_ep *) 670 sc->inq.ifq_maxlen = sc->outq.ifq_maxlen = BT3C_DEFAULTQLEN; 671 mtx_init(&sc->inq.ifq_mtx, "BT3C inq", NULL, MTX_DEF); 740 IF_DRAIN(&sc->inq); 743 mtx_destroy(&sc->inq [all...] |
H A D | ng_bt3c_var.h | 98 struct ifqueue inq; /* queue of incoming mbuf's */ member in struct:bt3c_softc
|
/freebsd-9.3-release/sys/dev/sound/midi/ |
H A D | midi.c | 111 struct mtx qlock; /* Protects inq, outq and flags */ 112 MIDIQ_HEAD(, char) inq, outq; member in struct:snd_midi 338 MIDIQ_INIT(m->inq, buf, inqsize); 348 if ((inqsize && !MIDIQ_BUF(m->inq)) || 379 if (MIDIQ_BUF(m->inq)) 380 free(MIDIQ_BUF(m->inq), M_MIDI); 513 if (!MIDIQ_FULL(m->inq)) { 515 MIDIQ_ENQ(m->inq, &m->inq_status, 1); 537 if (!MIDIQ_FULL(m->inq)) { 538 MIDIQ_ENQ(m->inq, [all...] |
/freebsd-9.3-release/usr.sbin/mlxcontrol/ |
H A D | interface.c | 234 struct scsi_inquiry_data inq; member in union:__anon10942::__anon10943 262 *vendor = &dcdb_cmd.d.inq.vendor[0]; 263 *device = &dcdb_cmd.d.inq.product[0]; 264 *revision = &dcdb_cmd.d.inq.revision[0];
|
/freebsd-9.3-release/sys/dev/amr/ |
H A D | amr_cam.c | 550 struct scsi_inquiry_data *inq; local 556 inq = (struct scsi_inquiry_data *)csio->data_ptr; 587 if ((cdb0 == INQUIRY) && (SID_TYPE(inq) == T_DIRECT)) 588 inq->device = (inq->device & 0xe0) | T_NODEVICE;
|
/freebsd-9.3-release/sys/cam/scsi/ |
H A D | scsi_targ_bh.c | 569 struct scsi_inquiry *inq; local 571 inq = (struct scsi_inquiry *)cdb; 579 if ((inq->byte2 & SI_EVPD) != 0 580 || inq->page_code != 0) { 604 scsi_2btoul(inq->length));
|
H A D | scsi_all.c | 6420 struct scsi_inquiry_data *inq; local 6423 inq = (struct scsi_inquiry_data *)inqbuffer; 6425 if (((SID_TYPE(inq) == entry->type) 6427 && (SID_IS_REMOVABLE(inq) ? entry->media_type & SIP_MEDIA_REMOVABLE 6429 && (cam_strmatch(inq->vendor, entry->vendor, sizeof(inq->vendor)) == 0) 6430 && (cam_strmatch(inq->product, entry->product, 6431 sizeof(inq->product)) == 0) 6432 && (cam_strmatch(inq->revision, entry->revision, 6433 sizeof(inq 6447 struct scsi_inquiry_data *inq; local [all...] |
/freebsd-9.3-release/sys/dev/iir/ |
H A D | iir.c | 1090 struct scsi_inquiry_data inq; local 1091 size_t copylen = MIN(sizeof(inq), ccb->csio.dxfer_len); 1093 bzero(&inq, sizeof(inq)); 1094 inq.device = (gdt->sc_hdr[t].hd_devtype & 4) ? 1096 inq.dev_qual2 = (gdt->sc_hdr[t].hd_devtype & 1) ? 0x80 : 0; 1097 inq.version = SCSI_REV_2; 1098 inq.response_format = 2; 1099 inq.additional_length = 32; 1100 inq [all...] |
/freebsd-9.3-release/sys/dev/aac/ |
H A D | aac_cam.c | 530 struct scsi_inquiry_data *inq; local 544 inq = (struct scsi_inquiry_data *)ccb->csio.data_ptr; 545 device = SID_TYPE(inq); 546 qual = SID_QUAL(inq);
|
/freebsd-9.3-release/usr.sbin/mptutil/ |
H A D | mpt_show.c | 220 const char *inq, *state; local 230 inq = mpt_pd_inq_string(info); 231 if (inq != NULL) 232 printf(" %s", inq);
|
/freebsd-9.3-release/sys/dev/ata/ |
H A D | atapi-cam.c | 570 struct scsi_inquiry *inq = (struct scsi_inquiry *) &request->u.atapi.ccb[0]; local 572 if (inq->byte2 == 0 && inq->page_code == 0 && 573 scsi_2btoul(inq->length) > SHORT_INQUIRY_LENGTH) { 576 scsi_ulto2b(len, inq->length);
|
/freebsd-9.3-release/sys/dev/aacraid/ |
H A D | aacraid_cam.c | 550 struct scsi_inquiry *inq = (struct scsi_inquiry *)cmdp; local 555 ccb->csio.dxfer_len, inq->byte2, inq->page_code); 556 if (!(inq->byte2 & SI_EVPD)) { 559 if (inq->page_code != 0) { 578 if (inq->page_code == SVPD_SUPPORTED_PAGE_LIST) { 587 } else if (inq->page_code == SVPD_UNIT_SERIAL_NUMBER) {
|
/freebsd-9.3-release/sys/dev/ciss/ |
H A D | ciss.c | 1640 struct scsi_inquiry *inq; local 1663 inq = (struct scsi_inquiry *)&(cc->cdb.cdb[0]); 1664 inq->opcode = INQUIRY; 1665 inq->byte2 = SI_EVPD; 1666 inq->page_code = CISS_VPD_LOGICAL_DRIVE_GEOMETRY; 1667 scsi_ulto2b(sizeof(ld->cl_geometry), inq->length); 3373 struct scsi_inquiry_data *inq; local 3385 inq = (struct scsi_inquiry_data *)csio->data_ptr; 3394 if (SID_TYPE(inq) == T_DIRECT) 3395 inq [all...] |
/freebsd-9.3-release/sys/dev/firewire/ |
H A D | sbp.c | 1607 struct scsi_inquiry_data *inq; local 1618 inq = (struct scsi_inquiry_data *) ccb->csio.data_ptr; local 1619 switch (SID_TYPE(inq)) { 1626 if (SID_TYPE(inq) == T_DIRECT) 1627 inq->device |= T_RBC; /* T_DIRECT == 0 */ 1636 bcopy(sdev->vendor, inq->vendor, sizeof(inq->vendor)); 1637 bcopy(sdev->product, inq->product, sizeof(inq->product)); 1638 bcopy(sdev->revision+2, inq [all...] |
/freebsd-9.3-release/sys/dev/mly/ |
H A D | mly.c | 2306 struct scsi_inquiry_data *inq = (struct scsi_inquiry_data *)csio->data_ptr; local 2332 padstr(inq->vendor, mly_describe_code(mly_table_device_type, btl->mb_type), 8); 2333 padstr(inq->product, mly_describe_code(mly_table_device_state, btl->mb_state), 16); 2334 padstr(inq->revision, "", 4);
|