Lines Matching refs:uart_port

65 static struct uart_port mpc52xx_uart_ports[MPC52xx_PSC_MAXNUM];
85 static irqreturn_t mpc5xxx_uart_process_int(struct uart_port *port);
92 void (*fifo_init)(struct uart_port *port);
93 int (*raw_rx_rdy)(struct uart_port *port);
94 int (*raw_tx_rdy)(struct uart_port *port);
95 int (*rx_rdy)(struct uart_port *port);
96 int (*tx_rdy)(struct uart_port *port);
97 int (*tx_empty)(struct uart_port *port);
98 void (*stop_rx)(struct uart_port *port);
99 void (*start_tx)(struct uart_port *port);
100 void (*stop_tx)(struct uart_port *port);
101 void (*rx_clr_irq)(struct uart_port *port);
102 void (*tx_clr_irq)(struct uart_port *port);
103 void (*write_char)(struct uart_port *port, unsigned char c);
104 unsigned char (*read_char)(struct uart_port *port);
105 void (*cw_disable_ints)(struct uart_port *port);
106 void (*cw_restore_ints)(struct uart_port *port);
107 unsigned int (*set_baudrate)(struct uart_port *port,
110 int (*clock_alloc)(struct uart_port *port);
111 void (*clock_relse)(struct uart_port *port);
112 int (*clock)(struct uart_port *port, int enable);
115 void (*get_irq)(struct uart_port *, struct device_node *);
116 irqreturn_t (*handle_irq)(struct uart_port *port);
117 u16 (*get_status)(struct uart_port *port);
118 u8 (*get_ipcr)(struct uart_port *port);
119 void (*command)(struct uart_port *port, u8 cmd);
120 void (*set_mode)(struct uart_port *port, u8 mr1, u8 mr2);
121 void (*set_rts)(struct uart_port *port, int state);
122 void (*enable_ms)(struct uart_port *port);
123 void (*set_sicr)(struct uart_port *port, u32 val);
124 void (*set_imr)(struct uart_port *port, u16 val);
125 u8 (*get_mr1)(struct uart_port *port);
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()
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()
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()
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()
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()
1605 struct uart_port *port = &mpc52xx_uart_ports[co->index]; in mpc52xx_console_setup()
1740 struct uart_port *port = NULL; in mpc52xx_uart_of_probe()
1807 struct uart_port *port = platform_get_drvdata(op); in mpc52xx_uart_of_remove()
1819 struct uart_port *port = platform_get_drvdata(op); in mpc52xx_uart_of_suspend()
1830 struct uart_port *port = platform_get_drvdata(op); in mpc52xx_uart_of_resume()