HomeSort by: relevance | last modified time | path
    Searched defs:inqbuf (Results 1 - 19 of 19) sorted by relevancy

  /src/tests/dev/scsipi/libscsitest/
scsitest.c 121 struct scsipi_inquiry_data *inqbuf = (void *)xs->data; local
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/hp300/stand/common/
sd.c 89 struct scsi_inquiry inqbuf; local
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/arch/luna68k/stand/boot/
sd.c 105 struct scsi_inquiry inqbuf; local
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
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
259 if (!scident(hs->sc_ctlr, target, lun, &inqbuf, capbuf))
266 memcpy(idstr, &inqbuf.vendor_id, 28)
    [all...]
  /src/sys/arch/usermode/dev/
vatapi.c 202 struct scsipi_inquiry_data inqbuf; local
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/dev/scsipi/
atapiconf.c 307 struct scsipi_inquiry_pattern *inqbuf; local
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
358 if ((error = scsipi_inquire(periph, &inqbuf,
361 periph->periph_version = inqbuf.version & SID_ANSII;
555 struct scsipi_inquiry_pattern *inqbuf; local
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
    [all...]
  /src/sys/arch/bebox/stand/boot/
sd.c 571 struct scsipi_inquiry_data *inqbuf; local
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
799 memset(inqbuf, 0, sizeof(*inqbuf));
807 xs.data = (void *)inqbuf;
817 memcpy(buf, inqbuf, buflen);
1054 struct scsipi_inquiry_data *inqbuf; local
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
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
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
1018 char product[sizeof(inqbuf->product) + 1];
1031 device = inqbuf->device & SID_TYPE;
1040 strncpy(product, inqbuf->product, sizeof(product) - 1);
  /src/sys/dev/usb/
umass_scsipi.c 537 struct scsipi_inquiry_data inqbuf; local
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/
di.c 299 struct scsipi_inquiry_data *inqbuf; local
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->product), "%08x"
    [all...]
  /src/sys/dev/ic/
mpt_netbsd.c 1826 struct scsipi_inquiry_data inqbuf; local
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
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
2505 inqbuf = (struct scsipi_inquiry_data *)&pd->mpd_inq_data;
2506 memcpy(vend, inqbuf->vendor, sizeof(vend) - 1);
  /src/sbin/scsictl/
scsictl.c 720 struct scsipi_inquiry_data inqbuf; local
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.vendor
    [all...]
  /src/sbin/atactl/
atactl.c 179 static const struct ataparams *inqbuf; /* inquiry buffer */ variable in typeref: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:__anon632
1186 inqbuf = &inbuf.inqbuf;
1203 if (inqbuf->atap_cmd_def != 0 && inqbuf->atap_cmd_def != 0xffff) {
1204 if (!(inqbuf->atap_cmd_set1 & WDC_CMD1_SMART))
    [all...]
  /src/usr.sbin/sysinst/
disks.c 246 struct scsipi_inquiry_data inqbuf; local
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.vendor
297 struct ataparams inqbuf; member in union:__anon8580
299 struct ataparams *inqbuf = &inbuf.inqbuf; local
    [all...]
  /src/sys/dev/pci/
mfii.c 3209 struct scsipi_inquiry_data *inqbuf; local
3329 inqbuf = (struct scsipi_inquiry_data *)&pd->mpd_inq_data;
3330 vendp = inqbuf->vendor;
3813 struct scsipi_inquiry_data *inqbuf; local
3886 inqbuf = (struct scsipi_inquiry_data *)&pd->mpd_inq_data;
3887 vendp = inqbuf->vendor;

Completed in 43 milliseconds