Lines Matching refs:NEXT

267 #define	NEXT(cmd)	((Scsi_Cmnd *)((cmd)->host_scribble))  macro
797 for (ptr = (Scsi_Cmnd *) hostdata->issue_queue; ptr; ptr = NEXT(ptr)) { in NCR5380_proc_info()
805 ptr = NEXT(ptr)) { in NCR5380_proc_info()
967 NEXT(cmd) = NULL; in NCR5380_queue_command()
996 NEXT(cmd) = hostdata->issue_queue; in NCR5380_queue_command()
1000 NEXT(tmp); tmp = NEXT(tmp)) in NCR5380_queue_command()
1003 NEXT(tmp) = cmd; in NCR5380_queue_command()
1083 tmp && (tmp != prev); prev = tmp, tmp = NEXT(tmp)) in NCR5380_main()
1088 prev = NULL; tmp; prev = tmp, tmp = NEXT(tmp) ) { in NCR5380_main()
1107 REMOVE(prev, NEXT(prev), tmp, NEXT(tmp)); in NCR5380_main()
1108 NEXT(prev) = NEXT(tmp); in NCR5380_main()
1110 REMOVE(-1, hostdata->issue_queue, tmp, NEXT(tmp)); in NCR5380_main()
1111 hostdata->issue_queue = NEXT(tmp); in NCR5380_main()
1113 NEXT(tmp) = NULL; in NCR5380_main()
1147 NEXT(tmp) = hostdata->issue_queue; in NCR5380_main()
2280 NEXT(cmd) = hostdata->issue_queue; in NCR5380_information_transfer()
2337 NEXT(cmd) = hostdata->disconnected_queue; in NCR5380_information_transfer()
2588 tmp; prev = tmp, tmp = NEXT(tmp) ) { in NCR5380_reselect()
2595 REMOVE(prev, NEXT(prev), tmp, NEXT(tmp)); in NCR5380_reselect()
2596 NEXT(prev) = NEXT(tmp); in NCR5380_reselect()
2598 REMOVE(-1, hostdata->disconnected_queue, tmp, NEXT(tmp)); in NCR5380_reselect()
2599 hostdata->disconnected_queue = NEXT(tmp); in NCR5380_reselect()
2601 NEXT(tmp) = NULL; in NCR5380_reselect()
2768 tmp; prev = NEXTADDR(tmp), tmp = NEXT(tmp) ) in NCR5380_abort()
2770 REMOVE(5, *prev, tmp, NEXT(tmp)); in NCR5380_abort()
2771 (*prev) = NEXT(tmp); in NCR5380_abort()
2772 NEXT(tmp) = NULL; in NCR5380_abort()
2826 tmp = NEXT(tmp)) in NCR5380_abort()
2842 tmp; prev = NEXTADDR(tmp), tmp = NEXT(tmp) ) in NCR5380_abort()
2844 REMOVE(5, *prev, tmp, NEXT(tmp)); in NCR5380_abort()
2845 *prev = NEXT(tmp); in NCR5380_abort()
2846 NEXT(tmp) = NULL; in NCR5380_abort()
2955 disconnected_queue = NEXT(cmd); in NCR5380_reset()
2956 NEXT(cmd) = NULL; in NCR5380_reset()