Lines Matching refs:Scsi_Cmnd
275 #define NEXT(cmd) ((Scsi_Cmnd *)(cmd)->host_scribble)
277 #define NEXTADDR(cmd) ((Scsi_Cmnd **)&(cmd)->host_scribble)
362 static int is_lun_busy(Scsi_Cmnd *cmd, int should_be_tagged) in is_lun_busy()
386 static void cmd_get_tag(Scsi_Cmnd *cmd, int should_be_tagged) in cmd_get_tag()
417 static void cmd_free_tag(Scsi_Cmnd *cmd) in cmd_free_tag()
470 static void merge_contiguous_buffers(Scsi_Cmnd *cmd) in merge_contiguous_buffers()
507 static inline void initialize_SCp(Scsi_Cmnd *cmd) in initialize_SCp()
722 static void lprint_Scsi_Cmnd(Scsi_Cmnd *cmd) in lprint_Scsi_Cmnd()
739 Scsi_Cmnd *ptr; in NCR5380_print_status()
754 lprint_Scsi_Cmnd((Scsi_Cmnd *) hostdata->connected); in NCR5380_print_status()
756 for (ptr = (Scsi_Cmnd *)hostdata->issue_queue; ptr; ptr = NEXT(ptr)) in NCR5380_print_status()
760 for (ptr = (Scsi_Cmnd *) hostdata->disconnected_queue; ptr; in NCR5380_print_status()
768 static void show_Scsi_Cmnd(Scsi_Cmnd *cmd, struct seq_file *m) in show_Scsi_Cmnd()
785 Scsi_Cmnd *ptr; in NCR5380_show_info()
797 show_Scsi_Cmnd((Scsi_Cmnd *) hostdata->connected, m); in NCR5380_show_info()
799 for (ptr = (Scsi_Cmnd *)hostdata->issue_queue; ptr; ptr = NEXT(ptr)) in NCR5380_show_info()
803 for (ptr = (Scsi_Cmnd *) hostdata->disconnected_queue; ptr; in NCR5380_show_info()
893 static int NCR5380_queue_command_lck(Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *)) in NCR5380_queue_command_lck() argument
896 Scsi_Cmnd *tmp; in NCR5380_queue_command_lck()
979 for (tmp = (Scsi_Cmnd *)hostdata->issue_queue; in NCR5380_queue_command_lck()
1020 Scsi_Cmnd *tmp, *prev; in DEF_SCSI_QCMD()
1063 for (tmp = (Scsi_Cmnd *) hostdata->issue_queue, prev = NULL; in DEF_SCSI_QCMD()
1071 for (tmp = (Scsi_Cmnd *) hostdata->issue_queue, in DEF_SCSI_QCMD()
1334 static void collect_stats(struct NCR5380_hostdata* hostdata, Scsi_Cmnd *cmd) in collect_stats()
1389 static int NCR5380_select(struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag) in NCR5380_select()
1991 Scsi_Cmnd *cmd = (Scsi_Cmnd *) hostdata->connected; in NCR5380_information_transfer()
2232 hostdata->issue_queue = (Scsi_Cmnd *) cmd; in NCR5380_information_transfer()
2483 Scsi_Cmnd *tmp = NULL, *prev; in NCR5380_reselect()
2557 for (tmp = (Scsi_Cmnd *) hostdata->disconnected_queue, prev = NULL; in NCR5380_reselect()
2625 int NCR5380_abort(Scsi_Cmnd *cmd) in NCR5380_abort()
2629 Scsi_Cmnd *tmp, **prev; in NCR5380_abort()
2699 for (prev = (Scsi_Cmnd **)&(hostdata->issue_queue), in NCR5380_abort()
2700 tmp = (Scsi_Cmnd *)hostdata->issue_queue; in NCR5380_abort()
2760 for (tmp = (Scsi_Cmnd *) hostdata->disconnected_queue; tmp; in NCR5380_abort()
2774 for (prev = (Scsi_Cmnd **)&(hostdata->disconnected_queue), in NCR5380_abort()
2775 tmp = (Scsi_Cmnd *)hostdata->disconnected_queue; in NCR5380_abort()
2832 static int NCR5380_bus_reset(Scsi_Cmnd *cmd) in NCR5380_bus_reset()
2838 Scsi_Cmnd *connected, *disconnected_queue; in NCR5380_bus_reset()
2873 connected = (Scsi_Cmnd *)hostdata->connected; in NCR5380_bus_reset()
2875 disconnected_queue = (Scsi_Cmnd *)hostdata->disconnected_queue; in NCR5380_bus_reset()