Searched defs:cdb (Results 1 - 25 of 53) sorted by relevance

123

/illumos-gate/usr/src/lib/sun_sas/common/
H A DSun_sasScsiReportLUNs.c39 union scsi_cdb cdb; local
41 bzero(&cdb, sizeof (cdb));
45 cdb.scc_cmd = SCMD_REPORT_LUNS;
46 FORMG5COUNT(&cdb, *responseSize);
48 ucmd_buf.uscsi_cdb = (char *)&cdb;
H A DSun_sasScsiInquiry.c39 union scsi_cdb cdb; local
41 bzero(&cdb, sizeof (cdb));
46 cdb.scc_cmd = SCMD_INQUIRY;
47 cdb.g0_addr1 = cdb2;
48 cdb.g0_addr2 = cdb1;
49 cdb.g0_count0 = *responseSize;
51 ucmd_buf.uscsi_cdb = (char *)&cdb;
H A DSun_sasScsiReadCapacity.c39 union scsi_cdb cdb; local
41 bzero(&cdb, sizeof (cdb));
46 cdb.scc_cmd = SCMD_READ_CAPACITY;
48 ucmd_buf.uscsi_cdb = (char *)&cdb;
/illumos-gate/usr/src/uts/common/io/usb/scsa2usb/
H A Dusb_ms_cbi.c515 mblk_t *cdb; local
534 cdb = allocb_wait(CBI_CLASS_CMD_LEN, BPRI_LO, STR_NOSIG, NULL);
536 *cdb->b_wptr++ = SCMD_SDIAG; /* Set it to DIAG */
537 *cdb->b_wptr++ = CBI_SELF_TEST; /* Set it to reset */
539 *cdb->b_wptr++ = CBI_CBR_VALUE; /* Set it to 0xff */
555 &cdb, /* data to be sent */
596 SCSA2USB_FREE_MSG(cdb); /* Free the data */
H A Dusb_ms_bulkonly.c341 uchar_t dir, *cdb = (uchar_t *)(&cmd->cmd_cdb); local
357 if (scsa2usb_test_case_2 && (cdb[0] == SCMD_READ_CAPACITY)) {
361 "TEST 2: Hn < Di cdb: 0x%x len: 0x%x", cdb[0], len);
366 if (cdb[0] == SCMD_WRITE_G1) {
370 "TEST 3: Hn < Do cdb: 0x%x len:%x", cdb[0], len);
374 if (scsa2usb_test_case_4 && (cdb[0] == SCMD_READ_G1)) {
375 cdb[0] = 0x5e;
377 "TEST 4: Hi > Dn: changed cdb t
[all...]
/illumos-gate/usr/src/cmd/addbadsec/
H A Daddbadsec.c349 union scsi_cdb cdb; local
356 (void) memset((char *)&cdb, 0, sizeof (union scsi_cdb));
359 cdb.scc_cmd = SCMD_REASSIGN_BLOCK;
360 ucmd.uscsi_cdb = (caddr_t)&cdb;
/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dio.c93 my_cdb_g1 cdb = {SCMD_PERS_RESERV_IN, 0, 0, 0, 0, 0, 0, 0, 0, 0}; local
102 cdb.byte1 = action & ACTION_MASK;
103 cdb.byte7 = (buf_len>>8) & 0xff;
104 cdb.byte8 = buf_len & 0xff;
105 ucmd.uscsi_cdb = (caddr_t)&cdb;
128 uchar_t cdb[] = {SCMD_SDIAG, SCSI_ESI_PF, 0, 0, 0, 0}; local
137 cdb[3] = (buf_len>>8) & 0xff;
138 cdb[4] = buf_len & 0xff;
139 ucmd.uscsi_cdb = (caddr_t)cdb;
158 * Internal routine to allow manipulation of the cdb[
166 uchar_t cdb[] = {SCMD_GDIAG, 0, 0, 0, 0, 0}; local
230 my_cdb_g1 cdb = {SCMD_WRITE_BUFFER, 0x4, 0, 0, 0, 0, 0, 0, 0, 0}; local
266 my_cdb_g1 cdb = {SCMD_READ_BUFFER, 0x5, 0, 0, 0, 0, 0, 0, 0, 0}; local
295 my_cdb_g0 cdb = {SCMD_INQUIRY, 0, 0, 0, 0, 0}; local
338 my_cdb_g1 cdb = {SCMD_LOG_SENSE, 0, 0x40, 0, 0, 0, 0, 0, 0, 0}; local
374 my_cdb_g1 cdb = {SCMD_MODE_SELECT_G1, 0, 0, 0, 0, 0, 0, 0, 0, 0}; local
414 my_cdb_g1 cdb = {SCMD_MODE_SENSE_G1, 0, 0, 0, 0, 0, 0, 0, 0, 0}; local
459 my_cdb_g1 cdb = {SCMD_READ_CAPACITY, 0, 0, 0, 0, 0, 0, 0, 0, 0}; local
485 my_cdb_g1 cdb = {SCMD_READ_CAPACITY, 0, 0, 0, 0, 0, 0, 0, 0, 0}; local
529 union scsi_cdb cdb; local
576 const my_cdb_g0 cdb = {SCMD_RELEASE, 0, 0, 0, 0, 0}; local
599 const my_cdb_g0 cdb = {SCMD_RESERVE, 0, 0, 0, 0, 0}; local
626 const my_cdb_g0 cdb = {SCMD_START_STOP, 0, 0, 0, 1, 0}; local
648 my_cdb_g0 cdb = {SCMD_START_STOP, 0, 0, 0, 0, 0}; local
673 const my_cdb_g0 cdb = {SCMD_TEST_UNIT_READY, 0, 0, 0, 0, 0}; local
[all...]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/
H A Dasym_sun.c187 char cdb[CDB_GROUP1]; local
192 bzero(cdb, CDB_GROUP1);
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dses_sen.c124 static char cdb[CDB_GROUP0] = local
136 lp->uscsi_cdb = cdb;
139 lp->uscsi_cdblen = sizeof (cdb);
331 static char cdb[CDB_GROUP0] = local
350 lp->uscsi_cdb = cdb;
353 lp->uscsi_cdblen = sizeof (cdb);
438 lp->uscsi_cdblen = sizeof (cdb);
H A Dses_safte.c107 static char cdb[CDB_GROUP1] = local
120 lp->uscsi_cdb = cdb;
123 lp->uscsi_cdblen = sizeof (cdb);
245 static char cdb[CDB_GROUP1] = local
265 lp->uscsi_cdb = cdb;
268 lp->uscsi_cdblen = sizeof (cdb);
298 char cdb[CDB_GROUP1]; local
342 cdb[0] = SCMD_READ_BUFFER;
343 cdb[1] = 1;
344 cdb[
1045 static char cdb[CDB_GROUP1] = local
1087 char rqbuf[SENSE_LENGTH], cdb[CDB_GROUP1], *sdata; local
1139 static char cdb[CDB_GROUP1] = local
[all...]
H A Dses_ses.c230 static char cdb[CDB_GROUP0] = local
245 lp->uscsi_cdb = cdb;
248 lp->uscsi_cdblen = sizeof (cdb);
448 char cdb[CDB_GROUP0]; local
470 cdb[0] = SCMD_GDIAG;
471 cdb[1] = 1;
472 cdb[2] = SesStatusPage;
473 cdb[3] = bufsiz >> 8;
474 cdb[4] = bufsiz & 0xff;
475 cdb[
[all...]
H A Dsgen.c1491 * this results in scsi_setup_cdb writing past the end of the cdb.
2046 * dump out the contents of a cdb. Take care that 'label' is not too
2051 union scsi_cdb *cdb, int cdblen)
2057 uchar_t *cdbp = (uchar_t *)cdb;
2050 sgen_dump_cdb(sgen_state_t *sg_state, const char *label, union scsi_cdb *cdb, int cdblen) argument
/illumos-gate/usr/src/lib/fm/libdiskstatus/common/
H A Dds_scsi_uscsi.c297 { 0x24, 0x00, "invalid field in cdb" },
298 { 0x24, 0x01, "cdb decryption error" },
713 ddump("cdb:", (caddr_t)ucmd->uscsi_cdb,
1169 union scsi_cdb cdb; local
1174 (void) memset(&cdb, 0, sizeof (union scsi_cdb));
1175 cdb.scc_cmd = SCMD_REQUEST_SENSE;
1176 FORMG0COUNT(&cdb, (uchar_t)buflen);
1177 ucmd.uscsi_cdb = (caddr_t)&cdb;
1206 union scsi_cdb cdb; local
1223 (void) memset(&cdb,
1328 union scsi_cdb cdb; local
1450 union scsi_cdb cdb; local
1519 union scsi_cdb cdb; local
1587 union scsi_cdb cdb; local
[all...]
/illumos-gate/usr/src/lib/fm/libseslog/common/
H A Dlibseslog.c75 * set control cdb of scsi structure
78 set_scsi_pt_cdb(struct uscsi_cmd *uscsi, const unsigned char *cdb, argument
81 uscsi->uscsi_cdb = (char *)cdb;
135 * SG_LIB_CAT_ILLEGAL_REQ -> bad field in cdb,
456 * SG_LIB_CAT_ILLEGAL_REQ -> bad field in cdb
494 * SG_LIB_CAT_ILLEGAL_REQ -> bad field in cdb,
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_init.c54 read_scsi_page(scsi_link_t *slink, union scsi_cdb *cdb, argument
67 cdb->scc_lun = slink->sl_lun;
72 uscsi_cmd.uscsi_cdb = (char *)cdb;
74 if (cdb->scc_cmd == SCMD_READ_ELEMENT_STATUS) {
90 cdb->scc_cmd, dname, errno);
104 union scsi_cdb cdb; local
106 (void) memset(&cdb, 0, sizeof (union scsi_cdb));
107 cdb.scc_cmd = SCMD_INQUIRY;
108 cdb.g0_count0 = sizeof (struct scsi_inquiry);
110 return (read_scsi_page(slink, &cdb, CDB_GROUP
[all...]
/illumos-gate/usr/src/cmd/format/
H A Dmenu_scsi.c541 union scsi_cdb cdb; local
595 (void) memset((char *)&cdb, 0, sizeof (union scsi_cdb));
596 cdb.scc_cmd = SCMD_FORMAT;
597 ucmd.uscsi_cdb = (caddr_t)&cdb;
603 cdb.cdb_opaque[1] = FPB_DATA | FPB_CMPLT | FPB_BFI;
945 union scsi_cdb cdb; local
960 (void) memset((char *)&cdb, 0, sizeof (union scsi_cdb));
961 cdb.scc_cmd = SCMD_MODE_SENSE;
962 FORMG0COUNT(&cdb, (uchar_t)nbytes);
963 cdb
[all...]
/illumos-gate/usr/src/cmd/hal/probing/storage/
H A Dprobe-storage.c222 union scsi_cdb cdb; local
229 (void) memset((void *) &cdb, 0, sizeof (union scsi_cdb));
230 cdb.scc_cmd = SCMD_INQUIRY;
231 FORMG0COUNT(&cdb, sizeof (inq));
232 ucmd.uscsi_cdb = (caddr_t) & cdb;
/illumos-gate/usr/src/cmd/hal/utils/
H A Dcdutils.c44 uscsi_cmd_init(struct uscsi_cmd *scmd, char *cdb, int cdblen) argument
47 bzero(cdb, cdblen);
48 scmd->uscsi_cdb = cdb;
137 char cdb[16]; local
139 uscsi_cmd_init(&scmd, cdb, sizeof (cdb));
192 char cdb[16]; local
194 uscsi_cmd_init(&scmd, cdb, sizeof (cdb));
367 char cdb[1 local
413 char cdb[16]; local
484 char cdb[16]; local
[all...]
/illumos-gate/usr/src/uts/common/io/cpqary3/
H A Dcpqary3_ioctl.h116 uint8_t cdb[16]; /* 16 byte CDB */ member in struct:cpqary3_scsi_pass
/illumos-gate/usr/src/uts/common/sys/scsi/generic/
H A Dsas.h125 uint8_t cdb[16]; member in struct:__anon8968
126 /* additional cdb bytes go here, followed by 4 byte CRC */
/illumos-gate/usr/src/cmd/lvm/rpc.metamhd/
H A Dmhd_drive.c641 union scsi_cdb cdb; local
670 (void) memset(&cdb, 0, sizeof (cdb));
672 cdb.scc_cmd = SCMD_INQUIRY;
673 cdb.g0_count0 = sizeof (inq);
674 ucmd.uscsi_cdb = (caddr_t)&cdb;
767 union scsi_cdb cdb; local
787 (void) memset(&cdb, 0, sizeof (cdb));
789 cdb
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/mpt_sas/
H A Dmpt_sas.c181 uchar_t cdb[512]; /* an arbitrarily large number */ local
191 * have the cdb length in the pkt
193 if (mdb_vread(&cdb, m->cmd_cdblen, (uintptr_t)pkt.pkt_cdbp) == -1) {
202 mdb_printf("%02x ", cdb[j]);
/illumos-gate/usr/src/cmd/luxadm/
H A Dlux_util.c377 string_dump(MSGSTR(48, " cdb: "),
425 (void) printf(" fd=0x%x cdb=", file);
619 union scsi_cdb cdb = {SCMD_MODE_SENSE_G1, 0, 0, 0, 0, 0, 0, 0, 0, 0}; local
635 cdb.g1_addr3 = (pc << 6) + page_code;
636 cdb.g1_count1 = buf_len>>8;
637 cdb.g1_count0 = buf_len & 0xff;
638 ucmd.uscsi_cdb = (caddr_t)&cdb;
664 union scsi_cdb cdb = {SCMD_RELEASE, 0, 0, 0, 0, 0}; local
674 ucmd.uscsi_cdb = (caddr_t)&cdb;
691 union scsi_cdb cdb local
[all...]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_sess.c1715 char cdb[CDB_GROUP0]; local
1722 /* cdb is all zeros */
1723 bzero(&cdb[0], CDB_GROUP0);
1728 ucmd.uscsi_cdb = &cdb[0];
1768 unsigned char cdb[CDB_GROUP5]; local
1801 /* setup cdb */
1802 bzero(&cdb, CDB_GROUP5);
1803 cdb[0] = SCMD_REPORT_LUNS;
1804 cdb[6] = (buf_len & 0xff000000) >> 24;
1805 cdb[
2069 uchar_t cdb[CDB_GROUP0]; local
[all...]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_scsa.c1959 (void) memcpy(sc.cdb, pkt->pkt_cdbp,
1960 min(SCSA_CDBLEN(sp), sizeof (sc.cdb)));
2079 "%s: underflow %u for cdb 0x%x",
2813 pmcs_SATA_rwparm(uint8_t *cdb, uint32_t *xfr, uint64_t *lba, uint64_t lbamax) argument
2816 switch (cdb[0]) {
2820 (((uint32_t)cdb[10]) << 24) |
2821 (((uint32_t)cdb[11]) << 16) |
2822 (((uint32_t)cdb[12]) << 8) |
2823 ((uint32_t)cdb[13]);
2825 (((uint64_t)cdb[
[all...]

Completed in 115 milliseconds

123