Lines Matching defs:ring
70 /* Keep the ring sizes a power of two for compile efficiency.
72 * Making the Tx ring too large decreases the effectiveness of channel
74 * With BQL support, we can increase TX ring safely.
78 #define TX_QUEUE_LEN (TX_RING_SIZE - 6) /* Limit ring entries actually used. */
156 the list. The ring sizes are set at compile time by RX/TX_RING_SIZE.
165 The driver allocates full frame size skbuffs for the Rx ring buffers at
194 The send packet thread has partial control over the Tx ring. It locks the
196 the ring is not available it stops the transmit queue by
199 The interrupt handler has exclusive control over the Rx ring and records stats
200 from the Tx ring. After reaping the stats, it marks the Tx queue entry as
202 the Rx ring are available the transmit queue is woken up if it was stopped.
1145 void *ring;
1148 ring = dma_alloc_coherent(hwdev,
1153 if (!ring) {
1166 ring, ring_dma);
1171 rp->rx_ring = ring;
1172 rp->tx_ring = ring + RX_RING_SIZE * sizeof(struct rx_desc);
1255 /* Init the ring entries */
1263 /* Mark the last entry as wrapping the ring. */
2031 /* Process up to limit frames from receive ring */