Lines Matching refs:uart_port

55 static unsigned int jsm_tty_tx_empty(struct uart_port *port)  in jsm_tty_tx_empty()
63 static unsigned int jsm_tty_get_mctrl(struct uart_port *port) in jsm_tty_get_mctrl()
67 container_of(port, struct jsm_channel, uart_port); in jsm_tty_get_mctrl()
86 static void jsm_tty_set_mctrl(struct uart_port *port, unsigned int mctrl) in jsm_tty_set_mctrl()
89 container_of(port, struct jsm_channel, uart_port); in jsm_tty_set_mctrl()
115 static void jsm_tty_write(struct uart_port *port) in jsm_tty_write()
119 channel = container_of(port, struct jsm_channel, uart_port); in jsm_tty_write()
123 static void jsm_tty_start_tx(struct uart_port *port) in jsm_tty_start_tx()
126 container_of(port, struct jsm_channel, uart_port); in jsm_tty_start_tx()
136 static void jsm_tty_stop_tx(struct uart_port *port) in jsm_tty_stop_tx()
139 container_of(port, struct jsm_channel, uart_port); in jsm_tty_stop_tx()
148 static void jsm_tty_send_xchar(struct uart_port *port, char ch) in jsm_tty_send_xchar()
152 container_of(port, struct jsm_channel, uart_port); in jsm_tty_send_xchar()
165 static void jsm_tty_stop_rx(struct uart_port *port) in jsm_tty_stop_rx()
168 container_of(port, struct jsm_channel, uart_port); in jsm_tty_stop_rx()
173 static void jsm_tty_break(struct uart_port *port, int break_state) in jsm_tty_break()
177 container_of(port, struct jsm_channel, uart_port); in jsm_tty_break()
188 static int jsm_tty_open(struct uart_port *port) in jsm_tty_open()
193 container_of(port, struct jsm_channel, uart_port); in jsm_tty_open()
270 static void jsm_tty_close(struct uart_port *port) in jsm_tty_close()
274 container_of(port, struct jsm_channel, uart_port); in jsm_tty_close()
302 static void jsm_tty_set_termios(struct uart_port *port, in jsm_tty_set_termios()
308 container_of(port, struct jsm_channel, uart_port); in jsm_tty_set_termios()
323 static const char *jsm_tty_type(struct uart_port *port) in jsm_tty_type()
328 static void jsm_tty_release_port(struct uart_port *port) in jsm_tty_release_port()
332 static int jsm_tty_request_port(struct uart_port *port) in jsm_tty_request_port()
337 static void jsm_config_port(struct uart_port *port, int flags) in jsm_config_port()
454 brd->channels[i]->uart_port.irq = brd->irq; in jsm_uart_port_init()
455 brd->channels[i]->uart_port.uartclk = 14745600; in jsm_uart_port_init()
456 brd->channels[i]->uart_port.type = PORT_JSM; in jsm_uart_port_init()
457 brd->channels[i]->uart_port.iotype = UPIO_MEM; in jsm_uart_port_init()
458 brd->channels[i]->uart_port.membase = brd->re_map_membase; in jsm_uart_port_init()
459 brd->channels[i]->uart_port.fifosize = 16; in jsm_uart_port_init()
460 brd->channels[i]->uart_port.ops = &jsm_ops; in jsm_uart_port_init()
467 brd->channels[i]->uart_port.line = line; in jsm_uart_port_init()
468 rc = uart_add_one_port(&jsm_uart_driver, &brd->channels[i]->uart_port); in jsm_uart_port_init()
504 clear_bit(ch->uart_port.line, linemap); in jsm_remove_uart_port()
505 uart_remove_one_port(&jsm_uart_driver, &brd->channels[i]->uart_port); in jsm_remove_uart_port()
528 port = &ch->uart_port.state->port; in jsm_input()