Lines Matching refs:queue

62 /*          - Send all of the commands on the queue at once rather than      */
103 /* - Don't release HA Lock in ips_next() until SC taken off queue */
798 /* See if the command is on the copp queue */
808 /* See if the command is on the wait queue */
1173 /* Set queue depths on devices once scan is complete */
2503 /* Take the next command off the queue and send it to the controller */
2522 * Block access to the queue function so
2627 spin_unlock(host->host_lock); /* Unlock HA after command is taken off queue */
2732 /* Add an item to the head of the queue */
2738 ips_putq_scb_head(ips_scb_queue_t * queue, ips_scb_t * item)
2745 item->q_next = queue->head;
2746 queue->head = item;
2748 if (!queue->tail)
2749 queue->tail = item;
2751 queue->count++;
2760 /* Remove the head of the queue */
2766 ips_removeq_scb_head(ips_scb_queue_t * queue)
2772 item = queue->head;
2778 queue->head = item->q_next;
2781 if (queue->tail == item)
2782 queue->tail = NULL;
2784 queue->count--;
2795 /* Remove an item from a queue */
2801 ips_removeq_scb(ips_scb_queue_t * queue, ips_scb_t * item)
2810 if (item == queue->head) {
2811 return (ips_removeq_scb_head(queue));
2814 p = queue->head;
2824 queue->tail = p;
2827 queue->count--;
2841 /* Add an item to the tail of the queue */
2846 static void ips_putq_wait_tail(ips_wait_queue_entry_t *queue, struct scsi_cmnd *item)
2855 if (queue->tail)
2856 queue->tail->host_scribble = (char *) item;
2858 queue->tail = item;
2860 if (!queue->head)
2861 queue->head = item;
2863 queue->count++;
2872 /* Remove the head of the queue */
2877 static struct scsi_cmnd *ips_removeq_wait_head(ips_wait_queue_entry_t *queue)
2883 item = queue->head;
2889 queue->head = (struct scsi_cmnd *) item->host_scribble;
2892 if (queue->tail == item)
2893 queue->tail = NULL;
2895 queue->count--;
2906 /* Remove an item from a queue */
2911 static struct scsi_cmnd *ips_removeq_wait(ips_wait_queue_entry_t *queue,
2921 if (item == queue->head) {
2922 return (ips_removeq_wait_head(queue));
2925 p = queue->head;
2935 queue->tail = p;
2938 queue->count--;
2952 /* Add an item to the tail of the queue */
2958 ips_putq_copp_tail(ips_copp_queue_t * queue, ips_copp_wait_item_t * item)
2967 if (queue->tail)
2968 queue->tail->next = item;
2970 queue->tail = item;
2972 if (!queue->head)
2973 queue->head = item;
2975 queue->count++;
2984 /* Remove the head of the queue */
2990 ips_removeq_copp_head(ips_copp_queue_t * queue)
2996 item = queue->head;
3002 queue->head = item->next;
3005 if (queue->tail == item)
3006 queue->tail = NULL;
3008 queue->count--;
3019 /* Remove an item from a queue */
3025 ips_removeq_copp(ips_copp_queue_t * queue, ips_copp_wait_item_t * item)
3034 if (item == queue->head) {
3035 return (ips_removeq_copp_head(queue));
3038 p = queue->head;
3048 queue->tail = p;
3051 queue->count--;
3138 * data and had to be broke up. If so, queue
3835 /* Remove the item from the active queue */
4593 /* All other responses are just taken off the queue and ignored */
5175 /* Remove an element from the status queue */
5203 /* Remove an element from the status queue */
5230 /* Remove an element from the status queue */
5441 /* status queue overflow or GHI */
5474 /* status queue overflow or GHI */