Lines Matching refs:rx_channel
3375 nw64(RBR_KICK(rp->rx_channel), rp->rbr_pending); in niu_rbr_refill()
3505 skb_record_rx_queue(skb, rp->rx_channel); in niu_process_rx_pkt()
3658 int rx_channel = rp->rx_channel; in niu_sync_rx_discard_stats() local
3666 misc = nr64(RXMISC(rx_channel)); in niu_sync_rx_discard_stats()
3668 nw64(RXMISC(rx_channel), 0); in niu_sync_rx_discard_stats()
3673 rx_channel); in niu_sync_rx_discard_stats()
3677 rx_channel, misc, misc-limit); in niu_sync_rx_discard_stats()
3681 wred = nr64(RED_DIS_CNT(rx_channel)); in niu_sync_rx_discard_stats()
3683 nw64(RED_DIS_CNT(rx_channel), 0); in niu_sync_rx_discard_stats()
3687 dev_err(np->device, "rx-%d: Counter overflow WRED discard\n", rx_channel); in niu_sync_rx_discard_stats()
3691 rx_channel, wred, wred-limit); in niu_sync_rx_discard_stats()
3703 stat = nr64(RX_DMA_CTL_STAT(rp->rx_channel)); in niu_rx_work()
3704 qlen = nr64(RCRSTAT_A(rp->rx_channel)) & RCRSTAT_A_QLEN; in niu_rx_work()
3714 __func__, rp->rx_channel, (unsigned long long)stat, qlen); in niu_rx_work()
3735 nw64(RX_DMA_CTL_STAT(rp->rx_channel), stat); in niu_rx_work()
3764 if (rx_vec & (1 << rp->rx_channel)) { in niu_poll_core()
3773 nw64(LD_IM0(LDN_RXDMA(rp->rx_channel)), 0); in niu_poll_core()
3797 netdev_err(np->dev, "RX channel %u errors ( ", rp->rx_channel); in niu_log_rxchan_errors()
3833 u64 stat = nr64(RX_DMA_CTL_STAT(rp->rx_channel)); in niu_rx_error()
3843 rp->rx_channel, in niu_rx_error()
3849 nw64(RX_DMA_CTL_STAT(rp->rx_channel), in niu_rx_error()
4091 if (rx_vec & (1 << rp->rx_channel)) { in niu_slowpath_interrupt()
4097 nw64(RX_DMA_CTL_STAT(rp->rx_channel), in niu_slowpath_interrupt()
4148 nw64(RX_DMA_CTL_STAT(rp->rx_channel), stat_write); in niu_rxchan_intr()
4174 int ldn = LDN_RXDMA(rp->rx_channel); in __niu_fastpath_interrupt()
4180 if (rx_vec & (1 << rp->rx_channel)) in __niu_fastpath_interrupt()
4502 rp->rx_channel = first_rx_channel + i; in niu_alloc_channels()
4818 nw64(RDC_RED_PARA(rp->rx_channel), val); in niu_rx_channel_wred_init()
4925 int err, channel = rp->rx_channel; in niu_init_one_rx_channel()
5870 (void) niu_enable_rx_channel(np, rp->rx_channel, 0); in niu_stop_one_rx_channel()
5886 int channel = rp->rx_channel; in niu_reset_one_rx_channel()
7816 data[0] = rp->rx_channel; in niu_get_ethtool_stats()