Lines Matching refs:NEXT
265 #define NEXT(cmd) ((Scsi_Cmnd *)((cmd)->host_scribble)) macro
792 for (ptr = (Scsi_Cmnd *) hostdata->issue_queue; ptr; ptr = NEXT(ptr)) { in NCR5380_proc_info()
800 ptr = NEXT(ptr)) { in NCR5380_proc_info()
966 NEXT(cmd) = NULL; in NCR5380_queue_command()
1000 NEXT(cmd) = hostdata->issue_queue; in NCR5380_queue_command()
1004 NEXT(tmp); tmp = NEXT(tmp)) in NCR5380_queue_command()
1007 NEXT(tmp) = cmd; in NCR5380_queue_command()
1086 tmp && (tmp != prev); prev = tmp, tmp = NEXT(tmp)) in NCR5380_main()
1092 prev = NULL; tmp; prev = tmp, tmp = NEXT(tmp) ) { in NCR5380_main()
1111 REMOVE(prev, NEXT(prev), tmp, NEXT(tmp)); in NCR5380_main()
1112 NEXT(prev) = NEXT(tmp); in NCR5380_main()
1114 REMOVE(-1, hostdata->issue_queue, tmp, NEXT(tmp)); in NCR5380_main()
1115 hostdata->issue_queue = NEXT(tmp); in NCR5380_main()
1117 NEXT(tmp) = NULL; in NCR5380_main()
1155 NEXT(tmp) = hostdata->issue_queue; in NCR5380_main()
2261 NEXT(cmd) = hostdata->issue_queue; in NCR5380_information_transfer()
2324 NEXT(cmd) = hostdata->disconnected_queue; in NCR5380_information_transfer()
2589 tmp; prev = tmp, tmp = NEXT(tmp) ) { in NCR5380_reselect()
2598 REMOVE(prev, NEXT(prev), tmp, NEXT(tmp)); in NCR5380_reselect()
2599 NEXT(prev) = NEXT(tmp); in NCR5380_reselect()
2601 REMOVE(-1, hostdata->disconnected_queue, tmp, NEXT(tmp)); in NCR5380_reselect()
2602 hostdata->disconnected_queue = NEXT(tmp); in NCR5380_reselect()
2604 NEXT(tmp) = NULL; in NCR5380_reselect()
2735 tmp; prev = NEXTADDR(tmp), tmp = NEXT(tmp) ) in NCR5380_abort()
2737 REMOVE(5, *prev, tmp, NEXT(tmp)); in NCR5380_abort()
2738 (*prev) = NEXT(tmp); in NCR5380_abort()
2739 NEXT(tmp) = NULL; in NCR5380_abort()
2794 tmp = NEXT(tmp)) in NCR5380_abort()
2810 tmp; prev = NEXTADDR(tmp), tmp = NEXT(tmp) ) in NCR5380_abort()
2812 REMOVE(5, *prev, tmp, NEXT(tmp)); in NCR5380_abort()
2813 *prev = NEXT(tmp); in NCR5380_abort()
2814 NEXT(tmp) = NULL; in NCR5380_abort()
2933 disconnected_queue = NEXT(cmd); in NCR5380_reset()
2934 NEXT(cmd) = NULL; in NCR5380_reset()