Searched refs:Scsi_Cmnd (Results 1 - 21 of 21) sorted by relevance

/linux-4.1.27/drivers/scsi/
H A Dscsi_typedefs.h2 typedef struct scsi_cmnd Scsi_Cmnd; typedef in typeref:struct:scsi_cmnd
H A Dsym53c416.h29 static int sym53c416_host_reset(Scsi_Cmnd *);
H A Daha152x.c425 Scsi_Cmnd *issue_SC;
428 Scsi_Cmnd *current_SC;
431 Scsi_Cmnd *disconnected_SC;
434 Scsi_Cmnd *done_SC;
513 Scsi_Cmnd *next; /* next sc in queue */
636 static void show_command(Scsi_Cmnd * ptr);
645 static inline void append_SC(Scsi_Cmnd **SC, Scsi_Cmnd *new_SC) append_SC()
647 Scsi_Cmnd *end; append_SC()
659 static inline Scsi_Cmnd *remove_first_SC(Scsi_Cmnd ** SC) remove_first_SC()
661 Scsi_Cmnd *ptr; remove_first_SC()
671 static inline Scsi_Cmnd *remove_lun_SC(Scsi_Cmnd ** SC, int target, int lun) remove_lun_SC()
673 Scsi_Cmnd *ptr, *prev; remove_lun_SC()
692 static inline Scsi_Cmnd *remove_SC(Scsi_Cmnd **SC, Scsi_Cmnd *SCp) remove_SC()
694 Scsi_Cmnd *ptr, *prev; remove_SC()
915 static int aha152x_internal_queue(Scsi_Cmnd *SCpnt, struct completion *complete, aha152x_internal_queue()
916 int phase, void (*done)(Scsi_Cmnd *)) aha152x_internal_queue()
990 static int aha152x_queue_lck(Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *)) aha152x_queue_lck()
1001 static void reset_done(Scsi_Cmnd *SCpnt) reset_done()
1014 static int aha152x_abort(Scsi_Cmnd *SCpnt) aha152x_abort()
1017 Scsi_Cmnd *ptr; aha152x_abort()
1055 static int aha152x_device_reset(Scsi_Cmnd * SCpnt) aha152x_device_reset()
1113 static void free_hard_reset_SCs(struct Scsi_Host *shpnt, Scsi_Cmnd **SCs) free_hard_reset_SCs()
1115 Scsi_Cmnd *ptr; free_hard_reset_SCs()
1119 Scsi_Cmnd *next; free_hard_reset_SCs()
1171 static int aha152x_bus_reset(Scsi_Cmnd *SCpnt) aha152x_bus_reset()
1229 static int aha152x_host_reset(Scsi_Cmnd *SCpnt) aha152x_host_reset()
1445 Scsi_Cmnd *ptr = DONE_SC; busfree_run()
1460 Scsi_Cmnd *ptr = DONE_SC; busfree_run()
2256 Scsi_Cmnd *ptr; rsti_run()
2262 Scsi_Cmnd *next = SCNEXT(ptr); rsti_run()
2447 static void show_command(Scsi_Cmnd *ptr) show_command()
2471 Scsi_Cmnd *ptr; show_queues()
2493 static void get_command(struct seq_file *m, Scsi_Cmnd * ptr) get_command()
2822 Scsi_Cmnd *ptr; aha152x_show_info()
H A Din2000.c257 static int is_dir_out(Scsi_Cmnd * cmd) is_dir_out()
336 static int in2000_queuecommand_lck(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) in2000_queuecommand_lck()
340 Scsi_Cmnd *tmp; in2000_queuecommand_lck()
347 /* Set up a few fields in the Scsi_Cmnd structure for our own use: in2000_queuecommand_lck()
419 for (tmp = (Scsi_Cmnd *) hostdata->input_Q; tmp->host_scribble; tmp = (Scsi_Cmnd *) tmp->host_scribble); in2000_queuecommand_lck()
448 Scsi_Cmnd *cmd, *prev; in2000_execute()
471 cmd = (Scsi_Cmnd *) hostdata->input_Q; in2000_execute()
477 cmd = (Scsi_Cmnd *) cmd->host_scribble; in2000_execute()
494 hostdata->input_Q = (Scsi_Cmnd *) cmd->host_scribble; in2000_execute()
543 for (prev = (Scsi_Cmnd *) hostdata->input_Q; prev; prev = (Scsi_Cmnd *) prev->host_scribble) { in2000_execute()
545 for (prev = (Scsi_Cmnd *) hostdata->input_Q; prev; prev = (Scsi_Cmnd *) prev->host_scribble) in2000_execute()
747 static void transfer_bytes(Scsi_Cmnd * cmd, int data_in_dir) transfer_bytes()
837 Scsi_Cmnd *patch, *cmd; in2000_intr()
913 cmd = (Scsi_Cmnd *) hostdata->connected; /* assume we're connected */ in2000_intr()
995 cmd = (Scsi_Cmnd *) hostdata->connected; /* assume we're connected */ in2000_intr()
1072 cmd = (Scsi_Cmnd *) hostdata->selecting; /* get a valid cmd */ in2000_intr()
1094 hostdata->connected = cmd = (Scsi_Cmnd *) hostdata->selecting; in2000_intr()
1495 cmd = (Scsi_Cmnd *) hostdata->selecting; in2000_intr()
1536 cmd = (Scsi_Cmnd *) hostdata->disconnected_Q; in2000_intr()
1542 cmd = (Scsi_Cmnd *) cmd->host_scribble; in2000_intr()
1557 hostdata->disconnected_Q = (Scsi_Cmnd *) cmd->host_scribble; in2000_intr()
1642 static int in2000_bus_reset(Scsi_Cmnd * cmd) in2000_bus_reset()
1678 static int __in2000_abort(Scsi_Cmnd * cmd) __in2000_abort()
1682 Scsi_Cmnd *tmp, *prev; __in2000_abort()
1697 tmp = (Scsi_Cmnd *) hostdata->input_Q; __in2000_abort()
1710 tmp = (Scsi_Cmnd *) tmp->host_scribble; __in2000_abort()
1777 for (tmp = (Scsi_Cmnd *) hostdata->disconnected_Q; tmp; tmp = (Scsi_Cmnd *) tmp->host_scribble) __in2000_abort()
1799 static int in2000_abort(Scsi_Cmnd * cmd) in2000_abort()
2218 Scsi_Cmnd *cmd; in2000_show_info()
2253 cmd = (Scsi_Cmnd *) hd->connected; in2000_show_info()
2259 cmd = (Scsi_Cmnd *) hd->input_Q; in2000_show_info()
2262 cmd = (Scsi_Cmnd *) cmd->host_scribble; in2000_show_info()
2267 cmd = (Scsi_Cmnd *) hd->disconnected_Q; in2000_show_info()
2270 cmd = (Scsi_Cmnd *) cmd->host_scribble; in2000_show_info()
H A Din2000.h286 volatile Scsi_Cmnd *input_Q; /* commands waiting to be started */
287 volatile Scsi_Cmnd *selecting; /* trying to select this command */
288 volatile Scsi_Cmnd *connected; /* currently connected command */
289 volatile Scsi_Cmnd *disconnected_Q;/* commands waiting for reconnect */
400 static int in2000_abort(Scsi_Cmnd *);
404 static int in2000_bus_reset(Scsi_Cmnd *);
H A Daha1740.h137 Scsi_Cmnd *SCpnt; /* Link to the SCSI Command Block */
138 void (*done) (Scsi_Cmnd *); /* Completion Function */
H A Dgdth.c149 Scsi_Cmnd *scp);
153 static void gdth_putq(gdth_ha_str *ha, Scsi_Cmnd *scp, u8 priority);
155 static int gdth_fill_raw_cmd(gdth_ha_str *ha, Scsi_Cmnd *scp, u8 b);
156 static int gdth_special_cmd(gdth_ha_str *ha, Scsi_Cmnd *scp);
164 static void gdth_copy_internal_data(gdth_ha_str *ha, Scsi_Cmnd *scp,
166 static int gdth_internal_cache_cmd(gdth_ha_str *ha, Scsi_Cmnd *scp);
167 static int gdth_fill_cache_cmd(gdth_ha_str *ha, Scsi_Cmnd *scp, u16 hdrive);
449 Scsi_Cmnd *scp; __gdth_execute()
1985 static void gdth_putq(gdth_ha_str *ha, Scsi_Cmnd *scp, u8 priority) gdth_putq()
1988 register Scsi_Cmnd *pscp; gdth_putq()
1989 register Scsi_Cmnd *nscp; gdth_putq()
2003 nscp = (Scsi_Cmnd *)pscp->SCp.ptr; gdth_putq()
2007 nscp = (Scsi_Cmnd *)pscp->SCp.ptr; gdth_putq()
2016 for (nscp=ha->req_first; nscp; nscp=(Scsi_Cmnd*)nscp->SCp.ptr) gdth_putq()
2027 register Scsi_Cmnd *pscp; gdth_next()
2028 register Scsi_Cmnd *nscp; gdth_next()
2043 for (nscp = pscp = ha->req_first; nscp; nscp = (Scsi_Cmnd *)nscp->SCp.ptr) { gdth_next()
2045 if (nscp != pscp && nscp != (Scsi_Cmnd *)pscp->SCp.ptr) gdth_next()
2046 pscp = (Scsi_Cmnd *)pscp->SCp.ptr; gdth_next()
2253 ha->req_first = pscp = (Scsi_Cmnd *)nscp->SCp.ptr; gdth_next()
2278 static void gdth_copy_internal_data(gdth_ha_str *ha, Scsi_Cmnd *scp, gdth_copy_internal_data()
2320 static int gdth_internal_cache_cmd(gdth_ha_str *ha, Scsi_Cmnd *scp) gdth_internal_cache_cmd()
2422 static int gdth_fill_cache_cmd(gdth_ha_str *ha, Scsi_Cmnd *scp, u16 hdrive) gdth_fill_cache_cmd()
2597 static int gdth_fill_raw_cmd(gdth_ha_str *ha, Scsi_Cmnd *scp, u8 b) gdth_fill_raw_cmd()
2770 static int gdth_special_cmd(gdth_ha_str *ha, Scsi_Cmnd *scp) gdth_special_cmd()
2964 Scsi_Cmnd *scp; __gdth_interrupt()
3223 Scsi_Cmnd *scp) gdth_sync_event()
3714 Scsi_Cmnd *nscp; gdth_timeout()
3730 for (act_rq=0,nscp=ha->req_first; nscp; nscp=(Scsi_Cmnd*)nscp->SCp.ptr) gdth_timeout()
3917 static int gdth_eh_bus_reset(Scsi_Cmnd *scp) gdth_eh_bus_reset()
3922 Scsi_Cmnd *cmnd; gdth_eh_bus_reset()
4473 Scsi_Cmnd *scp; gdth_ioctl()
H A Daha1740.c210 void (*my_done)(Scsi_Cmnd *); aha1740_intr_handle()
214 Scsi_Cmnd *SCtmp; aha1740_intr_handle()
314 static int aha1740_queuecommand_lck(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *)) aha1740_queuecommand_lck()
523 static int aha1740_eh_abort_handler (Scsi_Cmnd *dummy) aha1740_eh_abort_handler()
H A Dmegaraid.h193 Scsi_Cmnd *cmd;
956 static scb_t * mega_build_cmd(adapter_t *, Scsi_Cmnd *, int *);
965 static int megaraid_abort(Scsi_Cmnd *);
966 static int megaraid_reset(Scsi_Cmnd *);
967 static int megaraid_abort_and_reset(adapter_t *, Scsi_Cmnd *, int);
997 Scsi_Cmnd *, int, int);
999 scb_t *, Scsi_Cmnd *, int, int);
H A Dsym53c416.c227 static Scsi_Cmnd *current_command = NULL;
736 static int sym53c416_queuecommand_lck(Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *)) sym53c416_queuecommand_lck()
765 static int sym53c416_host_reset(Scsi_Cmnd *SCpnt) sym53c416_host_reset()
H A Dgdth.h164 #define UNUSED_CMND ((Scsi_Cmnd *)-1)
165 #define INTERNAL_CMND ((Scsi_Cmnd *)-2)
166 #define SCREEN_CMND ((Scsi_Cmnd *)-3)
872 Scsi_Cmnd *req_first; /* top of request queue */
901 Scsi_Cmnd *cmnd; /* pending request */
H A Dnsp32_debug.c140 static void show_command(Scsi_Cmnd *SCpnt) show_command()
H A DNCR53c406a.c204 static Scsi_Cmnd *current_SC;
696 static int NCR53c406a_queue_lck(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *)) NCR53c406a_queue_lck()
731 static int NCR53c406a_host_reset(Scsi_Cmnd * SCpnt) NCR53c406a_host_reset()
H A Dmegaraid.c372 megaraid_queue_lck(Scsi_Cmnd *scmd, void (*done)(Scsi_Cmnd *)) megaraid_queue_lck()
426 mega_allocate_scb(adapter_t *adapter, Scsi_Cmnd *cmd) mega_allocate_scb()
458 mega_get_ldrv_num(adapter_t *adapter, Scsi_Cmnd *cmd, int channel) mega_get_ldrv_num()
521 mega_build_cmd(adapter_t *adapter, Scsi_Cmnd *cmd, int *busy) mega_build_cmd()
952 mega_prepare_passthru(adapter_t *adapter, scb_t *scb, Scsi_Cmnd *cmd, mega_prepare_passthru()
1016 mega_prepare_extpassthru(adapter_t *adapter, scb_t *scb, Scsi_Cmnd *cmd, mega_prepare_extpassthru()
1418 Scsi_Cmnd *cmd = NULL; mega_cmd_done()
1655 Scsi_Cmnd *cmd; mega_rundoneq()
1662 cmd = list_entry(spos, Scsi_Cmnd, SCp); mega_rundoneq()
1725 Scsi_Cmnd *cmd; mega_build_sglist()
1872 megaraid_abort(Scsi_Cmnd *cmd) megaraid_abort()
1937 megaraid_abort_and_reset(adapter_t *adapter, Scsi_Cmnd *cmd, int aor) megaraid_abort_and_reset()
H A Dgdth_proc.c623 Scsi_Cmnd *scp; gdth_wait_completion()
H A Dlibiscsi_tcp.c693 * Setup copy of Data-In into the Scsi_Cmnd iscsi_tcp_hdr_dissect()
H A Dwd7000.c1551 static int wd7000_abort(Scsi_Cmnd * SCpnt)
H A D3w-xxxx.c1923 /* Save done function into Scsi_Cmnd struct */ tw_scsi_queue_lck()
H A Dadvansys.c8897 * Execute a single 'Scsi_Cmnd'.
/linux-4.1.27/drivers/scsi/ibmvscsi/
H A Dibmvscsi.c683 * @cmd: Scsi_Cmnd with the scatterlist
H A Dibmvfc.c1321 * @scmd: Scsi_Cmnd with the scatterlist

Completed in 633 milliseconds