Lines Matching refs:scsi_cmnd

230 #define	NEXT(cmd)		((struct scsi_cmnd *)(cmd)->host_scribble)
232 #define NEXTADDR(cmd) ((struct scsi_cmnd **)&(cmd)->host_scribble)
304 static int is_lun_busy(struct scsi_cmnd *cmd, int should_be_tagged) in is_lun_busy()
330 static void cmd_get_tag(struct scsi_cmnd *cmd, int should_be_tagged) in cmd_get_tag()
363 static void cmd_free_tag(struct scsi_cmnd *cmd) in cmd_free_tag()
417 static void merge_contiguous_buffers(struct scsi_cmnd *cmd) in merge_contiguous_buffers()
454 static inline void initialize_SCp(struct scsi_cmnd *cmd) in initialize_SCp()
663 static void lprint_Scsi_Cmnd(struct scsi_cmnd *cmd) in lprint_Scsi_Cmnd()
680 struct scsi_cmnd *ptr; in NCR5380_print_status()
694 lprint_Scsi_Cmnd((struct scsi_cmnd *) hostdata->connected); in NCR5380_print_status()
696 for (ptr = (struct scsi_cmnd *)hostdata->issue_queue; ptr; ptr = NEXT(ptr)) in NCR5380_print_status()
700 for (ptr = (struct scsi_cmnd *) hostdata->disconnected_queue; ptr; in NCR5380_print_status()
708 static void show_Scsi_Cmnd(struct scsi_cmnd *cmd, struct seq_file *m) in show_Scsi_Cmnd()
726 struct scsi_cmnd *ptr; in NCR5380_show_info()
737 show_Scsi_Cmnd((struct scsi_cmnd *) hostdata->connected, m); in NCR5380_show_info()
739 for (ptr = (struct scsi_cmnd *)hostdata->issue_queue; ptr; ptr = NEXT(ptr)) in NCR5380_show_info()
743 for (ptr = (struct scsi_cmnd *) hostdata->disconnected_queue; ptr; in NCR5380_show_info()
828 struct scsi_cmnd *cmd) in NCR5380_queue_command()
831 struct scsi_cmnd *tmp; in NCR5380_queue_command()
890 for (tmp = (struct scsi_cmnd *)hostdata->issue_queue; in NCR5380_queue_command()
943 struct scsi_cmnd *tmp, *prev; in NCR5380_main()
984 for (tmp = (struct scsi_cmnd *) hostdata->issue_queue, prev = NULL; in NCR5380_main()
992 for (tmp = (struct scsi_cmnd *) hostdata->issue_queue, in NCR5380_main()
1307 static int NCR5380_select(struct Scsi_Host *instance, struct scsi_cmnd *cmd) in NCR5380_select()
1956 struct scsi_cmnd *cmd = (struct scsi_cmnd *) hostdata->connected; in NCR5380_information_transfer()
2231 hostdata->issue_queue = (struct scsi_cmnd *) cmd; in NCR5380_information_transfer()
2483 struct scsi_cmnd *tmp = NULL, *prev; in NCR5380_reselect()
2564 for (tmp = (struct scsi_cmnd *) hostdata->disconnected_queue, prev = NULL; in NCR5380_reselect()
2671 int NCR5380_abort(struct scsi_cmnd *cmd) in NCR5380_abort()
2675 struct scsi_cmnd *tmp, **prev; in NCR5380_abort()
2740 for (prev = (struct scsi_cmnd **)&(hostdata->issue_queue), in NCR5380_abort()
2741 tmp = (struct scsi_cmnd *)hostdata->issue_queue; in NCR5380_abort()
2801 for (tmp = (struct scsi_cmnd *) hostdata->disconnected_queue; tmp; in NCR5380_abort()
2815 for (prev = (struct scsi_cmnd **)&(hostdata->disconnected_queue), in NCR5380_abort()
2816 tmp = (struct scsi_cmnd *)hostdata->disconnected_queue; in NCR5380_abort()
2873 static int NCR5380_bus_reset(struct scsi_cmnd *cmd) in NCR5380_bus_reset()