Lines Matching refs:uart_amba_port
254 struct uart_amba_port { struct
279 static unsigned int pl011_reg_to_offset(const struct uart_amba_port *uap, in pl011_reg_to_offset() argument
285 static unsigned int pl011_read(const struct uart_amba_port *uap, in pl011_read()
294 static void pl011_write(unsigned int val, const struct uart_amba_port *uap, in pl011_write()
310 static int pl011_fifo_to_tty(struct uart_amba_port *uap) in pl011_fifo_to_tty()
392 static void pl011_dma_probe(struct uart_amba_port *uap) in pl011_dma_probe()
524 static void pl011_dma_remove(struct uart_amba_port *uap) in pl011_dma_remove()
533 static int pl011_dma_tx_refill(struct uart_amba_port *uap);
534 static void pl011_start_tx_pio(struct uart_amba_port *uap);
542 struct uart_amba_port *uap = data; in pl011_dma_tx_callback()
590 static int pl011_dma_tx_refill(struct uart_amba_port *uap) in pl011_dma_tx_refill()
692 static bool pl011_dma_tx_irq(struct uart_amba_port *uap) in pl011_dma_tx_irq()
726 static inline void pl011_dma_tx_stop(struct uart_amba_port *uap) in pl011_dma_tx_stop()
742 static inline bool pl011_dma_tx_start(struct uart_amba_port *uap) in pl011_dma_tx_start()
802 struct uart_amba_port *uap = in pl011_dma_flush_buffer()
803 container_of(port, struct uart_amba_port, port); in pl011_dma_flush_buffer()
821 static int pl011_dma_rx_trigger_dma(struct uart_amba_port *uap) in pl011_dma_rx_trigger_dma()
869 static void pl011_dma_rx_chars(struct uart_amba_port *uap, in pl011_dma_rx_chars()
940 static void pl011_dma_rx_irq(struct uart_amba_port *uap) in pl011_dma_rx_irq()
990 struct uart_amba_port *uap = data; in pl011_dma_rx_callback()
1041 static inline void pl011_dma_rx_stop(struct uart_amba_port *uap) in pl011_dma_rx_stop()
1058 struct uart_amba_port *uap = from_timer(uap, t, dmarx.timer); in pl011_dma_rx_poll()
1104 static void pl011_dma_startup(struct uart_amba_port *uap) in pl011_dma_startup()
1180 static void pl011_dma_shutdown(struct uart_amba_port *uap) in pl011_dma_shutdown()
1219 static inline bool pl011_dma_rx_available(struct uart_amba_port *uap) in pl011_dma_rx_available()
1224 static inline bool pl011_dma_rx_running(struct uart_amba_port *uap) in pl011_dma_rx_running()
1231 static inline void pl011_dma_remove(struct uart_amba_port *uap) in pl011_dma_remove()
1235 static inline void pl011_dma_startup(struct uart_amba_port *uap) in pl011_dma_startup()
1239 static inline void pl011_dma_shutdown(struct uart_amba_port *uap) in pl011_dma_shutdown()
1243 static inline bool pl011_dma_tx_irq(struct uart_amba_port *uap) in pl011_dma_tx_irq()
1248 static inline void pl011_dma_tx_stop(struct uart_amba_port *uap) in pl011_dma_tx_stop()
1252 static inline bool pl011_dma_tx_start(struct uart_amba_port *uap) in pl011_dma_tx_start()
1257 static inline void pl011_dma_rx_irq(struct uart_amba_port *uap) in pl011_dma_rx_irq()
1261 static inline void pl011_dma_rx_stop(struct uart_amba_port *uap) in pl011_dma_rx_stop()
1265 static inline int pl011_dma_rx_trigger_dma(struct uart_amba_port *uap) in pl011_dma_rx_trigger_dma()
1270 static inline bool pl011_dma_rx_available(struct uart_amba_port *uap) in pl011_dma_rx_available()
1275 static inline bool pl011_dma_rx_running(struct uart_amba_port *uap) in pl011_dma_rx_running()
1283 static void pl011_rs485_tx_stop(struct uart_amba_port *uap) in pl011_rs485_tx_stop()
1326 struct uart_amba_port *uap = in pl011_stop_tx()
1327 container_of(port, struct uart_amba_port, port); in pl011_stop_tx()
1337 static bool pl011_tx_chars(struct uart_amba_port *uap, bool from_irq);
1340 static void pl011_start_tx_pio(struct uart_amba_port *uap) in pl011_start_tx_pio()
1348 static void pl011_rs485_tx_start(struct uart_amba_port *uap) in pl011_rs485_tx_start()
1376 struct uart_amba_port *uap = in pl011_start_tx()
1377 container_of(port, struct uart_amba_port, port); in pl011_start_tx()
1389 struct uart_amba_port *uap = in pl011_stop_rx()
1390 container_of(port, struct uart_amba_port, port); in pl011_stop_rx()
1410 struct uart_amba_port *uap = in pl011_enable_ms()
1411 container_of(port, struct uart_amba_port, port); in pl011_enable_ms()
1417 static void pl011_rx_chars(struct uart_amba_port *uap) in pl011_rx_chars()
1451 static bool pl011_tx_char(struct uart_amba_port *uap, unsigned char c, in pl011_tx_char()
1465 static bool pl011_tx_chars(struct uart_amba_port *uap, bool from_irq) in pl011_tx_chars()
1505 static void pl011_modem_status(struct uart_amba_port *uap) in pl011_modem_status()
1530 static void check_apply_cts_event_workaround(struct uart_amba_port *uap) in check_apply_cts_event_workaround()
1549 struct uart_amba_port *uap = dev_id; in pl011_int()
1591 struct uart_amba_port *uap = in pl011_tx_empty()
1592 container_of(port, struct uart_amba_port, port); in pl011_tx_empty()
1603 struct uart_amba_port *uap = in pl011_get_mctrl()
1604 container_of(port, struct uart_amba_port, port); in pl011_get_mctrl()
1622 struct uart_amba_port *uap = in pl011_set_mctrl()
1623 container_of(port, struct uart_amba_port, port); in pl011_set_mctrl()
1651 struct uart_amba_port *uap = in pl011_break_ctl()
1652 container_of(port, struct uart_amba_port, port); in pl011_break_ctl()
1670 struct uart_amba_port *uap = in pl011_quiesce_irqs()
1671 container_of(port, struct uart_amba_port, port); in pl011_quiesce_irqs()
1693 struct uart_amba_port *uap = in pl011_get_poll_char()
1694 container_of(port, struct uart_amba_port, port); in pl011_get_poll_char()
1713 struct uart_amba_port *uap = in pl011_put_poll_char()
1714 container_of(port, struct uart_amba_port, port); in pl011_put_poll_char()
1726 struct uart_amba_port *uap = in pl011_hwinit()
1727 container_of(port, struct uart_amba_port, port); in pl011_hwinit()
1764 static bool pl011_split_lcrh(const struct uart_amba_port *uap) in pl011_split_lcrh()
1770 static void pl011_write_lcr_h(struct uart_amba_port *uap, unsigned int lcr_h) in pl011_write_lcr_h()
1785 static int pl011_allocate_irq(struct uart_amba_port *uap) in pl011_allocate_irq()
1797 static void pl011_enable_interrupts(struct uart_amba_port *uap) in pl011_enable_interrupts()
1829 struct uart_amba_port *uap = container_of(port, struct uart_amba_port, port); in pl011_unthrottle_rx()
1845 struct uart_amba_port *uap = in pl011_startup()
1846 container_of(port, struct uart_amba_port, port); in pl011_startup()
1892 struct uart_amba_port *uap = in sbsa_uart_startup()
1893 container_of(port, struct uart_amba_port, port); in sbsa_uart_startup()
1912 static void pl011_shutdown_channel(struct uart_amba_port *uap, in pl011_shutdown_channel()
1927 static void pl011_disable_uart(struct uart_amba_port *uap) in pl011_disable_uart()
1947 static void pl011_disable_interrupts(struct uart_amba_port *uap) in pl011_disable_interrupts()
1961 struct uart_amba_port *uap = in pl011_shutdown()
1962 container_of(port, struct uart_amba_port, port); in pl011_shutdown()
1996 struct uart_amba_port *uap = in sbsa_uart_shutdown()
1997 container_of(port, struct uart_amba_port, port); in sbsa_uart_shutdown()
2043 struct uart_amba_port *uap = in pl011_set_termios()
2044 container_of(port, struct uart_amba_port, port); in pl011_set_termios()
2182 struct uart_amba_port *uap = in sbsa_uart_set_termios()
2183 container_of(port, struct uart_amba_port, port); in sbsa_uart_set_termios()
2201 struct uart_amba_port *uap = in pl011_type()
2202 container_of(port, struct uart_amba_port, port); in pl011_type()
2235 struct uart_amba_port *uap = in pl011_rs485_config()
2236 container_of(port, struct uart_amba_port, port); in pl011_rs485_config()
2307 static struct uart_amba_port *amba_ports[UART_NR];
2313 struct uart_amba_port *uap = in pl011_console_putchar()
2314 container_of(port, struct uart_amba_port, port); in pl011_console_putchar()
2324 struct uart_amba_port *uap = amba_ports[co->index]; in pl011_console_write()
2369 static void pl011_console_get_options(struct uart_amba_port *uap, int *baud, in pl011_console_get_options()
2405 struct uart_amba_port *uap; in pl011_console_setup()
2688 static void pl011_unregister_port(struct uart_amba_port *uap) in pl011_unregister_port()
2715 static int pl011_get_rs485_mode(struct uart_amba_port *uap) in pl011_get_rs485_mode()
2727 static int pl011_setup_port(struct device *dev, struct uart_amba_port *uap, in pl011_setup_port()
2756 static int pl011_register_port(struct uart_amba_port *uap) in pl011_register_port()
2792 struct uart_amba_port *uap; in pl011_probe()
2801 uap = devm_kzalloc(&dev->dev, sizeof(struct uart_amba_port), in pl011_probe()
2846 struct uart_amba_port *uap = amba_get_drvdata(dev); in pl011_remove()
2855 struct uart_amba_port *uap = dev_get_drvdata(dev); in pl011_suspend()
2865 struct uart_amba_port *uap = dev_get_drvdata(dev); in pl011_resume()
2878 struct uart_amba_port *uap; in sbsa_uart_probe()
2901 uap = devm_kzalloc(&pdev->dev, sizeof(struct uart_amba_port), in sbsa_uart_probe()
2940 struct uart_amba_port *uap = platform_get_drvdata(pdev); in sbsa_uart_remove()