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 */
1187 /* Set queue depths on devices once scan is complete */
2518 /* Take the next command off the queue and send it to the controller */
2537 * Block access to the queue function so
2642 spin_unlock(host->host_lock); /* Unlock HA after command is taken off queue */
2747 /* Add an item to the head of the queue */
2753 ips_putq_scb_head(ips_scb_queue_t * queue, ips_scb_t * item)
2760 item->q_next = queue->head;
2761 queue->head = item;
2763 if (!queue->tail)
2764 queue->tail = item;
2766 queue->count++;
2775 /* Remove the head of the queue */
2781 ips_removeq_scb_head(ips_scb_queue_t * queue)
2787 item = queue->head;
2793 queue->head = item->q_next;
2796 if (queue->tail == item)
2797 queue->tail = NULL;
2799 queue->count--;
2810 /* Remove an item from a queue */
2816 ips_removeq_scb(ips_scb_queue_t * queue, ips_scb_t * item)
2825 if (item == queue->head) {
2826 return (ips_removeq_scb_head(queue));
2829 p = queue->head;
2839 queue->tail = p;
2842 queue->count--;
2856 /* Add an item to the tail of the queue */
2861 static void ips_putq_wait_tail(ips_wait_queue_entry_t *queue, struct scsi_cmnd *item)
2870 if (queue->tail)
2871 queue->tail->host_scribble = (char *) item;
2873 queue->tail = item;
2875 if (!queue->head)
2876 queue->head = item;
2878 queue->count++;
2887 /* Remove the head of the queue */
2892 static struct scsi_cmnd *ips_removeq_wait_head(ips_wait_queue_entry_t *queue)
2898 item = queue->head;
2904 queue->head = (struct scsi_cmnd *) item->host_scribble;
2907 if (queue->tail == item)
2908 queue->tail = NULL;
2910 queue->count--;
2921 /* Remove an item from a queue */
2926 static struct scsi_cmnd *ips_removeq_wait(ips_wait_queue_entry_t *queue,
2936 if (item == queue->head) {
2937 return (ips_removeq_wait_head(queue));
2940 p = queue->head;
2950 queue->tail = p;
2953 queue->count--;
2967 /* Add an item to the tail of the queue */
2973 ips_putq_copp_tail(ips_copp_queue_t * queue, ips_copp_wait_item_t * item)
2982 if (queue->tail)
2983 queue->tail->next = item;
2985 queue->tail = item;
2987 if (!queue->head)
2988 queue->head = item;
2990 queue->count++;
2999 /* Remove the head of the queue */
3005 ips_removeq_copp_head(ips_copp_queue_t * queue)
3011 item = queue->head;
3017 queue->head = item->next;
3020 if (queue->tail == item)
3021 queue->tail = NULL;
3023 queue->count--;
3034 /* Remove an item from a queue */
3040 ips_removeq_copp(ips_copp_queue_t * queue, ips_copp_wait_item_t * item)
3049 if (item == queue->head) {
3050 return (ips_removeq_copp_head(queue));
3053 p = queue->head;
3063 queue->tail = p;
3066 queue->count--;
3153 * data and had to be broke up. If so, queue
3850 /* Remove the item from the active queue */
4608 /* All other responses are just taken off the queue and ignored */
5190 /* Remove an element from the status queue */
5218 /* Remove an element from the status queue */
5245 /* Remove an element from the status queue */
5456 /* status queue overflow or GHI */
5489 /* status queue overflow or GHI */