Lines Matching refs:dma_ctrl

1956 	u32 dma_ctrl, ring_cfg;  in bcmgenet_init_tx_queues()  local
1959 dma_ctrl = bcmgenet_tdma_readl(priv, DMA_CTRL); in bcmgenet_init_tx_queues()
1960 dma_enable = dma_ctrl & DMA_EN; in bcmgenet_init_tx_queues()
1961 dma_ctrl &= ~DMA_EN; in bcmgenet_init_tx_queues()
1962 bcmgenet_tdma_writel(priv, dma_ctrl, DMA_CTRL); in bcmgenet_init_tx_queues()
1964 dma_ctrl = 0; in bcmgenet_init_tx_queues()
1976 dma_ctrl |= (1 << (i + DMA_RING_BUF_EN_SHIFT)); in bcmgenet_init_tx_queues()
1987 dma_ctrl |= (1 << (DESC_INDEX + DMA_RING_BUF_EN_SHIFT)); in bcmgenet_init_tx_queues()
2005 dma_ctrl |= DMA_EN; in bcmgenet_init_tx_queues()
2006 bcmgenet_tdma_writel(priv, dma_ctrl, DMA_CTRL); in bcmgenet_init_tx_queues()
2077 u32 dma_ctrl; in bcmgenet_init_rx_queues() local
2081 dma_ctrl = bcmgenet_rdma_readl(priv, DMA_CTRL); in bcmgenet_init_rx_queues()
2082 dma_enable = dma_ctrl & DMA_EN; in bcmgenet_init_rx_queues()
2083 dma_ctrl &= ~DMA_EN; in bcmgenet_init_rx_queues()
2084 bcmgenet_rdma_writel(priv, dma_ctrl, DMA_CTRL); in bcmgenet_init_rx_queues()
2086 dma_ctrl = 0; in bcmgenet_init_rx_queues()
2100 dma_ctrl |= (1 << (i + DMA_RING_BUF_EN_SHIFT)); in bcmgenet_init_rx_queues()
2112 dma_ctrl |= (1 << (DESC_INDEX + DMA_RING_BUF_EN_SHIFT)); in bcmgenet_init_rx_queues()
2122 dma_ctrl |= DMA_EN; in bcmgenet_init_rx_queues()
2123 bcmgenet_rdma_writel(priv, dma_ctrl, DMA_CTRL); in bcmgenet_init_rx_queues()
2422 u32 dma_ctrl; in bcmgenet_dma_disable() local
2425 dma_ctrl = 1 << (DESC_INDEX + DMA_RING_BUF_EN_SHIFT) | DMA_EN; in bcmgenet_dma_disable()
2427 reg &= ~dma_ctrl; in bcmgenet_dma_disable()
2431 reg &= ~dma_ctrl; in bcmgenet_dma_disable()
2438 return dma_ctrl; in bcmgenet_dma_disable()
2441 static void bcmgenet_enable_dma(struct bcmgenet_priv *priv, u32 dma_ctrl) in bcmgenet_enable_dma() argument
2446 reg |= dma_ctrl; in bcmgenet_enable_dma()
2450 reg |= dma_ctrl; in bcmgenet_enable_dma()
2626 unsigned long dma_ctrl; in bcmgenet_open() local
2665 dma_ctrl = bcmgenet_dma_disable(priv); in bcmgenet_open()
2675 bcmgenet_enable_dma(priv, dma_ctrl); in bcmgenet_open()
3273 unsigned long dma_ctrl; in bcmgenet_resume() local
3320 dma_ctrl = bcmgenet_dma_disable(priv); in bcmgenet_resume()
3330 bcmgenet_enable_dma(priv, dma_ctrl); in bcmgenet_resume()