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()
246 static void mpc52xx_psc_start_tx(struct uart_port *port) in mpc52xx_psc_start_tx()
252 static void mpc52xx_psc_stop_tx(struct uart_port *port) in mpc52xx_psc_stop_tx()
258 static void mpc52xx_psc_stop_rx(struct uart_port *port) in mpc52xx_psc_stop_rx()
264 static void mpc52xx_psc_rx_clr_irq(struct uart_port *port) in mpc52xx_psc_rx_clr_irq()
268 static void mpc52xx_psc_tx_clr_irq(struct uart_port *port) in mpc52xx_psc_tx_clr_irq()
272 static void mpc52xx_psc_write_char(struct uart_port *port, unsigned char c) in mpc52xx_psc_write_char()
277 static unsigned char mpc52xx_psc_read_char(struct uart_port *port) in mpc52xx_psc_read_char()
282 static void mpc52xx_psc_cw_disable_ints(struct uart_port *port) in mpc52xx_psc_cw_disable_ints()
287 static void mpc52xx_psc_cw_restore_ints(struct uart_port *port) in mpc52xx_psc_cw_restore_ints()
292 static unsigned int mpc5200_psc_set_baudrate(struct uart_port *port, in mpc5200_psc_set_baudrate()
310 static unsigned int mpc5200b_psc_set_baudrate(struct uart_port *port, in mpc5200b_psc_set_baudrate()
336 static void mpc52xx_psc_get_irq(struct uart_port *port, struct device_node *np) in mpc52xx_psc_get_irq()
343 static irqreturn_t mpc52xx_psc_handle_irq(struct uart_port *port) in mpc52xx_psc_handle_irq()
411 #define FIFO_512x(port) ((struct mpc512x_psc_fifo __iomem *)(PSC(port)+1)) argument
426 static void mpc512x_psc_fifo_init(struct uart_port *port) in mpc512x_psc_fifo_init()
445 static int mpc512x_psc_raw_rx_rdy(struct uart_port *port) in mpc512x_psc_raw_rx_rdy()
450 static int mpc512x_psc_raw_tx_rdy(struct uart_port *port) in mpc512x_psc_raw_tx_rdy()
455 static int mpc512x_psc_rx_rdy(struct uart_port *port) in mpc512x_psc_rx_rdy()
462 static int mpc512x_psc_tx_rdy(struct uart_port *port) in mpc512x_psc_tx_rdy()
469 static int mpc512x_psc_tx_empty(struct uart_port *port) in mpc512x_psc_tx_empty()
475 static void mpc512x_psc_stop_rx(struct uart_port *port) in mpc512x_psc_stop_rx()
484 static void mpc512x_psc_start_tx(struct uart_port *port) in mpc512x_psc_start_tx()
493 static void mpc512x_psc_stop_tx(struct uart_port *port) in mpc512x_psc_stop_tx()
502 static void mpc512x_psc_rx_clr_irq(struct uart_port *port) in mpc512x_psc_rx_clr_irq()
507 static void mpc512x_psc_tx_clr_irq(struct uart_port *port) in mpc512x_psc_tx_clr_irq()
512 static void mpc512x_psc_write_char(struct uart_port *port, unsigned char c) in mpc512x_psc_write_char()
517 static unsigned char mpc512x_psc_read_char(struct uart_port *port) in mpc512x_psc_read_char()
522 static void mpc512x_psc_cw_disable_ints(struct uart_port *port) in mpc512x_psc_cw_disable_ints()
531 static void mpc512x_psc_cw_restore_ints(struct uart_port *port) in mpc512x_psc_cw_restore_ints()
538 static unsigned int mpc512x_psc_set_baudrate(struct uart_port *port, in mpc512x_psc_set_baudrate()
642 static irqreturn_t mpc512x_psc_handle_irq(struct uart_port *port) in mpc512x_psc_handle_irq()
663 static int mpc512x_psc_alloc_clock(struct uart_port *port) in mpc512x_psc_alloc_clock()
712 static void mpc512x_psc_relse_clock(struct uart_port *port) in mpc512x_psc_relse_clock()
730 static int mpc512x_psc_endis_clock(struct uart_port *port, int enable) in mpc512x_psc_endis_clock()
758 static void mpc512x_psc_get_irq(struct uart_port *port, struct device_node *np) in mpc512x_psc_get_irq()
767 #define PSC_5125(port) ((struct mpc5125_psc __iomem *)((port)->membase)) argument
768 #define FIFO_5125(port) ((struct mpc512x_psc_fifo __iomem *)(PSC_5125(port)+1)) argument
770 static void mpc5125_psc_fifo_init(struct uart_port *port) in mpc5125_psc_fifo_init()
789 static int mpc5125_psc_raw_rx_rdy(struct uart_port *port) in mpc5125_psc_raw_rx_rdy()
794 static int mpc5125_psc_raw_tx_rdy(struct uart_port *port) in mpc5125_psc_raw_tx_rdy()
799 static int mpc5125_psc_rx_rdy(struct uart_port *port) in mpc5125_psc_rx_rdy()
805 static int mpc5125_psc_tx_rdy(struct uart_port *port) in mpc5125_psc_tx_rdy()
811 static int mpc5125_psc_tx_empty(struct uart_port *port) in mpc5125_psc_tx_empty()
816 static void mpc5125_psc_stop_rx(struct uart_port *port) in mpc5125_psc_stop_rx()
825 static void mpc5125_psc_start_tx(struct uart_port *port) in mpc5125_psc_start_tx()
834 static void mpc5125_psc_stop_tx(struct uart_port *port) in mpc5125_psc_stop_tx()
843 static void mpc5125_psc_rx_clr_irq(struct uart_port *port) in mpc5125_psc_rx_clr_irq()
848 static void mpc5125_psc_tx_clr_irq(struct uart_port *port) in mpc5125_psc_tx_clr_irq()
853 static void mpc5125_psc_write_char(struct uart_port *port, unsigned char c) in mpc5125_psc_write_char()
858 static unsigned char mpc5125_psc_read_char(struct uart_port *port) in mpc5125_psc_read_char()
863 static void mpc5125_psc_cw_disable_ints(struct uart_port *port) in mpc5125_psc_cw_disable_ints()
872 static void mpc5125_psc_cw_restore_ints(struct uart_port *port) in mpc5125_psc_cw_restore_ints()
888 static unsigned int mpc5125_psc_set_baudrate(struct uart_port *port, in mpc5125_psc_set_baudrate()
914 static u16 mpc5125_psc_get_status(struct uart_port *port) in mpc5125_psc_get_status()
919 static u8 mpc5125_psc_get_ipcr(struct uart_port *port) in mpc5125_psc_get_ipcr()
924 static void mpc5125_psc_command(struct uart_port *port, u8 cmd) in mpc5125_psc_command()
929 static void mpc5125_psc_set_mode(struct uart_port *port, u8 mr1, u8 mr2) in mpc5125_psc_set_mode()
935 static void mpc5125_psc_set_rts(struct uart_port *port, int state) in mpc5125_psc_set_rts()
943 static void mpc5125_psc_enable_ms(struct uart_port *port) in mpc5125_psc_enable_ms()
956 static void mpc5125_psc_set_sicr(struct uart_port *port, u32 val) in mpc5125_psc_set_sicr()
961 static void mpc5125_psc_set_imr(struct uart_port *port, u16 val) in mpc5125_psc_set_imr()
966 static u8 mpc5125_psc_get_mr1(struct uart_port *port) in mpc5125_psc_get_mr1()
1050 mpc52xx_uart_tx_empty(struct uart_port *port) in mpc52xx_uart_tx_empty()
1056 mpc52xx_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in mpc52xx_uart_set_mctrl()
1062 mpc52xx_uart_get_mctrl(struct uart_port *port) in mpc52xx_uart_get_mctrl()
1076 mpc52xx_uart_stop_tx(struct uart_port *port) in mpc52xx_uart_stop_tx()
1083 mpc52xx_uart_start_tx(struct uart_port *port) in mpc52xx_uart_start_tx()
1090 mpc52xx_uart_stop_rx(struct uart_port *port) in mpc52xx_uart_stop_rx()
1097 mpc52xx_uart_enable_ms(struct uart_port *port) in mpc52xx_uart_enable_ms()
1103 mpc52xx_uart_break_ctl(struct uart_port *port, int ctl) in mpc52xx_uart_break_ctl()
1117 mpc52xx_uart_startup(struct uart_port *port) in mpc52xx_uart_startup()
1148 mpc52xx_uart_shutdown(struct uart_port *port) in mpc52xx_uart_shutdown()
1169 mpc52xx_uart_set_termios(struct uart_port *port, struct ktermios *new, in mpc52xx_uart_set_termios()
1257 mpc52xx_uart_type(struct uart_port *port) in mpc52xx_uart_type()
1267 mpc52xx_uart_release_port(struct uart_port *port) in mpc52xx_uart_release_port()
1282 mpc52xx_uart_request_port(struct uart_port *port) in mpc52xx_uart_request_port()
1318 mpc52xx_uart_config_port(struct uart_port *port, int flags) in mpc52xx_uart_config_port()
1326 mpc52xx_uart_verify_port(struct uart_port *port, struct serial_struct *ser) in mpc52xx_uart_verify_port()
1368 mpc52xx_uart_int_rx_chars(struct uart_port *port) in mpc52xx_uart_int_rx_chars()
1435 mpc52xx_uart_int_tx_chars(struct uart_port *port) in mpc52xx_uart_int_tx_chars()
1476 mpc5xxx_uart_process_int(struct uart_port *port) in mpc5xxx_uart_process_int()
1514 struct uart_port *port = dev_id; in mpc52xx_uart_int() local
1533 mpc52xx_console_get_options(struct uart_port *port, in mpc52xx_console_get_options()
1571 struct uart_port *port = &mpc52xx_uart_ports[co->index]; in mpc52xx_console_write() local
1605 struct uart_port *port = &mpc52xx_uart_ports[co->index]; in mpc52xx_console_setup() local
1740 struct uart_port *port = NULL; in mpc52xx_uart_of_probe() local
1807 struct uart_port *port = platform_get_drvdata(op); in mpc52xx_uart_of_remove() local
1819 struct uart_port *port = platform_get_drvdata(op); in mpc52xx_uart_of_suspend() local
1830 struct uart_port *port = platform_get_drvdata(op); in mpc52xx_uart_of_resume() local