• Home
  • Raw
  • Download

Lines Matching refs:tx_last

190 			struct sk_buff *skb = greth->tx_skbuff[greth->tx_last];  in greth_clean_rings()
192 tx_bdp = greth->tx_bd_base + greth->tx_last; in greth_clean_rings()
193 greth->tx_last = NEXT_TX(greth->tx_last); in greth_clean_rings()
202 tx_bdp = greth->tx_bd_base + greth->tx_last; in greth_clean_rings()
209 greth->tx_last = NEXT_TX(greth->tx_last); in greth_clean_rings()
327 greth->tx_last = 0; in greth_init_rings()
456 static inline u16 greth_num_free_bds(u16 tx_last, u16 tx_next) in greth_num_free_bds() argument
458 if (tx_next < tx_last) in greth_num_free_bds()
459 return (tx_last - tx_next) - 1; in greth_num_free_bds()
461 return GRETH_TXBD_NUM - (tx_next - tx_last) - 1; in greth_num_free_bds()
472 u16 tx_last; in greth_start_xmit_gbit() local
475 tx_last = greth->tx_last; in greth_start_xmit_gbit()
478 if (greth_num_free_bds(tx_last, greth->tx_next) < nr_frags + 1) { in greth_start_xmit_gbit()
630 bdp = greth->tx_bd_base + greth->tx_last; in greth_clean_tx()
650 dev->stats.tx_bytes += greth->tx_bufs_length[greth->tx_last]; in greth_clean_tx()
651 greth->tx_last = NEXT_TX(greth->tx_last); in greth_clean_tx()
682 u16 tx_last; in greth_clean_tx_gbit() local
685 tx_last = greth->tx_last; in greth_clean_tx_gbit()
687 while (tx_last != greth->tx_next) { in greth_clean_tx_gbit()
689 skb = greth->tx_skbuff[tx_last]; in greth_clean_tx_gbit()
694 bdp_last_frag = greth->tx_bd_base + SKIP_TX(tx_last, nr_frags); in greth_clean_tx_gbit()
703 greth->tx_skbuff[tx_last] = NULL; in greth_clean_tx_gbit()
708 bdp = greth->tx_bd_base + tx_last; in greth_clean_tx_gbit()
710 tx_last = NEXT_TX(tx_last); in greth_clean_tx_gbit()
719 bdp = greth->tx_bd_base + tx_last; in greth_clean_tx_gbit()
726 tx_last = NEXT_TX(tx_last); in greth_clean_tx_gbit()
732 greth->tx_last = tx_last; in greth_clean_tx_gbit()
735 (greth_num_free_bds(tx_last, greth->tx_next) > in greth_clean_tx_gbit()
995 if ((greth->gbit_mac && (greth->tx_last != greth->tx_next)) || in greth_poll()