Lines Matching refs:pinfo

75 int cpm_uart_allocbuf(struct uart_cpm_port *pinfo, unsigned int is_con)  in cpm_uart_allocbuf()  argument
83 pr_debug("CPM uart[%d]:allocbuf\n", pinfo->port.line); in cpm_uart_allocbuf()
85 dpmemsz = sizeof(cbd_t) * (pinfo->rx_nrfifos + pinfo->tx_nrfifos); in cpm_uart_allocbuf()
94 memsz = L1_CACHE_ALIGN(pinfo->rx_nrfifos * pinfo->rx_fifosize) + in cpm_uart_allocbuf()
95 L1_CACHE_ALIGN(pinfo->tx_nrfifos * pinfo->tx_fifosize); in cpm_uart_allocbuf()
102 mem_addr = dma_alloc_coherent(pinfo->port.dev, memsz, &dma_addr, in cpm_uart_allocbuf()
112 pinfo->dp_addr = dp_offset; in cpm_uart_allocbuf()
113 pinfo->mem_addr = mem_addr; /* virtual address*/ in cpm_uart_allocbuf()
114 pinfo->dma_addr = dma_addr; /* physical address*/ in cpm_uart_allocbuf()
115 pinfo->mem_size = memsz; in cpm_uart_allocbuf()
117 pinfo->rx_buf = mem_addr; in cpm_uart_allocbuf()
118 pinfo->tx_buf = pinfo->rx_buf + L1_CACHE_ALIGN(pinfo->rx_nrfifos in cpm_uart_allocbuf()
119 * pinfo->rx_fifosize); in cpm_uart_allocbuf()
121 pinfo->rx_bd_base = (cbd_t __iomem __force *)dp_mem; in cpm_uart_allocbuf()
122 pinfo->tx_bd_base = pinfo->rx_bd_base + pinfo->rx_nrfifos; in cpm_uart_allocbuf()
127 void cpm_uart_freebuf(struct uart_cpm_port *pinfo) in cpm_uart_freebuf() argument
129 dma_free_coherent(pinfo->port.dev, L1_CACHE_ALIGN(pinfo->rx_nrfifos * in cpm_uart_freebuf()
130 pinfo->rx_fifosize) + in cpm_uart_freebuf()
131 L1_CACHE_ALIGN(pinfo->tx_nrfifos * in cpm_uart_freebuf()
132 pinfo->tx_fifosize), pinfo->mem_addr, in cpm_uart_freebuf()
133 pinfo->dma_addr); in cpm_uart_freebuf()
135 cpm_dpfree(pinfo->dp_addr); in cpm_uart_freebuf()