Lines Matching refs:bufp
98 uint8_t *bufp; in dma_tx_dump() local
121 bufp = (uint8_t *)(dma->tx_buf + i * TX_BUF_SIZE_ALIGNED); in dma_tx_dump()
122 printf("buf%d:0x%x; ", i, (uint32_t)bufp); in dma_tx_dump()
130 uint8_t *bufp; in dma_rx_dump() local
152 bufp = dma->rx_buf + i * RX_BUF_SIZE_ALIGNED; in dma_rx_dump()
153 printf("buf%d:0x%x; ", i, (uint32_t)bufp); in dma_rx_dump()
162 uint8_t *bufp; in dma_tx_init() local
176 bufp = dma->tx_buf + i * TX_BUF_SIZE_ALIGNED; in dma_tx_init()
178 memset((void *)bufp, 0, TX_BUF_SIZE_ALIGNED); in dma_tx_init()
186 descp->addrlow = (uint32_t)bufp; in dma_tx_init()
192 bufp = dma->tx_buf; in dma_tx_init()
196 flush_dcache_range((unsigned long)bufp, in dma_tx_init()
197 (unsigned long)bufp + in dma_tx_init()
215 uint8_t *bufp; in dma_rx_init() local
230 bufp = dma->rx_buf + i * RX_BUF_SIZE_ALIGNED; in dma_rx_init()
237 descp->addrlow = (uint32_t)bufp; in dma_rx_init()
245 bufp = dma->rx_buf; in dma_rx_init()
250 flush_dcache_range((unsigned long)(bufp), in dma_rx_init()
251 (unsigned long)bufp + in dma_rx_init()
314 uint8_t *bufp = dma->tx_buf + dma->cur_tx_index * TX_BUF_SIZE_ALIGNED; in gmac_tx_packet() local
329 memcpy(bufp, packet, len); in gmac_tx_packet()
349 descp->addrlow = (uint32_t)bufp; in gmac_tx_packet()
358 flush_dcache_range((unsigned long)bufp, in gmac_tx_packet()
359 (unsigned long)bufp + TX_BUF_SIZE_ALIGNED); in gmac_tx_packet()
397 void *bufp, *datap; in gmac_check_rx_done() local
434 bufp = dma->rx_buf + index * RX_BUF_SIZE_ALIGNED; in gmac_check_rx_done()
441 flush_dcache_range((unsigned long)bufp, in gmac_check_rx_done()
442 (unsigned long)bufp + RX_BUF_SIZE_ALIGNED); in gmac_check_rx_done()
450 (uint32_t)bufp, index, buflen, stat0, stat1); in gmac_check_rx_done()
457 rcvlen = *(uint16_t *)bufp; in gmac_check_rx_done()
461 memcpy(statbuf, bufp, offset); in gmac_check_rx_done()
462 datap = (void *)((uint32_t)bufp + offset); in gmac_check_rx_done()
467 descp->addrlow = (uint32_t)bufp; in gmac_check_rx_done()