Lines Matching refs:TX_RING_SIZE
84 #define TX_RING_SIZE 5
95 volatile struct TDRE *tx_ring[TX_RING_SIZE];
97 volatile u_short *tx_buff[TX_RING_SIZE];
111 struct TDRE tx_ring[TX_RING_SIZE];
113 u_short tx_buff[TX_RING_SIZE][PKT_BUF_SIZE/sizeof(u_short)];
303 lance->RDP = swapw(((u_short)-TX_RING_SIZE));
343 for (i = 0; i < TX_RING_SIZE; i++) {
443 int entry = dirty_tx % TX_RING_SIZE;
479 if (priv->cur_tx - dirty_tx >= TX_RING_SIZE) {
482 dirty_tx += TX_RING_SIZE;
487 dirty_tx > priv->cur_tx - TX_RING_SIZE + 2) {
554 entry = priv->cur_tx % TX_RING_SIZE;
569 if ((priv->cur_tx >= TX_RING_SIZE) && (priv->dirty_tx >= TX_RING_SIZE)) {
572 priv->cur_tx -= TX_RING_SIZE;
573 priv->dirty_tx -= TX_RING_SIZE;
583 if (lowb(priv->tx_ring[(entry+1) % TX_RING_SIZE]->TMD1) != 0) {