Lines Matching refs:nr_buf_used
509 count = min(atomic_read(&q->nr_buf_used), QDIO_MAX_BUFFERS_MASK); in get_inbound_buffer_frontier()
525 if (atomic_sub_return(count, &q->nr_buf_used) == 0) in get_inbound_buffer_frontier()
533 if (atomic_sub_return(count, &q->nr_buf_used) == 0) in get_inbound_buffer_frontier()
572 if (!atomic_read(&q->nr_buf_used)) in qdio_inbound_q_done()
745 count = min(atomic_read(&q->nr_buf_used), QDIO_MAX_BUFFERS_MASK); in get_outbound_buffer_frontier()
761 atomic_sub(count, &q->nr_buf_used); in get_outbound_buffer_frontier()
770 atomic_sub(count, &q->nr_buf_used); in get_outbound_buffer_frontier()
795 return atomic_read(&q->nr_buf_used) == 0; in qdio_outbound_q_done()
857 WARN_ON_ONCE(atomic_read(&q->nr_buf_used) < 0); in __qdio_outbound_processing()
1530 atomic_add(count, &q->nr_buf_used); in handle_inbound()
1554 used = atomic_add_return(count, &q->nr_buf_used); in handle_outbound()