Lines Matching defs:port
77 #define PSC(port) ((struct mpc52xx_psc __iomem *)((port)->membase)) argument
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()
195 #define FIFO_52xx(port) ((struct mpc52xx_psc_fifo __iomem *)(PSC(port)+1)) argument
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()
409 #define FIFO_512x(port) ((struct mpc512x_psc_fifo __iomem *)(PSC(port)+1)) argument
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()
765 #define PSC_5125(port) ((struct mpc5125_psc __iomem *)((port)->membase)) argument
766 #define FIFO_5125(port) ((struct mpc512x_psc_fifo __iomem *)(PSC_5125(port)+1)) argument
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() local
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() local
1610 struct uart_port *port = &mpc52xx_uart_ports[co->index]; in mpc52xx_console_setup() local
1745 struct uart_port *port = NULL; in mpc52xx_uart_of_probe() local
1812 struct uart_port *port = platform_get_drvdata(op); in mpc52xx_uart_of_remove() local
1824 struct uart_port *port = platform_get_drvdata(op); in mpc52xx_uart_of_suspend() local
1835 struct uart_port *port = platform_get_drvdata(op); in mpc52xx_uart_of_resume() local