/illumos-gate/usr/src/cmd/cdrw/ |
H A D | mmc.c | 61 scmd->uscsi_cdb[0] = INQUIRY_CMD; in inquiry() 62 scmd->uscsi_cdb[4] = INQUIRY_DATA_LENGTH; in inquiry() 79 scmd->uscsi_cdb[0] = READ_CAP_CMD; in read_capacity() 99 scmd->uscsi_cdb[0] = MODE_SENSE_10_CMD; in mode_sense() 102 scmd->uscsi_cdb[1] = 0x8; in mode_sense() 105 scmd->uscsi_cdb[2] = pc; in mode_sense() 107 scmd->uscsi_cdb[7] = (page_len >> 8) & 0xff; in mode_sense() 108 scmd->uscsi_cdb[8] = page_len & 0xff; in mode_sense() 128 scmd->uscsi_cdb[0] = MODE_SELECT_10_CMD; in mode_select() 129 scmd->uscsi_cdb[1] = 0x10; in mode_select() [all …]
|
H A D | toshiba.c | 60 scmd->uscsi_cdb[0] = READ_TOC_CMD; in read_toc_as_per_8020() 61 scmd->uscsi_cdb[6] = trackno; in read_toc_as_per_8020() 62 scmd->uscsi_cdb[8] = buflen & 0xff; in read_toc_as_per_8020() 63 scmd->uscsi_cdb[7] = (buflen >> 8) & 0xff; in read_toc_as_per_8020() 64 scmd->uscsi_cdb[9] = (format << 6) & 0xc0; in read_toc_as_per_8020() 83 ((uchar_t *)scmd->uscsi_cdb)[0] = READ_AUDIO_CMD; in toshiba_read_audio() 84 scmd->uscsi_cdb[5] = start_blk & 0xff; in toshiba_read_audio() 85 scmd->uscsi_cdb[4] = (start_blk >> 8) & 0xff; in toshiba_read_audio() 86 scmd->uscsi_cdb[3] = (start_blk >> 16) & 0xff; in toshiba_read_audio() 87 scmd->uscsi_cdb[2] = (start_blk >> 24) & 0xff; in toshiba_read_audio() [all …]
|
H A D | transport.c | 50 uscmd.uscsi_cdb = ucdb; in get_uscsi_cmd() 77 if ((device_type != CD_RW) && ((scmd->uscsi_cdb[0] == WRITE_10_CMD) || in uscsi() 78 (scmd->uscsi_cdb[0] == READ_INFO_CMD) || (scmd->uscsi_cdb[0] == in uscsi() 79 SYNC_CACHE_CMD) || (scmd->uscsi_cdb[0] == CLOSE_TRACK_CMD))) { in uscsi() 107 (uchar_t)scmd->uscsi_cdb[i]); in uscsi() 178 ((scmd->uscsi_cdb[0] == CLOSE_TRACK_CMD) || in uscsi() 179 ((scmd->uscsi_cdb[0] == READ_INFO_CMD) && in uscsi() 201 if (scmd->uscsi_cdb[0] == MODE_SELECT_10_CMD && in uscsi() 207 if (scmd->uscsi_cdb[0] == REZERO_UNIT_CMD && in uscsi() 229 (uchar_t)scmd->uscsi_cdb[0], ret, in uscsi()
|
/illumos-gate/usr/src/cmd/hal/utils/ |
H A D | cdutils.c | 48 scmd->uscsi_cdb = cdb; in uscsi_cmd_init() 118 (uchar_t)scmd->uscsi_cdb[0], ret, in uscsi() 150 scmd.uscsi_cdb[0] = 0x5a; /* MODE SENSE 10 */ in mode_sense() 152 scmd.uscsi_cdb[1] = 0x8; /* no block descriptors */ in mode_sense() 154 scmd.uscsi_cdb[2] = pc; in mode_sense() 155 scmd.uscsi_cdb[7] = (page_len >> 8) & 0xff; in mode_sense() 156 scmd.uscsi_cdb[8] = page_len & 0xff; in mode_sense() 202 scmd.uscsi_cdb[0] = 0x46; /* GET CONFIGURATION */ in get_configuration() 203 scmd.uscsi_cdb[1] = 0x2; /* request type */ in get_configuration() 204 scmd.uscsi_cdb[2] = (feature >> 8) & 0xff; /* starting feature # */ in get_configuration() [all …]
|
/illumos-gate/usr/src/lib/storage/libg_fc/common/ |
H A D | io.c | 105 ucmd.uscsi_cdb = (caddr_t)&cdb; in g_scsi_persistent_reserve_in_cmd() 139 ucmd.uscsi_cdb = (caddr_t)cdb; in g_scsi_send_diag_cmd() 179 ucmd.uscsi_cdb = (caddr_t)cdb; in rec_diag_cmd() 246 ucmd.uscsi_cdb = (caddr_t)&cdb; in g_scsi_writebuffer_cmd() 280 ucmd.uscsi_cdb = (caddr_t)&cdb; in g_scsi_readbuffer_cmd() 306 ucmd.uscsi_cdb = (caddr_t)&cdb; in g_scsi_inquiry_cmd() 351 ucmd.uscsi_cdb = (caddr_t)&cdb; in g_scsi_log_sense_cmd() 386 ucmd.uscsi_cdb = (caddr_t)&cdb; in g_scsi_mode_select_cmd() 433 ucmd.uscsi_cdb = (caddr_t)&cdb; in g_scsi_mode_sense_cmd() 470 ucmd.uscsi_cdb = (caddr_t)&cdb; in g_scsi_read_capacity_cmd() [all …]
|
H A D | cmd.c | 140 if ((command->uscsi_cdb == NULL) || in cmd() 153 g_scsi_find_command_name(command->uscsi_cdb[0])); in cmd() 156 (void) printf("%x ", *(command->uscsi_cdb + i)); in cmd()
|
/illumos-gate/usr/src/uts/common/sys/scsi/impl/ |
H A D | uscsi.h | 47 caddr_t uscsi_cdb; /* cdb to send to target */ member 64 caddr32_t uscsi_cdb; /* cdb to send to target */ member 80 ucmd->uscsi_cdb = (caddr_t)(uintptr_t)u32->uscsi_cdb; \ 96 u32->uscsi_cdb = (caddr32_t)(uintptr_t)ucmd->uscsi_cdb; \
|
/illumos-gate/usr/src/uts/common/io/scsi/targets/ |
H A D | ses.c | 918 if (uscmd->uscsi_cdb != NULL) { in ses_uscsi_cmd() 919 bcopy(uscmd->uscsi_cdb, &ssc->ses_srqcdb, in ses_uscsi_cmd() 930 if (uscmd->uscsi_cdb != NULL) { in ses_uscsi_cmd() 934 ((char *)uscmd->uscsi_cdb)[0], in ses_uscsi_cmd() 935 ((char *)uscmd->uscsi_cdb)[1], in ses_uscsi_cmd() 936 ((char *)uscmd->uscsi_cdb)[2], in ses_uscsi_cmd() 937 ((char *)uscmd->uscsi_cdb)[3], in ses_uscsi_cmd() 938 ((char *)uscmd->uscsi_cdb)[4], in ses_uscsi_cmd() 939 ((char *)uscmd->uscsi_cdb)[5]); in ses_uscsi_cmd() 943 ((char *)uscmd->uscsi_cdb)[0], in ses_uscsi_cmd() [all …]
|
H A D | ses_sen.c | 135 lp->uscsi_cdb = cdb; in sen_rdstat() 349 lp->uscsi_cdb = cdb; in sen_set_objstat() 434 lp->uscsi_cdb = cdb1; in sen_set_objstat()
|
H A D | ses_safte.c | 118 lp->uscsi_cdb = cdb; in _NOTE() 249 lp->uscsi_cdb = cdb0; in safte_init_enc() 263 lp->uscsi_cdb = cdb; in safte_init_enc() 352 lp->uscsi_cdb = cdb; in safte_rdstat() 1055 lp->uscsi_cdb = cdb; in wrbuf16() 1109 lp->uscsi_cdb = cdb; in wrslot_stat() 1149 lp->uscsi_cdb = cdb; in perf_slotop()
|
H A D | ses_ses.c | 244 lp->uscsi_cdb = cdb; in ses_getconfig() 481 lp->uscsi_cdb = cdb; in ses_getputstat() 518 lp->uscsi_cdb = cdb; in ses_getputstat()
|
H A D | sd.c | 10935 cmd = ((struct uscsi_cmd *)(uip->ui_cmdp))->uscsi_cdb[0]; in sd_uscsi_strategy() 11217 if (uscmd->uscsi_cdb != NULL) { in sd_ssc_send() 11221 uscmd->uscsi_cdb[0]); in sd_ssc_send() 11278 if ((uscmd->uscsi_cdb != NULL) && in sd_ssc_send() 11279 (uscmd->uscsi_cdb[0] == SCMD_FORMAT)) { in sd_ssc_send() 11379 cdbp = (union scsi_cdb *)ucmdp->uscsi_cdb; in sd_ssc_print() 11442 if (ucmdp->uscsi_cdb != NULL) { in sd_ssc_assessment() 11448 ucmdp->uscsi_cdb[0]); in sd_ssc_assessment() 13382 uscmd->uscsi_cdb[0], 0, 0, 0); in sd_initpkt_for_uscsi() 13446 bcopy(uscmd->uscsi_cdb, pktp->pkt_cdbp, uscmd->uscsi_cdblen); in sd_initpkt_for_uscsi() [all …]
|
H A D | sgen.c | 1249 if (uscmd->uscsi_cdb != NULL) { in sgen_uscsi_cmd() 1251 (union scsi_cdb *)uscmd->uscsi_cdb, uscmd->uscsi_cdblen); in sgen_uscsi_cmd() 1493 bcopy(ucmd->uscsi_cdb, pkt->pkt_cdbp, ucmd->uscsi_cdblen); in sgen_make_uscsi_cmd() 1955 scmd.uscsi_cdb = cmdblk; in sgen_tur()
|
/illumos-gate/usr/src/uts/common/io/scsi/impl/ |
H A D | scsi_subr.c | 2158 if (uscmd->uscsi_cdb != NULL) in scsi_uscsi_copyin() 2159 kmem_free(uscmd->uscsi_cdb, uscmd->uscsi_cdblen); in scsi_uscsi_copyin() 2201 uicmd->uic_cdb = uscmd->uscsi_cdb; in scsi_uscsi_copyin() 2211 uscmd->uscsi_cdb = NULL; in scsi_uscsi_copyin() 2257 uscmd->uscsi_cdb = kmem_zalloc((size_t)uscmd->uscsi_cdblen, KM_SLEEP); in scsi_uscsi_copyin() 2258 if (ddi_copyin(uicmd->uic_cdb, uscmd->uscsi_cdb, in scsi_uscsi_copyin() 2260 kmem_free(uscmd->uscsi_cdb, (size_t)uscmd->uscsi_cdblen); in scsi_uscsi_copyin() 2265 if (uscmd->uscsi_cdb[0] != SCMD_VAR_LEN) { in scsi_uscsi_copyin() 2267 scsi_cdb_size[CDB_GROUPID(uscmd->uscsi_cdb[0])] > in scsi_uscsi_copyin() 2269 kmem_free(uscmd->uscsi_cdb, in scsi_uscsi_copyin() [all …]
|
/illumos-gate/usr/src/lib/fm/libdiskstatus/common/ |
H A D | ds_scsi_uscsi.c | 668 find_string(scsi_cmdname_strings, ucmd->uscsi_cdb[0])); in scsi_printerr() 712 ddump("cdb:", (caddr_t)ucmd->uscsi_cdb, in scsi_printerr() 1062 switch ((uint8_t)ucmd->uscsi_cdb[0]) { in uscsi_cmd() 1114 ucmd->uscsi_cdb[0])); in uscsi_cmd() 1120 ucmd->uscsi_cdb[0]), in uscsi_cmd() 1133 ucmd->uscsi_cdb[0])); in uscsi_cmd() 1148 if (ucmd->uscsi_cdb[0] == SCMD_MODE_SELECT || in uscsi_cmd() 1149 ucmd->uscsi_cdb[0] == SCMD_MODE_SELECT_G1) { in uscsi_cmd() 1176 ucmd.uscsi_cdb = (caddr_t)&cdb; in uscsi_request_sense() 1226 ucmd.uscsi_cdb = (caddr_t)&cdb; in uscsi_mode_sense() [all …]
|
/illumos-gate/usr/src/cmd/smserverd/ |
H A D | smediad.c | 315 ucmd->uscsi_flags, ucmd->uscsi_cdb[0]); in invalid_uscsi_operation() 319 if (ucmd->uscsi_cdb[0] == SCMD_COPY || in invalid_uscsi_operation() 320 ucmd->uscsi_cdb[0] == SCMD_COPY_VERIFY || in invalid_uscsi_operation() 321 ucmd->uscsi_cdb[0] == SCMD_COMPARE || in invalid_uscsi_operation() 322 ucmd->uscsi_cdb[0] == SCMD_WRITE_BUFFER) { in invalid_uscsi_operation() 325 ucmd->uscsi_cdb[0]); in invalid_uscsi_operation() 343 ucmd.uscsi_cdb = (caddr_t)&cdb; in get_sector_size() 523 ucmd.uscsi_cdb = (caddr_t)&cdb; in get_device_type_scsi() 564 ucmd.uscsi_cdb = (caddr_t)&cdb; in get_media_capacity() 635 ucmd.uscsi_cdb = (caddr_t)&cdb; in scsi_zip_format() [all …]
|
H A D | smserver.h | 215 char uscsi_cdb[MAX_CDB_LEN]; member
|
/illumos-gate/usr/src/cmd/format/ |
H A D | ctlr_scsi.c | 216 ucmd.uscsi_cdb = (caddr_t)&cdb; in scsi_rdwr() 394 ucmd.uscsi_cdb = (caddr_t)&cdb; in scsi_format() 527 ucmd.uscsi_cdb = (caddr_t)&cdb; in scsi_raw_format() 1696 ucmd.uscsi_cdb = (caddr_t)&cdb; in scsi_read_defect_data() 1740 ucmd.uscsi_cdb = (caddr_t)&cdb; in scsi_read_defect_data() 1785 ucmd.uscsi_cdb = (caddr_t)&cdb; in scsi_repair() 1931 switch ((uint8_t)ucmd->uscsi_cdb[0]) { in uscsi_cmd() 1948 switch (ucmd->uscsi_cdb[0]) { in uscsi_cmd() 2037 scsi_find_command_name(ucmd->uscsi_cdb[0])); in uscsi_cmd() 2044 scsi_find_command_name(ucmd->uscsi_cdb[0]), in uscsi_cmd() [all …]
|
/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmf_misc.c | 1652 scmd->uscsi_cdb[0] = INQUIRY_CMD; in inquiry() 1653 scmd->uscsi_cdb[4] = INQUIRY_DATA_LENGTH; in inquiry() 1667 uscmd.uscsi_cdb = ucdb; in get_uscsi_cmd() 1703 (uchar_t)scmd->uscsi_cdb[i]); in uscsi() 1749 (uchar_t)scmd->uscsi_cdb[0], ret, in uscsi() 1814 scmd->uscsi_cdb[0] = MODE_SENSE_10_CMD; in mode_sense() 1817 scmd->uscsi_cdb[1] = 0x8; in mode_sense() 1820 scmd->uscsi_cdb[2] = pc; in mode_sense() 1822 scmd->uscsi_cdb[7] = (page_len >> 8) & 0xff; in mode_sense() 1823 scmd->uscsi_cdb[8] = page_len & 0xff; in mode_sense()
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | lux_util.c | 353 scsi_find_command_name(ucmd->uscsi_cdb[0])); in scsi_printerr() 378 (uchar_t *)ucmd->uscsi_cdb, in scsi_printerr() 411 if ((command->uscsi_cdb == NULL) || in issue_uscsi_cmd() 424 scsi_find_command_name(command->uscsi_cdb[0])); in issue_uscsi_cmd() 427 (void) printf("%x ", *(command->uscsi_cdb + i)); in issue_uscsi_cmd() 635 ucmd.uscsi_cdb = (caddr_t)&cdb; in scsi_mode_sense_cmd() 671 ucmd.uscsi_cdb = (caddr_t)&cdb; in scsi_release() 698 ucmd.uscsi_cdb = (caddr_t)&cdb; in scsi_reserve()
|
/illumos-gate/usr/src/lib/libsmedia/plugins/scsi/common/ |
H A D | s_generic.c | 672 if (ucmd->uscsi_cdb == NULL) { in _m_uscsi_cmd() 716 bcopy(ucmd->uscsi_cdb, requscsi_cmd.uscsi_cdb, ucmd->uscsi_cdblen); in _m_uscsi_cmd()
|
/illumos-gate/usr/src/lib/scsi/plugins/scsi/engines/uscsi/ |
H A D | uscsi.c | 152 cmd.uscsi_cdb = (caddr_t)cp; in uscsi_exec()
|
/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | Sun_sasScsiReportLUNs.c | 48 ucmd_buf.uscsi_cdb = (char *)&cdb; in SendScsiReportLUNs()
|
H A D | Sun_sasScsiReadCapacity.c | 48 ucmd_buf.uscsi_cdb = (char *)&cdb; in SendScsiReadCapacity()
|
H A D | Sun_sasScsiInquiry.c | 54 ucmd_buf.uscsi_cdb = (char *)&cdb; in SendScsiInquiry()
|