/linux/include/scsi/ |
A D | scsi_cmnd.h | 73 struct scsi_cmnd { struct 157 static inline void *scsi_cmd_priv(struct scsi_cmnd *cmd) in scsi_cmd_priv() 170 void scsi_done(struct scsi_cmnd *cmd); 172 extern void scsi_finish_command(struct scsi_cmnd *cmd); 178 blk_status_t scsi_alloc_sgtables(struct scsi_cmnd *cmd); 179 void scsi_free_sgtables(struct scsi_cmnd *cmd); 182 extern int scsi_dma_map(struct scsi_cmnd *cmd); 183 extern void scsi_dma_unmap(struct scsi_cmnd *cmd); 199 static inline unsigned scsi_bufflen(struct scsi_cmnd *cmd) in scsi_bufflen() 347 static inline u8 get_status_byte(struct scsi_cmnd *cmd) in get_status_byte() [all …]
|
A D | scsi_driver.h | 10 struct scsi_cmnd; 17 blk_status_t (*init_command)(struct scsi_cmnd *); 18 void (*uninit_command)(struct scsi_cmnd *); 19 int (*done)(struct scsi_cmnd *); 20 int (*eh_action)(struct scsi_cmnd *, int); 21 void (*eh_reset)(struct scsi_cmnd *);
|
A D | scsi_host.h | 17 struct scsi_cmnd; 76 int (* queuecommand)(struct Scsi_Host *, struct scsi_cmnd *); 141 int (* eh_abort_handler)(struct scsi_cmnd *); 142 int (* eh_device_reset_handler)(struct scsi_cmnd *); 143 int (* eh_target_reset_handler)(struct scsi_cmnd *); 144 int (* eh_bus_reset_handler)(struct scsi_cmnd *); 145 int (* eh_host_reset_handler)(struct scsi_cmnd *); 335 enum blk_eh_timer_return (*eh_timed_out)(struct scsi_cmnd *); 341 bool (*eh_should_retry_cmd)(struct scsi_cmnd *scmd); 509 int func_name(struct Scsi_Host *shost, struct scsi_cmnd *cmd) \ [all …]
|
A D | scsi_eh.h | 12 extern void scsi_eh_finish_cmd(struct scsi_cmnd *scmd, 18 extern bool scsi_command_normalize_sense(const struct scsi_cmnd *cmd, 20 extern enum scsi_disposition scsi_check_sense(struct scsi_cmnd *); 48 extern void scsi_eh_prep_cmnd(struct scsi_cmnd *scmd, 52 extern void scsi_eh_restore_cmnd(struct scsi_cmnd* scmd,
|
A D | scsi_dbg.h | 5 struct scsi_cmnd; 9 extern void scsi_print_command(struct scsi_cmnd *); 14 extern void scsi_print_sense(const struct scsi_cmnd *); 18 extern void scsi_print_result(const struct scsi_cmnd *, const char *, int);
|
/linux/drivers/scsi/pcmcia/ |
A D | nsp_cs.h | 259 struct scsi_cmnd *CurrentSC; 302 static int nsp_eh_bus_reset (struct scsi_cmnd *SCpnt); 303 static int nsp_eh_host_reset (struct scsi_cmnd *SCpnt); 308 static int nsphw_start_selection(struct scsi_cmnd *SCpnt); 310 static int nsp_fifo_count (struct scsi_cmnd *SCpnt); 311 static void nsp_pio_read (struct scsi_cmnd *SCpnt); 312 static void nsp_pio_write (struct scsi_cmnd *SCpnt); 316 static int nsp_negate_signal (struct scsi_cmnd *SCpnt, 318 static int nsp_expect_signal (struct scsi_cmnd *SCpnt, 331 static void show_command (struct scsi_cmnd *SCpnt); [all …]
|
/linux/drivers/scsi/ |
A D | scsi_priv.h | 13 struct scsi_cmnd; 36 void scsi_init_command(struct scsi_device *dev, struct scsi_cmnd *cmd); 38 void scsi_log_send(struct scsi_cmnd *cmd); 39 void scsi_log_completion(struct scsi_cmnd *cmd, int disposition); 41 static inline void scsi_log_send(struct scsi_cmnd *cmd) in scsi_log_send() 43 static inline void scsi_log_completion(struct scsi_cmnd *cmd, int disposition) in scsi_log_completion() 80 extern void scsi_eh_scmd_add(struct scsi_cmnd *); 86 int scsi_noretry_cmd(struct scsi_cmnd *scmd); 87 void scsi_eh_done(struct scsi_cmnd *scmd); 92 extern void scsi_queue_insert(struct scsi_cmnd *cmd, int reason); [all …]
|
A D | scsi_error.c | 62 struct scsi_cmnd *); 166 struct scsi_cmnd *scmd = in scmd_eh_abort_handler() 398 struct scsi_cmnd *scmd; in scsi_eh_prt_fail_stats() 1259 struct scsi_cmnd *scmd, *next; in scsi_eh_get_sense() 1378 struct scsi_cmnd *scmd, *next; in scsi_eh_test_devices() 1589 struct scsi_cmnd *next, *scmd; in scsi_eh_target_reset() 1717 struct scsi_cmnd *scmd, *next; in scsi_eh_host_reset() 1723 struct scsi_cmnd, eh_entry); in scsi_eh_host_reset() 1755 struct scsi_cmnd *scmd, *next; in scsi_eh_offline_sdevs() 2136 struct scsi_cmnd *scmd, *next; in scsi_eh_flush_done_q() [all …]
|
A D | wd33c93.h | 193 typedef int (*dma_setup_t) (struct scsi_cmnd *SCpnt, int dir_in); 195 struct scsi_cmnd *SCpnt, int status); 231 volatile struct scsi_cmnd *input_Q; /* commands waiting to be started */ 232 volatile struct scsi_cmnd *selecting; /* trying to select this command */ 233 volatile struct scsi_cmnd *connected; /* currently connected command */ 234 volatile struct scsi_cmnd *disconnected_Q;/* commands waiting for reconnect */ 335 int wd33c93_abort (struct scsi_cmnd *cmd); 336 int wd33c93_queuecommand (struct Scsi_Host *h, struct scsi_cmnd *cmd); 340 int wd33c93_host_reset (struct scsi_cmnd *);
|
A D | NCR5380.h | 206 struct scsi_cmnd *connected; /* Currently connected cmnd */ 217 struct scsi_cmnd *selecting; /* Cmnd to be connected */ 219 struct scsi_cmnd *sensing; /* Cmnd needing autosense */ 240 static inline struct scsi_cmnd *NCR5380_to_scmd(struct NCR5380_cmd *ncmd_ptr) in NCR5380_to_scmd() 242 return ((struct scsi_cmnd *)ncmd_ptr) - 1; in NCR5380_to_scmd() 278 static bool NCR5380_select(struct Scsi_Host *, struct scsi_cmnd *); 298 struct scsi_cmnd *); 306 struct scsi_cmnd *cmd) in NCR5380_dma_xfer_none()
|
A D | sd.h | 149 static inline int scsi_medium_access_command(struct scsi_cmnd *scmd) in scsi_medium_access_command() 223 blk_status_t sd_zbc_setup_zone_mgmt_cmnd(struct scsi_cmnd *cmd, 225 unsigned int sd_zbc_complete(struct scsi_cmnd *cmd, unsigned int good_bytes, 230 blk_status_t sd_zbc_prepare_zone_append(struct scsi_cmnd *cmd, sector_t *lba, 248 static inline blk_status_t sd_zbc_setup_zone_mgmt_cmnd(struct scsi_cmnd *cmd, in sd_zbc_setup_zone_mgmt_cmnd() 255 static inline unsigned int sd_zbc_complete(struct scsi_cmnd *cmd, in sd_zbc_complete() 261 static inline blk_status_t sd_zbc_prepare_zone_append(struct scsi_cmnd *cmd, in sd_zbc_prepare_zone_append()
|
A D | qlogicfas408.h | 85 struct scsi_cmnd *qlcmd; /* current command being processed */ 107 int qlogicfas408_queuecommand(struct Scsi_Host *h, struct scsi_cmnd * cmd); 111 int qlogicfas408_abort(struct scsi_cmnd * cmd); 112 extern int qlogicfas408_host_reset(struct scsi_cmnd *cmd);
|
A D | wd33c93.c | 368 struct scsi_cmnd *tmp; in wd33c93_queuecommand_lck() 476 struct scsi_cmnd *cmd, *prev; in DEF_SCSI_QCMD() 489 cmd = (struct scsi_cmnd *) hostdata->input_Q; in DEF_SCSI_QCMD() 794 struct scsi_cmnd *patch, *cmd; in wd33c93_intr() 1564 wd33c93_host_reset(struct scsi_cmnd * SCpnt) in wd33c93_host_reset() 1602 wd33c93_abort(struct scsi_cmnd * cmd) in wd33c93_abort() 1607 struct scsi_cmnd *tmp, *prev; in wd33c93_abort() 1620 tmp = (struct scsi_cmnd *) hostdata->input_Q; in wd33c93_abort() 2125 struct scsi_cmnd *cmd; in wd33c93_show_info() 2165 cmd = (struct scsi_cmnd *) hd->connected; in wd33c93_show_info() [all …]
|
/linux/drivers/scsi/arm/ |
A D | fas216.h | 216 struct scsi_cmnd *SCpnt; /* currently processing command */ 217 struct scsi_cmnd *origSCpnt; /* original connecting command */ 218 struct scsi_cmnd *reqSCpnt; /* request sense command */ 219 struct scsi_cmnd *rstSCpnt; /* reset command */ 220 struct scsi_cmnd *pending_SCpnt[8]; /* per-device pending commands */ 315 void (*scsi_done)(struct scsi_cmnd *cmd); 351 extern int fas216_noqueue_command(struct Scsi_Host *, struct scsi_cmnd *); 377 extern int fas216_eh_abort(struct scsi_cmnd *SCpnt); 384 extern int fas216_eh_device_reset(struct scsi_cmnd *SCpnt); 391 extern int fas216_eh_bus_reset(struct scsi_cmnd *SCpnt); [all …]
|
A D | queue.c | 29 struct scsi_cmnd *SCpnt; 103 int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head) in __queue_add() 134 static struct scsi_cmnd *__queue_remove(Queue_t *queue, struct list_head *ent) in __queue_remove() 158 struct scsi_cmnd *queue_remove_exclude(Queue_t *queue, unsigned long *exclude) in queue_remove_exclude() 162 struct scsi_cmnd *SCpnt = NULL; in queue_remove_exclude() 184 struct scsi_cmnd *queue_remove(Queue_t *queue) in queue_remove() 187 struct scsi_cmnd *SCpnt = NULL; in queue_remove() 206 struct scsi_cmnd *queue_remove_tgtluntag(Queue_t *queue, int target, int lun, in queue_remove_tgtluntag() 211 struct scsi_cmnd *SCpnt = NULL; in queue_remove_tgtluntag() 283 int queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt) in queue_remove_cmd()
|
A D | queue.h | 37 extern struct scsi_cmnd *queue_remove (Queue_t *queue); 46 extern struct scsi_cmnd *queue_remove_exclude(Queue_t *queue, 61 extern int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head); 72 extern struct scsi_cmnd *queue_remove_tgtluntag(Queue_t *queue, int target, 102 int queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt);
|
/linux/drivers/staging/rts5208/ |
A D | spi.h | 44 int spi_get_status(struct scsi_cmnd *srb, struct rtsx_chip *chip); 45 int spi_set_parameter(struct scsi_cmnd *srb, struct rtsx_chip *chip); 46 int spi_read_flash_id(struct scsi_cmnd *srb, struct rtsx_chip *chip); 47 int spi_read_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip); 48 int spi_write_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip); 49 int spi_erase_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip); 50 int spi_write_flash_status(struct scsi_cmnd *srb, struct rtsx_chip *chip);
|
A D | ms.h | 192 int ms_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, 194 int mspro_format(struct scsi_cmnd *srb, struct rtsx_chip *chip, 205 int mg_set_leaf_id(struct scsi_cmnd *srb, struct rtsx_chip *chip); 206 int mg_get_local_EKB(struct scsi_cmnd *srb, struct rtsx_chip *chip); 207 int mg_chg(struct scsi_cmnd *srb, struct rtsx_chip *chip); 208 int mg_get_rsp_chg(struct scsi_cmnd *srb, struct rtsx_chip *chip); 209 int mg_rsp(struct scsi_cmnd *srb, struct rtsx_chip *chip); 210 int mg_get_ICV(struct scsi_cmnd *srb, struct rtsx_chip *chip); 211 int mg_set_ICV(struct scsi_cmnd *srb, struct rtsx_chip *chip);
|
A D | sd.h | 270 int sd_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, 281 int sd_pass_thru_mode(struct scsi_cmnd *srb, struct rtsx_chip *chip); 282 int sd_execute_no_data(struct scsi_cmnd *srb, struct rtsx_chip *chip); 283 int sd_execute_read_data(struct scsi_cmnd *srb, struct rtsx_chip *chip); 284 int sd_execute_write_data(struct scsi_cmnd *srb, struct rtsx_chip *chip); 285 int sd_get_cmd_rsp(struct scsi_cmnd *srb, struct rtsx_chip *chip); 286 int sd_hw_rst(struct scsi_cmnd *srb, struct rtsx_chip *chip);
|
A D | rtsx_transport.h | 22 struct scsi_cmnd *srb, 27 struct scsi_cmnd *srb); 29 struct scsi_cmnd *srb); 30 void rtsx_invoke_transport(struct scsi_cmnd *srb, struct rtsx_chip *chip);
|
/linux/drivers/usb/storage/ |
A D | protocol.h | 28 extern void usb_stor_pad12_command(struct scsi_cmnd*, struct us_data*); 29 extern void usb_stor_ufi_command(struct scsi_cmnd*, struct us_data*); 30 extern void usb_stor_transparent_scsi_command(struct scsi_cmnd*, 37 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **, 41 unsigned int buflen, struct scsi_cmnd *srb);
|
A D | protocol.c | 45 void usb_stor_pad12_command(struct scsi_cmnd *srb, struct us_data *us) in usb_stor_pad12_command() 61 void usb_stor_ufi_command(struct scsi_cmnd *srb, struct us_data *us) in usb_stor_ufi_command() 104 void usb_stor_transparent_scsi_command(struct scsi_cmnd *srb, in usb_stor_transparent_scsi_command() 122 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, in usb_stor_access_xfer_buf() 170 unsigned int buflen, struct scsi_cmnd *srb) in usb_stor_set_xfer_buf()
|
A D | transport.h | 62 extern int usb_stor_CB_transport(struct scsi_cmnd *, struct us_data*); 65 extern int usb_stor_Bulk_transport(struct scsi_cmnd *, struct us_data*); 69 extern void usb_stor_invoke_transport(struct scsi_cmnd *, struct us_data*); 85 struct scsi_cmnd* srb);
|
/linux/drivers/message/fusion/ |
A D | mptscsih.h | 116 extern int mptscsih_qcmd(struct scsi_cmnd *SCpnt); 121 extern int mptscsih_abort(struct scsi_cmnd * SCpnt); 122 extern int mptscsih_dev_reset(struct scsi_cmnd * SCpnt); 123 extern int mptscsih_bus_reset(struct scsi_cmnd * SCpnt); 124 extern int mptscsih_host_reset(struct scsi_cmnd *SCpnt); 135 extern struct scsi_cmnd *mptscsih_get_scsi_lookup(MPT_ADAPTER *ioc, int i);
|
/linux/drivers/scsi/lpfc/ |
A D | lpfc_scsi.c | 506 struct scsi_cmnd *cmd; in lpfc_sli4_io_xri_aborted() 877 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_dma_buf_s3() local 2574 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_bg_scsi_prep_dma_buf_s3() local 3228 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_dma_buf_s4() local 3473 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_bg_scsi_prep_dma_buf_s4() local 4191 struct scsi_cmnd *cmd; in lpfc_fcp_io_cmd_wqe_cmpl() 4538 struct scsi_cmnd *cmd; in lpfc_scsi_cmd_iocb_cmpl() 4806 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_cmnd_buf_s3() local 4882 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_cmnd_buf_s4() local 4990 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_cmnd() local [all …]
|