Searched refs:inq (Results 1 - 25 of 64) sorted by relevance

123

/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/cmd/luxadm/
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 Dg_adm.c264 L_inquiry inq; local
332 if (err = g_get_inquiry(path_phys, &inq)) {
351 print_inq_data(argv[path_index], path_phys, inq,
383 if (err = g_get_inquiry(path_phys, &inq)) {
402 print_inq_data(argv[path_index], path_phys, inq,
433 if (err = g_get_inquiry(path_phys, &inq)) {
450 print_inq_data(argv[path_index], path_phys, inq,
547 L_inquiry inq, ses_inq; local
641 if ((opnerr = g_get_inquiry(path_phys, &inq)) != 0) {
656 } else if (!g_enclDiskChk((char *)inq
796 L_inquiry inq; local
898 L_inquiry inq; local
997 L_inquiry inq; local
1692 L_inquiry inq; local
1858 L_inquiry inq; local
2052 L_inquiry inq; local
2231 L_inquiry inq; local
3853 display_fc_disk(struct path_struct *path_struct, char *ses_path, gfc_map_t *map, L_inquiry inq, int verbose) argument
4359 display_disk_info(L_inquiry inq, L_disk_state l_disk_state, Path_struct *path_struct, struct mode_page *pg_hdr, int mode_data_avail, char *name_buf, int options) argument
6096 L_inquiry inq; local
[all...]
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,
/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...]
/illumos-gate/usr/src/stand/lib/inet/
H A Dudp.c110 while ((igp = sockets[index].inq) != NULL) {
116 del_gram(&sockets[index].inq, igp, TRUE);
133 del_gram(&sockets[index].inq, igp, TRUE);
145 del_gram(&sockets[index].inq, igp, TRUE);
150 del_gram(&sockets[index].inq, igp, FALSE);
154 add_grams(&sockets[index].inq, ugp);
H A Dipv4.c709 while ((igp = sockets[index].inq) != NULL) {
715 del_gram(&sockets[index].inq, igp, TRUE);
722 del_gram(&sockets[index].inq, igp, TRUE);
729 del_gram(&sockets[index].inq, igp, TRUE);
736 del_gram(&sockets[index].inq, igp, TRUE);
749 del_gram(&sockets[index].inq, igp, TRUE);
763 del_gram(&sockets[index].inq, igp, TRUE);
771 del_gram(&sockets[index].inq, igp, TRUE);
787 del_gram(&sockets[index].inq, igp, FALSE);
800 del_gram(&sockets[index].inq, ig
[all...]
/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/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...]
/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/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/storage/liba5k/common/
H A Dmon.c810 L_inquiry inq; local
834 if (err = g_get_inquiry(ses_path, &inq)) {
837 if (l_get_enc_type(inq) != SENA_ENC_TYPE) {
1188 L_inquiry inq; local
1195 (void) memset(&inq, 0, sizeof (inq));
1201 (uchar_t *)&inq, sizeof (struct l_inquiry_struct))) {
1205 if ((strstr((char *)inq.inq_pid, ENCLOSURE_PROD_ID) == 0) &&
1206 (!(strncmp((char *)inq.inq_vid, "SUN ",
1207 sizeof (inq
1316 L_inquiry inq; local
1375 L_inquiry inq; local
1484 L_inquiry inq; local
1805 L_inquiry inq; local
1940 L_inquiry inq; local
2974 L_inquiry inq; local
3817 L_inquiry inq; local
4356 L_inquiry inq; local
4571 L_inquiry inq; local
5030 l_get_enc_type(L_inquiry inq) argument
[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/cmd/smserverd/
H A Dsmediad.c259 static int32_t get_device_type_scsi(int32_t fd, struct scsi_inquiry *inq);
510 get_device_type_scsi(int32_t fd, struct scsi_inquiry *inq) argument
518 (void) memset((void *) inq, 0, sizeof (struct scsi_inquiry));
525 ucmd.uscsi_bufaddr = (caddr_t)inq;
537 dev_type = get_device_type(inq->inq_vid);
610 struct scsi_inquiry inq; local
629 (void) memset((void *) &inq, 0, sizeof (inq));
634 cdb[4] = sizeof (inq);
637 ucmd.uscsi_bufaddr = (caddr_t)&inq;
855 struct scsi_inquiry inq; local
1168 struct scsi_inquiry inq; local
1699 struct scsi_inquiry inq; local
1965 struct scsi_inquiry inq; local
[all...]
/illumos-gate/usr/src/lib/libdevid/
H A Dlibdevid.h45 extern int devid_scsi_encode(int version, char *driver_name, uchar_t *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/
H A Demul64_bsd.c367 struct scsi_inquiry inq; local
374 if (sp->cmd_count < sizeof (inq)) {
376 emul64_name, (int)sizeof (inq));
403 (void) bzero((void *)&inq, sizeof (inq));
405 inq.inq_dtype = pqdtype;
406 inq.inq_ansi = 2;
407 inq.inq_rdf = 2;
408 inq.inq_len = sizeof (inq)
[all...]
/illumos-gate/usr/src/stand/lib/sock/
H A Dsocket.c451 nuke_grams(&sockets[sock_id].inq);
454 nuke_grams(&sockets[sock_id].inq);
502 nuke_grams(&sockets[sock_id].inq);
828 if (sockets[sock_id].inq == NULL) {
845 /* Remove unknown inetgrams from the head of inq. Can this happen? */
846 while ((icp = sockets[sock_id].inq) != NULL) {
854 del_gram(&sockets[sock_id].inq, icp, B_TRUE);
911 del_gram(&sockets[sock_id].inq, icp, B_TRUE);
930 del_gram(&sockets[sock_id].inq, icp, B_TRUE);
936 while ((icp = sockets[sock_id].inq) !
[all...]
H A Dsocket_impl.h133 struct inetgram *inq; /* input queue */ member in struct:inetboot_socket
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_list.c501 struct scsi_inquiry inq; local
504 uint32_t inquirySize = sizeof (inq),
642 &inq, &inquirySize, &scsiStatus,
645 inq.inq_dtype = inq.inq_dtype & DTYPE_MASK;
647 inq.inq_dtype = DTYPE_UNKNOWN;
649 inq.inq_dtype = ERR_INQ_DTYPE;
653 inq.inq_dtype, &larg) != FPCFGA_OK) {
729 &inq, &inquirySize, &scsiStatus,
732 inq
3690 struct scsi_inquiry inq; local
[all...]

Completed in 93 milliseconds

123