Home
last modified time | relevance | path

Searched refs:scmd (Results 1 – 19 of 19) sorted by relevance

/titanic_41/usr/src/cmd/cdrw/
H A Dmmc.c41 struct uscsi_cmd *scmd; in test_unit_ready() local
43 scmd = get_uscsi_cmd(); in test_unit_ready()
44 scmd->uscsi_flags = USCSI_SILENT; in test_unit_ready()
45 scmd->uscsi_timeout = DEFAULT_SCSI_TIMEOUT; in test_unit_ready()
47 scmd->uscsi_cdblen = 6; in test_unit_ready()
48 if ((uscsi_error = uscsi(fd, scmd)) < 0) in test_unit_ready()
56 struct uscsi_cmd *scmd; in inquiry() local
58 scmd = get_uscsi_cmd(); in inquiry()
59 scmd->uscsi_flags = USCSI_READ|USCSI_SILENT; in inquiry()
60 scmd->uscsi_timeout = DEFAULT_SCSI_TIMEOUT; in inquiry()
[all …]
H A Dtoshiba.c57 struct uscsi_cmd *scmd; in read_toc_as_per_8020() local
59 scmd = get_uscsi_cmd(); in read_toc_as_per_8020()
60 scmd->uscsi_flags = USCSI_READ|USCSI_SILENT; in read_toc_as_per_8020()
61 scmd->uscsi_timeout = 60; in read_toc_as_per_8020()
62 scmd->uscsi_cdb[0] = READ_TOC_CMD; in read_toc_as_per_8020()
63 scmd->uscsi_cdb[6] = trackno; in read_toc_as_per_8020()
64 scmd->uscsi_cdb[8] = buflen & 0xff; in read_toc_as_per_8020()
65 scmd->uscsi_cdb[7] = (buflen >> 8) & 0xff; in read_toc_as_per_8020()
66 scmd->uscsi_cdb[9] = (format << 6) & 0xc0; in read_toc_as_per_8020()
67 scmd->uscsi_cdblen = 10; in read_toc_as_per_8020()
[all …]
H A Dtransport.c57 uscsi(int fd, struct uscsi_cmd *scmd) in uscsi() argument
63 if (!(scmd->uscsi_flags & USCSI_RQENABLE)) { in uscsi()
64 scmd->uscsi_flags |= USCSI_RQENABLE; in uscsi()
65 scmd->uscsi_rqlen = RQBUFLEN; in uscsi()
66 scmd->uscsi_rqbuf = rqbuf; in uscsi()
79 if ((device_type != CD_RW) && ((scmd->uscsi_cdb[0] == WRITE_10_CMD) || in uscsi()
80 (scmd->uscsi_cdb[0] == READ_INFO_CMD) || (scmd->uscsi_cdb[0] == in uscsi()
81 SYNC_CACHE_CMD) || (scmd->uscsi_cdb[0] == CLOSE_TRACK_CMD))) { in uscsi()
98 scmd->uscsi_status = 0; in uscsi()
107 for (i = 0; i < scmd->uscsi_cdblen; i++) in uscsi()
[all …]
H A Dtransport.h48 int uscsi(int fd, struct uscsi_cmd *scmd);
/titanic_41/usr/src/cmd/hal/utils/
H A Dcdutils.c44 uscsi_cmd_init(struct uscsi_cmd *scmd, char *cdb, int cdblen) in uscsi_cmd_init() argument
46 bzero(scmd, sizeof (*scmd)); in uscsi_cmd_init()
48 scmd->uscsi_cdb = cdb; in uscsi_cmd_init()
52 uscsi(int fd, struct uscsi_cmd *scmd) in uscsi() argument
59 scmd->uscsi_flags |= USCSI_RQENABLE; in uscsi()
60 scmd->uscsi_rqlen = RQLEN; in uscsi()
61 scmd->uscsi_rqbuf = rqbuf; in uscsi()
64 scmd->uscsi_status = 0; in uscsi()
67 ret = ioctl(fd, USCSICMD, scmd); in uscsi()
69 if ((ret == 0) && (scmd->uscsi_status == 2)) { in uscsi()
[all …]
H A Dcdutils.h41 void uscsi_cmd_init(struct uscsi_cmd *scmd, char *cdb, int cdblen);
42 int uscsi(int fd, struct uscsi_cmd *scmd);
/titanic_41/usr/src/uts/common/io/comstar/lu/stmf_sbd/
H A Dsbd_scsi.c93 sbd_cmd_t *scmd, struct stmf_data_buf *dbuf);
114 void sbd_do_sgl_write_xfer(struct scsi_task *task, sbd_cmd_t *scmd,
118 static void sbd_do_write_same_xfer(struct scsi_task *task, sbd_cmd_t *scmd,
121 sbd_cmd_t *scmd, struct stmf_data_buf *dbuf, uint8_t dbuf_reusable);
132 sbd_do_read_xfer(struct scsi_task *task, sbd_cmd_t *scmd, in sbd_do_read_xfer() argument
146 len = scmd->len > dbuf->db_buf_size ? dbuf->db_buf_size : scmd->len; in sbd_do_read_xfer()
147 laddr = scmd->addr + scmd->current_ro; in sbd_do_read_xfer()
156 scmd->flags |= SBD_SCSI_CMD_XFER_FAIL; in sbd_do_read_xfer()
160 sbd_handle_read_xfer_completion(task, scmd, dbuf); in sbd_do_read_xfer()
166 dbuf->db_relative_offset = scmd->current_ro; in sbd_do_read_xfer()
[all …]
/titanic_41/usr/src/uts/common/io/comstar/port/pppt/
H A Dpppt_msg.c252 stmf_ic_scsi_cmd_msg_t *scmd; in pppt_msg_scsi_cmd() local
274 scmd = msg->icm_msg; in pppt_msg_scsi_cmd()
280 pppt_sess = pppt_sess_lookup_create(scmd->icsc_tgt_devid, in pppt_msg_scsi_cmd()
281 scmd->icsc_ini_devid, scmd->icsc_rport, in pppt_msg_scsi_cmd()
282 scmd->icsc_session_id, &stmf_status); in pppt_msg_scsi_cmd()
292 ptask->pt_task_id = scmd->icsc_task_msgid; in pppt_msg_scsi_cmd()
304 (longlong_t)scmd->icsc_task_msgid); in pppt_msg_scsi_cmd()
317 scmd->icsc_task_lun_no, in pppt_msg_scsi_cmd()
318 scmd->icsc_task_cdb_length, 0); in pppt_msg_scsi_cmd()
333 task->task_flags = scmd->icsc_task_flags; in pppt_msg_scsi_cmd()
[all …]
/titanic_41/usr/src/uts/common/io/sata/impl/
H A Dsata.c1811 sata_cmd_t *scmd; in sata_get_rdwr_pmult_pkt() local
1852 scmd = &spkt->satapkt_cmd; in sata_get_rdwr_pmult_pkt()
1853 scmd->satacmd_features_reg = regn & 0xff; in sata_get_rdwr_pmult_pkt()
1854 scmd->satacmd_features_reg_ext = (regn >> 8) & 0xff; in sata_get_rdwr_pmult_pkt()
1855 scmd->satacmd_device_reg = sd->satadev_addr.pmport; in sata_get_rdwr_pmult_pkt()
1856 scmd->satacmd_addr_type = 0; /* N/A */ in sata_get_rdwr_pmult_pkt()
1858 scmd->satacmd_flags.sata_ignore_dev_reset = B_TRUE; in sata_get_rdwr_pmult_pkt()
1861 scmd->satacmd_cmd_reg = SATAC_READ_PORTMULT; in sata_get_rdwr_pmult_pkt()
1862 scmd->satacmd_flags.sata_data_direction = SATA_DIR_READ; in sata_get_rdwr_pmult_pkt()
1863 scmd->satacmd_flags.sata_special_regs = 1; in sata_get_rdwr_pmult_pkt()
[all …]
/titanic_41/usr/src/cmd/rmformat/
H A Drmf_misc.c102 int uscsi(int fd, struct uscsi_cmd *scmd);
1645 struct uscsi_cmd *scmd; in inquiry() local
1647 scmd = get_uscsi_cmd(); in inquiry()
1648 scmd->uscsi_flags = USCSI_READ|USCSI_SILENT; in inquiry()
1649 scmd->uscsi_timeout = DEFAULT_SCSI_TIMEOUT; in inquiry()
1650 scmd->uscsi_cdb[0] = INQUIRY_CMD; in inquiry()
1651 scmd->uscsi_cdb[4] = INQUIRY_DATA_LENGTH; in inquiry()
1652 scmd->uscsi_cdblen = 6; in inquiry()
1653 scmd->uscsi_bufaddr = (char *)inq; in inquiry()
1654 scmd->uscsi_buflen = INQUIRY_DATA_LENGTH; in inquiry()
[all …]
/titanic_41/usr/src/uts/sun/io/dada/targets/
H A Ddad.c2360 struct udcd_cmd *scmd = (struct udcd_cmd *)bp->b_forw; in make_dcd_cmd() local
2365 if ((scmd->udcd_flags & UDCD_SILENT) && !(DEBUGGING)) { in make_dcd_cmd()
2368 if (scmd->udcd_flags & UDCD_DIAGNOSE) in make_dcd_cmd()
2371 if (scmd->udcd_flags & UDCD_NOINTR) in make_dcd_cmd()
2384 makecommand(pkt, 0, scmd->udcd_cmd->cmd, in make_dcd_cmd()
2385 scmd->udcd_cmd->sector_num.lba_num, in make_dcd_cmd()
2386 scmd->udcd_cmd->address_mode, in make_dcd_cmd()
2387 scmd->udcd_cmd->size, in make_dcd_cmd()
2388 scmd->udcd_cmd->direction, scmd->udcd_cmd->features); in make_dcd_cmd()
2391 if (scmd->udcd_timeout == 0) in make_dcd_cmd()
[all …]
/titanic_41/usr/src/uts/common/io/scsi/targets/
H A Dses.c1078 Uscmd *scmd = &ssc->ses_uscsicmd; in ses_get_pkt() local
1083 if ((scmd->uscsi_flags & USCSI_RQENABLE) && ssc->ses_arq) { in ses_get_pkt()
1084 if (scmd->uscsi_rqlen > SENSE_LENGTH) { in ses_get_pkt()
1085 stat_size = (int)(scmd->uscsi_rqlen) + in ses_get_pkt()
1096 scmd->uscsi_cdblen, stat_size, 0, flags, in ses_get_pkt()
1100 scmd->uscsi_cdblen, stat_size, 0, flags, in ses_get_pkt()
1106 bcopy(scmd->uscsi_cdb, pkt->pkt_cdbp, (size_t)scmd->uscsi_cdblen); in ses_get_pkt()
1109 pkt->pkt_time = (scmd->uscsi_timeout == 0) ? in ses_get_pkt()
1110 ses_io_time : scmd->uscsi_timeout; in ses_get_pkt()
1170 Uscmd *scmd; in ses_callback() local
[all …]
H A Dsgen.c1947 struct uscsi_cmd scmd; in sgen_tur() local
1949 bzero(&scmd, sizeof (scmd)); in sgen_tur()
1950 scmd.uscsi_bufaddr = 0; in sgen_tur()
1951 scmd.uscsi_buflen = 0; in sgen_tur()
1954 scmd.uscsi_flags = USCSI_DIAGNOSE | USCSI_SILENT | USCSI_WRITE; in sgen_tur()
1955 scmd.uscsi_cdb = cmdblk; in sgen_tur()
1956 scmd.uscsi_cdblen = CDB_GROUP0; in sgen_tur()
1958 return (sgen_uscsi_cmd(dev, &scmd, FKIOCTL)); in sgen_tur()
/titanic_41/usr/src/uts/common/io/sata/adapters/ahci/
H A Dahci.c2047 sata_cmd_t *scmd; in ahci_deliver_satapkt() local
2069 scmd = &spkt->satapkt_cmd; in ahci_deliver_satapkt()
2072 if (scmd->satacmd_cmd_reg == SATAC_READ_FPDMA_QUEUED || in ahci_deliver_satapkt()
2073 scmd->satacmd_cmd_reg == SATAC_WRITE_FPDMA_QUEUED) { in ahci_deliver_satapkt()
2084 ncq_qdepth = scmd->satacmd_flags.sata_max_queue_depth + 1; in ahci_deliver_satapkt()
2129 "port: %d, satapkt: 0x%p", scmd->satacmd_cmd_reg, in ahci_deliver_satapkt()
2149 SET_FIS_COMMAND(h2d_register_fisp, scmd->satacmd_cmd_reg); in ahci_deliver_satapkt()
2150 SET_FIS_FEATURES(h2d_register_fisp, scmd->satacmd_features_reg); in ahci_deliver_satapkt()
2151 SET_FIS_SECTOR_COUNT(h2d_register_fisp, scmd->satacmd_sec_count_lsb); in ahci_deliver_satapkt()
2153 switch (scmd->satacmd_addr_type) { in ahci_deliver_satapkt()
[all …]
/titanic_41/usr/src/uts/common/io/sata/adapters/si3124/
H A Dsi3124.c5913 si_copy_out_regs(sata_cmd_t *scmd, si_ctl_state_t *si_ctlp, uint8_t port, in si_copy_out_regs() argument
5940 scmd->satacmd_status_reg = GET_FIS_COMMAND(prb->prb_fis); in si_copy_out_regs()
5942 DTRACE_PROBE1(satacmd_status_reg, int, scmd->satacmd_status_reg); in si_copy_out_regs()
5944 if (scmd->satacmd_flags.sata_copy_out_sec_count_msb) { in si_copy_out_regs()
5945 scmd->satacmd_sec_count_msb = in si_copy_out_regs()
5949 scmd->satacmd_sec_count_msb); in si_copy_out_regs()
5952 if (scmd->satacmd_flags.sata_copy_out_lba_low_msb) { in si_copy_out_regs()
5953 scmd->satacmd_lba_low_msb = GET_FIS_SECTOR_EXP(prb->prb_fis); in si_copy_out_regs()
5956 scmd->satacmd_lba_low_msb); in si_copy_out_regs()
5959 if (scmd->satacmd_flags.sata_copy_out_lba_mid_msb) { in si_copy_out_regs()
[all …]
/titanic_41/usr/src/cmd/cmd-crypto/elfsign/
H A Delfsign.c142 char *scmd = NULL; in main() local
163 scmd = argv[1]; in main()
177 if (strcmp(scmd, SIGN) == 0) { in main()
183 } else if (strcmp(scmd, VERIFY) == 0) { in main()
188 } else if (strcmp(scmd, REQUEST) == 0) { in main()
193 } else if (strcmp(scmd, LIST) == 0) { in main()
200 scmd); in main()
/titanic_41/usr/src/uts/common/io/sata/adapters/nv_sata/
H A Dnv_sata.c6101 sata_cmd_t *scmd = &spkt->satapkt_cmd; in nv_copy_registers() local
6120 status = scmd->satacmd_status_reg = nv_get8(ctlhdl, in nv_copy_registers()
6123 flags = scmd->satacmd_flags; in nv_copy_registers()
6135 scmd->satacmd_status_reg = status; in nv_copy_registers()
6138 if (scmd->satacmd_addr_type & ATA_ADDR_LBA48) { in nv_copy_registers()
6149 scmd->satacmd_sec_count_msb = in nv_copy_registers()
6154 scmd->satacmd_lba_low_msb = in nv_copy_registers()
6159 scmd->satacmd_lba_mid_msb = in nv_copy_registers()
6164 scmd->satacmd_lba_high_msb = in nv_copy_registers()
6178 scmd->satacmd_sec_count_lsb = nv_get8(cmdhdl, nvp->nvp_count); in nv_copy_registers()
[all …]
/titanic_41/usr/src/lib/libcryptoutil/
H A DREADME86 cryptodebug("scmd=request opts=%s", opts);
/titanic_41/usr/src/uts/sun4v/io/
H A Dvdc.c6590 vdc_eio_scsi_cmd(vdc_t *vdc, uchar_t scmd, int flags) in vdc_eio_scsi_cmd() argument
6597 ASSERT(scmd == SCMD_TEST_UNIT_READY || scmd == SCMD_WRITE_G1); in vdc_eio_scsi_cmd()
6599 if (scmd == SCMD_WRITE_G1) in vdc_eio_scsi_cmd()
6610 cdb->scc_cmd = scmd; in vdc_eio_scsi_cmd()