Home
last modified time | relevance | path

Searched refs:scsi_cmnd (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/kernel/linux/linux-5.10/include/scsi/
Dscsi_cmnd.h68 struct scsi_cmnd { struct
123 void (*scsi_done) (struct scsi_cmnd *); argument
151 static inline void *scsi_cmd_priv(struct scsi_cmnd *cmd) in scsi_cmd_priv() argument
157 static inline struct scsi_driver *scsi_cmd_to_driver(struct scsi_cmnd *cmd) in scsi_cmd_to_driver()
162 extern void scsi_finish_command(struct scsi_cmnd *cmd);
168 blk_status_t scsi_alloc_sgtables(struct scsi_cmnd *cmd);
169 void scsi_free_sgtables(struct scsi_cmnd *cmd);
172 extern int scsi_dma_map(struct scsi_cmnd *cmd);
173 extern void scsi_dma_unmap(struct scsi_cmnd *cmd);
175 static inline int scsi_dma_map(struct scsi_cmnd *cmd) { return -ENOSYS; } in scsi_dma_map()
[all …]
Dscsi_driver.h10 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 *);
Dscsi_eh.h12 extern void scsi_eh_finish_cmd(struct scsi_cmnd *scmd,
18 extern bool scsi_command_normalize_sense(const struct scsi_cmnd *cmd,
20 extern int 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,
Dscsi_host.h17 struct scsi_cmnd;
65 int (*init_cmd_priv)(struct Scsi_Host *shost, struct scsi_cmnd *cmd);
66 int (*exit_cmd_priv)(struct Scsi_Host *shost, struct scsi_cmnd *cmd);
102 int (* queuecommand)(struct Scsi_Host *, struct scsi_cmnd *);
132 int (* eh_abort_handler)(struct scsi_cmnd *);
133 int (* eh_device_reset_handler)(struct scsi_cmnd *);
134 int (* eh_target_reset_handler)(struct scsi_cmnd *);
135 int (* eh_bus_reset_handler)(struct scsi_cmnd *);
136 int (* eh_host_reset_handler)(struct scsi_cmnd *);
316 enum blk_eh_timer_return (*eh_timed_out)(struct scsi_cmnd *);
[all …]
Dscsi_dbg.h5 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);
/kernel/linux/linux-5.10/drivers/scsi/pcmcia/
Dnsp_cs.h259 struct scsi_cmnd *CurrentSC;
297 static int nsp_queuecommand(struct Scsi_Host *h, struct scsi_cmnd *SCpnt);
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);
309 static void nsp_start_timer (struct scsi_cmnd *SCpnt, int time);
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);
313 static int nsp_nexus (struct scsi_cmnd *SCpnt);
[all …]
/kernel/linux/linux-5.10/drivers/scsi/
Dscsi_priv.h11 struct scsi_cmnd;
34 void scsi_init_command(struct scsi_device *dev, struct scsi_cmnd *cmd);
36 void scsi_log_send(struct scsi_cmnd *cmd);
37 void scsi_log_completion(struct scsi_cmnd *cmd, int disposition);
39 static inline void scsi_log_send(struct scsi_cmnd *cmd) in scsi_log_send()
41 static inline void scsi_log_completion(struct scsi_cmnd *cmd, int disposition) in scsi_log_completion()
76 extern int scsi_decide_disposition(struct scsi_cmnd *cmd);
78 extern void scsi_eh_scmd_add(struct scsi_cmnd *);
84 int scsi_noretry_cmd(struct scsi_cmnd *scmd);
88 extern void scsi_device_unbusy(struct scsi_device *sdev, struct scsi_cmnd *cmd);
[all …]
Dwd33c93.h193 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 *);
Dscsi_error.c53 static void scsi_eh_done(struct scsi_cmnd *scmd);
62 static int scsi_eh_try_stu(struct scsi_cmnd *scmd);
64 struct scsi_cmnd *);
119 static bool scsi_cmd_retry_allowed(struct scsi_cmnd *cmd) in scsi_cmd_retry_allowed()
140 struct scsi_cmnd *scmd = in scmd_eh_abort_handler()
141 container_of(work, struct scsi_cmnd, abort_work.work); in scmd_eh_abort_handler()
194 scsi_abort_command(struct scsi_cmnd *scmd) in scsi_abort_command()
231 static void scsi_eh_reset(struct scsi_cmnd *scmd) in scsi_eh_reset()
242 struct scsi_cmnd *scmd = container_of(head, typeof(*scmd), rcu); in scsi_eh_inc_host_failed()
256 void scsi_eh_scmd_add(struct scsi_cmnd *scmd) in scsi_eh_scmd_add()
[all …]
DNCR5380.h206 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 *);
297 struct scsi_cmnd *);
305 struct scsi_cmnd *cmd) in NCR5380_dma_xfer_none()
Dsd.h148 static inline int scsi_medium_access_command(struct scsi_cmnd *scmd) in scsi_medium_access_command()
222 blk_status_t sd_zbc_setup_zone_mgmt_cmnd(struct scsi_cmnd *cmd,
224 unsigned int sd_zbc_complete(struct scsi_cmnd *cmd, unsigned int good_bytes,
229 blk_status_t sd_zbc_prepare_zone_append(struct scsi_cmnd *cmd, sector_t *lba,
247 static inline blk_status_t sd_zbc_setup_zone_mgmt_cmnd(struct scsi_cmnd *cmd, in sd_zbc_setup_zone_mgmt_cmnd()
254 static inline unsigned int sd_zbc_complete(struct scsi_cmnd *cmd, in sd_zbc_complete()
260 static inline blk_status_t sd_zbc_prepare_zone_append(struct scsi_cmnd *cmd, in sd_zbc_prepare_zone_append()
Dqlogicfas408.h85 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);
/kernel/linux/linux-5.10/drivers/staging/rts5208/
Dspi.h44 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);
Dms.h192 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);
Dsd.h270 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);
Drtsx_transport.h22 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);
/kernel/linux/linux-5.10/drivers/scsi/arm/
Dfas216.h216 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 */
333 extern int fas216_queue_command(struct Scsi_Host *h, struct scsi_cmnd *SCpnt);
341 extern int fas216_noqueue_command(struct Scsi_Host *, struct scsi_cmnd *);
367 extern int fas216_eh_abort(struct scsi_cmnd *SCpnt);
374 extern int fas216_eh_device_reset(struct scsi_cmnd *SCpnt);
381 extern int fas216_eh_bus_reset(struct scsi_cmnd *SCpnt);
[all …]
Dqueue.h37 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);
Dqueue.c29 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()
/kernel/linux/linux-5.10/drivers/usb/storage/
Dprotocol.h28 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);
Dtransport.h62 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);
Dprotocol.c45 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()
/kernel/linux/linux-5.10/drivers/message/fusion/
Dmptscsih.h116 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);
/kernel/linux/linux-5.10/drivers/scsi/sym53c8xx_2/
Dsym_glue.h225 sym_set_cam_status(struct scsi_cmnd *cmd, int status) in sym_set_cam_status()
235 sym_get_cam_status(struct scsi_cmnd *cmd) in sym_get_cam_status()
243 static inline void sym_set_cam_result_ok(struct sym_ccb *cp, struct scsi_cmnd *cmd, int resid) in sym_set_cam_result_ok()
250 void sym_xpt_done(struct sym_hcb *np, struct scsi_cmnd *ccb);
253 int sym_setup_data_and_start (struct sym_hcb *np, struct scsi_cmnd *csio, struct sym_ccb *cp);
/kernel/linux/linux-5.10/drivers/scsi/lpfc/
Dlpfc_scsi.c88 lpfc_prot_group_type(struct lpfc_hba *phba, struct scsi_cmnd *sc);
91 lpfc_cmd_blksize(struct scsi_cmnd *sc) in lpfc_cmd_blksize()
99 lpfc_cmd_protect(struct scsi_cmnd *sc, int flag) in lpfc_cmd_protect()
105 lpfc_cmd_guard_csum(struct scsi_cmnd *sc) in lpfc_cmd_guard_csum()
149 struct scsi_cmnd *cmd = lpfc_cmd->pCmd; in lpfc_update_stats()
592 struct scsi_cmnd *cmnd) in lpfc_get_scsi_buf_s3()
631 struct scsi_cmnd *cmnd) in lpfc_get_scsi_buf_s4()
743 struct scsi_cmnd *cmnd) in lpfc_get_scsi_buf()
837 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd; in lpfc_scsi_prep_dma_buf_s3() local
846 int nseg, datadir = scsi_cmnd->sc_data_direction; in lpfc_scsi_prep_dma_buf_s3()
[all …]

12345678910>>...12