Lines Matching refs:queue_count
159 aq->queue_count = max_t(int, 0, aq->queue_count - 1); in ap_sm_recv()
160 if (!status.queue_empty && !aq->queue_count) in ap_sm_recv()
161 aq->queue_count++; in ap_sm_recv()
162 if (aq->queue_count > 0) in ap_sm_recv()
186 if (!status.queue_empty || aq->queue_count <= 0) in ap_sm_recv()
189 aq->queue_count = 0; in ap_sm_recv()
215 if (aq->queue_count > 0) { in ap_sm_read()
222 if (aq->queue_count > 0) in ap_sm_read()
266 aq->queue_count = max_t(int, 1, aq->queue_count + 1); in ap_sm_write()
267 if (aq->queue_count == 1) in ap_sm_write()
272 if (aq->queue_count < aq->card->queue_depth) { in ap_sm_write()
353 if (aq->queue_count > 0 && aq->reply) in ap_sm_reset_wait()
366 aq->sm_state = (aq->queue_count > 0) ? in ap_sm_reset_wait()
395 if (aq->queue_count > 0 && aq->reply) in ap_sm_setirq_wait()
405 aq->sm_state = (aq->queue_count > 0) ? in ap_sm_setirq_wait()
411 if (aq->queue_count > 0) in ap_sm_setirq_wait()
894 aq->queue_count = 0; in __ap_flush_queue()