Lines Matching refs:DESC_INDEX
822 bcmgenet_tdma_ring_readl(priv, DESC_INDEX, in bcmgenet_get_coalesce()
825 bcmgenet_rdma_ring_readl(priv, DESC_INDEX, in bcmgenet_get_coalesce()
834 ring = &priv->rx_rings[DESC_INDEX]; in bcmgenet_get_coalesce()
909 bcmgenet_tdma_ring_writel(priv, DESC_INDEX, in bcmgenet_set_coalesce()
915 bcmgenet_set_ring_rx_coalesce(&priv->rx_rings[DESC_INDEX], ec); in bcmgenet_set_coalesce()
1880 if (ring->index == DESC_INDEX) in __bcmgenet_tx_reclaim()
1972 bcmgenet_tx_reclaim(dev, &priv->tx_rings[DESC_INDEX]); in bcmgenet_tx_reclaim_all()
2067 index = DESC_INDEX; in bcmgenet_xmit()
2245 if (ring->index == DESC_INDEX) { in bcmgenet_desc_rx()
2642 if (index == DESC_INDEX) { in bcmgenet_init_tx_ring()
2662 if (index != DESC_INDEX) in bcmgenet_init_tx_ring()
2700 if (index == DESC_INDEX) { in bcmgenet_init_rx_ring()
2758 ring = &priv->tx_rings[DESC_INDEX]; in bcmgenet_enable_tx_napi()
2773 ring = &priv->tx_rings[DESC_INDEX]; in bcmgenet_disable_tx_napi()
2787 ring = &priv->tx_rings[DESC_INDEX]; in bcmgenet_fini_tx_napi()
2836 bcmgenet_init_tx_ring(priv, DESC_INDEX, GENET_Q16_TX_BD_CNT, in bcmgenet_init_tx_queues()
2840 ring_cfg |= (1 << DESC_INDEX); in bcmgenet_init_tx_queues()
2841 dma_ctrl |= (1 << (DESC_INDEX + DMA_RING_BUF_EN_SHIFT)); in bcmgenet_init_tx_queues()
2842 dma_priority[DMA_PRIO_REG_INDEX(DESC_INDEX)] |= in bcmgenet_init_tx_queues()
2844 DMA_PRIO_REG_SHIFT(DESC_INDEX)); in bcmgenet_init_tx_queues()
2871 ring = &priv->rx_rings[DESC_INDEX]; in bcmgenet_enable_rx_napi()
2887 ring = &priv->rx_rings[DESC_INDEX]; in bcmgenet_disable_rx_napi()
2902 ring = &priv->rx_rings[DESC_INDEX]; in bcmgenet_fini_rx_napi()
2945 ret = bcmgenet_init_rx_ring(priv, DESC_INDEX, GENET_Q16_RX_BD_CNT, in bcmgenet_init_rx_queues()
2952 ring_cfg |= (1 << DESC_INDEX); in bcmgenet_init_rx_queues()
2953 dma_ctrl |= (1 << (DESC_INDEX + DMA_RING_BUF_EN_SHIFT)); in bcmgenet_init_rx_queues()
3050 txq = netdev_get_tx_queue(priv->dev, priv->tx_rings[DESC_INDEX].queue); in bcmgenet_fini_dma()
3213 rx_ring = &priv->rx_rings[DESC_INDEX]; in bcmgenet_isr0()
3223 tx_ring = &priv->tx_rings[DESC_INDEX]; in bcmgenet_isr0()
3296 dma_ctrl = 1 << (DESC_INDEX + DMA_RING_BUF_EN_SHIFT) | DMA_EN; in bcmgenet_dma_disable()
3303 dma_ctrl = 1 << (DESC_INDEX + DMA_RING_BUF_EN_SHIFT) | DMA_EN; in bcmgenet_dma_disable()
3512 if (ring->index == DESC_INDEX) { in bcmgenet_dump_tx_queue()
3553 bcmgenet_dump_tx_queue(&priv->tx_rings[DESC_INDEX]); in bcmgenet_timeout()
3672 tx_ring = &priv->tx_rings[DESC_INDEX]; in bcmgenet_get_stats()
3684 rx_ring = &priv->rx_rings[DESC_INDEX]; in bcmgenet_get_stats()
4144 priv->rx_rings[DESC_INDEX].rx_max_coalesced_frames = 1; in bcmgenet_probe()