Lines Matching refs:pp
102 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_get_mctrl() local
107 sigs |= (pp->sigs & TIOCM_RTS); in altera_uart_get_mctrl()
112 static void altera_uart_update_ctrl_reg(struct altera_uart *pp) in altera_uart_update_ctrl_reg() argument
114 unsigned short imr = pp->imr; in altera_uart_update_ctrl_reg()
120 if (!pp->port.irq) in altera_uart_update_ctrl_reg()
123 altera_uart_writel(&pp->port, imr, ALTERA_UART_CONTROL_REG); in altera_uart_update_ctrl_reg()
128 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_set_mctrl() local
130 pp->sigs = sigs; in altera_uart_set_mctrl()
132 pp->imr |= ALTERA_UART_CONTROL_RTS_MSK; in altera_uart_set_mctrl()
134 pp->imr &= ~ALTERA_UART_CONTROL_RTS_MSK; in altera_uart_set_mctrl()
135 altera_uart_update_ctrl_reg(pp); in altera_uart_set_mctrl()
140 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_start_tx() local
142 pp->imr |= ALTERA_UART_CONTROL_TRDY_MSK; in altera_uart_start_tx()
143 altera_uart_update_ctrl_reg(pp); in altera_uart_start_tx()
148 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_stop_tx() local
150 pp->imr &= ~ALTERA_UART_CONTROL_TRDY_MSK; in altera_uart_stop_tx()
151 altera_uart_update_ctrl_reg(pp); in altera_uart_stop_tx()
156 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_stop_rx() local
158 pp->imr &= ~ALTERA_UART_CONTROL_RRDY_MSK; in altera_uart_stop_rx()
159 altera_uart_update_ctrl_reg(pp); in altera_uart_stop_rx()
164 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_break_ctl() local
169 pp->imr |= ALTERA_UART_CONTROL_TRBK_MSK; in altera_uart_break_ctl()
171 pp->imr &= ~ALTERA_UART_CONTROL_TRBK_MSK; in altera_uart_break_ctl()
172 altera_uart_update_ctrl_reg(pp); in altera_uart_break_ctl()
261 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_interrupt() local
265 isr = altera_uart_readl(port, ALTERA_UART_STATUS_REG) & pp->imr; in altera_uart_interrupt()
279 struct altera_uart *pp = from_timer(pp, t, tmr); in altera_uart_timer() local
280 struct uart_port *port = &pp->port; in altera_uart_timer()
283 mod_timer(&pp->tmr, jiffies + uart_poll_timeout(port)); in altera_uart_timer()
298 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_startup() local
302 timer_setup(&pp->tmr, altera_uart_timer, 0); in altera_uart_startup()
303 mod_timer(&pp->tmr, jiffies + uart_poll_timeout(port)); in altera_uart_startup()
319 pp->imr = ALTERA_UART_CONTROL_RRDY_MSK; in altera_uart_startup()
320 altera_uart_update_ctrl_reg(pp); in altera_uart_startup()
329 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_shutdown() local
335 pp->imr = 0; in altera_uart_shutdown()
336 altera_uart_update_ctrl_reg(pp); in altera_uart_shutdown()
343 del_timer_sync(&pp->tmr); in altera_uart_shutdown()