Lines Matching refs:tx_last

187 			struct sk_buff *skb = greth->tx_skbuff[greth->tx_last];  in greth_clean_rings()
189 tx_bdp = greth->tx_bd_base + greth->tx_last; in greth_clean_rings()
190 greth->tx_last = NEXT_TX(greth->tx_last); in greth_clean_rings()
199 tx_bdp = greth->tx_bd_base + greth->tx_last; in greth_clean_rings()
206 greth->tx_last = NEXT_TX(greth->tx_last); in greth_clean_rings()
324 greth->tx_last = 0; in greth_init_rings()
453 static inline u16 greth_num_free_bds(u16 tx_last, u16 tx_next) in greth_num_free_bds() argument
455 if (tx_next < tx_last) in greth_num_free_bds()
456 return (tx_last - tx_next) - 1; in greth_num_free_bds()
458 return GRETH_TXBD_NUM - (tx_next - tx_last) - 1; in greth_num_free_bds()
469 u16 tx_last; in greth_start_xmit_gbit() local
472 tx_last = greth->tx_last; in greth_start_xmit_gbit()
475 if (greth_num_free_bds(tx_last, greth->tx_next) < nr_frags + 1) { in greth_start_xmit_gbit()
626 bdp = greth->tx_bd_base + greth->tx_last; in greth_clean_tx()
646 dev->stats.tx_bytes += greth->tx_bufs_length[greth->tx_last]; in greth_clean_tx()
647 greth->tx_last = NEXT_TX(greth->tx_last); in greth_clean_tx()
678 u16 tx_last; in greth_clean_tx_gbit() local
681 tx_last = greth->tx_last; in greth_clean_tx_gbit()
683 while (tx_last != greth->tx_next) { in greth_clean_tx_gbit()
685 skb = greth->tx_skbuff[tx_last]; in greth_clean_tx_gbit()
690 bdp_last_frag = greth->tx_bd_base + SKIP_TX(tx_last, nr_frags); in greth_clean_tx_gbit()
699 greth->tx_skbuff[tx_last] = NULL; in greth_clean_tx_gbit()
704 bdp = greth->tx_bd_base + tx_last; in greth_clean_tx_gbit()
706 tx_last = NEXT_TX(tx_last); in greth_clean_tx_gbit()
715 bdp = greth->tx_bd_base + tx_last; in greth_clean_tx_gbit()
722 tx_last = NEXT_TX(tx_last); in greth_clean_tx_gbit()
728 greth->tx_last = tx_last; in greth_clean_tx_gbit()
731 (greth_num_free_bds(tx_last, greth->tx_next) > in greth_clean_tx_gbit()
992 if ((greth->gbit_mac && (greth->tx_last != greth->tx_next)) || in greth_poll()