Home
last modified time | relevance | path

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

12345678910>>...14

/kernel/linux/linux-5.10/drivers/usb/storage/
H A Duas.c45 struct scsi_cmnd *cmnd[MAX_CMNDS]; member
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; in uas_do_work() local
112 if (!devinfo->cmnd[i]) in uas_do_work()
115 cmnd = devinfo->cmnd[i]; in uas_do_work()
116 cmdinfo = (void *)&cmnd->SCp; in uas_do_work()
121 err = uas_submit_urbs(cmnd, cmn in uas_do_work()
145 struct scsi_cmnd *cmnd = container_of(scp, struct scsi_cmnd, SCp); uas_add_work() local
156 struct scsi_cmnd *cmnd; uas_zap_pending() local
177 uas_sense(struct urb *urb, struct scsi_cmnd *cmnd) uas_sense() argument
200 uas_log_cmd_state(struct scsi_cmnd *cmnd, const char *prefix, int status) uas_log_cmd_state() argument
227 uas_free_unsubmitted_urbs(struct scsi_cmnd *cmnd) uas_free_unsubmitted_urbs() argument
246 uas_try_complete(struct scsi_cmnd *cmnd, const char *caller) uas_try_complete() argument
263 uas_xfer_data(struct urb *urb, struct scsi_cmnd *cmnd, unsigned direction) uas_xfer_data() argument
276 uas_evaluate_response_iu(struct response_iu *riu, struct scsi_cmnd *cmnd) uas_evaluate_response_iu() argument
306 struct scsi_cmnd *cmnd; uas_stat_cmplt() local
396 struct scsi_cmnd *cmnd = urb->context; uas_data_cmplt() local
444 uas_alloc_data_urb(struct uas_dev_info *devinfo, gfp_t gfp, struct scsi_cmnd *cmnd, enum dma_data_direction dir) uas_alloc_data_urb() argument
467 uas_alloc_sense_urb(struct uas_dev_info *devinfo, gfp_t gfp, struct scsi_cmnd *cmnd) uas_alloc_sense_urb() argument
494 uas_alloc_cmd_urb(struct uas_dev_info *devinfo, gfp_t gfp, struct scsi_cmnd *cmnd) uas_alloc_cmd_urb() argument
538 uas_submit_sense_urb(struct scsi_cmnd *cmnd, gfp_t gfp) uas_submit_sense_urb() argument
558 uas_submit_urbs(struct scsi_cmnd *cmnd, struct uas_dev_info *devinfo) uas_submit_urbs() argument
636 uas_queuecommand_lck(struct scsi_cmnd *cmnd, void (*done)(struct scsi_cmnd *)) uas_queuecommand_lck() argument
733 uas_eh_abort_handler(struct scsi_cmnd *cmnd) uas_eh_abort_handler() argument
771 uas_eh_device_reset_handler(struct scsi_cmnd *cmnd) uas_eh_device_reset_handler() argument
[all...]
H A Dcypress_atacb.c77 if (likely(srb->cmnd[0] != ATA_16 && srb->cmnd[0] != ATA_12)) { in cypress_atacb_passthrough()
82 memcpy(save_cmnd, srb->cmnd, sizeof(save_cmnd)); in cypress_atacb_passthrough()
83 memset(srb->cmnd, 0, MAX_COMMAND_SIZE); in cypress_atacb_passthrough()
101 srb->cmnd[0] = 0x24; /* in cypress_atacb_passthrough()
106 srb->cmnd[1] = 0x24; /* bVSCBSubCommand : 0x24 for ATACB */ in cypress_atacb_passthrough()
108 srb->cmnd[3] = 0xff - 1; /* in cypress_atacb_passthrough()
112 srb->cmnd[4] = 1; /* TransferBlockCount : 512 */ in cypress_atacb_passthrough()
115 srb->cmnd[ 6] = save_cmnd[ 4]; /* features */ in cypress_atacb_passthrough()
116 srb->cmnd[ in cypress_atacb_passthrough()
[all...]
H A Djumpshot.c387 pc = srb->cmnd[2] >> 6; in jumpshot_handle_mode_sense()
388 page_code = srb->cmnd[2] & 0x3F; in jumpshot_handle_mode_sense()
494 if (srb->cmnd[0] == INQUIRY) { in jumpshot_transport()
501 if (srb->cmnd[0] == READ_CAPACITY) { in jumpshot_transport()
524 if (srb->cmnd[0] == MODE_SELECT_10) { in jumpshot_transport()
529 if (srb->cmnd[0] == READ_10) { in jumpshot_transport()
530 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
531 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[ in jumpshot_transport()
[all...]
H A Ddatafab.c463 pc = srb->cmnd[2] >> 6; in datafab_handle_mode_sense()
464 page_code = srb->cmnd[2] & 0x3F; in datafab_handle_mode_sense()
569 if (srb->cmnd[0] == INQUIRY) { in datafab_transport()
576 if (srb->cmnd[0] == READ_CAPACITY) { in datafab_transport()
594 if (srb->cmnd[0] == MODE_SELECT_10) { in datafab_transport()
601 if (srb->cmnd[0] == READ_10) { in datafab_transport()
602 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in datafab_transport()
603 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[ in datafab_transport()
[all...]
H A Dshuttle_usbat.c1586 data[i] = (i-7 >= srb->cmd_len) ? 0 : srb->cmnd[i-7]; in usbat_hp8200e_transport()
1593 if (srb->cmnd[0] == TEST_UNIT_READY) in usbat_hp8200e_transport()
1613 } else if (srb->cmnd[0] == READ_10 || in usbat_hp8200e_transport()
1614 srb->cmnd[0] == GPCMD_READ_CD) { in usbat_hp8200e_transport()
1641 result = usbat_write_block(us, USBAT_ATA, srb->cmnd, 12, in usbat_hp8200e_transport()
1642 srb->cmnd[0] == GPCMD_BLANK ? 75 : 10, 0); in usbat_hp8200e_transport()
1690 if (srb->cmnd[0] == INQUIRY) { in usbat_flash_transport()
1697 if (srb->cmnd[0] == READ_CAPACITY) { in usbat_flash_transport()
1723 if (srb->cmnd[0] == MODE_SELECT_10) { in usbat_flash_transport()
1728 if (srb->cmnd[ in usbat_flash_transport()
[all...]
/kernel/linux/linux-6.6/drivers/usb/storage/
H A Duas.c45 struct scsi_cmnd *cmnd[MAX_CMNDS]; member
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; in uas_do_work() local
112 if (!devinfo->cmnd[i]) in uas_do_work()
115 cmnd = devinfo->cmnd[i]; in uas_do_work()
116 cmdinfo = scsi_cmd_priv(cmnd); in uas_do_work()
121 err = uas_submit_urbs(cmnd, cmn in uas_do_work()
142 uas_add_work(struct scsi_cmnd *cmnd) uas_add_work() argument
155 struct scsi_cmnd *cmnd; uas_zap_pending() local
176 uas_sense(struct urb *urb, struct scsi_cmnd *cmnd) uas_sense() argument
199 uas_log_cmd_state(struct scsi_cmnd *cmnd, const char *prefix, int status) uas_log_cmd_state() argument
225 uas_free_unsubmitted_urbs(struct scsi_cmnd *cmnd) uas_free_unsubmitted_urbs() argument
244 uas_try_complete(struct scsi_cmnd *cmnd, const char *caller) uas_try_complete() argument
261 uas_xfer_data(struct urb *urb, struct scsi_cmnd *cmnd, unsigned direction) uas_xfer_data() argument
274 uas_evaluate_response_iu(struct response_iu *riu, struct scsi_cmnd *cmnd) uas_evaluate_response_iu() argument
304 struct scsi_cmnd *cmnd; uas_stat_cmplt() local
394 struct scsi_cmnd *cmnd = urb->context; uas_data_cmplt() local
442 uas_alloc_data_urb(struct uas_dev_info *devinfo, gfp_t gfp, struct scsi_cmnd *cmnd, enum dma_data_direction dir) uas_alloc_data_urb() argument
465 uas_alloc_sense_urb(struct uas_dev_info *devinfo, gfp_t gfp, struct scsi_cmnd *cmnd) uas_alloc_sense_urb() argument
492 uas_alloc_cmd_urb(struct uas_dev_info *devinfo, gfp_t gfp, struct scsi_cmnd *cmnd) uas_alloc_cmd_urb() argument
536 uas_submit_sense_urb(struct scsi_cmnd *cmnd, gfp_t gfp) uas_submit_sense_urb() argument
556 uas_submit_urbs(struct scsi_cmnd *cmnd, struct uas_dev_info *devinfo) uas_submit_urbs() argument
634 uas_queuecommand_lck(struct scsi_cmnd *cmnd) uas_queuecommand_lck() argument
727 uas_eh_abort_handler(struct scsi_cmnd *cmnd) uas_eh_abort_handler() argument
765 uas_eh_device_reset_handler(struct scsi_cmnd *cmnd) uas_eh_device_reset_handler() argument
[all...]
H A Dcypress_atacb.c77 if (likely(srb->cmnd[0] != ATA_16 && srb->cmnd[0] != ATA_12)) { in cypress_atacb_passthrough()
82 memcpy(save_cmnd, srb->cmnd, sizeof(save_cmnd)); in cypress_atacb_passthrough()
83 memset(srb->cmnd, 0, MAX_COMMAND_SIZE); in cypress_atacb_passthrough()
101 srb->cmnd[0] = 0x24; /* in cypress_atacb_passthrough()
106 srb->cmnd[1] = 0x24; /* bVSCBSubCommand : 0x24 for ATACB */ in cypress_atacb_passthrough()
108 srb->cmnd[3] = 0xff - 1; /* in cypress_atacb_passthrough()
112 srb->cmnd[4] = 1; /* TransferBlockCount : 512 */ in cypress_atacb_passthrough()
115 srb->cmnd[ 6] = save_cmnd[ 4]; /* features */ in cypress_atacb_passthrough()
116 srb->cmnd[ in cypress_atacb_passthrough()
[all...]
H A Djumpshot.c387 pc = srb->cmnd[2] >> 6; in jumpshot_handle_mode_sense()
388 page_code = srb->cmnd[2] & 0x3F; in jumpshot_handle_mode_sense()
494 if (srb->cmnd[0] == INQUIRY) { in jumpshot_transport()
501 if (srb->cmnd[0] == READ_CAPACITY) { in jumpshot_transport()
524 if (srb->cmnd[0] == MODE_SELECT_10) { in jumpshot_transport()
529 if (srb->cmnd[0] == READ_10) { in jumpshot_transport()
530 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
531 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[ in jumpshot_transport()
[all...]
H A Ddatafab.c462 pc = srb->cmnd[2] >> 6; in datafab_handle_mode_sense()
463 page_code = srb->cmnd[2] & 0x3F; in datafab_handle_mode_sense()
568 if (srb->cmnd[0] == INQUIRY) { in datafab_transport()
575 if (srb->cmnd[0] == READ_CAPACITY) { in datafab_transport()
593 if (srb->cmnd[0] == MODE_SELECT_10) { in datafab_transport()
600 if (srb->cmnd[0] == READ_10) { in datafab_transport()
601 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in datafab_transport()
602 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[ in datafab_transport()
[all...]
H A Dshuttle_usbat.c1586 data[i] = (i-7 >= srb->cmd_len) ? 0 : srb->cmnd[i-7]; in usbat_hp8200e_transport()
1593 if (srb->cmnd[0] == TEST_UNIT_READY) in usbat_hp8200e_transport()
1613 } else if (srb->cmnd[0] == READ_10 || in usbat_hp8200e_transport()
1614 srb->cmnd[0] == GPCMD_READ_CD) { in usbat_hp8200e_transport()
1641 result = usbat_write_block(us, USBAT_ATA, srb->cmnd, 12, in usbat_hp8200e_transport()
1642 srb->cmnd[0] == GPCMD_BLANK ? 75 : 10, 0); in usbat_hp8200e_transport()
1690 if (srb->cmnd[0] == INQUIRY) { in usbat_flash_transport()
1697 if (srb->cmnd[0] == READ_CAPACITY) { in usbat_flash_transport()
1723 if (srb->cmnd[0] == MODE_SELECT_10) { in usbat_flash_transport()
1728 if (srb->cmnd[ in usbat_flash_transport()
[all...]
/kernel/linux/linux-5.10/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; in bfa_cb_ioim_done() local
46 scsi_set_resid(cmnd, 0); in bfa_cb_ioim_done()
52 memcpy(cmnd->sense_buffer, sns_info, sns_len); in bfa_cb_ioim_done()
57 scsi_set_resid(cmnd, residue); in bfa_cb_ioim_done()
59 (scsi_bufflen(cmnd) - residue) < in bfa_cb_ioim_done()
60 cmnd->underflow) { in bfa_cb_ioim_done()
65 cmnd->result = host_status << 16 | scsi_status; in bfa_cb_ioim_done()
70 cmnd->result = DID_TIME_OUT << 16; in bfa_cb_ioim_done()
73 cmnd in bfa_cb_ioim_done()
105 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; bfa_cb_ioim_good_comp() local
133 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; bfa_cb_ioim_abort() local
150 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dtsk; bfa_cb_tskim_done() local
190 bfad_im_abort_handler(struct scsi_cmnd *cmnd) bfad_im_abort_handler() argument
241 bfad_im_target_reset_send(struct bfad_s *bfad, struct scsi_cmnd *cmnd, struct bfad_itnim_s *itnim) bfad_im_target_reset_send() argument
291 bfad_im_reset_lun_handler(struct scsi_cmnd *cmnd) bfad_im_reset_lun_handler() argument
368 bfad_im_reset_target_handler(struct scsi_cmnd *cmnd) bfad_im_reset_target_handler() argument
1203 bfad_im_queuecommand_lck(struct scsi_cmnd *cmnd, void (*done) (struct scsi_cmnd *)) bfad_im_queuecommand_lck() argument
[all...]
/kernel/linux/linux-6.6/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; in bfa_cb_ioim_done() local
46 scsi_set_resid(cmnd, 0); in bfa_cb_ioim_done()
52 memcpy(cmnd->sense_buffer, sns_info, sns_len); in bfa_cb_ioim_done()
57 scsi_set_resid(cmnd, residue); in bfa_cb_ioim_done()
59 (scsi_bufflen(cmnd) - residue) < in bfa_cb_ioim_done()
60 cmnd->underflow) { in bfa_cb_ioim_done()
65 cmnd->result = host_status << 16 | scsi_status; in bfa_cb_ioim_done()
70 cmnd->result = DID_TIME_OUT << 16; in bfa_cb_ioim_done()
73 cmnd in bfa_cb_ioim_done()
105 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; bfa_cb_ioim_good_comp() local
133 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; bfa_cb_ioim_abort() local
150 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dtsk; bfa_cb_tskim_done() local
190 bfad_im_abort_handler(struct scsi_cmnd *cmnd) bfad_im_abort_handler() argument
241 bfad_im_target_reset_send(struct bfad_s *bfad, struct scsi_cmnd *cmnd, struct bfad_itnim_s *itnim) bfad_im_target_reset_send() argument
291 bfad_im_reset_lun_handler(struct scsi_cmnd *cmnd) bfad_im_reset_lun_handler() argument
367 bfad_im_reset_target_handler(struct scsi_cmnd *cmnd) bfad_im_reset_target_handler() argument
1202 bfad_im_queuecommand_lck(struct scsi_cmnd *cmnd) bfad_im_queuecommand_lck() argument
[all...]
/kernel/linux/linux-5.10/drivers/staging/rts5208/
H A Drtsx_scsi.c29 switch (srb->cmnd[0]) { in scsi_show_command()
303 if (srb->cmnd[0] != TEST_UNIT_READY) in scsi_show_command()
309 dev_dbg(rtsx_dev(chip), "%*ph\n", len, srb->cmnd); in scsi_show_command()
554 if (srb->cmnd[1] == 1) in start_stop_unit()
557 switch (srb->cmnd[0x4]) { in start_stop_unit()
585 prevent = srb->cmnd[4] & 0x1; in allow_medium_removal()
776 page_code = srb->cmnd[2] & 0x3f; in mode_sense()
781 if (srb->cmnd[0] == MODE_SENSE) { in mode_sense()
783 ms_mode_sense(chip, srb->cmnd[0], in mode_sense()
798 ms_mode_sense(chip, srb->cmnd[ in mode_sense()
[all...]
H A Dspi.c456 spi->spi_clock = ((u16)(srb->cmnd[8]) << 8) | srb->cmnd[9]; in spi_set_parameter()
458 spi->spi_clock = srb->cmnd[3]; in spi_set_parameter()
460 spi->clk_div = ((u16)(srb->cmnd[4]) << 8) | srb->cmnd[5]; in spi_set_parameter()
461 spi->write_en = srb->cmnd[6]; in spi_set_parameter()
479 len = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; in spi_read_flash_id()
496 rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_COMMAND, 0xFF, srb->cmnd[3]); in spi_read_flash_id()
497 rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_ADDR2, 0xFF, srb->cmnd[ in spi_read_flash_id()
[all...]
/kernel/linux/linux-6.6/drivers/staging/rts5208/
H A Drtsx_scsi.c29 switch (srb->cmnd[0]) { in scsi_show_command()
303 if (srb->cmnd[0] != TEST_UNIT_READY) in scsi_show_command()
309 dev_dbg(rtsx_dev(chip), "%*ph\n", len, srb->cmnd); in scsi_show_command()
554 if (srb->cmnd[1] == 1) in start_stop_unit()
557 switch (srb->cmnd[0x4]) { in start_stop_unit()
585 prevent = srb->cmnd[4] & 0x1; in allow_medium_removal()
776 page_code = srb->cmnd[2] & 0x3f; in mode_sense()
781 if (srb->cmnd[0] == MODE_SENSE) { in mode_sense()
783 ms_mode_sense(chip, srb->cmnd[0], in mode_sense()
798 ms_mode_sense(chip, srb->cmnd[ in mode_sense()
[all...]
H A Dspi.c456 spi->spi_clock = ((u16)(srb->cmnd[8]) << 8) | srb->cmnd[9]; in spi_set_parameter()
458 spi->spi_clock = srb->cmnd[3]; in spi_set_parameter()
460 spi->clk_div = ((u16)(srb->cmnd[4]) << 8) | srb->cmnd[5]; in spi_set_parameter()
461 spi->write_en = srb->cmnd[6]; in spi_set_parameter()
477 len = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; in spi_read_flash_id()
494 rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_COMMAND, 0xFF, srb->cmnd[3]); in spi_read_flash_id()
495 rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_ADDR2, 0xFF, srb->cmnd[ in spi_read_flash_id()
[all...]
/kernel/linux/linux-5.10/include/scsi/
H A Dscsi_common.h22 scsi_command_size(const unsigned char *cmnd) in scsi_command_size() argument
24 return (cmnd[0] == VARIABLE_LENGTH_CMD) ? in scsi_command_size()
25 scsi_varlen_cdb_length(cmnd) : COMMAND_SIZE(cmnd[0]); in scsi_command_size()
29 scsi_command_control(const unsigned char *cmnd) in scsi_command_control() argument
31 return (cmnd[0] == VARIABLE_LENGTH_CMD) ? in scsi_command_control()
32 cmnd[1] : cmnd[COMMAND_SIZE(cmnd[0]) - 1]; in scsi_command_control()
/kernel/linux/linux-6.6/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...]
/kernel/linux/linux-5.10/drivers/scsi/csiostor/
H A Dcsio_scsi.c174 memcpy(fcp_cmnd->fc_cdb, scmnd->cmnd, 16); in csio_scsi_fcp_cmnd()
1560 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)csio_scsi_cmnd(req); in csio_scsi_err_handler() local
1568 struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata); in csio_scsi_err_handler()
1601 memcpy(cmnd->sense_buffer, in csio_scsi_err_handler()
1606 scsi_set_resid(cmnd, 0); in csio_scsi_err_handler()
1610 scsi_set_resid(cmnd, in csio_scsi_err_handler()
1615 ((scsi_bufflen(cmnd) - scsi_get_resid(cmnd)) in csio_scsi_err_handler()
1616 < cmnd->underflow)) in csio_scsi_err_handler()
1626 "Over-flow error,cmnd in csio_scsi_err_handler()
1739 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)csio_scsi_cmnd(req); csio_scsi_cbfn() local
1775 csio_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmnd) csio_queuecommand() argument
1909 csio_eh_abort_handler(struct scsi_cmnd *cmnd) csio_eh_abort_handler() argument
2015 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)csio_scsi_cmnd(req); csio_tm_cbfn() local
2058 csio_eh_lun_reset_handler(struct scsi_cmnd *cmnd) csio_eh_lun_reset_handler() argument
[all...]
/kernel/linux/linux-6.6/drivers/scsi/csiostor/
H A Dcsio_scsi.c174 memcpy(fcp_cmnd->fc_cdb, scmnd->cmnd, 16); in csio_scsi_fcp_cmnd()
1564 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)csio_scsi_cmnd(req); in csio_scsi_err_handler() local
1572 struct csio_rnode *rn = (struct csio_rnode *)(cmnd->device->hostdata); in csio_scsi_err_handler()
1605 memcpy(cmnd->sense_buffer, in csio_scsi_err_handler()
1610 scsi_set_resid(cmnd, 0); in csio_scsi_err_handler()
1614 scsi_set_resid(cmnd, in csio_scsi_err_handler()
1619 ((scsi_bufflen(cmnd) - scsi_get_resid(cmnd)) in csio_scsi_err_handler()
1620 < cmnd->underflow)) in csio_scsi_err_handler()
1630 "Over-flow error,cmnd in csio_scsi_err_handler()
1743 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)csio_scsi_cmnd(req); csio_scsi_cbfn() local
1779 csio_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmnd) csio_queuecommand() argument
1913 csio_eh_abort_handler(struct scsi_cmnd *cmnd) csio_eh_abort_handler() argument
2019 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)csio_scsi_cmnd(req); csio_tm_cbfn() local
2062 csio_eh_lun_reset_handler(struct scsi_cmnd *cmnd) csio_eh_lun_reset_handler() argument
[all...]
/kernel/linux/linux-6.6/include/scsi/
H A Dscsi_common.h35 scsi_command_size(const unsigned char *cmnd) in scsi_command_size() argument
37 return (cmnd[0] == VARIABLE_LENGTH_CMD) ? in scsi_command_size()
38 scsi_varlen_cdb_length(cmnd) : COMMAND_SIZE(cmnd[0]); in scsi_command_size()
42 scsi_command_control(const unsigned char *cmnd) in scsi_command_control() argument
44 return (cmnd[0] == VARIABLE_LENGTH_CMD) ? in scsi_command_control()
45 cmnd[1] : cmnd[COMMAND_SIZE(cmnd[0]) - 1]; in scsi_command_control()
/kernel/linux/linux-6.6/drivers/scsi/aacraid/
H A Daachba.c1009 if (scsicmd->cmnd[2] == 0x83) { in get_container_serial_callback()
1100 sp[1] = scsicmd->cmnd[2]; in get_container_serial_callback()
1566 memcpy(hbacmd->cdb, cmd->cmnd, cmd->cmd_len); in aac_construct_hbacmd()
1591 memcpy(srbcmd->cdb, cmd->cmnd, cmd->cmd_len); in aac_scsi_64()
1622 memcpy(srbcmd->cdb, cmd->cmnd, cmd->cmd_len); in aac_scsi_32()
2335 switch (scsicmd->cmnd[0]) { in io_callback()
2338 lba = ((scsicmd->cmnd[1] & 0x1F) << 16) | in io_callback()
2339 (scsicmd->cmnd[2] << 8) | scsicmd->cmnd[3]; in io_callback()
2343 lba = ((u64)scsicmd->cmnd[ in io_callback()
[all...]
/kernel/linux/linux-5.10/drivers/scsi/lpfc/
H A Dlpfc_scsi.c592 struct scsi_cmnd *cmnd) in lpfc_get_scsi_buf_s3()
631 struct scsi_cmnd *cmnd) in lpfc_get_scsi_buf_s4()
644 if (cmnd && phba->cfg_fcp_io_sched == LPFC_FCP_SCHED_BY_HDWQ) { in lpfc_get_scsi_buf_s4()
645 tag = blk_mq_unique_tag(cmnd->request); in lpfc_get_scsi_buf_s4()
743 struct scsi_cmnd *cmnd) in lpfc_get_scsi_buf()
745 return phba->lpfc_get_scsi_buf(phba, ndlp, cmnd); in lpfc_get_scsi_buf()
825 * This routine does the pci dma mapping for scatter-gather list of scsi cmnd
2913 "bgstat=x%x bghm=x%x\n", cmd->cmnd[0], in lpfc_parse_bg_err()
2925 "bgstat=x%x bghm=x%x\n", cmd->cmnd[0], in lpfc_parse_bg_err()
2943 "bgstat=x%x bghm=x%x\n", cmd->cmnd[ in lpfc_parse_bg_err()
591 lpfc_get_scsi_buf_s3(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, struct scsi_cmnd *cmnd) lpfc_get_scsi_buf_s3() argument
630 lpfc_get_scsi_buf_s4(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, struct scsi_cmnd *cmnd) lpfc_get_scsi_buf_s4() argument
742 lpfc_get_scsi_buf(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, struct scsi_cmnd *cmnd) lpfc_get_scsi_buf() argument
3490 struct scsi_cmnd *cmnd = lpfc_cmd->pCmd; lpfc_send_scsi_error_event() local
3612 struct scsi_cmnd *cmnd = lpfc_cmd->pCmd; lpfc_handle_fcp_err() local
4502 lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd) lpfc_queuecommand() argument
4726 lpfc_abort_handler(struct scsi_cmnd *cmnd) lpfc_abort_handler() argument
5032 lpfc_send_taskmgmt(struct lpfc_vport *vport, struct scsi_cmnd *cmnd, unsigned int tgt_id, uint64_t lun_id, uint8_t task_mgmt_cmd) lpfc_send_taskmgmt() argument
5131 lpfc_chk_tgt_mapped(struct lpfc_vport *vport, struct scsi_cmnd *cmnd) lpfc_chk_tgt_mapped() argument
5224 lpfc_device_reset_handler(struct scsi_cmnd *cmnd) lpfc_device_reset_handler() argument
5295 lpfc_target_reset_handler(struct scsi_cmnd *cmnd) lpfc_target_reset_handler() argument
5373 lpfc_bus_reset_handler(struct scsi_cmnd *cmnd) lpfc_bus_reset_handler() argument
5465 lpfc_host_reset_handler(struct scsi_cmnd *cmnd) lpfc_host_reset_handler() argument
5997 lpfc_no_command(struct Scsi_Host *shost, struct scsi_cmnd *cmnd) lpfc_no_command() argument
6003 lpfc_no_handler(struct scsi_cmnd *cmnd) lpfc_no_handler() argument
[all...]
/kernel/linux/linux-5.10/include/trace/events/
H A Dscsi.h216 __dynamic_array(unsigned char, cmnd, cmd->cmd_len)
224 __entry->opcode = cmd->cmnd[0];
229 memcpy(__get_dynamic_array(cmnd), cmd->cmnd, cmd->cmd_len);
233 " prot_op=%s cmnd=(%s %s raw=%s)",
238 __parse_cdb(__get_dynamic_array(cmnd), __entry->cmd_len),
239 __print_hex(__get_dynamic_array(cmnd), __entry->cmd_len))
259 __dynamic_array(unsigned char, cmnd, cmd->cmd_len)
268 __entry->opcode = cmd->cmnd[0];
273 memcpy(__get_dynamic_array(cmnd), cm
[all...]
/kernel/linux/linux-6.6/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...]

Completed in 32 milliseconds

12345678910>>...14