Lines Matching refs:TX_RING_SIZE
80 #define TX_RING_SIZE 5
88 volatile struct TDRE *tx_ring[TX_RING_SIZE];
90 volatile u_short *tx_buff[TX_RING_SIZE];
100 struct TDRE tx_ring[TX_RING_SIZE];
102 u_short tx_buff[TX_RING_SIZE][PKT_BUF_SIZE / sizeof(u_short)];
129 for (i = 0; i < TX_RING_SIZE; i++) {
309 int entry = dirty_tx % TX_RING_SIZE;
345 if (priv->cur_tx - dirty_tx >= TX_RING_SIZE) {
349 dirty_tx += TX_RING_SIZE;
354 dirty_tx > priv->cur_tx - TX_RING_SIZE + 2) {
470 lance->RDP = swapw(((u_short)-TX_RING_SIZE));
576 entry = priv->cur_tx % TX_RING_SIZE;
597 if ((priv->cur_tx >= TX_RING_SIZE) &&
598 (priv->dirty_tx >= TX_RING_SIZE)) {
600 netdev_dbg(dev, "*** Subtracting TX_RING_SIZE from cur_tx (%d) and dirty_tx (%d)\n",
603 priv->cur_tx -= TX_RING_SIZE;
604 priv->dirty_tx -= TX_RING_SIZE;
612 if (lowb(priv->tx_ring[(entry + 1) % TX_RING_SIZE]->TMD1) != 0) {