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 */
807 /* See if the command is on the copp queue */
817 /* See if the command is on the wait queue */
872 /* See if the command is on the copp queue */
883 /* See if the command is on the wait queue */
1199 /* Set queue depths on devices once scan is complete */
2536 /* Take the next command off the queue and send it to the controller */
2555 * Block access to the queue function so
2663 spin_unlock(host->host_lock); /* Unlock HA after command is taken off queue */
2768 /* Add an item to the head of the queue */
2774 ips_putq_scb_head(ips_scb_queue_t * queue, ips_scb_t * item)
2781 item->q_next = queue->head;
2782 queue->head = item;
2784 if (!queue->tail)
2785 queue->tail = item;
2787 queue->count++;
2796 /* Remove the head of the queue */
2802 ips_removeq_scb_head(ips_scb_queue_t * queue)
2808 item = queue->head;
2814 queue->head = item->q_next;
2817 if (queue->tail == item)
2818 queue->tail = NULL;
2820 queue->count--;
2831 /* Remove an item from a queue */
2837 ips_removeq_scb(ips_scb_queue_t * queue, ips_scb_t * item)
2846 if (item == queue->head) {
2847 return (ips_removeq_scb_head(queue));
2850 p = queue->head;
2860 queue->tail = p;
2863 queue->count--;
2877 /* Add an item to the tail of the queue */
2882 static void ips_putq_wait_tail(ips_wait_queue_t *queue, struct scsi_cmnd *item)
2891 if (queue->tail)
2892 queue->tail->host_scribble = (char *) item;
2894 queue->tail = item;
2896 if (!queue->head)
2897 queue->head = item;
2899 queue->count++;
2908 /* Remove the head of the queue */
2913 static struct scsi_cmnd *ips_removeq_wait_head(ips_wait_queue_t *queue)
2919 item = queue->head;
2925 queue->head = (struct scsi_cmnd *) item->host_scribble;
2928 if (queue->tail == item)
2929 queue->tail = NULL;
2931 queue->count--;
2942 /* Remove an item from a queue */
2947 static struct scsi_cmnd *ips_removeq_wait(ips_wait_queue_t *queue,
2957 if (item == queue->head) {
2958 return (ips_removeq_wait_head(queue));
2961 p = queue->head;
2971 queue->tail = p;
2974 queue->count--;
2988 /* Add an item to the tail of the queue */
2994 ips_putq_copp_tail(ips_copp_queue_t * queue, ips_copp_wait_item_t * item)
3003 if (queue->tail)
3004 queue->tail->next = item;
3006 queue->tail = item;
3008 if (!queue->head)
3009 queue->head = item;
3011 queue->count++;
3020 /* Remove the head of the queue */
3026 ips_removeq_copp_head(ips_copp_queue_t * queue)
3032 item = queue->head;
3038 queue->head = item->next;
3041 if (queue->tail == item)
3042 queue->tail = NULL;
3044 queue->count--;
3055 /* Remove an item from a queue */
3061 ips_removeq_copp(ips_copp_queue_t * queue, ips_copp_wait_item_t * item)
3070 if (item == queue->head) {
3071 return (ips_removeq_copp_head(queue));
3074 p = queue->head;
3084 queue->tail = p;
3087 queue->count--;
3174 * data and had to be broke up. If so, queue
3870 /* Remove the item from the active queue */
4628 /* All other responses are just taken off the queue and ignored */
5212 /* Remove an element from the status queue */
5240 /* Remove an element from the status queue */
5267 /* Remove an element from the status queue */
5478 /* status queue overflow or GHI */
5511 /* status queue overflow or GHI */