Lines Matching refs:bd_virt
198 void *bd_virt; /* virtual address of the BD buffers */ member
220 if (likely((addr >= qe_port->bd_virt)) && in cpu2qe_addr()
221 (addr < (qe_port->bd_virt + qe_port->bd_size))) in cpu2qe_addr()
222 return qe_port->bd_dma_addr + (addr - qe_port->bd_virt); in cpu2qe_addr()
241 return qe_port->bd_virt + (addr - qe_port->bd_dma_addr); in qe2cpu_addr()
594 void *bd_virt; in qe_uart_initbd() local
600 bd_virt = qe_port->bd_virt; in qe_uart_initbd()
605 iowrite32be(cpu2qe_addr(bd_virt, qe_port), &bdp->buf); in qe_uart_initbd()
607 bd_virt += qe_port->rx_fifosize; in qe_uart_initbd()
613 iowrite32be(cpu2qe_addr(bd_virt, qe_port), &bdp->buf); in qe_uart_initbd()
620 bd_virt = qe_port->bd_virt + in qe_uart_initbd()
626 iowrite32be(cpu2qe_addr(bd_virt, qe_port), &bdp->buf); in qe_uart_initbd()
628 bd_virt += qe_port->tx_fifosize; in qe_uart_initbd()
638 iowrite32be(cpu2qe_addr(bd_virt, qe_port), &bdp->buf); in qe_uart_initbd()
976 void *bd_virt; in qe_uart_request_port() local
999 bd_virt = dma_alloc_coherent(port->dev, rx_size + tx_size, &bd_dma_addr, in qe_uart_request_port()
1001 if (!bd_virt) { in qe_uart_request_port()
1006 qe_port->bd_virt = bd_virt; in qe_uart_request_port()
1010 qe_port->rx_buf = bd_virt; in qe_uart_request_port()
1041 dma_free_coherent(port->dev, qe_port->bd_size, qe_port->bd_virt, in qe_uart_release_port()