Home
last modified time | relevance | path

Searched refs:uscsi_cdb (Results 1 – 25 of 45) sorted by relevance

12

/illumos-gate/usr/src/cmd/cdrw/
H A Dmmc.c61 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 Dtoshiba.c60 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 Dtransport.c50 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 Dcdutils.c48 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 Dio.c105 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 Dcmd.c140 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 Duscsi.h47 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 Dses.c918 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 Dses_sen.c135 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 Dses_safte.c118 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 Dses_ses.c244 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 Dsd.c10935 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 Dsgen.c1249 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 Dscsi_subr.c2158 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 Dds_scsi_uscsi.c668 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 Dsmediad.c315 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 Dsmserver.h215 char uscsi_cdb[MAX_CDB_LEN]; member
/illumos-gate/usr/src/cmd/format/
H A Dctlr_scsi.c216 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 Drmf_misc.c1652 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 Dlux_util.c353 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 Ds_generic.c672 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 Duscsi.c152 cmd.uscsi_cdb = (caddr_t)cp; in uscsi_exec()
/illumos-gate/usr/src/lib/sun_sas/common/
H A DSun_sasScsiReportLUNs.c48 ucmd_buf.uscsi_cdb = (char *)&cdb; in SendScsiReportLUNs()
H A DSun_sasScsiReadCapacity.c48 ucmd_buf.uscsi_cdb = (char *)&cdb; in SendScsiReadCapacity()
H A DSun_sasScsiInquiry.c54 ucmd_buf.uscsi_cdb = (char *)&cdb; in SendScsiInquiry()

12