Lines Matching defs: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 */
863 /* See if the command is on the copp queue */
874 /* See if the command is on the wait queue */
1191 /* Set queue depths on devices once scan is complete */
2521 /* Take the next command off the queue and send it to the controller */
2540 * Block access to the queue function so
2645 spin_unlock(host->host_lock); /* Unlock HA after command is taken off queue */
2750 /* Add an item to the head of the queue */
2756 ips_putq_scb_head(ips_scb_queue_t * queue, ips_scb_t * item)
2763 item->q_next = queue->head;
2764 queue->head = item;
2766 if (!queue->tail)
2767 queue->tail = item;
2769 queue->count++;
2778 /* Remove the head of the queue */
2784 ips_removeq_scb_head(ips_scb_queue_t * queue)
2790 item = queue->head;
2796 queue->head = item->q_next;
2799 if (queue->tail == item)
2800 queue->tail = NULL;
2802 queue->count--;
2813 /* Remove an item from a queue */
2819 ips_removeq_scb(ips_scb_queue_t * queue, ips_scb_t * item)
2828 if (item == queue->head) {
2829 return (ips_removeq_scb_head(queue));
2832 p = queue->head;
2842 queue->tail = p;
2845 queue->count--;
2859 /* Add an item to the tail of the queue */
2864 static void ips_putq_wait_tail(ips_wait_queue_entry_t *queue, struct scsi_cmnd *item)
2873 if (queue->tail)
2874 queue->tail->host_scribble = (char *) item;
2876 queue->tail = item;
2878 if (!queue->head)
2879 queue->head = item;
2881 queue->count++;
2890 /* Remove the head of the queue */
2895 static struct scsi_cmnd *ips_removeq_wait_head(ips_wait_queue_entry_t *queue)
2901 item = queue->head;
2907 queue->head = (struct scsi_cmnd *) item->host_scribble;
2910 if (queue->tail == item)
2911 queue->tail = NULL;
2913 queue->count--;
2924 /* Remove an item from a queue */
2929 static struct scsi_cmnd *ips_removeq_wait(ips_wait_queue_entry_t *queue,
2939 if (item == queue->head) {
2940 return (ips_removeq_wait_head(queue));
2943 p = queue->head;
2953 queue->tail = p;
2956 queue->count--;
2970 /* Add an item to the tail of the queue */
2976 ips_putq_copp_tail(ips_copp_queue_t * queue, ips_copp_wait_item_t * item)
2985 if (queue->tail)
2986 queue->tail->next = item;
2988 queue->tail = item;
2990 if (!queue->head)
2991 queue->head = item;
2993 queue->count++;
3002 /* Remove the head of the queue */
3008 ips_removeq_copp_head(ips_copp_queue_t * queue)
3014 item = queue->head;
3020 queue->head = item->next;
3023 if (queue->tail == item)
3024 queue->tail = NULL;
3026 queue->count--;
3037 /* Remove an item from a queue */
3043 ips_removeq_copp(ips_copp_queue_t * queue, ips_copp_wait_item_t * item)
3052 if (item == queue->head) {
3053 return (ips_removeq_copp_head(queue));
3056 p = queue->head;
3066 queue->tail = p;
3069 queue->count--;
3156 * data and had to be broke up. If so, queue
3853 /* Remove the item from the active queue */
4611 /* All other responses are just taken off the queue and ignored */
5193 /* Remove an element from the status queue */
5221 /* Remove an element from the status queue */
5248 /* Remove an element from the status queue */
5459 /* status queue overflow or GHI */
5492 /* status queue overflow or GHI */