Lines Matching refs:tx_last

191 			struct sk_buff *skb = greth->tx_skbuff[greth->tx_last];  in greth_clean_rings()
193 tx_bdp = greth->tx_bd_base + greth->tx_last; in greth_clean_rings()
194 greth->tx_last = NEXT_TX(greth->tx_last); in greth_clean_rings()
203 tx_bdp = greth->tx_bd_base + greth->tx_last; in greth_clean_rings()
210 greth->tx_last = NEXT_TX(greth->tx_last); in greth_clean_rings()
328 greth->tx_last = 0; in greth_init_rings()
457 static inline u16 greth_num_free_bds(u16 tx_last, u16 tx_next) in greth_num_free_bds() argument
459 if (tx_next < tx_last) in greth_num_free_bds()
460 return (tx_last - tx_next) - 1; in greth_num_free_bds()
462 return GRETH_TXBD_NUM - (tx_next - tx_last) - 1; in greth_num_free_bds()
473 u16 tx_last; in greth_start_xmit_gbit() local
476 tx_last = greth->tx_last; in greth_start_xmit_gbit()
479 if (greth_num_free_bds(tx_last, greth->tx_next) < nr_frags + 1) { in greth_start_xmit_gbit()
631 bdp = greth->tx_bd_base + greth->tx_last; in greth_clean_tx()
651 dev->stats.tx_bytes += greth->tx_bufs_length[greth->tx_last]; in greth_clean_tx()
652 greth->tx_last = NEXT_TX(greth->tx_last); in greth_clean_tx()
683 u16 tx_last; in greth_clean_tx_gbit() local
686 tx_last = greth->tx_last; in greth_clean_tx_gbit()
688 while (tx_last != greth->tx_next) { in greth_clean_tx_gbit()
690 skb = greth->tx_skbuff[tx_last]; in greth_clean_tx_gbit()
695 bdp_last_frag = greth->tx_bd_base + SKIP_TX(tx_last, nr_frags); in greth_clean_tx_gbit()
704 greth->tx_skbuff[tx_last] = NULL; in greth_clean_tx_gbit()
709 bdp = greth->tx_bd_base + tx_last; in greth_clean_tx_gbit()
711 tx_last = NEXT_TX(tx_last); in greth_clean_tx_gbit()
720 bdp = greth->tx_bd_base + tx_last; in greth_clean_tx_gbit()
727 tx_last = NEXT_TX(tx_last); in greth_clean_tx_gbit()
733 greth->tx_last = tx_last; in greth_clean_tx_gbit()
736 (greth_num_free_bds(tx_last, greth->tx_next) > in greth_clean_tx_gbit()
997 if ((greth->gbit_mac && (greth->tx_last != greth->tx_next)) || in greth_poll()