Lines Matching refs:rx_channel
3358 nw64(RBR_KICK(rp->rx_channel), rp->rbr_pending); in niu_rbr_refill()
3488 skb_record_rx_queue(skb, rp->rx_channel); in niu_process_rx_pkt()
3641 int rx_channel = rp->rx_channel; in niu_sync_rx_discard_stats() local
3649 misc = nr64(RXMISC(rx_channel)); in niu_sync_rx_discard_stats()
3651 nw64(RXMISC(rx_channel), 0); in niu_sync_rx_discard_stats()
3656 rx_channel); in niu_sync_rx_discard_stats()
3660 rx_channel, misc, misc-limit); in niu_sync_rx_discard_stats()
3664 wred = nr64(RED_DIS_CNT(rx_channel)); in niu_sync_rx_discard_stats()
3666 nw64(RED_DIS_CNT(rx_channel), 0); in niu_sync_rx_discard_stats()
3670 dev_err(np->device, "rx-%d: Counter overflow WRED discard\n", rx_channel); in niu_sync_rx_discard_stats()
3674 rx_channel, wred, wred-limit); in niu_sync_rx_discard_stats()
3686 stat = nr64(RX_DMA_CTL_STAT(rp->rx_channel)); in niu_rx_work()
3687 qlen = nr64(RCRSTAT_A(rp->rx_channel)) & RCRSTAT_A_QLEN; in niu_rx_work()
3697 __func__, rp->rx_channel, (unsigned long long)stat, qlen); in niu_rx_work()
3718 nw64(RX_DMA_CTL_STAT(rp->rx_channel), stat); in niu_rx_work()
3747 if (rx_vec & (1 << rp->rx_channel)) { in niu_poll_core()
3756 nw64(LD_IM0(LDN_RXDMA(rp->rx_channel)), 0); in niu_poll_core()
3780 netdev_err(np->dev, "RX channel %u errors ( ", rp->rx_channel); in niu_log_rxchan_errors()
3816 u64 stat = nr64(RX_DMA_CTL_STAT(rp->rx_channel)); in niu_rx_error()
3826 rp->rx_channel, in niu_rx_error()
3832 nw64(RX_DMA_CTL_STAT(rp->rx_channel), in niu_rx_error()
4076 if (rx_vec & (1 << rp->rx_channel)) { in niu_slowpath_interrupt()
4082 nw64(RX_DMA_CTL_STAT(rp->rx_channel), in niu_slowpath_interrupt()
4133 nw64(RX_DMA_CTL_STAT(rp->rx_channel), stat_write); in niu_rxchan_intr()
4159 int ldn = LDN_RXDMA(rp->rx_channel); in __niu_fastpath_interrupt()
4165 if (rx_vec & (1 << rp->rx_channel)) in __niu_fastpath_interrupt()
4487 rp->rx_channel = first_rx_channel + i; in niu_alloc_channels()
4803 nw64(RDC_RED_PARA(rp->rx_channel), val); in niu_rx_channel_wred_init()
4910 int err, channel = rp->rx_channel; in niu_init_one_rx_channel()
5855 (void) niu_enable_rx_channel(np, rp->rx_channel, 0); in niu_stop_one_rx_channel()
5871 int channel = rp->rx_channel; in niu_reset_one_rx_channel()
7796 data[0] = rp->rx_channel; in niu_get_ethtool_stats()