Home
last modified time | relevance | path

Searched refs:dma_desc_count (Results 1 – 4 of 4) sorted by relevance

/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-desc.c84 for (i = 0; i < ring->dma_desc_count; i++) { in xlgmac_free_ring()
118 ring->dma_desc_count), in xlgmac_free_ring()
127 unsigned int dma_desc_count) in xlgmac_init_ring() argument
133 ring->dma_desc_count = dma_desc_count; in xlgmac_init_ring()
136 dma_desc_count), in xlgmac_init_ring()
143 ring->desc_data_head = kcalloc(dma_desc_count, in xlgmac_init_ring()
440 for (j = 0; j < ring->dma_desc_count; j++) { in xlgmac_tx_desc_init()
477 for (j = 0; j < ring->dma_desc_count; j++) { in xlgmac_rx_desc_init()
Ddwc-xlgmac.h97 ((idx) & ((_ring)->dma_desc_count - 1))); \
322 unsigned int dma_desc_count; member
Ddwc-xlgmac-hw.c1006 channel->name, start_index & (ring->dma_desc_count - 1), in xlgmac_dev_xmit()
1007 (ring->cur - 1) & (ring->dma_desc_count - 1)); in xlgmac_dev_xmit()
1064 for (i = 0; i < ring->dma_desc_count; i++) { in xlgmac_tx_desc_init()
1072 writel(ring->dma_desc_count - 1, XLGMAC_DMA_REG(channel, DMA_CH_TDRLR)); in xlgmac_tx_desc_init()
1148 for (i = 0; i < ring->dma_desc_count; i++) { in xlgmac_rx_desc_init()
1156 writel(ring->dma_desc_count - 1, XLGMAC_DMA_REG(channel, DMA_CH_RDRLR)); in xlgmac_rx_desc_init()
1167 ring->dma_desc_count - 1); in xlgmac_rx_desc_init()
2811 ring->cur & (ring->dma_desc_count - 1), ring->cur); in xlgmac_dev_read()
Ddwc-xlgmac-net.c30 return (ring->dma_desc_count - (ring->cur - ring->dirty)); in xlgmac_tx_avail_desc()
533 for (j = 0; j < ring->dma_desc_count; j++) { in xlgmac_free_tx_data()
554 for (j = 0; j < ring->dma_desc_count; j++) { in xlgmac_free_rx_data()