Lines Matching defs:port
80 #define PSC(port) ((struct mpc52xx_psc __iomem *)((port)->membase)) argument
138 static u16 mpc52xx_psc_get_status(struct uart_port *port) in mpc52xx_psc_get_status()
143 static u8 mpc52xx_psc_get_ipcr(struct uart_port *port) in mpc52xx_psc_get_ipcr()
148 static void mpc52xx_psc_command(struct uart_port *port, u8 cmd) in mpc52xx_psc_command()
153 static void mpc52xx_psc_set_mode(struct uart_port *port, u8 mr1, u8 mr2) in mpc52xx_psc_set_mode()
160 static void mpc52xx_psc_set_rts(struct uart_port *port, int state) in mpc52xx_psc_set_rts()
168 static void mpc52xx_psc_enable_ms(struct uart_port *port) in mpc52xx_psc_enable_ms()
181 static void mpc52xx_psc_set_sicr(struct uart_port *port, u32 val) in mpc52xx_psc_set_sicr()
186 static void mpc52xx_psc_set_imr(struct uart_port *port, u16 val) in mpc52xx_psc_set_imr()
191 static u8 mpc52xx_psc_get_mr1(struct uart_port *port) in mpc52xx_psc_get_mr1()
198 #define FIFO_52xx(port) ((struct mpc52xx_psc_fifo __iomem *)(PSC(port)+1)) argument
199 static void mpc52xx_psc_fifo_init(struct uart_port *port) in mpc52xx_psc_fifo_init()
213 static int mpc52xx_psc_raw_rx_rdy(struct uart_port *port) in mpc52xx_psc_raw_rx_rdy()
219 static int mpc52xx_psc_raw_tx_rdy(struct uart_port *port) in mpc52xx_psc_raw_tx_rdy()
226 static int mpc52xx_psc_rx_rdy(struct uart_port *port) in mpc52xx_psc_rx_rdy()
233 static int mpc52xx_psc_tx_rdy(struct uart_port *port) in mpc52xx_psc_tx_rdy()
240 static int mpc52xx_psc_tx_empty(struct uart_port *port) in mpc52xx_psc_tx_empty()
247 static void mpc52xx_psc_start_tx(struct uart_port *port) in mpc52xx_psc_start_tx()
253 static void mpc52xx_psc_stop_tx(struct uart_port *port) in mpc52xx_psc_stop_tx()
259 static void mpc52xx_psc_stop_rx(struct uart_port *port) in mpc52xx_psc_stop_rx()
265 static void mpc52xx_psc_rx_clr_irq(struct uart_port *port) in mpc52xx_psc_rx_clr_irq()
269 static void mpc52xx_psc_tx_clr_irq(struct uart_port *port) in mpc52xx_psc_tx_clr_irq()
273 static void mpc52xx_psc_write_char(struct uart_port *port, unsigned char c) in mpc52xx_psc_write_char()
278 static unsigned char mpc52xx_psc_read_char(struct uart_port *port) in mpc52xx_psc_read_char()
283 static void mpc52xx_psc_cw_disable_ints(struct uart_port *port) in mpc52xx_psc_cw_disable_ints()
288 static void mpc52xx_psc_cw_restore_ints(struct uart_port *port) in mpc52xx_psc_cw_restore_ints()
293 static unsigned int mpc5200_psc_set_baudrate(struct uart_port *port, in mpc5200_psc_set_baudrate()
311 static unsigned int mpc5200b_psc_set_baudrate(struct uart_port *port, in mpc5200b_psc_set_baudrate()
337 static void mpc52xx_psc_get_irq(struct uart_port *port, struct device_node *np) in mpc52xx_psc_get_irq()
344 static irqreturn_t mpc52xx_psc_handle_irq(struct uart_port *port) in mpc52xx_psc_handle_irq()
412 #define FIFO_512x(port) ((struct mpc512x_psc_fifo __iomem *)(PSC(port)+1)) argument
427 static void mpc512x_psc_fifo_init(struct uart_port *port) in mpc512x_psc_fifo_init()
446 static int mpc512x_psc_raw_rx_rdy(struct uart_port *port) in mpc512x_psc_raw_rx_rdy()
451 static int mpc512x_psc_raw_tx_rdy(struct uart_port *port) in mpc512x_psc_raw_tx_rdy()
456 static int mpc512x_psc_rx_rdy(struct uart_port *port) in mpc512x_psc_rx_rdy()
463 static int mpc512x_psc_tx_rdy(struct uart_port *port) in mpc512x_psc_tx_rdy()
470 static int mpc512x_psc_tx_empty(struct uart_port *port) in mpc512x_psc_tx_empty()
476 static void mpc512x_psc_stop_rx(struct uart_port *port) in mpc512x_psc_stop_rx()
485 static void mpc512x_psc_start_tx(struct uart_port *port) in mpc512x_psc_start_tx()
494 static void mpc512x_psc_stop_tx(struct uart_port *port) in mpc512x_psc_stop_tx()
503 static void mpc512x_psc_rx_clr_irq(struct uart_port *port) in mpc512x_psc_rx_clr_irq()
508 static void mpc512x_psc_tx_clr_irq(struct uart_port *port) in mpc512x_psc_tx_clr_irq()
513 static void mpc512x_psc_write_char(struct uart_port *port, unsigned char c) in mpc512x_psc_write_char()
518 static unsigned char mpc512x_psc_read_char(struct uart_port *port) in mpc512x_psc_read_char()
523 static void mpc512x_psc_cw_disable_ints(struct uart_port *port) in mpc512x_psc_cw_disable_ints()
532 static void mpc512x_psc_cw_restore_ints(struct uart_port *port) in mpc512x_psc_cw_restore_ints()
539 static unsigned int mpc512x_psc_set_baudrate(struct uart_port *port, in mpc512x_psc_set_baudrate()
643 static irqreturn_t mpc512x_psc_handle_irq(struct uart_port *port) in mpc512x_psc_handle_irq()
664 static int mpc512x_psc_alloc_clock(struct uart_port *port) in mpc512x_psc_alloc_clock()
713 static void mpc512x_psc_relse_clock(struct uart_port *port) in mpc512x_psc_relse_clock()
731 static int mpc512x_psc_endis_clock(struct uart_port *port, int enable) in mpc512x_psc_endis_clock()
759 static void mpc512x_psc_get_irq(struct uart_port *port, struct device_node *np) in mpc512x_psc_get_irq()
768 #define PSC_5125(port) ((struct mpc5125_psc __iomem *)((port)->membase)) argument
769 #define FIFO_5125(port) ((struct mpc512x_psc_fifo __iomem *)(PSC_5125(port)+1)) argument
771 static void mpc5125_psc_fifo_init(struct uart_port *port) in mpc5125_psc_fifo_init()
790 static int mpc5125_psc_raw_rx_rdy(struct uart_port *port) in mpc5125_psc_raw_rx_rdy()
795 static int mpc5125_psc_raw_tx_rdy(struct uart_port *port) in mpc5125_psc_raw_tx_rdy()
800 static int mpc5125_psc_rx_rdy(struct uart_port *port) in mpc5125_psc_rx_rdy()
806 static int mpc5125_psc_tx_rdy(struct uart_port *port) in mpc5125_psc_tx_rdy()
812 static int mpc5125_psc_tx_empty(struct uart_port *port) in mpc5125_psc_tx_empty()
817 static void mpc5125_psc_stop_rx(struct uart_port *port) in mpc5125_psc_stop_rx()
826 static void mpc5125_psc_start_tx(struct uart_port *port) in mpc5125_psc_start_tx()
835 static void mpc5125_psc_stop_tx(struct uart_port *port) in mpc5125_psc_stop_tx()
844 static void mpc5125_psc_rx_clr_irq(struct uart_port *port) in mpc5125_psc_rx_clr_irq()
849 static void mpc5125_psc_tx_clr_irq(struct uart_port *port) in mpc5125_psc_tx_clr_irq()
854 static void mpc5125_psc_write_char(struct uart_port *port, unsigned char c) in mpc5125_psc_write_char()
859 static unsigned char mpc5125_psc_read_char(struct uart_port *port) in mpc5125_psc_read_char()
864 static void mpc5125_psc_cw_disable_ints(struct uart_port *port) in mpc5125_psc_cw_disable_ints()
873 static void mpc5125_psc_cw_restore_ints(struct uart_port *port) in mpc5125_psc_cw_restore_ints()
889 static unsigned int mpc5125_psc_set_baudrate(struct uart_port *port, in mpc5125_psc_set_baudrate()
915 static u16 mpc5125_psc_get_status(struct uart_port *port) in mpc5125_psc_get_status()
920 static u8 mpc5125_psc_get_ipcr(struct uart_port *port) in mpc5125_psc_get_ipcr()
925 static void mpc5125_psc_command(struct uart_port *port, u8 cmd) in mpc5125_psc_command()
930 static void mpc5125_psc_set_mode(struct uart_port *port, u8 mr1, u8 mr2) in mpc5125_psc_set_mode()
936 static void mpc5125_psc_set_rts(struct uart_port *port, int state) in mpc5125_psc_set_rts()
944 static void mpc5125_psc_enable_ms(struct uart_port *port) in mpc5125_psc_enable_ms()
957 static void mpc5125_psc_set_sicr(struct uart_port *port, u32 val) in mpc5125_psc_set_sicr()
962 static void mpc5125_psc_set_imr(struct uart_port *port, u16 val) in mpc5125_psc_set_imr()
967 static u8 mpc5125_psc_get_mr1(struct uart_port *port) in mpc5125_psc_get_mr1()
1051 mpc52xx_uart_tx_empty(struct uart_port *port) in mpc52xx_uart_tx_empty()
1057 mpc52xx_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in mpc52xx_uart_set_mctrl()
1063 mpc52xx_uart_get_mctrl(struct uart_port *port) in mpc52xx_uart_get_mctrl()
1077 mpc52xx_uart_stop_tx(struct uart_port *port) in mpc52xx_uart_stop_tx()
1084 mpc52xx_uart_start_tx(struct uart_port *port) in mpc52xx_uart_start_tx()
1091 mpc52xx_uart_stop_rx(struct uart_port *port) in mpc52xx_uart_stop_rx()
1098 mpc52xx_uart_enable_ms(struct uart_port *port) in mpc52xx_uart_enable_ms()
1104 mpc52xx_uart_break_ctl(struct uart_port *port, int ctl) in mpc52xx_uart_break_ctl()
1118 mpc52xx_uart_startup(struct uart_port *port) in mpc52xx_uart_startup()
1156 mpc52xx_uart_shutdown(struct uart_port *port) in mpc52xx_uart_shutdown()
1177 mpc52xx_uart_set_termios(struct uart_port *port, struct ktermios *new, in mpc52xx_uart_set_termios()
1265 mpc52xx_uart_type(struct uart_port *port) in mpc52xx_uart_type()
1275 mpc52xx_uart_release_port(struct uart_port *port) in mpc52xx_uart_release_port()
1290 mpc52xx_uart_request_port(struct uart_port *port) in mpc52xx_uart_request_port()
1326 mpc52xx_uart_config_port(struct uart_port *port, int flags) in mpc52xx_uart_config_port()
1334 mpc52xx_uart_verify_port(struct uart_port *port, struct serial_struct *ser) in mpc52xx_uart_verify_port()
1376 mpc52xx_uart_int_rx_chars(struct uart_port *port) in mpc52xx_uart_int_rx_chars()
1443 mpc52xx_uart_int_tx_chars(struct uart_port *port) in mpc52xx_uart_int_tx_chars()
1484 mpc5xxx_uart_process_int(struct uart_port *port) in mpc5xxx_uart_process_int()
1522 struct uart_port *port = dev_id; in mpc52xx_uart_int() local
1541 mpc52xx_console_get_options(struct uart_port *port, in mpc52xx_console_get_options()
1579 struct uart_port *port = &mpc52xx_uart_ports[co->index]; in mpc52xx_console_write() local
1613 struct uart_port *port = &mpc52xx_uart_ports[co->index]; in mpc52xx_console_setup() local
1748 struct uart_port *port = NULL; in mpc52xx_uart_of_probe() local
1815 struct uart_port *port = platform_get_drvdata(op); in mpc52xx_uart_of_remove() local
1827 struct uart_port *port = platform_get_drvdata(op); in mpc52xx_uart_of_suspend() local
1838 struct uart_port *port = platform_get_drvdata(op); in mpc52xx_uart_of_resume() local