Lines Matching refs:next
535 int fill, next, len;
540 next = fill + 1;
541 if (next >= N_TX_RING)
542 next = 0;
543 if (next == mp->tx_empty) {
562 np = mp->tx_cmds + NCMDS_TX * next;
567 mp->tx_fill = next;
575 if (++next >= N_TX_RING)
576 next = 0;
577 if (next == mp->tx_empty)
788 /* set up the next one */
880 int i, nb, stat, next;
892 next = i + 1;
893 if (next >= N_RX_RING)
894 next = 0;
895 np = mp->rx_cmds + next;
896 if (next != mp->rx_fill &&
941 /* advance to next */
949 next = i + 1;
950 if (next >= N_RX_RING)
951 next = 0;
952 if (next == mp->rx_empty)
975 i = next;