Lines Matching refs:pp

101 	struct altera_uart *pp = container_of(port, struct altera_uart, port);  in altera_uart_get_mctrl()  local
106 sigs |= (pp->sigs & TIOCM_RTS); in altera_uart_get_mctrl()
111 static void altera_uart_update_ctrl_reg(struct altera_uart *pp) in altera_uart_update_ctrl_reg() argument
113 unsigned short imr = pp->imr; in altera_uart_update_ctrl_reg()
119 if (!pp->port.irq) in altera_uart_update_ctrl_reg()
122 altera_uart_writel(&pp->port, imr, ALTERA_UART_CONTROL_REG); in altera_uart_update_ctrl_reg()
127 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_set_mctrl() local
129 pp->sigs = sigs; in altera_uart_set_mctrl()
131 pp->imr |= ALTERA_UART_CONTROL_RTS_MSK; in altera_uart_set_mctrl()
133 pp->imr &= ~ALTERA_UART_CONTROL_RTS_MSK; in altera_uart_set_mctrl()
134 altera_uart_update_ctrl_reg(pp); in altera_uart_set_mctrl()
139 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_start_tx() local
141 pp->imr |= ALTERA_UART_CONTROL_TRDY_MSK; in altera_uart_start_tx()
142 altera_uart_update_ctrl_reg(pp); in altera_uart_start_tx()
147 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_stop_tx() local
149 pp->imr &= ~ALTERA_UART_CONTROL_TRDY_MSK; in altera_uart_stop_tx()
150 altera_uart_update_ctrl_reg(pp); in altera_uart_stop_tx()
155 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_stop_rx() local
157 pp->imr &= ~ALTERA_UART_CONTROL_RRDY_MSK; in altera_uart_stop_rx()
158 altera_uart_update_ctrl_reg(pp); in altera_uart_stop_rx()
163 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_break_ctl() local
168 pp->imr |= ALTERA_UART_CONTROL_TRBK_MSK; in altera_uart_break_ctl()
170 pp->imr &= ~ALTERA_UART_CONTROL_TRBK_MSK; in altera_uart_break_ctl()
171 altera_uart_update_ctrl_reg(pp); in altera_uart_break_ctl()
260 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_interrupt() local
264 isr = altera_uart_readl(port, ALTERA_UART_STATUS_REG) & pp->imr; in altera_uart_interrupt()
278 struct altera_uart *pp = timer_container_of(pp, t, tmr); in altera_uart_timer() local
279 struct uart_port *port = &pp->port; in altera_uart_timer()
282 mod_timer(&pp->tmr, jiffies + uart_poll_timeout(port)); in altera_uart_timer()
297 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_startup() local
301 timer_setup(&pp->tmr, altera_uart_timer, 0); in altera_uart_startup()
302 mod_timer(&pp->tmr, jiffies + uart_poll_timeout(port)); in altera_uart_startup()
318 pp->imr = ALTERA_UART_CONTROL_RRDY_MSK; in altera_uart_startup()
319 altera_uart_update_ctrl_reg(pp); in altera_uart_startup()
328 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_shutdown() local
334 pp->imr = 0; in altera_uart_shutdown()
335 altera_uart_update_ctrl_reg(pp); in altera_uart_shutdown()
342 timer_delete_sync(&pp->tmr); in altera_uart_shutdown()