Lines Matching refs:tx_last
187 struct sk_buff *skb = greth->tx_skbuff[greth->tx_last];
189 tx_bdp = greth->tx_bd_base + greth->tx_last;
190 greth->tx_last = NEXT_TX(greth->tx_last);
199 tx_bdp = greth->tx_bd_base + greth->tx_last;
206 greth->tx_last = NEXT_TX(greth->tx_last);
325 greth->tx_last = 0;
454 static inline u16 greth_num_free_bds(u16 tx_last, u16 tx_next)
456 if (tx_next < tx_last)
457 return (tx_last - tx_next) - 1;
459 return GRETH_TXBD_NUM - (tx_next - tx_last) - 1;
470 u16 tx_last;
473 tx_last = greth->tx_last;
474 rmb(); /* tx_last is updated by the poll task */
476 if (greth_num_free_bds(tx_last, greth->tx_next) < nr_frags + 1) {
627 bdp = greth->tx_bd_base + greth->tx_last;
647 dev->stats.tx_bytes += greth->tx_bufs_length[greth->tx_last];
648 greth->tx_last = NEXT_TX(greth->tx_last);
679 u16 tx_last;
682 tx_last = greth->tx_last;
684 while (tx_last != greth->tx_next) {
686 skb = greth->tx_skbuff[tx_last];
691 bdp_last_frag = greth->tx_bd_base + SKIP_TX(tx_last, nr_frags);
700 greth->tx_skbuff[tx_last] = NULL;
705 bdp = greth->tx_bd_base + tx_last;
707 tx_last = NEXT_TX(tx_last);
716 bdp = greth->tx_bd_base + tx_last;
723 tx_last = NEXT_TX(tx_last);
729 greth->tx_last = tx_last;
732 (greth_num_free_bds(tx_last, greth->tx_next) >
993 if ((greth->gbit_mac && (greth->tx_last != greth->tx_next)) ||