Lines Matching refs:uart_port
64 static unsigned int jsm_tty_tx_empty(struct uart_port *port) in jsm_tty_tx_empty()
72 static unsigned int jsm_tty_get_mctrl(struct uart_port *port) in jsm_tty_get_mctrl()
76 container_of(port, struct jsm_channel, uart_port); in jsm_tty_get_mctrl()
95 static void jsm_tty_set_mctrl(struct uart_port *port, unsigned int mctrl) in jsm_tty_set_mctrl()
98 container_of(port, struct jsm_channel, uart_port); in jsm_tty_set_mctrl()
124 static void jsm_tty_write(struct uart_port *port) in jsm_tty_write()
127 channel = container_of(port, struct jsm_channel, uart_port); in jsm_tty_write()
131 static void jsm_tty_start_tx(struct uart_port *port) in jsm_tty_start_tx()
134 container_of(port, struct jsm_channel, uart_port); in jsm_tty_start_tx()
144 static void jsm_tty_stop_tx(struct uart_port *port) in jsm_tty_stop_tx()
147 container_of(port, struct jsm_channel, uart_port); in jsm_tty_stop_tx()
156 static void jsm_tty_send_xchar(struct uart_port *port, char ch) in jsm_tty_send_xchar()
160 container_of(port, struct jsm_channel, uart_port); in jsm_tty_send_xchar()
173 static void jsm_tty_stop_rx(struct uart_port *port) in jsm_tty_stop_rx()
176 container_of(port, struct jsm_channel, uart_port); in jsm_tty_stop_rx()
181 static void jsm_tty_break(struct uart_port *port, int break_state) in jsm_tty_break()
185 container_of(port, struct jsm_channel, uart_port); in jsm_tty_break()
196 static int jsm_tty_open(struct uart_port *port) in jsm_tty_open()
200 container_of(port, struct jsm_channel, uart_port); in jsm_tty_open()
275 static void jsm_tty_close(struct uart_port *port) in jsm_tty_close()
280 container_of(port, struct jsm_channel, uart_port); in jsm_tty_close()
309 static void jsm_tty_set_termios(struct uart_port *port, in jsm_tty_set_termios()
315 container_of(port, struct jsm_channel, uart_port); in jsm_tty_set_termios()
330 static const char *jsm_tty_type(struct uart_port *port) in jsm_tty_type()
335 static void jsm_tty_release_port(struct uart_port *port) in jsm_tty_release_port()
339 static int jsm_tty_request_port(struct uart_port *port) in jsm_tty_request_port()
344 static void jsm_config_port(struct uart_port *port, int flags) in jsm_config_port()
462 brd->channels[i]->uart_port.irq = brd->irq; in jsm_uart_port_init()
463 brd->channels[i]->uart_port.uartclk = 14745600; in jsm_uart_port_init()
464 brd->channels[i]->uart_port.type = PORT_JSM; in jsm_uart_port_init()
465 brd->channels[i]->uart_port.iotype = UPIO_MEM; in jsm_uart_port_init()
466 brd->channels[i]->uart_port.membase = brd->re_map_membase; in jsm_uart_port_init()
467 brd->channels[i]->uart_port.fifosize = 16; in jsm_uart_port_init()
468 brd->channels[i]->uart_port.ops = &jsm_ops; in jsm_uart_port_init()
475 brd->channels[i]->uart_port.line = line; in jsm_uart_port_init()
476 rc = uart_add_one_port (&jsm_uart_driver, &brd->channels[i]->uart_port); in jsm_uart_port_init()
513 clear_bit(ch->uart_port.line, linemap); in jsm_remove_uart_port()
514 uart_remove_one_port(&jsm_uart_driver, &brd->channels[i]->uart_port); in jsm_remove_uart_port()
541 port = &ch->uart_port.state->port; in jsm_input()