Lines Matching refs:cpu_base
124 dma_desc = &ring->cpu_base[i]; in bgmac_dma_tx_add_buf()
217 u32 ctl1 = le32_to_cpu(ring->cpu_base[index].ctl1); in bgmac_dma_tx_add()
257 ctl0 = le32_to_cpu(ring->cpu_base[slot_idx].ctl0); in bgmac_dma_tx_free()
258 ctl1 = le32_to_cpu(ring->cpu_base[slot_idx].ctl1); in bgmac_dma_tx_free()
380 struct bgmac_dma_desc *dma_desc = ring->cpu_base + desc_idx; in bgmac_dma_rx_setup_desc()
529 struct bgmac_dma_desc *dma_desc = ring->cpu_base; in bgmac_dma_tx_ring_free()
579 if (!ring->cpu_base) in bgmac_dma_ring_desc_free()
584 dma_free_coherent(dma_dev, size, ring->cpu_base, in bgmac_dma_ring_desc_free()
637 ring->cpu_base = dma_alloc_coherent(dma_dev, size, in bgmac_dma_alloc()
640 if (!ring->cpu_base) { in bgmac_dma_alloc()
662 ring->cpu_base = dma_alloc_coherent(dma_dev, size, in bgmac_dma_alloc()
665 if (!ring->cpu_base) { in bgmac_dma_alloc()