Lines Matching refs:tx_next
324 greth->tx_next = 0;
425 bdp = greth->tx_bd_base + greth->tx_next;
433 greth->tx_bufs_length[greth->tx_next] = skb->len & GRETH_BD_LEN;
436 if (greth->tx_next == GRETH_TXBD_NUM_MASK) {
440 greth->tx_next = NEXT_TX(greth->tx_next);
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;
476 if (greth_num_free_bds(tx_last, greth->tx_next) < nr_frags + 1) {
491 greth->tx_skbuff[greth->tx_next] = skb;
502 if (greth->tx_next == GRETH_TXBD_NUM_MASK)
506 bdp = greth->tx_bd_base + greth->tx_next;
515 curr_tx = NEXT_TX(greth->tx_next);
554 bdp = greth->tx_bd_base + greth->tx_next;
559 greth->tx_next = curr_tx;
567 for (i = 0; greth->tx_next + i != curr_tx; i++) {
568 bdp = greth->tx_bd_base + greth->tx_next + i;
684 while (tx_last != greth->tx_next) {
732 (greth_num_free_bds(tx_last, greth->tx_next) >
993 if ((greth->gbit_mac && (greth->tx_last != greth->tx_next)) ||