Lines Matching refs:RX_BUF_NUM
142 for (i = 0; i < RX_BUF_NUM; i++) { in dma_rx_dump()
150 for (i = 0; i < RX_BUF_NUM; i++) { in dma_rx_dump()
222 RX_BUF_NUM * DESCP_SIZE_ALIGNED); in dma_rx_init()
224 memset(dma->rx_buf, 0, RX_BUF_NUM * RX_BUF_SIZE_ALIGNED); in dma_rx_init()
227 for (i = 0; i < RX_BUF_NUM; i++) { in dma_rx_init()
232 if (i == (RX_BUF_NUM - 1)) in dma_rx_init()
248 DESCP_SIZE_ALIGNED * RX_BUF_NUM); in dma_rx_init()
251 RX_BUF_SIZE_ALIGNED * RX_BUF_NUM); in dma_rx_init()
439 DESCP_SIZE_ALIGNED * RX_BUF_NUM); in gmac_check_rx_done()
451 dma->cur_rx_index = (index + 1) & (RX_BUF_NUM - 1); in gmac_check_rx_done()
471 DESCP_SIZE_ALIGNED * RX_BUF_NUM); in gmac_check_rx_done()
582 (RX_BUF_NUM - 1) * RX_BUF_SIZE_ALIGNED) & in gmac_enable_dma()
926 tmp = memalign(ARCH_DMA_MINALIGN, DESCP_SIZE_ALIGNED * RX_BUF_NUM); in gmac_add()
935 dma->rx_desc_aligned, DESCP_SIZE_ALIGNED * RX_BUF_NUM); in gmac_add()
937 tmp = memalign(ARCH_DMA_MINALIGN, RX_BUF_SIZE_ALIGNED * RX_BUF_NUM); in gmac_add()
947 dma->rx_buf, RX_BUF_SIZE_ALIGNED * RX_BUF_NUM); in gmac_add()