Searched defs:inq (Results 1 - 25 of 50) sorted by relevance

12

/illumos-gate/usr/src/cmd/luxadm/
H A Ddiag.c83 L_inquiry inq; local
97 if (g_get_inquiry(ses_path, &inq)) {
100 if ((strncmp((char *)&inq.inq_pid[0], DAK_OFF_NAME,
102 (strncmp((char *)&inq.inq_pid[0], DAK_PROD_STR,
H A Dlux_util.c746 print_inq_data(char *arg_path, char *path, L_inquiry inq, uchar_t *serial, argument
851 if (inq.inq_ansi < 3) {
858 if (inq.inq_len < 11) {
863 print_chars(inq.inq_vid, sizeof (inq.inq_vid), 0);
866 if (inq.inq_len < 27) {
870 print_chars(inq.inq_pid, sizeof (inq.inq_pid), 0);
873 if (inq.inq_len < 31) {
877 print_chars(inq
[all...]
H A Dfchba.c71 /* Structure to handle the inq. page 0x80 serial number */
526 L_inquiry inq; local
529 uint32_t inquirySize = sizeof (inq), senseSize = sizeof (sense);
610 memset(&inq, 0, sizeof (inq));
616 &inq, &inquirySize,
620 inq.inq_dtype = 0x1f;
622 tmpPath->dtype = inq.inq_dtype;
686 L_inquiry inq; local
691 uint32_t inquirySize = sizeof (inq), senseSiz
893 L_inquiry inq; local
1513 L_inquiry inq; local
[all...]
H A Dhotplug.c196 L_inquiry inq; local
200 if ((err = g_get_inquiry(path_phys, &inq)) != 0) {
207 if (inq.inq_port) {
226 if (((inq.inq_port) &&
229 ((!inq.inq_port) &&
503 L_inquiry inq; local
740 if ((err = g_get_inquiry(physpath, &inq)) != 0) {
745 enc_type = l_get_enc_type(inq);
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/
H A Dtpgs_tape.c44 struct scsi_inquiry *inq, void **ctpriv);
96 tpgs_tape_device_probe(struct scsi_device *sd, struct scsi_inquiry *inq, argument
106 inq->inq_vid));
108 if (inq->inq_tpgs == TPGS_FAILOVER_NONE) {
112 } else if (inq->inq_dtype != DTYPE_SEQUENTIAL) {
123 } else if (inq->inq_tpgs == TPGS_FAILOVER_IMPLICIT) {
129 } else if (inq->inq_tpgs == TPGS_FAILOVER_EXPLICIT) {
135 } else if (inq->inq_tpgs == TPGS_FAILOVER_BOTH) {
144 "Unknown tpgs_bits: %x", inq->inq_tpgs));
158 ": %s\n", inq
[all...]
H A Dtpgs.c58 std_device_probe(struct scsi_device *sd, struct scsi_inquiry *inq, argument
64 inq->inq_vid));
66 if (inq->inq_tpgs == TPGS_FAILOVER_NONE) {
72 if (inq->inq_dtype == DTYPE_SEQUENTIAL) {
86 if (inq->inq_tpgs == TPGS_FAILOVER_IMPLICIT) {
93 if (inq->inq_tpgs == TPGS_FAILOVER_EXPLICIT) {
100 if (inq->inq_tpgs == TPGS_FAILOVER_BOTH) {
109 "Unknown tpgs_bits: %x", inq->inq_tpgs));
H A Dasym_sun.c438 struct scsi_inquiry *inq; local
467 inq = (struct scsi_inquiry *)bp->b_un.b_addr;
476 if (inq->inq_port == 0) {
/illumos-gate/usr/src/cmd/fcinfo/
H A DprintAttrs.c307 printLUNInfo(struct scsi_inquiry *inq, HBA_UINT32 scsiLUN, char *devpath) { argument
310 inq->inq_vid[0],
311 inq->inq_vid[1],
312 inq->inq_vid[2],
313 inq->inq_vid[3],
314 inq->inq_vid[4],
315 inq->inq_vid[5],
316 inq->inq_vid[6],
317 inq->inq_vid[7]);
319 inq
[all...]
H A Dfcinfo-list.c497 struct scsi_inquiry inq; local
538 memset(&inq, 0, sizeof (struct scsi_inquiry));
548 &inq, &responseSize,
555 strcpy(inq.inq_vid, "Unknown");
556 strcpy(inq.inq_pid, "Unknown");
566 printLUNInfo(&inq,
576 printLUNInfo(&inq, lunNum, "Unknown");
583 printLUNInfo(&inq, lunNum, "Unknown");
1058 struct scsi_inquiry inq; local
1094 memset(&inq,
[all...]
/illumos-gate/usr/src/lib/storage/liba5k/common/
H A Ddiag.c415 L_inquiry inq; local
636 if (g_get_inquiry(ses_path, &inq)) {
642 if ((strncmp((char *)&inq.inq_pid[0], DAK_OFF_NAME,
644 (strncmp((char *)&inq.inq_pid[0], DAK_PROD_STR,
H A Dlhot.c870 L_inquiry inq; local
879 if (!g_get_inquiry(physpath, &inq)) {
880 enc_type = l_get_enc_type(inq);
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci_tpgs.c251 struct scsi_inquiry inq; local
255 bp->b_un.b_addr = (caddr_t)&inq;
257 bp->b_bcount = sizeof (inq);
268 pkt->pkt_cdbp[4] = sizeof (inq);
279 if (inq.inq_tpgs == TPGS_FAILOVER_NONE) {
285 if (inq.inq_tpgs == TPGS_FAILOVER_IMPLICIT) {
287 } else if (inq.inq_tpgs == TPGS_FAILOVER_EXPLICIT) {
289 } else if (inq.inq_tpgs == TPGS_FAILOVER_BOTH) {
294 inq.inq_tpgs, *mode));
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_lun.c48 uint16_t lun_num, iscsi_lun_t *ilp, struct scsi_inquiry *inq);
50 uint16_t lun_num, iscsi_lun_t *ilp, struct scsi_inquiry *inq);
69 struct scsi_inquiry *inq, char *guid)
124 ilp->lun_type = inq->inq_dtype & DTYPE_MASK;
127 bcopy(inq->inq_vid, ilp->lun_vid, sizeof (inq->inq_vid));
128 bcopy(inq->inq_pid, ilp->lun_pid, sizeof (inq->inq_pid));
157 rtn = iscsi_lun_virt_create(isp, lun_num, ilp, inq);
161 rtn = iscsi_lun_phys_create(isp, lun_num, ilp, inq);
68 iscsi_lun_create(iscsi_sess_t *isp, uint16_t lun_num, uint8_t lun_addr_type, struct scsi_inquiry *inq, char *guid) argument
297 iscsi_lun_virt_create(iscsi_sess_t *isp, uint16_t lun_num, iscsi_lun_t *ilp, struct scsi_inquiry *inq) argument
408 iscsi_lun_phys_create(iscsi_sess_t *isp, uint16_t lun_num, iscsi_lun_t *ilp, struct scsi_inquiry *inq) argument
[all...]
H A Discsi_sess.c2070 uchar_t *inq; local
2088 inq = kmem_zalloc(ISCSI_MAX_INQUIRY_BUF_SIZE, KM_SLEEP);
2135 ucmd.uscsi_bufaddr = (char *)inq;
2176 if ((inq[0] & SCSI_INQUIRY_PQUAL_MASK) != 0x00) {
2187 lun_type = ((struct scsi_inquiry *)inq)->inq_dtype & DTYPE_MASK;
2246 inq, inq_len, NULL, 0, inq83, inq83_len, &devid) ==
2284 (struct scsi_inquiry *)inq, guid);
2295 kmem_free(inq, ISCSI_MAX_INQUIRY_BUF_SIZE);
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_init.c102 read_inquiry_page(scsi_link_t *slink, struct scsi_inquiry *inq) argument
111 (caddr_t)inq, sizeof (*inq)) ? -1 : 0);
/illumos-gate/usr/src/cmd/format/
H A Dmenu_scsi.c672 struct scsi_inquiry *inq; local
675 inq = (struct scsi_inquiry *)inqbuf;
689 dump(" ", inqbuf, inq->inq_len + 5, HEX_ASCII);
695 print_buf(inq->inq_vid, sizeof (inq->inq_vid));
697 print_buf(inq->inq_pid, sizeof (inq->inq_pid));
699 print_buf(inq->inq_revision, sizeof (inq->inq_revision));
701 fmt_print("\n%s%s\n", *p++, inq
[all...]
H A Dmenu_command.c798 struct scsi_inquiry *inq; local
939 inq = (struct scsi_inquiry *)rawbuf;
940 protect = inq->inq_protect;
2342 struct scsi_inquiry *inq; local
2346 inq = (struct scsi_inquiry *)inqbuf;
2353 print_buf(inq->inq_vid, sizeof (inq->inq_vid));
2355 print_buf(inq->inq_pid, sizeof (inq->inq_pid));
2357 print_buf(inq
[all...]
/illumos-gate/usr/src/cmd/cdrw/
H A Dmmc.c54 inquiry(int fd, uchar_t *inq) argument
64 scmd->uscsi_bufaddr = (char *)inq;
/illumos-gate/usr/src/cmd/hal/probing/storage/
H A Dprobe-storage.c220 struct scsi_inquiry inq; local
227 (void) memset((void *) &inq, 0, sizeof (inq));
231 FORMG0COUNT(&cdb, sizeof (inq));
234 ucmd.uscsi_bufaddr = (caddr_t) & inq;
235 ucmd.uscsi_buflen = sizeof (inq);
243 if ((s = rtrim_copy(inq.inq_vid, sizeof (inq.inq_vid))) != NULL) {
247 if ((s = rtrim_copy(inq.inq_pid, sizeof (inq
[all...]
/illumos-gate/usr/src/uts/common/io/1394/targets/scsa1394/
H A Dsbp2_driver.c192 scsa1394_sbp2_fake_inquiry(scsa1394_state_t *sp, struct scsi_inquiry *inq) argument
198 bzero(inq, sizeof (struct scsi_inquiry));
200 inq->inq_dtype = DTYPE_DIRECT;
201 inq->inq_rmb = 1;
202 inq->inq_ansi = 2;
203 inq->inq_rdf = RDF_SCSI2;
204 inq->inq_len = sizeof (struct scsi_inquiry) - 4;
206 (void) memset(inq->inq_vid, ' ', sizeof (inq->inq_vid));
207 (void) memset(inq
[all...]
/illumos-gate/usr/src/stand/lib/sock/
H A Dsocket_impl.h133 struct inetgram *inq; /* input queue */ member in struct:inetboot_socket
/illumos-gate/usr/src/common/devid/
H A Ddevid_scsi.c109 static void encode_serialnum(int version, uchar_t *inq, uchar_t *inq80,
111 static void encode_sun_serialnum(int version, uchar_t *inq,
127 * inq - standard inquiry buffer
149 uchar_t *inq, /* IN */
161 struct scsi_inquiry *inq_std = (struct scsi_inquiry *)inq;
253 (inq != NULL) &&
256 encode_serialnum(version, inq, inq80,
268 (inq != NULL)) {
269 encode_sun_serialnum(version, inq, inq_len,
894 * inq
143 ddi_devid_scsi_encode( int version, char *driver_name, uchar_t *inq, size_t inq_len, uchar_t *inq80, size_t inq80_len, uchar_t *inq83, size_t inq83_len, ddi_devid_t *devid) argument
903 encode_serialnum(int version, uchar_t *inq, uchar_t *inq80, size_t inq80_len, uchar_t **id, size_t *id_len, ushort_t *id_type) argument
1007 encode_sun_serialnum(int version, uchar_t *inq, size_t inq_len, uchar_t **id, size_t *id_len, ushort_t *id_type) argument
[all...]
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_cs.c691 struct scsi_inquiry inq; local
694 uint32_t inquirySize = sizeof (inq),
746 inq.inq_dtype = DTYPE_UNKNOWN;
787 *(HBA_WWN *)(pwwn), lun, 0, 0, &inq, &inquirySize,
795 peri_qual = inq.inq_dtype & FP_PERI_QUAL_MASK;
812 *(HBA_WWN *)(pwwn), lun, 0, 0, &inq, &inquirySize,
818 inq.inq_dtype = DTYPE_UNKNOWN;
852 if (((inq.inq_dtype & DTYPE_MASK) == DTYPE_UNKNOWN) &&
877 inq.inq_dtype, errstring)) != FPCFGA_OK) {
991 /* when inq faile
[all...]
/illumos-gate/usr/src/cmd/lvm/rpc.metamhd/
H A Dmhd_drive.c642 struct scsi_inquiry inq; local
671 (void) memset(&inq, 0, sizeof (inq));
673 cdb.g0_count0 = sizeof (inq);
676 ucmd.uscsi_bufaddr = (caddr_t)&inq;
677 ucmd.uscsi_buflen = sizeof (inq);
693 for (p = inq.inq_pid + sizeof (inq.inq_pid) - 1; p != inq.inq_pid;
702 if (strncmp(inq
768 struct scsi_inquiry inq; local
[all...]
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dsgen.c574 struct scsi_inquiry *inq; local
601 inq = scsidevp->sd_inq; /* valid while device is probed... */
602 devtype = inq->inq_dtype;
661 if ((inq->inq_rdf == RDF_SCSI2) &&
662 (inq->inq_wbus16 || inq->inq_wbus32))

Completed in 145 milliseconds

12