Lines Matching refs:queue_count
159 aq->queue_count = max_t(int, 0, aq->queue_count - 1); in ap_sm_recv()
160 if (aq->queue_count > 0) in ap_sm_recv()
184 if (!status.queue_empty || aq->queue_count <= 0) in ap_sm_recv()
187 aq->queue_count = 0; in ap_sm_recv()
213 if (aq->queue_count > 0) { in ap_sm_read()
220 if (aq->queue_count > 0) in ap_sm_read()
263 aq->queue_count = max_t(int, 1, aq->queue_count + 1); in ap_sm_write()
264 if (aq->queue_count == 1) in ap_sm_write()
269 if (aq->queue_count < aq->card->queue_depth) { in ap_sm_write()
350 if (aq->queue_count > 0 && aq->reply) in ap_sm_reset_wait()
363 aq->sm_state = (aq->queue_count > 0) ? in ap_sm_reset_wait()
392 if (aq->queue_count > 0 && aq->reply) in ap_sm_setirq_wait()
402 aq->sm_state = (aq->queue_count > 0) ? in ap_sm_setirq_wait()
408 if (aq->queue_count > 0) in ap_sm_setirq_wait()
874 aq->queue_count = 0; in __ap_flush_queue()