/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/ |
H A D | fsm.txt | 49 State | idle cdb datain dataout status 53 cdb | * * start-xfer start-xfer rd-intr-reason 63 State | idle cdb datain dataout status 66 command | * cdb * * * 67 cdb | * * datain dataout (idle)
|
/illumos-gate/usr/src/lib/storage/libg_fc/common/ |
H A D | io.c | 93 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/sys/scsi/impl/ |
H A D | commands.h | 91 * defines for SCSI tape cdb. 392 #define GETCMD(cdb) ((cdb)->scc_cmd & 0x1F) 393 #define GETGROUP(cdb) (CDB_GROUPID((cdb)->scc_cmd)) 395 #define FORMG0COUNT(cdb, cnt) (cdb)->g0_count0 = (cnt) 397 #define FORMG0ADDR(cdb, addr) (cdb)->g0_addr2 = (addr) >> 16; \ 398 (cdb) [all...] |
/illumos-gate/usr/src/cmd/smserverd/ |
H A D | smediad.c | 314 "Invalid flags(0x%x) set in uscsi cmd. cdb[0]=0x%x\n", 324 "Invalid command(0x%x) found in cdb.\n", 337 union scsi_cdb cdb; local 342 cdb.scc_cmd = SCMD_READ_CAPACITY; 343 ucmd.uscsi_cdb = (caddr_t)&cdb; 514 union scsi_cdb cdb; local 520 (void) memset((void *) &cdb, 0, sizeof (union scsi_cdb)); 521 cdb.scc_cmd = SCMD_INQUIRY; 522 FORMG0COUNT(&cdb, sizeof (struct scsi_inquiry)); 523 ucmd.uscsi_cdb = (caddr_t)&cdb; 548 uchar_t cdb[12]; local 611 uchar_t cdb[12]; local 768 uchar_t cdb[12]; local 856 uchar_t cdb[12]; local 979 union scsi_cdb cdb; local 1029 uchar_t cdb[12]; local 1096 char cdb[12]; local 1134 uchar_t cdb[12]; local 1169 uchar_t cdb[12]; local 1577 union scsi_cdb cdb; local 1638 union scsi_cdb cdb; local 1826 union scsi_cdb cdb; local 1974 union scsi_cdb cdb; local 3092 uchar_t cdb[12]; local 3237 uchar_t cdb[10]; local [all...] |
/illumos-gate/usr/src/cmd/format/ |
H A D | ctlr_scsi.c | 209 union scsi_cdb cdb; local 237 (void) memset((char *)&cdb, 0, sizeof (union scsi_cdb)); 238 cdb.scc_cmd = (dir == DIR_READ) ? SCMD_READ : SCMD_WRITE; 240 FORMG0ADDR(&cdb, blkno); 241 FORMG0COUNT(&cdb, nsectors); 245 FORMG4LONGADDR(&cdb, blkno); 246 FORMG4COUNT(&cdb, nsectors); 248 cdb.scc_cmd |= SCMD_GROUP4; 250 FORMG1ADDR(&cdb, blkno); 251 FORMG1COUNT(&cdb, nsector 336 union scsi_cdb cdb; local 543 union scsi_cdb cdb; local 1745 union scsi_cdb cdb; local 1852 union scsi_cdb cdb; local 2219 union scsi_cdb cdb; local 2354 union scsi_cdb cdb; local 2512 union scsi_cdb cdb; local 2561 union scsi_cdb cdb; local 2602 union scsi_cdb cdb; local 2661 union scsi_cdb cdb; local 2766 union scsi_cdb cdb; local 2817 union scsi_cdb cdb; local 3414 union scsi_cdb cdb; local 3470 union scsi_cdb cdb; local 3515 union scsi_cdb cdb; local [all...] |
H A D | menu_scsi.c | 541 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/utils/ |
H A D | cdutils.c | 44 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...] |
H A D | cdutils.h | 41 void uscsi_cmd_init(struct uscsi_cmd *scmd, char *cdb, int cdblen);
|
/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | Sun_sasScsiReportLUNs.c | 39 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 D | Sun_sasScsiInquiry.c | 39 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 D | Sun_sasScsiReadCapacity.c | 39 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/ |
H A D | emul64_bsd.c | 364 union scsi_cdb *cdb = (union scsi_cdb *)pkt->pkt_cdbp; local 380 if (cdb->cdb_opaque[1] & 0xfc) { 382 emul64_name, cdb->cdb_opaque[1]); 383 emul64_check_cond(pkt, 0x5, 0x24, 0x0); /* inv. fld in cdb */ 388 if (cdb->cdb_opaque[1] & 0x1) { 389 switch (cdb->cdb_opaque[2]) { 397 emul64_name, cdb->cdb_opaque[2]); 432 union scsi_cdb *cdb = (union scsi_cdb *)pkt->pkt_cdbp; local 436 switch (cdb->scc_cmd) { 438 lblkno = (uint32_t)GETG0ADDR(cdb); 530 union scsi_cdb *cdb = (union scsi_cdb *)pkt->pkt_cdbp; local 566 union scsi_cdb *cdb = (union scsi_cdb *)pkt->pkt_cdbp; local 629 union scsi_cdb *cdb = (union scsi_cdb *)pkt->pkt_cdbp; local 699 union scsi_cdb *cdb = (union scsi_cdb *)pkt->pkt_cdbp; local 752 union scsi_cdb *cdb = (union scsi_cdb *)pkt->pkt_cdbp; local 805 union scsi_cdb *cdb = (union scsi_cdb *)pkt->pkt_cdbp; local 866 union scsi_cdb *cdb = (union scsi_cdb *)pkt->pkt_cdbp; local [all...] |
/illumos-gate/usr/src/uts/sun/sys/dada/impl/ |
H A D | commands.h | 58 #define GETATACMD(cdb) ((cdb)->cmd)
|
/illumos-gate/usr/src/uts/common/io/usb/scsa2usb/ |
H A D | usb_ms_bulkonly.c | 341 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...] |
H A D | usb_ms_cbi.c | 515 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 */
|
/illumos-gate/usr/src/uts/common/io/scsi/targets/ |
H A D | ses_safte.c | 107 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 D | ses_ses.c | 230 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 D | ses_sen.c | 124 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);
|
/illumos-gate/usr/src/uts/common/io/scsi/impl/ |
H A D | scsi_transport.c | 55 #define NACA_IS_SET(cdb) \ 56 (((cdb)[scsi_cdb_size[GETGROUP((union scsi_cdb *)(cdb))] - 1] \
|
/illumos-gate/usr/src/lib/fm/libdiskstatus/common/ |
H A D | ds_scsi_uscsi.c | 297 { 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/cmd/ndmpd/tlm/ |
H A D | tlm_init.c | 54 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/lib/libdiskmgt/common/ |
H A D | drive.c | 331 union scsi_cdb *cdb, caddr_t buff, int blen); 332 static void fill_general_page_cdb_g1(union scsi_cdb *cdb, 334 static void fill_mode_page_cdb(union scsi_cdb *cdb, int page); 1245 union scsi_cdb cdb; local 1249 fill_general_page_cdb_g1(&cdb, SCMD_GET_CONFIGURATION, 0, 1251 fill_command_g1(&cmd, &cdb, (caddr_t)buff, sizeof (buff)); 1312 union scsi_cdb cdb; local 1316 fill_mode_page_cdb(&cdb, ATAPI_CAPABILITIES); 1317 fill_command_g1(&cmd, &cdb, (caddr_t)buff, sizeof (buff)); 1374 fill_command_g1(struct uscsi_cmd *cmd, union scsi_cdb *cdb, argument 1390 fill_general_page_cdb_g1(union scsi_cdb *cdb, int command, int lun, uchar_t c0, uchar_t c1) argument 1401 fill_mode_page_cdb(union scsi_cdb *cdb, int page) argument 1420 union scsi_cdb cdb; local [all...] |
/illumos-gate/usr/src/uts/common/io/mr_sas/ |
H A D | mr_sas_tbolt.c | 67 static void mrsas_tbolt_set_pd_lba(U8 cdb[], uint8_t *cdb_len_ptr, 1554 /* 6-byte cdb */ 1561 /* 10-byte cdb */ 1573 /* 12-byte cdb */ 1587 /* 16-byte cdb */ 1893 "cdb length = %x\n", 2900 mrsas_tbolt_prepare_cdb(struct mrsas_instance *instance, U8 cdb[], argument 2912 bzero(cdb, 32); 2914 cdb[0] = MRSAS_SCSI_VARIABLE_LENGTH_CMD; 2917 cdb[ 2999 mrsas_tbolt_set_pd_lba(U8 cdb[], uint8_t *cdb_len_ptr, U64 start_blk, U32 num_blocks) argument [all...] |
/illumos-gate/usr/src/uts/common/io/comstar/lu/stmf_sbd/ |
H A D | sbd_pgr.c | 170 #define PGR_CONFLICT_FREE_CMDS(cdb) ( \ 174 ((cdb[0]) == SCMD_INQUIRY) || \ 175 ((cdb[0]) == SCMD_LOG_SENSE_G1) || \ 176 ((cdb[0]) == SCMD_PERSISTENT_RESERVE_IN) || \ 177 ((cdb[0]) == SCMD_REPORT_LUNS) || \ 178 ((cdb[0]) == SCMD_REQUEST_SENSE) || \ 179 ((cdb[0]) == SCMD_TEST_UNIT_READY) || \ 181 ((((cdb[0]) == SCMD_DOORLOCK) && (((cdb[4]) & 0x3) == 0))) || \ 183 (((cdb[ [all...] |
/illumos-gate/usr/src/uts/common/io/skd/ |
H A D | skd.c | 832 scsi_req->cdb[1] = 0; 833 scsi_req->cdb[2] = (lba & 0xff000000) >> 24; 834 scsi_req->cdb[3] = (lba & 0xff0000) >> 16; 835 scsi_req->cdb[4] = (lba & 0xff00) >> 8; 836 scsi_req->cdb[5] = (lba & 0xff); 837 scsi_req->cdb[6] = 0; 838 scsi_req->cdb[7] = (count & 0xff00) >> 8; 839 scsi_req->cdb[8] = count & 0xff; 840 scsi_req->cdb[9] = 0; 843 scsi_req->cdb[ [all...] |