/src/sys/dev/scsipi/ |
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");
|
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->removable ? "removable" : "fixed" 882 struct scsipi_inquiry_data inqbuf; local in function:scsi_probe_device [all...] |
/src/tests/dev/scsipi/libscsitest/ |
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->revision, "0.00", sizeof inqbuf->revision) [all...] |
/src/sys/arch/usermode/dev/ |
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/luna68k/stand/boot/ |
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;
|
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.vendor_id, 28) [all...] |
/src/sys/arch/hp300/stand/common/ |
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/sys/dev/usb/ |
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/bebox/stand/boot/ |
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->product, 16) [all...] |
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->product, sizeof(product) - 1) [all...] |
/src/sys/arch/prep/stand/boot/ |
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->product, 16) [all...] |
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/dev/ic/ |
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.revision) [all...] |
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/arch/evbppc/wii/dev/ |
di.c | 298 struct scsipi_inquiry_data *inqbuf; local in function:di_transfer_complete 316 inqbuf = (struct scsipi_inquiry_data *)xs->data; 329 memset(inqbuf, 0, sizeof(*inqbuf)); 330 inqbuf->device = T_CDROM; 331 inqbuf->dev_qual2 = SID_REMOVABLE; 332 strncpy(inqbuf->vendor, "NINTENDO", sizeof(inqbuf->vendor)); 333 snprintf(inqbuf->product, sizeof(inqbuf->product), "%08x" [all...] |
/src/sbin/scsictl/ |
scsictl.c | 719 struct scsipi_inquiry_data inqbuf; local in function:device_identify 734 char vendor[(sizeof(inqbuf.vendor) * 4) + 1], 735 product[(sizeof(inqbuf.product) * 4) + 1], 736 revision[(sizeof(inqbuf.revision) * 4) + 1], 749 memset(&inqbuf, 0, sizeof(inqbuf)); 752 cmd.length = sizeof(inqbuf); 754 scsi_command(fd, &cmd, sizeof(cmd), &inqbuf, sizeof(inqbuf), 757 scsi_strvis(vendor, sizeof(vendor), inqbuf.vendor [all...] |
/src/sbin/atactl/ |
atactl.c | 178 static const struct ataparams *inqbuf; /* inquiry buffer */ variable in typeref:typename:const struct ataparams * 179 static char model[sizeof(inqbuf->atap_model)+1]; 180 static char revision[sizeof(inqbuf->atap_revision)+1]; 181 static char serial[sizeof(inqbuf->atap_serial)+1]; 1166 struct ataparams inqbuf; member in union:fillataparams::__anone032833a050a 1185 inqbuf = &inbuf.inqbuf; 1202 if (inqbuf->atap_cmd_def != 0 && inqbuf->atap_cmd_def != 0xffff) { 1203 if (!(inqbuf->atap_cmd_set1 & WDC_CMD1_SMART)) [all...] |
/src/usr.sbin/sysinst/ |
disks.c | 245 struct scsipi_inquiry_data inqbuf; local in function:get_descr_scsi 249 char vendor[(sizeof(inqbuf.vendor) * 4) + 1], 250 product[(sizeof(inqbuf.product) * 4) + 1], 251 revision[(sizeof(inqbuf.revision) * 4) + 1]; 254 memset(&inqbuf, 0, sizeof(inqbuf)); 259 cmd.length = sizeof(inqbuf); 262 req.databuf = &inqbuf; 263 req.datalen = sizeof(inqbuf); 272 scsi_strvis(vendor, sizeof(vendor), inqbuf.vendor 296 struct ataparams inqbuf; member in union:get_descr_ata::__anon9eb4b24b010a 298 struct ataparams *inqbuf = &inbuf.inqbuf; local in function:get_descr_ata [all...] |
/src/sys/dev/pci/ |
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;
|