Lines Matching refs:cur_tx
323 tp->cur_rx = tp->cur_tx = 0; in tulip_up()
356 tp->tx_buffers[tp->cur_tx].skb = NULL; in tulip_up()
357 tp->tx_buffers[tp->cur_tx].mapping = mapping; in tulip_up()
360 tp->tx_ring[tp->cur_tx].length = cpu_to_le32(0x08000000 | 192); in tulip_up()
361 tp->tx_ring[tp->cur_tx].buffer1 = cpu_to_le32(mapping); in tulip_up()
362 tp->tx_ring[tp->cur_tx].status = cpu_to_le32(DescOwned); in tulip_up()
364 tp->cur_tx++; in tulip_up()
664 entry = tp->cur_tx % TX_RING_SIZE; in tulip_start_xmit()
672 if (tp->cur_tx - tp->dirty_tx < TX_RING_SIZE/2) {/* Typical path */ in tulip_start_xmit()
674 } else if (tp->cur_tx - tp->dirty_tx == TX_RING_SIZE/2) { in tulip_start_xmit()
676 } else if (tp->cur_tx - tp->dirty_tx < TX_RING_SIZE - 2) { in tulip_start_xmit()
691 tp->cur_tx++; in tulip_start_xmit()
705 for (dirty_tx = tp->dirty_tx ; tp->cur_tx - dirty_tx > 0; in tulip_clean_tx_ring()
1129 if (tp->cur_tx - tp->dirty_tx > TX_RING_SIZE - 2) { in set_rx_mode()
1137 entry = tp->cur_tx++ % TX_RING_SIZE; in set_rx_mode()
1148 entry = tp->cur_tx++ % TX_RING_SIZE; in set_rx_mode()
1167 if (tp->cur_tx - tp->dirty_tx >= TX_RING_SIZE - 2) in set_rx_mode()