Lines Matching refs:read_count
74 tx_queue->queue, tx_queue->read_count); in ef4_dequeue_buffer()
134 txq1->old_read_count = READ_ONCE(txq1->read_count); in ef4_tx_maybe_stop_queue()
135 txq2->old_read_count = READ_ONCE(txq2->read_count); in ef4_tx_maybe_stop_queue()
363 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in ef4_dequeue_buffers()
379 ++tx_queue->read_count; in ef4_dequeue_buffers()
380 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in ef4_dequeue_buffers()
516 fill_level = max(tx_queue->insert_count - tx_queue->read_count, in ef4_xmit_done()
517 txq2->insert_count - txq2->read_count); in ef4_xmit_done()
523 if ((int)(tx_queue->read_count - tx_queue->old_write_count) >= 0) { in ef4_xmit_done()
525 if (tx_queue->read_count == tx_queue->old_write_count) { in ef4_xmit_done()
528 tx_queue->read_count | EF4_EMPTY_COUNT_VALID; in ef4_xmit_done()
592 tx_queue->read_count = 0; in ef4_init_tx_queue()
617 while (tx_queue->read_count != tx_queue->write_count) { in ef4_fini_tx_queue()
619 buffer = &tx_queue->buffer[tx_queue->read_count & tx_queue->ptr_mask]; in ef4_fini_tx_queue()
622 ++tx_queue->read_count; in ef4_fini_tx_queue()