Lines Matching refs:uart
73 struct liteuart_port *uart = to_liteuart_port(port); in liteuart_update_irq_reg() local
76 uart->irq_reg |= mask; in liteuart_update_irq_reg()
78 uart->irq_reg &= ~mask; in liteuart_update_irq_reg()
81 litex_write8(port->membase + OFF_EV_ENABLE, uart->irq_reg); in liteuart_update_irq_reg()
96 struct liteuart_port *uart = to_liteuart_port(port); in liteuart_stop_rx() local
99 del_timer(&uart->timer); in liteuart_stop_rx()
133 struct liteuart_port *uart = data; in liteuart_interrupt() local
134 struct uart_port *port = &uart->port; in liteuart_interrupt()
143 isr = litex_read8(port->membase + OFF_EV_PENDING) & uart->irq_reg; in liteuart_interrupt()
155 struct liteuart_port *uart = from_timer(uart, t, timer); in liteuart_timer() local
156 struct uart_port *port = &uart->port; in liteuart_timer()
159 mod_timer(&uart->timer, jiffies + uart_poll_timeout(port)); in liteuart_timer()
183 struct liteuart_port *uart = to_liteuart_port(port); in liteuart_startup() local
189 KBUILD_MODNAME, uart); in liteuart_startup()
204 timer_setup(&uart->timer, liteuart_timer, 0); in liteuart_startup()
205 mod_timer(&uart->timer, jiffies + uart_poll_timeout(port)); in liteuart_startup()
213 struct liteuart_port *uart = to_liteuart_port(port); in liteuart_shutdown() local
223 del_timer_sync(&uart->timer); in liteuart_shutdown()
282 struct liteuart_port *uart; in liteuart_probe() local
287 uart = devm_kzalloc(&pdev->dev, sizeof(struct liteuart_port), GFP_KERNEL); in liteuart_probe()
288 if (!uart) in liteuart_probe()
291 port = &uart->port; in liteuart_probe()
311 ret = xa_alloc(&liteuart_array, &dev_id, uart, limit, GFP_KERNEL); in liteuart_probe()
327 ret = uart_add_one_port(&liteuart_driver, &uart->port); in liteuart_probe()
378 struct liteuart_port *uart; in liteuart_console_write() local
382 uart = (struct liteuart_port *)xa_load(&liteuart_array, co->index); in liteuart_console_write()
383 port = &uart->port; in liteuart_console_write()
392 struct liteuart_port *uart; in liteuart_console_setup() local
399 uart = (struct liteuart_port *)xa_load(&liteuart_array, co->index); in liteuart_console_setup()
400 if (!uart) in liteuart_console_setup()
403 port = &uart->port; in liteuart_console_setup()