Lines Matching defs:port
89 #define UART_PUT_CR(port,v) __raw_writel(v, (port)->membase + ATMEL_US_CR) argument
90 #define UART_GET_MR(port) __raw_readl((port)->membase + ATMEL_US_MR) argument
91 #define UART_PUT_MR(port,v) __raw_writel(v, (port)->membase + ATMEL_US_MR) argument
92 #define UART_PUT_IER(port,v) __raw_writel(v, (port)->membase + ATMEL_US_IER) argument
93 #define UART_PUT_IDR(port,v) __raw_writel(v, (port)->membase + ATMEL_US_IDR) argument
94 #define UART_GET_IMR(port) __raw_readl((port)->membase + ATMEL_US_IMR) argument
95 #define UART_GET_CSR(port) __raw_readl((port)->membase + ATMEL_US_CSR) argument
96 #define UART_GET_CHAR(port) __raw_readl((port)->membase + ATMEL_US_RHR) argument
97 #define UART_PUT_CHAR(port,v) __raw_writel(v, (port)->membase + ATMEL_US_THR) argument
98 #define UART_GET_BRGR(port) __raw_readl((port)->membase + ATMEL_US_BRGR) argument
99 #define UART_PUT_BRGR(port,v) __raw_writel(v, (port)->membase + ATMEL_US_BRGR) argument
100 #define UART_PUT_RTOR(port,v) __raw_writel(v, (port)->membase + ATMEL_US_RTOR) argument
101 #define UART_PUT_TTGR(port, v) __raw_writel(v, (port)->membase + ATMEL_US_TTGR) argument
104 #define UART_PUT_PTCR(port,v) __raw_writel(v, (port)->membase + ATMEL_PDC_PTCR) argument
105 #define UART_GET_PTSR(port) __raw_readl((port)->membase + ATMEL_PDC_PTSR) argument
107 #define UART_PUT_RPR(port,v) __raw_writel(v, (port)->membase + ATMEL_PDC_RPR) argument
108 #define UART_GET_RPR(port) __raw_readl((port)->membase + ATMEL_PDC_RPR) argument
109 #define UART_PUT_RCR(port,v) __raw_writel(v, (port)->membase + ATMEL_PDC_RCR) argument
110 #define UART_PUT_RNPR(port,v) __raw_writel(v, (port)->membase + ATMEL_PDC_RNPR) argument
111 #define UART_PUT_RNCR(port,v) __raw_writel(v, (port)->membase + ATMEL_PDC_RNCR) argument
113 #define UART_PUT_TPR(port,v) __raw_writel(v, (port)->membase + ATMEL_PDC_TPR) argument
114 #define UART_PUT_TCR(port,v) __raw_writel(v, (port)->membase + ATMEL_PDC_TCR) argument
115 #define UART_GET_TCR(port) __raw_readl((port)->membase + ATMEL_PDC_TCR) argument
185 static bool atmel_use_dma_rx(struct uart_port *port) in atmel_use_dma_rx()
192 static bool atmel_use_dma_tx(struct uart_port *port) in atmel_use_dma_tx()
199 static bool atmel_use_dma_rx(struct uart_port *port) in atmel_use_dma_rx()
204 static bool atmel_use_dma_tx(struct uart_port *port) in atmel_use_dma_tx()
211 void atmel_config_rs485(struct uart_port *port, struct serial_rs485 *rs485conf) in atmel_config_rs485()
255 static u_int atmel_tx_empty(struct uart_port *port) in atmel_tx_empty()
263 static void atmel_set_mctrl(struct uart_port *port, u_int mctrl) in atmel_set_mctrl()
321 static u_int atmel_get_mctrl(struct uart_port *port) in atmel_get_mctrl()
345 static void atmel_stop_tx(struct uart_port *port) in atmel_stop_tx()
364 static void atmel_start_tx(struct uart_port *port) in atmel_start_tx()
388 static void atmel_start_rx(struct uart_port *port) in atmel_start_rx()
405 static void atmel_stop_rx(struct uart_port *port) in atmel_stop_rx()
420 static void atmel_enable_ms(struct uart_port *port) in atmel_enable_ms()
429 static void atmel_break_ctl(struct uart_port *port, int break_state) in atmel_break_ctl()
441 atmel_buffer_rx_char(struct uart_port *port, unsigned int status, in atmel_buffer_rx_char()
465 static void atmel_pdc_rxerr(struct uart_port *port, unsigned int status) in atmel_pdc_rxerr()
486 static void atmel_rx_chars(struct uart_port *port) in atmel_rx_chars()
535 static void atmel_tx_chars(struct uart_port *port) in atmel_tx_chars()
568 atmel_handle_receive(struct uart_port *port, unsigned int pending) in atmel_handle_receive()
609 atmel_handle_transmit(struct uart_port *port, unsigned int pending) in atmel_handle_transmit()
624 atmel_handle_status(struct uart_port *port, unsigned int pending, in atmel_handle_status()
641 struct uart_port *port = dev_id; in atmel_interrupt() local
661 static void atmel_tx_dma(struct uart_port *port) in atmel_tx_dma()
710 static void atmel_rx_from_ring(struct uart_port *port) in atmel_rx_from_ring()
778 static void atmel_rx_from_dma(struct uart_port *port) in atmel_rx_from_dma()
859 struct uart_port *port = (struct uart_port *)data; in atmel_tasklet_func() local
903 static int atmel_startup(struct uart_port *port) in atmel_startup()
1018 static void atmel_shutdown(struct uart_port *port) in atmel_shutdown()
1075 static void atmel_flush_buffer(struct uart_port *port) in atmel_flush_buffer()
1088 static void atmel_serial_pm(struct uart_port *port, unsigned int state, in atmel_serial_pm()
1123 static void atmel_set_termios(struct uart_port *port, struct ktermios *termios, in atmel_set_termios()
1258 static void atmel_set_ldisc(struct uart_port *port, int new) in atmel_set_ldisc()
1271 static const char *atmel_type(struct uart_port *port) in atmel_type()
1279 static void atmel_release_port(struct uart_port *port) in atmel_release_port()
1295 static int atmel_request_port(struct uart_port *port) in atmel_request_port()
1317 static void atmel_config_port(struct uart_port *port, int flags) in atmel_config_port()
1328 static int atmel_verify_port(struct uart_port *port, struct serial_struct *ser) in atmel_verify_port()
1349 static int atmel_poll_get_char(struct uart_port *port) in atmel_poll_get_char()
1357 static void atmel_poll_put_char(struct uart_port *port, unsigned char ch) in atmel_poll_put_char()
1367 atmel_ioctl(struct uart_port *port, unsigned int cmd, unsigned long arg) in atmel_ioctl()
1460 struct uart_port *port = &atmel_port->uart; in atmel_init_port() local
1530 static void atmel_console_putchar(struct uart_port *port, int ch) in atmel_console_putchar()
1542 struct uart_port *port = &atmel_ports[co->index].uart; in atmel_console_write() local
1579 static void __init atmel_console_get_options(struct uart_port *port, int *baud, in atmel_console_get_options()
1615 struct uart_port *port = &atmel_ports[co->index].uart; in atmel_console_setup() local
1663 struct atmel_uart_port *port = &atmel_ports[id]; in atmel_console_init() local
1692 static inline bool atmel_is_console_port(struct uart_port *port) in atmel_is_console_port()
1700 static inline bool atmel_is_console_port(struct uart_port *port) in atmel_is_console_port()
1729 struct uart_port *port = platform_get_drvdata(pdev); in atmel_serial_suspend() local
1750 struct uart_port *port = platform_get_drvdata(pdev); in atmel_serial_resume() local
1765 struct atmel_uart_port *port; in atmel_serial_probe() local
1850 struct uart_port *port = platform_get_drvdata(pdev); in atmel_serial_remove() local