TX_RING_SIZE
ENIC_BUS_WRITE_4(wq->ctrl, TX_RING_SIZE, count);
struct sw_tx_bd sw_tx_ring[TX_RING_SIZE];
if ((diff > TX_RING_SIZE) ||
idx = (txq->sw_tx_cons + 1) & (TX_RING_SIZE - 1);
idx2 = (txq->sw_tx_cons + 2) & (TX_RING_SIZE - 1);
txq->sw_tx_cons = (txq->sw_tx_cons + 1) & (TX_RING_SIZE - 1);
bd_used = TX_RING_SIZE - elem_left;
txq->sw_tx_prod = (txq->sw_tx_prod + 1) & (TX_RING_SIZE - 1);
return(TX_RING_SIZE - 1);
(sizeof (struct sw_tx_bd) * TX_RING_SIZE));
(sizeof (struct sw_tx_bd) * TX_RING_SIZE));
TX_RING_SIZE,
txq->num_tx_buffers = TX_RING_SIZE;
fp->tx_br = buf_ring_alloc(TX_RING_SIZE, M_DEVBUF,