Lines Matching refs:tx_next
324 greth->tx_next = 0; in greth_init_rings()
425 bdp = greth->tx_bd_base + greth->tx_next; in greth_start_xmit()
433 greth->tx_bufs_length[greth->tx_next] = skb->len & GRETH_BD_LEN; in greth_start_xmit()
436 if (greth->tx_next == GRETH_TXBD_NUM_MASK) { in greth_start_xmit()
440 greth->tx_next = NEXT_TX(greth->tx_next); in greth_start_xmit()
454 static inline u16 greth_num_free_bds(u16 tx_last, u16 tx_next) in greth_num_free_bds() argument
456 if (tx_next < tx_last) in greth_num_free_bds()
457 return (tx_last - tx_next) - 1; in greth_num_free_bds()
459 return GRETH_TXBD_NUM - (tx_next - tx_last) - 1; in greth_num_free_bds()
476 if (greth_num_free_bds(tx_last, greth->tx_next) < nr_frags + 1) { in greth_start_xmit_gbit()
491 greth->tx_skbuff[greth->tx_next] = skb; in greth_start_xmit_gbit()
502 if (greth->tx_next == GRETH_TXBD_NUM_MASK) in greth_start_xmit_gbit()
506 bdp = greth->tx_bd_base + greth->tx_next; in greth_start_xmit_gbit()
515 curr_tx = NEXT_TX(greth->tx_next); in greth_start_xmit_gbit()
554 bdp = greth->tx_bd_base + greth->tx_next; in greth_start_xmit_gbit()
559 greth->tx_next = curr_tx; in greth_start_xmit_gbit()
567 for (i = 0; greth->tx_next + i != curr_tx; i++) { in greth_start_xmit_gbit()
568 bdp = greth->tx_bd_base + greth->tx_next + i; in greth_start_xmit_gbit()
685 while (tx_last != greth->tx_next) { in greth_clean_tx_gbit()
733 (greth_num_free_bds(tx_last, greth->tx_next) > in greth_clean_tx_gbit()
994 if ((greth->gbit_mac && (greth->tx_last != greth->tx_next)) || in greth_poll()