Lines Matching refs:queue

2  *  linux/drivers/acorn/scsi/queue.h: queue handling
21 * Function: void queue_initialise (Queue_t *queue)
22 * Purpose : initialise a queue
23 * Params : queue - queue to initialise
25 extern int queue_initialise (Queue_t *queue);
28 * Function: void queue_free (Queue_t *queue)
29 * Purpose : free a queue
30 * Params : queue - queue to free
32 extern void queue_free (Queue_t *queue);
35 * Function: struct scsi_cmnd *queue_remove (queue)
36 * Purpose : removes first SCSI command from a queue
37 * Params : queue - queue to remove command from
40 extern struct scsi_cmnd *queue_remove (Queue_t *queue);
43 * Function: struct scsi_cmnd *queue_remove_exclude_ref (queue, exclude)
44 * Purpose : remove a SCSI command from a queue
45 * Params : queue - queue to remove command from
49 extern struct scsi_cmnd *queue_remove_exclude(Queue_t *queue,
52 #define queue_add_cmd_ordered(queue,SCpnt) \
53 __queue_add(queue,SCpnt,(SCpnt)->cmnd[0] == REQUEST_SENSE)
54 #define queue_add_cmd_tail(queue,SCpnt) \
55 __queue_add(queue,SCpnt,0)
57 * Function: int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head)
58 * Purpose : Add a new command onto a queue
59 * Params : queue - destination queue
61 * head - add command to head of queue
64 extern int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head);
67 * Function: struct scsi_cmnd *queue_remove_tgtluntag (queue, target, lun, tag)
68 * Purpose : remove a SCSI command from the queue for a specified target/lun/tag
69 * Params : queue - queue to remove command from
75 extern struct scsi_cmnd *queue_remove_tgtluntag(Queue_t *queue, int target,
79 * Function: queue_remove_all_target(queue, target)
80 * Purpose : remove all SCSI commands from the queue for a specified target
81 * Params : queue - queue to remove command from
85 extern void queue_remove_all_target(Queue_t *queue, int target);
88 * Function: int queue_probetgtlun (queue, target, lun)
89 * Purpose : check to see if we have a command in the queue for the specified
91 * Params : queue - queue to look in
96 extern int queue_probetgtlun (Queue_t *queue, int target, int lun);
99 * Function: int queue_remove_cmd (Queue_t *queue, struct scsi_cmnd *SCpnt)
101 * Params : queue - queue to look in
105 int queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt);