Lines Matching refs:rx_channel

3360 			nw64(RBR_KICK(rp->rx_channel), rp->rbr_pending);  in niu_rbr_refill()
3490 skb_record_rx_queue(skb, rp->rx_channel); in niu_process_rx_pkt()
3643 int rx_channel = rp->rx_channel; in niu_sync_rx_discard_stats() local
3651 misc = nr64(RXMISC(rx_channel)); in niu_sync_rx_discard_stats()
3653 nw64(RXMISC(rx_channel), 0); in niu_sync_rx_discard_stats()
3658 rx_channel); in niu_sync_rx_discard_stats()
3662 rx_channel, misc, misc-limit); in niu_sync_rx_discard_stats()
3666 wred = nr64(RED_DIS_CNT(rx_channel)); in niu_sync_rx_discard_stats()
3668 nw64(RED_DIS_CNT(rx_channel), 0); in niu_sync_rx_discard_stats()
3672 dev_err(np->device, "rx-%d: Counter overflow WRED discard\n", rx_channel); in niu_sync_rx_discard_stats()
3676 rx_channel, wred, wred-limit); in niu_sync_rx_discard_stats()
3688 stat = nr64(RX_DMA_CTL_STAT(rp->rx_channel)); in niu_rx_work()
3689 qlen = nr64(RCRSTAT_A(rp->rx_channel)) & RCRSTAT_A_QLEN; in niu_rx_work()
3699 __func__, rp->rx_channel, (unsigned long long)stat, qlen); in niu_rx_work()
3720 nw64(RX_DMA_CTL_STAT(rp->rx_channel), stat); in niu_rx_work()
3749 if (rx_vec & (1 << rp->rx_channel)) { in niu_poll_core()
3758 nw64(LD_IM0(LDN_RXDMA(rp->rx_channel)), 0); in niu_poll_core()
3782 netdev_err(np->dev, "RX channel %u errors ( ", rp->rx_channel); in niu_log_rxchan_errors()
3818 u64 stat = nr64(RX_DMA_CTL_STAT(rp->rx_channel)); in niu_rx_error()
3828 rp->rx_channel, in niu_rx_error()
3834 nw64(RX_DMA_CTL_STAT(rp->rx_channel), in niu_rx_error()
4078 if (rx_vec & (1 << rp->rx_channel)) { in niu_slowpath_interrupt()
4084 nw64(RX_DMA_CTL_STAT(rp->rx_channel), in niu_slowpath_interrupt()
4135 nw64(RX_DMA_CTL_STAT(rp->rx_channel), stat_write); in niu_rxchan_intr()
4161 int ldn = LDN_RXDMA(rp->rx_channel); in __niu_fastpath_interrupt()
4167 if (rx_vec & (1 << rp->rx_channel)) in __niu_fastpath_interrupt()
4489 rp->rx_channel = first_rx_channel + i; in niu_alloc_channels()
4805 nw64(RDC_RED_PARA(rp->rx_channel), val); in niu_rx_channel_wred_init()
4912 int err, channel = rp->rx_channel; in niu_init_one_rx_channel()
5857 (void) niu_enable_rx_channel(np, rp->rx_channel, 0); in niu_stop_one_rx_channel()
5873 int channel = rp->rx_channel; in niu_reset_one_rx_channel()
7797 data[0] = rp->rx_channel; in niu_get_ethtool_stats()