Lines Matching refs:bufp

97 	uint8_t *bufp;  in dma_tx_dump()  local
120 bufp = (uint8_t *)(dma->tx_buf + i * TX_BUF_SIZE_ALIGNED); in dma_tx_dump()
121 printf("buf%d:0x%x; ", i, (uint32_t)bufp); in dma_tx_dump()
129 uint8_t *bufp; in dma_rx_dump() local
151 bufp = dma->rx_buf + i * RX_BUF_SIZE_ALIGNED; in dma_rx_dump()
152 printf("buf%d:0x%x; ", i, (uint32_t)bufp); in dma_rx_dump()
161 uint8_t *bufp; in dma_tx_init() local
175 bufp = dma->tx_buf + i * TX_BUF_SIZE_ALIGNED; in dma_tx_init()
177 memset((void *)bufp, 0, TX_BUF_SIZE_ALIGNED); in dma_tx_init()
185 descp->addrlow = (uint32_t)bufp; in dma_tx_init()
191 bufp = dma->tx_buf; in dma_tx_init()
195 flush_dcache_range((unsigned long)bufp, in dma_tx_init()
196 (unsigned long)bufp + in dma_tx_init()
214 uint8_t *bufp; in dma_rx_init() local
229 bufp = dma->rx_buf + i * RX_BUF_SIZE_ALIGNED; in dma_rx_init()
236 descp->addrlow = (uint32_t)bufp; in dma_rx_init()
244 bufp = dma->rx_buf; in dma_rx_init()
249 flush_dcache_range((unsigned long)(bufp), in dma_rx_init()
250 (unsigned long)bufp + in dma_rx_init()
313 uint8_t *bufp = dma->tx_buf + dma->cur_tx_index * TX_BUF_SIZE_ALIGNED; in gmac_tx_packet() local
328 memcpy(bufp, packet, len); in gmac_tx_packet()
348 descp->addrlow = (uint32_t)bufp; in gmac_tx_packet()
357 flush_dcache_range((unsigned long)bufp, in gmac_tx_packet()
358 (unsigned long)bufp + TX_BUF_SIZE_ALIGNED); in gmac_tx_packet()
396 void *bufp, *datap; in gmac_check_rx_done() local
433 bufp = dma->rx_buf + index * RX_BUF_SIZE_ALIGNED; in gmac_check_rx_done()
440 flush_dcache_range((unsigned long)bufp, in gmac_check_rx_done()
441 (unsigned long)bufp + RX_BUF_SIZE_ALIGNED); in gmac_check_rx_done()
449 (uint32_t)bufp, index, buflen, stat0, stat1); in gmac_check_rx_done()
456 rcvlen = *(uint16_t *)bufp; in gmac_check_rx_done()
460 memcpy(statbuf, bufp, offset); in gmac_check_rx_done()
461 datap = (void *)((uint32_t)bufp + offset); in gmac_check_rx_done()
466 descp->addrlow = (uint32_t)bufp; in gmac_check_rx_done()