Searched refs:ring_virt (Results 1 – 4 of 4) sorted by relevance
228 if (chan->ring_virt) in pasemi_dma_free_chan()254 BUG_ON(chan->ring_virt); in pasemi_dma_alloc_ring()258 chan->ring_virt = dma_alloc_coherent(&dma_pdev->dev, in pasemi_dma_alloc_ring()262 if (!chan->ring_virt) in pasemi_dma_alloc_ring()265 memset(chan->ring_virt, 0, ring_size * sizeof(u64)); in pasemi_dma_alloc_ring()278 BUG_ON(!chan->ring_virt); in pasemi_dma_free_ring()281 chan->ring_virt, chan->ring_dma); in pasemi_dma_free_ring()282 chan->ring_virt = NULL; in pasemi_dma_free_ring()
111 #define TX_DESC(tx, num) ((tx)->chan.ring_virt[(num) & (TX_RING_SIZE-1)])113 #define RX_DESC(rx, num) ((rx)->chan.ring_virt[(num) & (RX_RING_SIZE-1)])116 #define CS_DESC(cs, num) ((cs)->chan.ring_virt[(num) & (CS_RING_SIZE-1)])
1010 struct ksz_hw_desc *ring_virt; member3849 struct ksz_hw_desc *desc = desc_info->ring_virt; in hw_init_desc()4434 hw->rx_desc_info.ring_virt = (struct ksz_hw_desc *) in ksz_alloc_desc()4438 hw->tx_desc_info.ring_virt = (struct ksz_hw_desc *) in ksz_alloc_desc()4566 hw->rx_desc_info.ring_virt = NULL; in ksz_free_desc()4567 hw->tx_desc_info.ring_virt = NULL; in ksz_free_desc()
489 u64 *ring_virt; /* Virt address for ring */ member