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