Searched refs:cmnd (Results 1 - 25 of 174) sorted by relevance

1234567

/linux-master/drivers/usb/storage/
H A Dcypress_atacb.c77 if (likely(srb->cmnd[0] != ATA_16 && srb->cmnd[0] != ATA_12)) {
82 memcpy(save_cmnd, srb->cmnd, sizeof(save_cmnd));
83 memset(srb->cmnd, 0, MAX_COMMAND_SIZE);
101 srb->cmnd[0] = 0x24; /*
106 srb->cmnd[1] = 0x24; /* bVSCBSubCommand : 0x24 for ATACB */
108 srb->cmnd[3] = 0xff - 1; /*
112 srb->cmnd[4] = 1; /* TransferBlockCount : 512 */
115 srb->cmnd[ 6] = save_cmnd[ 4]; /* features */
116 srb->cmnd[
[all...]
H A Duas.c45 struct scsi_cmnd *cmnd[MAX_CMNDS]; member in struct:uas_dev_info
76 static int uas_submit_urbs(struct scsi_cmnd *cmnd,
79 static int uas_try_complete(struct scsi_cmnd *cmnd, const char *caller);
81 static void uas_log_cmd_state(struct scsi_cmnd *cmnd, const char *prefix,
102 struct scsi_cmnd *cmnd; local
112 if (!devinfo->cmnd[i])
115 cmnd = devinfo->cmnd[i];
116 cmdinfo = scsi_cmd_priv(cmnd);
121 err = uas_submit_urbs(cmnd, cmn
142 uas_add_work(struct scsi_cmnd *cmnd) argument
155 struct scsi_cmnd *cmnd; local
176 uas_sense(struct urb *urb, struct scsi_cmnd *cmnd) argument
199 uas_log_cmd_state(struct scsi_cmnd *cmnd, const char *prefix, int status) argument
225 uas_free_unsubmitted_urbs(struct scsi_cmnd *cmnd) argument
244 uas_try_complete(struct scsi_cmnd *cmnd, const char *caller) argument
261 uas_xfer_data(struct urb *urb, struct scsi_cmnd *cmnd, unsigned direction) argument
274 uas_evaluate_response_iu(struct response_iu *riu, struct scsi_cmnd *cmnd) argument
304 struct scsi_cmnd *cmnd; local
394 struct scsi_cmnd *cmnd = urb->context; local
442 uas_alloc_data_urb(struct uas_dev_info *devinfo, gfp_t gfp, struct scsi_cmnd *cmnd, enum dma_data_direction dir) argument
465 uas_alloc_sense_urb(struct uas_dev_info *devinfo, gfp_t gfp, struct scsi_cmnd *cmnd) argument
492 uas_alloc_cmd_urb(struct uas_dev_info *devinfo, gfp_t gfp, struct scsi_cmnd *cmnd) argument
536 uas_submit_sense_urb(struct scsi_cmnd *cmnd, gfp_t gfp) argument
555 uas_submit_urbs(struct scsi_cmnd *cmnd, struct uas_dev_info *devinfo) argument
632 uas_queuecommand_lck(struct scsi_cmnd *cmnd) argument
725 uas_eh_abort_handler(struct scsi_cmnd *cmnd) argument
763 uas_eh_device_reset_handler(struct scsi_cmnd *cmnd) argument
[all...]
H A Djumpshot.c387 pc = srb->cmnd[2] >> 6;
388 page_code = srb->cmnd[2] & 0x3F;
494 if (srb->cmnd[0] == INQUIRY) {
501 if (srb->cmnd[0] == READ_CAPACITY) {
524 if (srb->cmnd[0] == MODE_SELECT_10) {
529 if (srb->cmnd[0] == READ_10) {
530 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) |
531 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[
[all...]
H A Ddatafab.c462 pc = srb->cmnd[2] >> 6;
463 page_code = srb->cmnd[2] & 0x3F;
568 if (srb->cmnd[0] == INQUIRY) {
575 if (srb->cmnd[0] == READ_CAPACITY) {
593 if (srb->cmnd[0] == MODE_SELECT_10) {
600 if (srb->cmnd[0] == READ_10) {
601 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) |
602 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[
[all...]
H A Dprotocol.c52 * a unsigned char cmnd[16], so we know we have storage available
55 srb->cmnd[srb->cmd_len] = 0;
68 * a unsigned char cmnd[16], so we know we have storage available
73 srb->cmnd[srb->cmd_len] = 0;
81 switch (srb->cmnd[0]) {
85 srb->cmnd[4] = 36;
90 srb->cmnd[7] = 0;
91 srb->cmnd[8] = 8;
96 srb->cmnd[4] = 18;
98 } /* end switch on cmnd[
[all...]
H A Dshuttle_usbat.c1586 data[i] = (i-7 >= srb->cmd_len) ? 0 : srb->cmnd[i-7];
1593 if (srb->cmnd[0] == TEST_UNIT_READY)
1613 } else if (srb->cmnd[0] == READ_10 ||
1614 srb->cmnd[0] == GPCMD_READ_CD) {
1641 result = usbat_write_block(us, USBAT_ATA, srb->cmnd, 12,
1642 srb->cmnd[0] == GPCMD_BLANK ? 75 : 10, 0);
1690 if (srb->cmnd[0] == INQUIRY) {
1697 if (srb->cmnd[0] == READ_CAPACITY) {
1723 if (srb->cmnd[0] == MODE_SELECT_10) {
1728 if (srb->cmnd[
[all...]
H A Drealtek_cr.c363 u8 cmnd[12] = { 0 }; local
372 cmnd[0] = 0xF0;
373 cmnd[1] = 0x0D;
374 cmnd[2] = (u8) (addr >> 8);
375 cmnd[3] = (u8) addr;
376 cmnd[4] = (u8) (len >> 8);
377 cmnd[5] = (u8) len;
379 retval = rts51x_bulk_transport(us, 0, cmnd, 12,
394 u8 cmnd[12] = { 0 }; local
403 cmnd[
423 u8 cmnd[12] = { 0 }; local
505 u8 cmnd[12] = {0}; local
[all...]
H A Dtransport.c464 * via usb_stor_bulk_transfer_sglist() above. Set cmnd resid
548 if (srb->cmnd[0] != READ_10 && srb->cmnd[0] != WRITE_10)
552 sector = (srb->cmnd[2] << 24) | (srb->cmnd[3] << 16) |
553 (srb->cmnd[4] << 8) | (srb->cmnd[5]);
594 if (srb->cmnd[0] != TEST_UNIT_READY)
661 srb->cmnd[0] == SYNCHRONIZE_CACHE) {
682 if (unlikely((srb->cmnd[
[all...]
H A Dalauda.c1136 if (srb->cmnd[0] == INQUIRY) {
1143 if (srb->cmnd[0] == TEST_UNIT_READY) {
1148 if (srb->cmnd[0] == READ_CAPACITY) {
1170 if (srb->cmnd[0] == READ_10) {
1177 page = short_pack(srb->cmnd[3], srb->cmnd[2]);
1179 page |= short_pack(srb->cmnd[5], srb->cmnd[4]);
1180 pages = short_pack(srb->cmnd[8], srb->cmnd[
[all...]
/linux-master/include/scsi/
H A Dscsi_common.h35 scsi_command_size(const unsigned char *cmnd) argument
37 return (cmnd[0] == VARIABLE_LENGTH_CMD) ?
38 scsi_varlen_cdb_length(cmnd) : COMMAND_SIZE(cmnd[0]);
42 scsi_command_control(const unsigned char *cmnd) argument
44 return (cmnd[0] == VARIABLE_LENGTH_CMD) ?
45 cmnd[1] : cmnd[COMMAND_SIZE(cmnd[0]) - 1];
H A Dscsi_eh.h41 unsigned char cmnd[32]; member in struct:scsi_eh_save
47 struct scsi_eh_save *ses, unsigned char *cmnd,
/linux-master/drivers/scsi/
H A Dsd_trace.h18 TP_PROTO(struct scsi_cmnd *cmnd, sector_t lba,
21 TP_ARGS(cmnd, lba, wp_offset),
33 __entry->host_no = cmnd->device->host->host_no;
34 __entry->channel = cmnd->device->channel;
35 __entry->id = cmnd->device->id;
36 __entry->lun = cmnd->device->lun;
48 TP_PROTO(struct scsi_cmnd *cmnd, sector_t rq_sector,
51 TP_ARGS(cmnd, rq_sector, wp_offset, good_bytes),
64 __entry->host_no = cmnd->device->host->host_no;
65 __entry->channel = cmnd
[all...]
H A Dscsi_bsg.c36 if (scmd->cmd_len > sizeof(scmd->cmnd)) {
42 if (copy_from_user(scmd->cmnd, uptr64(hdr->request), scmd->cmd_len))
45 if (!scsi_cmd_allowed(scmd->cmnd, open_for_write))
H A Dps3rom.c88 unsigned char opcode = cmd->cmnd[0];
96 memcpy(&atapi_cmnd.pkt, cmd->cmnd, 12);
150 return cmd->cmnd[2] << 24 | cmd->cmnd[3] << 16 | cmd->cmnd[4] << 8 |
151 cmd->cmnd[5];
156 return cmd->cmnd[7] << 8 | cmd->cmnd[8];
212 opcode = cmd->cmnd[0];
305 if (cmd->cmnd[
[all...]
/linux-master/drivers/scsi/bfa/
H A Dbfad_im.c27 static int bfad_im_queuecommand(struct Scsi_Host *h, struct scsi_cmnd *cmnd);
37 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; local
46 scsi_set_resid(cmnd, 0);
52 memcpy(cmnd->sense_buffer, sns_info, sns_len);
57 scsi_set_resid(cmnd, residue);
59 (scsi_bufflen(cmnd) - residue) <
60 cmnd->underflow) {
65 cmnd->result = host_status << 16 | scsi_status;
70 cmnd->result = DID_TIME_OUT << 16;
73 cmnd
105 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; local
133 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; local
150 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dtsk; local
190 bfad_im_abort_handler(struct scsi_cmnd *cmnd) argument
241 bfad_im_target_reset_send(struct bfad_s *bfad, struct scsi_cmnd *cmnd, struct bfad_itnim_s *itnim) argument
291 bfad_im_reset_lun_handler(struct scsi_cmnd *cmnd) argument
367 bfad_im_reset_target_handler(struct scsi_cmnd *cmnd) argument
1202 bfad_im_queuecommand_lck(struct scsi_cmnd *cmnd) argument
[all...]
/linux-master/drivers/staging/rts5208/
H A Drtsx_scsi.c29 switch (srb->cmnd[0]) {
303 if (srb->cmnd[0] != TEST_UNIT_READY)
309 dev_dbg(rtsx_dev(chip), "%*ph\n", len, srb->cmnd);
554 if (srb->cmnd[1] == 1)
557 switch (srb->cmnd[0x4]) {
585 prevent = srb->cmnd[4] & 0x1;
776 page_code = srb->cmnd[2] & 0x3f;
781 if (srb->cmnd[0] == MODE_SENSE) {
783 ms_mode_sense(chip, srb->cmnd[0],
798 ms_mode_sense(chip, srb->cmnd[
[all...]
H A Dspi.c456 spi->spi_clock = ((u16)(srb->cmnd[8]) << 8) | srb->cmnd[9];
458 spi->spi_clock = srb->cmnd[3];
460 spi->clk_div = ((u16)(srb->cmnd[4]) << 8) | srb->cmnd[5];
461 spi->write_en = srb->cmnd[6];
477 len = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8];
494 rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_COMMAND, 0xFF, srb->cmnd[3]);
495 rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_ADDR2, 0xFF, srb->cmnd[
[all...]
/linux-master/drivers/scsi/snic/
H A Dsnic_trc.h96 ((u64)sc->cmnd[0] << 56 | (u64)sc->cmnd[7] << 40 | \
97 (u64)sc->cmnd[8] << 32 | (u64)sc->cmnd[2] << 24 | \
98 (u64)sc->cmnd[3] << 16 | (u64)sc->cmnd[4] << 8 | \
99 (u64)sc->cmnd[5])
/linux-master/include/trace/events/
H A Dscsi.h174 __dynamic_array(unsigned char, cmnd, cmd->cmd_len)
182 __entry->opcode = cmd->cmnd[0];
189 memcpy(__get_dynamic_array(cmnd), cmd->cmnd, cmd->cmd_len);
193 " prot_op=%s driver_tag=%d scheduler_tag=%d cmnd=(%s %s raw=%s)",
198 __parse_cdb(__get_dynamic_array(cmnd), __entry->cmd_len),
199 __print_hex(__get_dynamic_array(cmnd), __entry->cmd_len))
221 __dynamic_array(unsigned char, cmnd, cmd->cmd_len)
230 __entry->opcode = cmd->cmnd[0];
237 memcpy(__get_dynamic_array(cmnd), cm
[all...]
/linux-master/drivers/scsi/csiostor/
H A Dcsio_scsi.c174 memcpy(fcp_cmnd->fc_cdb, scmnd->cmnd, 16);
1564 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)csio_scsi_cmnd(req); local
1572 struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata);
1605 memcpy(cmnd->sense_buffer,
1610 scsi_set_resid(cmnd, 0);
1614 scsi_set_resid(cmnd,
1619 ((scsi_bufflen(cmnd) - scsi_get_resid(cmnd))
1620 < cmnd->underflow))
1630 "Over-flow error,cmnd
1743 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)csio_scsi_cmnd(req); local
1779 csio_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmnd) argument
1913 csio_eh_abort_handler(struct scsi_cmnd *cmnd) argument
2019 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)csio_scsi_cmnd(req); local
2062 csio_eh_lun_reset_handler(struct scsi_cmnd *cmnd) argument
[all...]
/linux-master/drivers/scsi/elx/efct/
H A Defct_unsol.c159 efct_populate_io_fcp_cmd(struct efct_io *io, struct fcp_cmnd *cmnd, argument
164 io->exp_xfer_len = be32_to_cpu(cmnd->fc_dl);
181 efct_get_flags_fcp_cmd(struct fcp_cmnd *cmnd) argument
185 switch (cmnd->fc_pri_ta & FCP_PTA_MASK) {
199 if (cmnd->fc_flags & FCP_CFL_WRDATA)
201 if (cmnd->fc_flags & FCP_CFL_RDDATA)
343 struct fcp_cmnd *cmnd = NULL; local
352 cmnd = seq->payload->dma.virt;
358 lun = scsilun_to_int(&cmnd->fc_lun);
379 efct_populate_io_fcp_cmd(io, cmnd, fchd
[all...]
/linux-master/drivers/scsi/aacraid/
H A Daachba.c1009 if (scsicmd->cmnd[2] == 0x83) {
1100 sp[1] = scsicmd->cmnd[2];
1566 memcpy(hbacmd->cdb, cmd->cmnd, cmd->cmd_len);
1591 memcpy(srbcmd->cdb, cmd->cmnd, cmd->cmd_len);
1622 memcpy(srbcmd->cdb, cmd->cmnd, cmd->cmd_len);
2335 switch (scsicmd->cmnd[0]) {
2338 lba = ((scsicmd->cmnd[1] & 0x1F) << 16) |
2339 (scsicmd->cmnd[2] << 8) | scsicmd->cmnd[3];
2343 lba = ((u64)scsicmd->cmnd[
[all...]
/linux-master/drivers/mmc/host/
H A Dvub300.c342 union sd_command cmnd; member in struct:vub300_mmc_host
482 vub300->cmnd.poll.header_size = 22;
483 vub300->cmnd.poll.header_type = 1;
484 vub300->cmnd.poll.port_number = 0;
485 vub300->cmnd.poll.command_type = 2;
486 vub300->cmnd.poll.poll_timeout_lsb = 0xFF & (unsigned)timeout;
487 vub300->cmnd.poll.poll_timeout_msb = 0xFF & (unsigned)(timeout >> 8);
490 , &vub300->cmnd, sizeof(vub300->cmnd)
1066 vub300->cmnd
[all...]
/linux-master/drivers/scsi/lpfc/
H A Dlpfc_scsi.c545 * @cmnd: Pointer to scsi_cmnd data structure.
556 struct scsi_cmnd *cmnd)
586 * @cmnd: Pointer to scsi_cmnd data structure.
597 struct scsi_cmnd *cmnd)
609 if (cmnd && phba->cfg_fcp_io_sched == LPFC_FCP_SCHED_BY_HDWQ) {
610 tag = blk_mq_unique_tag(scsi_cmd_to_rq(cmnd));
681 * @cmnd: Pointer to scsi_cmnd data structure.
692 struct scsi_cmnd *cmnd)
694 return phba->lpfc_get_scsi_buf(phba, ndlp, cmnd);
794 * This routine does the pci dma mapping for scatter-gather list of scsi cmnd
555 lpfc_get_scsi_buf_s3(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, struct scsi_cmnd *cmnd) argument
596 lpfc_get_scsi_buf_s4(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, struct scsi_cmnd *cmnd) argument
691 lpfc_get_scsi_buf(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, struct scsi_cmnd *cmnd) argument
3558 struct scsi_cmnd *cmnd = lpfc_cmd->pCmd; local
3816 struct scsi_cmnd *cmnd = lpfc_cmd->pCmd; local
5207 lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd) argument
5493 lpfc_abort_handler(struct scsi_cmnd *cmnd) argument
5955 lpfc_device_reset_handler(struct scsi_cmnd *cmnd) argument
6033 lpfc_target_reset_handler(struct scsi_cmnd *cmnd) argument
6163 lpfc_host_reset_handler(struct scsi_cmnd *cmnd) argument
6706 lpfc_no_command(struct Scsi_Host *shost, struct scsi_cmnd *cmnd) argument
[all...]
/linux-master/drivers/scsi/arm/
H A Dqueue.h50 __queue_add(queue,SCpnt,(SCpnt)->cmnd[0] == REQUEST_SENSE)

Completed in 244 milliseconds

1234567