Lines Matching refs:pp

106 	struct altera_uart *pp = container_of(port, struct altera_uart, port);  in altera_uart_get_mctrl()  local
111 sigs |= (pp->sigs & TIOCM_RTS); in altera_uart_get_mctrl()
118 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_set_mctrl() local
120 pp->sigs = sigs; in altera_uart_set_mctrl()
122 pp->imr |= ALTERA_UART_CONTROL_RTS_MSK; in altera_uart_set_mctrl()
124 pp->imr &= ~ALTERA_UART_CONTROL_RTS_MSK; in altera_uart_set_mctrl()
125 altera_uart_writel(port, pp->imr, ALTERA_UART_CONTROL_REG); in altera_uart_set_mctrl()
130 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_start_tx() local
132 pp->imr |= ALTERA_UART_CONTROL_TRDY_MSK; in altera_uart_start_tx()
133 altera_uart_writel(port, pp->imr, ALTERA_UART_CONTROL_REG); in altera_uart_start_tx()
138 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_stop_tx() local
140 pp->imr &= ~ALTERA_UART_CONTROL_TRDY_MSK; in altera_uart_stop_tx()
141 altera_uart_writel(port, pp->imr, ALTERA_UART_CONTROL_REG); in altera_uart_stop_tx()
146 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_stop_rx() local
148 pp->imr &= ~ALTERA_UART_CONTROL_RRDY_MSK; in altera_uart_stop_rx()
149 altera_uart_writel(port, pp->imr, ALTERA_UART_CONTROL_REG); in altera_uart_stop_rx()
154 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_break_ctl() local
159 pp->imr |= ALTERA_UART_CONTROL_TRBK_MSK; in altera_uart_break_ctl()
161 pp->imr &= ~ALTERA_UART_CONTROL_TRBK_MSK; in altera_uart_break_ctl()
162 altera_uart_writel(port, pp->imr, ALTERA_UART_CONTROL_REG); in altera_uart_break_ctl()
192 static void altera_uart_rx_chars(struct altera_uart *pp) in altera_uart_rx_chars() argument
194 struct uart_port *port = &pp->port; in altera_uart_rx_chars()
241 static void altera_uart_tx_chars(struct altera_uart *pp) in altera_uart_tx_chars() argument
243 struct uart_port *port = &pp->port; in altera_uart_tx_chars()
268 pp->imr &= ~ALTERA_UART_CONTROL_TRDY_MSK; in altera_uart_tx_chars()
269 altera_uart_writel(port, pp->imr, ALTERA_UART_CONTROL_REG); in altera_uart_tx_chars()
276 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_interrupt() local
279 isr = altera_uart_readl(port, ALTERA_UART_STATUS_REG) & pp->imr; in altera_uart_interrupt()
283 altera_uart_rx_chars(pp); in altera_uart_interrupt()
285 altera_uart_tx_chars(pp); in altera_uart_interrupt()
294 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_timer() local
297 mod_timer(&pp->tmr, jiffies + uart_poll_timeout(port)); in altera_uart_timer()
312 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_startup() local
317 setup_timer(&pp->tmr, altera_uart_timer, (unsigned long)port); in altera_uart_startup()
318 mod_timer(&pp->tmr, jiffies + uart_poll_timeout(port)); in altera_uart_startup()
333 pp->imr = ALTERA_UART_CONTROL_RRDY_MSK; in altera_uart_startup()
334 writel(pp->imr, port->membase + ALTERA_UART_CONTROL_REG); in altera_uart_startup()
343 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_shutdown() local
349 pp->imr = 0; in altera_uart_shutdown()
350 writel(pp->imr, port->membase + ALTERA_UART_CONTROL_REG); in altera_uart_shutdown()
357 del_timer_sync(&pp->tmr); in altera_uart_shutdown()