Lines Matching refs:TX_BUF_NUM
111 for (i = 0; i < TX_BUF_NUM; i++) { in dma_tx_dump()
120 for (i = 0; i < TX_BUF_NUM; i++) { in dma_tx_dump()
170 TX_BUF_NUM * DESCP_SIZE_ALIGNED); in dma_tx_init()
171 memset(dma->tx_buf, 0, TX_BUF_NUM * TX_BUF_SIZE_ALIGNED); in dma_tx_init()
174 for (i = 0; i < TX_BUF_NUM; i++) { in dma_tx_init()
182 if (i == (TX_BUF_NUM-1)) in dma_tx_init()
195 DESCP_SIZE_ALIGNED * TX_BUF_NUM); in dma_tx_init()
198 TX_BUF_SIZE_ALIGNED * TX_BUF_NUM); in dma_tx_init()
342 if (txout == (TX_BUF_NUM - 1)) { in gmac_tx_packet()
357 DESCP_SIZE_ALIGNED * TX_BUF_NUM); in gmac_tx_packet()
367 dma->cur_tx_index = (txout + 1) & (TX_BUF_NUM - 1); in gmac_tx_packet()
906 tmp = memalign(ARCH_DMA_MINALIGN, DESCP_SIZE_ALIGNED * TX_BUF_NUM); in gmac_add()
914 dma->tx_desc_aligned, DESCP_SIZE_ALIGNED * TX_BUF_NUM); in gmac_add()
916 tmp = memalign(ARCH_DMA_MINALIGN, TX_BUF_SIZE_ALIGNED * TX_BUF_NUM); in gmac_add()
924 dma->tx_buf, TX_BUF_SIZE_ALIGNED * TX_BUF_NUM); in gmac_add()