Lines Matching refs:uart_port
62 static struct uart_port mpc52xx_uart_ports[MPC52xx_PSC_MAXNUM];
82 static irqreturn_t mpc5xxx_uart_process_int(struct uart_port *port);
89 void (*fifo_init)(struct uart_port *port);
90 int (*raw_rx_rdy)(struct uart_port *port);
91 int (*raw_tx_rdy)(struct uart_port *port);
92 int (*rx_rdy)(struct uart_port *port);
93 int (*tx_rdy)(struct uart_port *port);
94 int (*tx_empty)(struct uart_port *port);
95 void (*stop_rx)(struct uart_port *port);
96 void (*start_tx)(struct uart_port *port);
97 void (*stop_tx)(struct uart_port *port);
98 void (*rx_clr_irq)(struct uart_port *port);
99 void (*tx_clr_irq)(struct uart_port *port);
100 void (*write_char)(struct uart_port *port, unsigned char c);
101 unsigned char (*read_char)(struct uart_port *port);
102 void (*cw_disable_ints)(struct uart_port *port);
103 void (*cw_restore_ints)(struct uart_port *port);
104 unsigned int (*set_baudrate)(struct uart_port *port,
107 int (*clock_alloc)(struct uart_port *port);
108 void (*clock_relse)(struct uart_port *port);
109 int (*clock)(struct uart_port *port, int enable);
112 void (*get_irq)(struct uart_port *, struct device_node *);
113 irqreturn_t (*handle_irq)(struct uart_port *port);
114 u16 (*get_status)(struct uart_port *port);
115 u8 (*get_ipcr)(struct uart_port *port);
116 void (*command)(struct uart_port *port, u8 cmd);
117 void (*set_mode)(struct uart_port *port, u8 mr1, u8 mr2);
118 void (*set_rts)(struct uart_port *port, int state);
119 void (*enable_ms)(struct uart_port *port);
120 void (*set_sicr)(struct uart_port *port, u32 val);
121 void (*set_imr)(struct uart_port *port, u16 val);
122 u8 (*get_mr1)(struct uart_port *port);
135 static u16 mpc52xx_psc_get_status(struct uart_port *port) in mpc52xx_psc_get_status()
140 static u8 mpc52xx_psc_get_ipcr(struct uart_port *port) in mpc52xx_psc_get_ipcr()
145 static void mpc52xx_psc_command(struct uart_port *port, u8 cmd) in mpc52xx_psc_command()
150 static void mpc52xx_psc_set_mode(struct uart_port *port, u8 mr1, u8 mr2) in mpc52xx_psc_set_mode()
157 static void mpc52xx_psc_set_rts(struct uart_port *port, int state) in mpc52xx_psc_set_rts()
165 static void mpc52xx_psc_enable_ms(struct uart_port *port) in mpc52xx_psc_enable_ms()
178 static void mpc52xx_psc_set_sicr(struct uart_port *port, u32 val) in mpc52xx_psc_set_sicr()
183 static void mpc52xx_psc_set_imr(struct uart_port *port, u16 val) in mpc52xx_psc_set_imr()
188 static u8 mpc52xx_psc_get_mr1(struct uart_port *port) in mpc52xx_psc_get_mr1()
196 static void mpc52xx_psc_fifo_init(struct uart_port *port) in mpc52xx_psc_fifo_init()
210 static int mpc52xx_psc_raw_rx_rdy(struct uart_port *port) in mpc52xx_psc_raw_rx_rdy()
216 static int mpc52xx_psc_raw_tx_rdy(struct uart_port *port) in mpc52xx_psc_raw_tx_rdy()
223 static int mpc52xx_psc_rx_rdy(struct uart_port *port) in mpc52xx_psc_rx_rdy()
230 static int mpc52xx_psc_tx_rdy(struct uart_port *port) in mpc52xx_psc_tx_rdy()
237 static int mpc52xx_psc_tx_empty(struct uart_port *port) in mpc52xx_psc_tx_empty()
244 static void mpc52xx_psc_start_tx(struct uart_port *port) in mpc52xx_psc_start_tx()
250 static void mpc52xx_psc_stop_tx(struct uart_port *port) in mpc52xx_psc_stop_tx()
256 static void mpc52xx_psc_stop_rx(struct uart_port *port) in mpc52xx_psc_stop_rx()
262 static void mpc52xx_psc_rx_clr_irq(struct uart_port *port) in mpc52xx_psc_rx_clr_irq()
266 static void mpc52xx_psc_tx_clr_irq(struct uart_port *port) in mpc52xx_psc_tx_clr_irq()
270 static void mpc52xx_psc_write_char(struct uart_port *port, unsigned char c) in mpc52xx_psc_write_char()
275 static unsigned char mpc52xx_psc_read_char(struct uart_port *port) in mpc52xx_psc_read_char()
280 static void mpc52xx_psc_cw_disable_ints(struct uart_port *port) in mpc52xx_psc_cw_disable_ints()
285 static void mpc52xx_psc_cw_restore_ints(struct uart_port *port) in mpc52xx_psc_cw_restore_ints()
290 static unsigned int mpc5200_psc_set_baudrate(struct uart_port *port, in mpc5200_psc_set_baudrate()
308 static unsigned int mpc5200b_psc_set_baudrate(struct uart_port *port, in mpc5200b_psc_set_baudrate()
334 static void mpc52xx_psc_get_irq(struct uart_port *port, struct device_node *np) in mpc52xx_psc_get_irq()
341 static irqreturn_t mpc52xx_psc_handle_irq(struct uart_port *port) in mpc52xx_psc_handle_irq()
424 static void mpc512x_psc_fifo_init(struct uart_port *port) in mpc512x_psc_fifo_init()
443 static int mpc512x_psc_raw_rx_rdy(struct uart_port *port) in mpc512x_psc_raw_rx_rdy()
448 static int mpc512x_psc_raw_tx_rdy(struct uart_port *port) in mpc512x_psc_raw_tx_rdy()
453 static int mpc512x_psc_rx_rdy(struct uart_port *port) in mpc512x_psc_rx_rdy()
460 static int mpc512x_psc_tx_rdy(struct uart_port *port) in mpc512x_psc_tx_rdy()
467 static int mpc512x_psc_tx_empty(struct uart_port *port) in mpc512x_psc_tx_empty()
473 static void mpc512x_psc_stop_rx(struct uart_port *port) in mpc512x_psc_stop_rx()
482 static void mpc512x_psc_start_tx(struct uart_port *port) in mpc512x_psc_start_tx()
491 static void mpc512x_psc_stop_tx(struct uart_port *port) in mpc512x_psc_stop_tx()
500 static void mpc512x_psc_rx_clr_irq(struct uart_port *port) in mpc512x_psc_rx_clr_irq()
505 static void mpc512x_psc_tx_clr_irq(struct uart_port *port) in mpc512x_psc_tx_clr_irq()
510 static void mpc512x_psc_write_char(struct uart_port *port, unsigned char c) in mpc512x_psc_write_char()
515 static unsigned char mpc512x_psc_read_char(struct uart_port *port) in mpc512x_psc_read_char()
520 static void mpc512x_psc_cw_disable_ints(struct uart_port *port) in mpc512x_psc_cw_disable_ints()
529 static void mpc512x_psc_cw_restore_ints(struct uart_port *port) in mpc512x_psc_cw_restore_ints()
536 static unsigned int mpc512x_psc_set_baudrate(struct uart_port *port, in mpc512x_psc_set_baudrate()
640 static irqreturn_t mpc512x_psc_handle_irq(struct uart_port *port) in mpc512x_psc_handle_irq()
661 static int mpc512x_psc_alloc_clock(struct uart_port *port) in mpc512x_psc_alloc_clock()
710 static void mpc512x_psc_relse_clock(struct uart_port *port) in mpc512x_psc_relse_clock()
728 static int mpc512x_psc_endis_clock(struct uart_port *port, int enable) in mpc512x_psc_endis_clock()
756 static void mpc512x_psc_get_irq(struct uart_port *port, struct device_node *np) in mpc512x_psc_get_irq()
768 static void mpc5125_psc_fifo_init(struct uart_port *port) in mpc5125_psc_fifo_init()
787 static int mpc5125_psc_raw_rx_rdy(struct uart_port *port) in mpc5125_psc_raw_rx_rdy()
792 static int mpc5125_psc_raw_tx_rdy(struct uart_port *port) in mpc5125_psc_raw_tx_rdy()
797 static int mpc5125_psc_rx_rdy(struct uart_port *port) in mpc5125_psc_rx_rdy()
803 static int mpc5125_psc_tx_rdy(struct uart_port *port) in mpc5125_psc_tx_rdy()
809 static int mpc5125_psc_tx_empty(struct uart_port *port) in mpc5125_psc_tx_empty()
814 static void mpc5125_psc_stop_rx(struct uart_port *port) in mpc5125_psc_stop_rx()
823 static void mpc5125_psc_start_tx(struct uart_port *port) in mpc5125_psc_start_tx()
832 static void mpc5125_psc_stop_tx(struct uart_port *port) in mpc5125_psc_stop_tx()
841 static void mpc5125_psc_rx_clr_irq(struct uart_port *port) in mpc5125_psc_rx_clr_irq()
846 static void mpc5125_psc_tx_clr_irq(struct uart_port *port) in mpc5125_psc_tx_clr_irq()
851 static void mpc5125_psc_write_char(struct uart_port *port, unsigned char c) in mpc5125_psc_write_char()
856 static unsigned char mpc5125_psc_read_char(struct uart_port *port) in mpc5125_psc_read_char()
861 static void mpc5125_psc_cw_disable_ints(struct uart_port *port) in mpc5125_psc_cw_disable_ints()
870 static void mpc5125_psc_cw_restore_ints(struct uart_port *port) in mpc5125_psc_cw_restore_ints()
886 static unsigned int mpc5125_psc_set_baudrate(struct uart_port *port, in mpc5125_psc_set_baudrate()
912 static u16 mpc5125_psc_get_status(struct uart_port *port) in mpc5125_psc_get_status()
917 static u8 mpc5125_psc_get_ipcr(struct uart_port *port) in mpc5125_psc_get_ipcr()
922 static void mpc5125_psc_command(struct uart_port *port, u8 cmd) in mpc5125_psc_command()
927 static void mpc5125_psc_set_mode(struct uart_port *port, u8 mr1, u8 mr2) in mpc5125_psc_set_mode()
933 static void mpc5125_psc_set_rts(struct uart_port *port, int state) in mpc5125_psc_set_rts()
941 static void mpc5125_psc_enable_ms(struct uart_port *port) in mpc5125_psc_enable_ms()
954 static void mpc5125_psc_set_sicr(struct uart_port *port, u32 val) in mpc5125_psc_set_sicr()
959 static void mpc5125_psc_set_imr(struct uart_port *port, u16 val) in mpc5125_psc_set_imr()
964 static u8 mpc5125_psc_get_mr1(struct uart_port *port) in mpc5125_psc_get_mr1()
1048 mpc52xx_uart_tx_empty(struct uart_port *port) in mpc52xx_uart_tx_empty()
1054 mpc52xx_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in mpc52xx_uart_set_mctrl()
1060 mpc52xx_uart_get_mctrl(struct uart_port *port) in mpc52xx_uart_get_mctrl()
1074 mpc52xx_uart_stop_tx(struct uart_port *port) in mpc52xx_uart_stop_tx()
1081 mpc52xx_uart_start_tx(struct uart_port *port) in mpc52xx_uart_start_tx()
1088 mpc52xx_uart_stop_rx(struct uart_port *port) in mpc52xx_uart_stop_rx()
1095 mpc52xx_uart_enable_ms(struct uart_port *port) in mpc52xx_uart_enable_ms()
1101 mpc52xx_uart_break_ctl(struct uart_port *port, int ctl) in mpc52xx_uart_break_ctl()
1115 mpc52xx_uart_startup(struct uart_port *port) in mpc52xx_uart_startup()
1153 mpc52xx_uart_shutdown(struct uart_port *port) in mpc52xx_uart_shutdown()
1174 mpc52xx_uart_set_termios(struct uart_port *port, struct ktermios *new, in mpc52xx_uart_set_termios()
1262 mpc52xx_uart_type(struct uart_port *port) in mpc52xx_uart_type()
1272 mpc52xx_uart_release_port(struct uart_port *port) in mpc52xx_uart_release_port()
1287 mpc52xx_uart_request_port(struct uart_port *port) in mpc52xx_uart_request_port()
1323 mpc52xx_uart_config_port(struct uart_port *port, int flags) in mpc52xx_uart_config_port()
1331 mpc52xx_uart_verify_port(struct uart_port *port, struct serial_struct *ser) in mpc52xx_uart_verify_port()
1373 mpc52xx_uart_int_rx_chars(struct uart_port *port) in mpc52xx_uart_int_rx_chars()
1440 mpc52xx_uart_int_tx_chars(struct uart_port *port) in mpc52xx_uart_int_tx_chars()
1481 mpc5xxx_uart_process_int(struct uart_port *port) in mpc5xxx_uart_process_int()
1519 struct uart_port *port = dev_id; in mpc52xx_uart_int()
1538 mpc52xx_console_get_options(struct uart_port *port, in mpc52xx_console_get_options()
1576 struct uart_port *port = &mpc52xx_uart_ports[co->index]; in mpc52xx_console_write()
1610 struct uart_port *port = &mpc52xx_uart_ports[co->index]; in mpc52xx_console_setup()
1745 struct uart_port *port = NULL; in mpc52xx_uart_of_probe()
1812 struct uart_port *port = platform_get_drvdata(op); in mpc52xx_uart_of_remove()
1824 struct uart_port *port = platform_get_drvdata(op); in mpc52xx_uart_of_suspend()
1835 struct uart_port *port = platform_get_drvdata(op); in mpc52xx_uart_of_resume()