Lines Matching refs:RX_BUF_NUM
143 for (i = 0; i < RX_BUF_NUM; i++) { in dma_rx_dump()
151 for (i = 0; i < RX_BUF_NUM; i++) { in dma_rx_dump()
223 RX_BUF_NUM * DESCP_SIZE_ALIGNED); in dma_rx_init()
225 memset(dma->rx_buf, 0, RX_BUF_NUM * RX_BUF_SIZE_ALIGNED); in dma_rx_init()
228 for (i = 0; i < RX_BUF_NUM; i++) { in dma_rx_init()
233 if (i == (RX_BUF_NUM - 1)) in dma_rx_init()
249 DESCP_SIZE_ALIGNED * RX_BUF_NUM); in dma_rx_init()
252 RX_BUF_SIZE_ALIGNED * RX_BUF_NUM); in dma_rx_init()
440 DESCP_SIZE_ALIGNED * RX_BUF_NUM); in gmac_check_rx_done()
452 dma->cur_rx_index = (index + 1) & (RX_BUF_NUM - 1); in gmac_check_rx_done()
472 DESCP_SIZE_ALIGNED * RX_BUF_NUM); in gmac_check_rx_done()
583 (RX_BUF_NUM - 1) * RX_BUF_SIZE_ALIGNED) & in gmac_enable_dma()
927 tmp = memalign(ARCH_DMA_MINALIGN, DESCP_SIZE_ALIGNED * RX_BUF_NUM); in gmac_add()
936 dma->rx_desc_aligned, DESCP_SIZE_ALIGNED * RX_BUF_NUM); in gmac_add()
938 tmp = memalign(ARCH_DMA_MINALIGN, RX_BUF_SIZE_ALIGNED * RX_BUF_NUM); in gmac_add()
948 dma->rx_buf, RX_BUF_SIZE_ALIGNED * RX_BUF_NUM); in gmac_add()