Lines Matching refs:queue

3  *  linux/drivers/acorn/scsi/queue.h: queue handling
18 * Function: void queue_initialise (Queue_t *queue)
19 * Purpose : initialise a queue
20 * Params : queue - queue to initialise
22 extern int queue_initialise (Queue_t *queue);
25 * Function: void queue_free (Queue_t *queue)
26 * Purpose : free a queue
27 * Params : queue - queue to free
29 extern void queue_free (Queue_t *queue);
32 * Function: struct scsi_cmnd *queue_remove (queue)
33 * Purpose : removes first SCSI command from a queue
34 * Params : queue - queue to remove command from
37 extern struct scsi_cmnd *queue_remove (Queue_t *queue);
40 * Function: struct scsi_cmnd *queue_remove_exclude_ref (queue, exclude)
41 * Purpose : remove a SCSI command from a queue
42 * Params : queue - queue to remove command from
46 extern struct scsi_cmnd *queue_remove_exclude(Queue_t *queue,
49 #define queue_add_cmd_ordered(queue,SCpnt) \
50 __queue_add(queue,SCpnt,(SCpnt)->cmnd[0] == REQUEST_SENSE)
51 #define queue_add_cmd_tail(queue,SCpnt) \
52 __queue_add(queue,SCpnt,0)
54 * Function: int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head)
55 * Purpose : Add a new command onto a queue
56 * Params : queue - destination queue
58 * head - add command to head of queue
61 extern int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head);
64 * Function: struct scsi_cmnd *queue_remove_tgtluntag (queue, target, lun, tag)
65 * Purpose : remove a SCSI command from the queue for a specified target/lun/tag
66 * Params : queue - queue to remove command from
72 extern struct scsi_cmnd *queue_remove_tgtluntag(Queue_t *queue, int target,
76 * Function: queue_remove_all_target(queue, target)
77 * Purpose : remove all SCSI commands from the queue for a specified target
78 * Params : queue - queue to remove command from
82 extern void queue_remove_all_target(Queue_t *queue, int target);
85 * Function: int queue_probetgtlun (queue, target, lun)
86 * Purpose : check to see if we have a command in the queue for the specified
88 * Params : queue - queue to look in
93 extern int queue_probetgtlun (Queue_t *queue, int target, int lun);
96 * Function: int queue_remove_cmd (Queue_t *queue, struct scsi_cmnd *SCpnt)
98 * Params : queue - queue to look in
102 int queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt);