Lines Matching refs:head
61 INIT_LIST_HEAD(&queue->head);
66 * host-available list head, and we wouldn't
89 if (!list_empty(&queue->head))
96 * Function: int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head)
97 * Purpose : Add a new command onto a queue, adding REQUEST_SENSE to head.
100 * head - add command to head of queue
103 int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head)
123 if (head)
124 list_add(l, &queue->head);
126 list_add_tail(l, &queue->head);
165 list_for_each(l, &queue->head) {
190 if (!list_empty(&queue->head))
191 SCpnt = __queue_remove(queue, queue->head.next);
214 list_for_each(l, &queue->head) {
240 list_for_each(l, &queue->head) {
264 list_for_each(l, &queue->head) {
290 list_for_each(l, &queue->head) {