| /src/sbin/atactl/ |
| H A D | atactl.c | 179 static const struct ataparams *inqbuf; /* inquiry buffer */ variable in typeref:typename:const struct ataparams * 180 static char model[sizeof(inqbuf->atap_model)+1]; 181 static char revision[sizeof(inqbuf->atap_revision)+1]; 182 static char serial[sizeof(inqbuf->atap_serial)+1]; 1167 struct ataparams inqbuf; member in union:fillataparams::__anon58db79a0050a 1186 inqbuf = &inbuf.inqbuf; 1203 if (inqbuf->atap_cmd_def != 0 && inqbuf->atap_cmd_def != 0xffff) { 1204 if (!(inqbuf [all...] |
| /src/tests/dev/scsipi/libscsitest/ |
| H A D | scsitest.c | 121 struct scsipi_inquiry_data *inqbuf = (void *)xs->data; local in function:scsitest_request 123 memset(inqbuf, 0, sizeof(*inqbuf)); 124 inqbuf->device = T_CDROM; 125 inqbuf->dev_qual2 = SID_REMOVABLE; 126 strncpy(inqbuf->vendor, "RUMPHOBO", sizeof inqbuf->vendor); 127 strncpy(inqbuf->product, "It's a LIE", sizeof inqbuf->product); 128 strncpy(inqbuf [all...] |
| /src/sys/dev/scsipi/ |
| H A D | scsipiconf.c | 172 scsipi_inqmatch(struct scsipi_inquiry_pattern *inqbuf, const void *base, argument 179 type = inqbuf->type; 188 if (inqbuf->removable != match->removable) 192 if (memcmp(inqbuf->vendor, match->vendor, len)) 196 if (memcmp(inqbuf->product, match->product, len)) 200 if (memcmp(inqbuf->revision, match->revision, len))
|
| H A D | scsiconf.c | 341 struct scsipi_inquiry_data inqbuf; local in function:scsi_report_luns 358 if ((error = scsipi_inquire(periph, &inqbuf, 361 periph->periph_version = inqbuf.version & SID_ANSII; 555 struct scsipi_inquiry_pattern *inqbuf; local in function:scsibusprint 564 inqbuf = &sa->sa_inqbuf; 568 type = inqbuf->type & SID_TYPE; 572 strnvisx(vendor, sizeof(vendor), inqbuf->vendor, 8, 574 strnvisx(product, sizeof(product), inqbuf->product, 16, 576 strnvisx(revision, sizeof(revision), inqbuf->revision, 4, 581 inqbuf 882 struct scsipi_inquiry_data inqbuf; local in function:scsi_probe_device [all...] |
| H A D | atapiconf.c | 307 struct scsipi_inquiry_pattern *inqbuf; local in function:atapibusprint 313 inqbuf = &sa->sa_inqbuf; 315 dtype = scsipi_dtype(inqbuf->type & SID_TYPE); 317 sa->sa_periph->periph_target, inqbuf->vendor, 318 inqbuf->product, inqbuf->revision, dtype, 319 inqbuf->removable ? "removable" : "fixed");
|
| H A D | scsipi_base.c | 1202 scsipi_inquire(struct scsipi_periph *periph, struct scsipi_inquiry_data *inqbuf, argument 1229 (void *)inqbuf, SCSIPI_INQUIRY_LENGTH_SCSI2, retries, 1232 inqbuf->additional_length > SCSIPI_INQUIRY_LENGTH_SCSI2 - 4) { 1233 if (scsipi_inquiry3_ok(inqbuf)) { 1235 printf("inquire: addlen=%d, retrying\n", inqbuf->additional_length); 1239 (void *)inqbuf, SCSIPI_INQUIRY_LENGTH_SCSI3, retries, 1256 inqbuf->device = (error == EINVAL ? 1259 inqbuf->dev_qual2 = 0; 1260 inqbuf->version = 0; 1261 inqbuf [all...] |
| H A D | ch.c | 1238 ch_get_quirks(struct ch_softc *sc, struct scsipi_inquiry_pattern *inqbuf) argument 1245 match = scsipi_inqmatch(inqbuf, chquirks,
|
| H A D | st.c | 482 st_identify_drive(struct st_softc *st, struct scsipi_inquiry_pattern *inqbuf) argument 487 finger = scsipi_inqmatch(inqbuf,
|
| /src/sys/arch/usermode/dev/ |
| H A D | vatapi.c | 202 struct scsipi_inquiry_data inqbuf; local in function:vatapi_probe_device 225 memset(&inqbuf, 0, sizeof(inqbuf)); 226 if (scsipi_inquire(periph, &inqbuf, XS_CTL_DISCOVERY) != 0) { 233 scsipi_strvis(vendor, 33, inqbuf.vendor, 8); 234 scsipi_strvis(product, 65, inqbuf.product, 16); 235 scsipi_strvis(revision, 17, inqbuf.revision, 4); 239 sa.sa_inqbuf.type = inqbuf.device; 240 sa.sa_inqbuf.removable = inqbuf.dev_qual2 & SID_REMOVABLE ?
|
| /src/sys/arch/hp300/stand/common/ |
| H A D | sd.c | 89 struct scsi_inquiry inqbuf; local in function:sdinit 110 memset(&inqbuf, 0, sizeof(inqbuf)); 111 stat = scsi_inquiry(ctlr, unit, (u_char *)&inqbuf, sizeof(inqbuf)); 114 ss->sc_type = inqbuf.type & SID_TYPE;
|
| /src/sbin/scsictl/ |
| H A D | scsictl.c | 720 struct scsipi_inquiry_data inqbuf; local in function:device_identify 735 char vendor[(sizeof(inqbuf.vendor) * 4) + 1], 736 product[(sizeof(inqbuf.product) * 4) + 1], 737 revision[(sizeof(inqbuf.revision) * 4) + 1], 750 memset(&inqbuf, 0, sizeof(inqbuf)); 753 cmd.length = sizeof(inqbuf); 755 scsi_command(fd, &cmd, sizeof(cmd), &inqbuf, sizeof(inqbuf), 758 scsi_strvis(vendor, sizeof(vendor), inqbuf [all...] |
| /src/sys/arch/bebox/stand/boot/ |
| H A D | sd.c | 571 struct scsipi_inquiry_data *inqbuf; local in function:sdopen 600 inqbuf = (struct scsipi_inquiry_data *)buf; 602 sd->sc_type = inqbuf->device & SID_TYPE; 607 if ((inqbuf->version & SID_ANSII) >= 2) { 608 // if ((inqbuf->flags3 & SID_CmdQue) != 0) 610 if ((inqbuf->flags3 & SID_Sync) != 0) 614 if ((inqbuf->version & SID_ANSII) >= 3) { 620 switch (inqbuf->flags4 & SID_Clocking) { 628 (inqbuf->dev_qual2 & SID_REMOVABLE) ? FLAGS_REMOVABLE : 0; 644 strncpy(sd->sc_label.d_typename, inqbuf [all...] |
| H A D | siop.c | 791 struct scsipi_inquiry_data *inqbuf = local in function:_scsi_inquire 799 memset(inqbuf, 0, sizeof(*inqbuf)); 807 xs.data = (void *)inqbuf; 817 memcpy(buf, inqbuf, buflen); 1054 struct scsipi_inquiry_data *inqbuf; local in function:scsi_probe 1058 product[sizeof(inqbuf->product) + 1]; 1068 inqbuf = (struct scsipi_inquiry_data *)buf; 1069 device = inqbuf->device & SID_TYPE; 1078 strncpy(product, inqbuf [all...] |
| /src/sys/arch/prep/stand/boot/ |
| H A D | sd.c | 571 struct scsipi_inquiry_data buf, *inqbuf = &buf; local in function:sdopen 600 inqbuf = &buf; 602 sd->sc_type = inqbuf->device & SID_TYPE; 607 if ((inqbuf->version & SID_ANSII) >= 2) { 608 // if ((inqbuf->flags3 & SID_CmdQue) != 0) 610 if ((inqbuf->flags3 & SID_Sync) != 0) 614 if ((inqbuf->version & SID_ANSII) >= 3) { 620 switch (inqbuf->flags4 & SID_Clocking) { 628 (inqbuf->dev_qual2 & SID_REMOVABLE) ? FLAGS_REMOVABLE : 0; 644 strncpy(sd->sc_label.d_typename, inqbuf [all...] |
| H A D | siop.c | 770 struct scsipi_inquiry_data *inqbuf = local in function:_scsi_inquire 778 memset(inqbuf, 0, sizeof(*inqbuf)); 786 xs.data = (void *)inqbuf; 796 memcpy(buf, inqbuf, buflen); 1015 struct scsipi_inquiry_data buf, *inqbuf = &buf; local in function:scsi_probe 1018 char product[sizeof(inqbuf->product) + 1]; 1031 device = inqbuf->device & SID_TYPE; 1040 strncpy(product, inqbuf->product, sizeof(product) - 1);
|
| /src/sys/arch/luna68k/stand/boot/ |
| H A D | sc.c | 179 * sensebuf and inqbuf may be uninitialized for some cases. 191 struct scsi_inquiry inqbuf; local in function:scident 194 { CMD_INQUIRY, 0, 0, 0, sizeof(inqbuf), 0 } 221 if (scsi_immed_command(ctlr, target, lun, &inq, (uint8_t *)&inqbuf, 222 sizeof(inqbuf)) || 228 switch (inqbuf.type) { 239 *inqout = inqbuf; 254 struct scsi_inquiry inqbuf; local in function:scprobe 259 if (!scident(hs->sc_ctlr, target, lun, &inqbuf, capbuf)) 266 memcpy(idstr, &inqbuf [all...] |
| H A D | sd.c | 105 struct scsi_inquiry inqbuf; local in function:sdident 109 if (!scident(sc->sc_ctlr, sc->sc_tgt, sc->sc_lun, &inqbuf, capbuf)) 123 return inqbuf.type;
|
| /src/sys/dev/usb/ |
| H A D | umass_scsipi.c | 537 struct scsipi_inquiry_data inqbuf; local in function:umass_atapi_probe_device 559 memset(&inqbuf, 0, sizeof(inqbuf)); 560 if (scsipi_inquire(periph, &inqbuf, XS_CTL_DISCOVERY) != 0) { 566 strnvisx(vendor, sizeof(vendor), inqbuf.vendor, 8, 568 strnvisx(product, sizeof(product), inqbuf.product, 16, 570 strnvisx(revision, sizeof(revision), inqbuf.revision, 4, 574 sa.sa_inqbuf.type = inqbuf.device; 575 sa.sa_inqbuf.removable = inqbuf.dev_qual2 & SID_REMOVABLE ?
|
| /src/sys/arch/evbppc/nintendo/dev/ |
| H A D | di.c | 299 struct scsipi_inquiry_data *inqbuf; local in function:di_transfer_complete 317 inqbuf = (struct scsipi_inquiry_data *)xs->data; 330 memset(inqbuf, 0, sizeof(*inqbuf)); 331 inqbuf->device = T_CDROM; 332 inqbuf->dev_qual2 = SID_REMOVABLE; 333 strncpy(inqbuf->vendor, "NINTENDO", sizeof(inqbuf->vendor)); 334 snprintf(inqbuf->product, sizeof(inqbuf [all...] |
| /src/usr.sbin/sysinst/ |
| H A D | disks.c | 246 struct scsipi_inquiry_data inqbuf; local in function:get_descr_scsi 250 char vendor[(sizeof(inqbuf.vendor) * 4) + 1], 251 product[(sizeof(inqbuf.product) * 4) + 1], 252 revision[(sizeof(inqbuf.revision) * 4) + 1]; 255 memset(&inqbuf, 0, sizeof(inqbuf)); 260 cmd.length = sizeof(inqbuf); 263 req.databuf = &inqbuf; 264 req.datalen = sizeof(inqbuf); 273 scsi_strvis(vendor, sizeof(vendor), inqbuf 297 struct ataparams inqbuf; member in union:get_descr_ata::__anon961e6bb1010a 299 struct ataparams *inqbuf = &inbuf.inqbuf; local in function:get_descr_ata [all...] |
| /src/sys/dev/ic/ |
| H A D | mpt_netbsd.c | 1826 struct scsipi_inquiry_data inqbuf; local in function:mpt_bio_ioctl_vol 1853 memset(&inqbuf, 0, sizeof(inqbuf)); 1854 if (scsipi_inquire(periph, &inqbuf, 1857 inqbuf.vendor, sizeof(inqbuf.vendor), 1860 inqbuf.product, sizeof(inqbuf.product), 1863 inqbuf.revision, sizeof(inqbuf [all...] |
| H A D | mfi.c | 2144 struct scsipi_inquiry_data *inqbuf; local in function:mfi_ioctl_disk 2241 inqbuf = (struct scsipi_inquiry_data *)&pd->mpd_inq_data; 2242 memcpy(vend, inqbuf->vendor, sizeof vend - 1); 2433 struct scsipi_inquiry_data *inqbuf; local in function:mfi_bio_hs 2505 inqbuf = (struct scsipi_inquiry_data *)&pd->mpd_inq_data; 2506 memcpy(vend, inqbuf->vendor, sizeof(vend) - 1);
|
| /src/sys/dev/pci/ |
| H A D | mfii.c | 3209 struct scsipi_inquiry_data *inqbuf; local in function:mfii_ioctl_disk 3329 inqbuf = (struct scsipi_inquiry_data *)&pd->mpd_inq_data; 3330 vendp = inqbuf->vendor; 3813 struct scsipi_inquiry_data *inqbuf; local in function:mfii_bio_hs 3886 inqbuf = (struct scsipi_inquiry_data *)&pd->mpd_inq_data; 3887 vendp = inqbuf->vendor;
|