Lines Matching refs:next
540 int fill, next, len;
545 next = fill + 1;
546 if (next >= N_TX_RING)
547 next = 0;
548 if (next == mp->tx_empty) {
567 np = mp->tx_cmds + NCMDS_TX * next;
572 mp->tx_fill = next;
580 if (++next >= N_TX_RING)
581 next = 0;
582 if (next == mp->tx_empty)
793 /* set up the next one */
885 int i, nb, stat, next;
897 next = i + 1;
898 if (next >= N_RX_RING)
899 next = 0;
900 np = mp->rx_cmds + next;
901 if (next != mp->rx_fill &&
946 /* advance to next */
954 next = i + 1;
955 if (next >= N_RX_RING)
956 next = 0;
957 if (next == mp->rx_empty)
980 i = next;