Lines Matching refs:ring_nbr
322 void etsec_walk_tx_ring(eTSEC *etsec, int ring_nbr) in etsec_walk_tx_ring() argument
335 ring_base += etsec->regs[TBASE0 + ring_nbr].value & ~0x7; in etsec_walk_tx_ring()
336 bd_addr = etsec->regs[TBPTR0 + ring_nbr].value & ~0x7; in etsec_walk_tx_ring()
369 etsec->regs[TBPTR0 + ring_nbr].value = bd_addr; in etsec_walk_tx_ring()
372 etsec->regs[TSTAT].value |= 1 << (31 - ring_nbr); in etsec_walk_tx_ring()
490 int ring_nbr = 0; /* Always use ring0 (no filer) */ in etsec_rx_ring_write() local
498 if (etsec->regs[RSTAT].value & 1 << (23 - ring_nbr)) { in etsec_rx_ring_write()
521 etsec_walk_rx_ring(etsec, ring_nbr); in etsec_rx_ring_write()
526 void etsec_walk_rx_ring(eTSEC *etsec, int ring_nbr) in etsec_walk_rx_ring() argument
550 ring_base += etsec->regs[RBASE0 + ring_nbr].value & ~0x7; in etsec_walk_rx_ring()
551 start_bd_addr = bd_addr = etsec->regs[RBPTR0 + ring_nbr].value & ~0x7; in etsec_walk_rx_ring()
603 etsec->regs[RSTAT].value |= 1 << (7 - ring_nbr); in etsec_walk_rx_ring()
631 etsec->regs[RBPTR0 + ring_nbr].value = bd_addr; in etsec_walk_rx_ring()
637 etsec->regs[RSTAT].value |= 1 << (23 - ring_nbr); in etsec_walk_rx_ring()