• Home
  • Raw
  • Download

Lines Matching refs:sci_port

61 struct sci_port {  struct
116 static struct sci_port sci_ports[SCI_NPORTS]; argument
119 static inline struct sci_port *
122 return container_of(uart, struct sci_port, port); in to_sci_port()
390 static void sci_port_enable(struct sci_port *sci_port) in sci_port_enable() argument
392 if (!sci_port->port.dev) in sci_port_enable()
395 pm_runtime_get_sync(sci_port->port.dev); in sci_port_enable()
397 clk_enable(sci_port->iclk); in sci_port_enable()
398 sci_port->port.uartclk = clk_get_rate(sci_port->iclk); in sci_port_enable()
399 clk_enable(sci_port->fclk); in sci_port_enable()
402 static void sci_port_disable(struct sci_port *sci_port) in sci_port_disable() argument
404 if (!sci_port->port.dev) in sci_port_disable()
407 clk_disable(sci_port->fclk); in sci_port_disable()
408 clk_disable(sci_port->iclk); in sci_port_disable()
410 pm_runtime_put_sync(sci_port->port.dev); in sci_port_disable()
458 struct sci_port *s = to_sci_port(port); in sci_init_pins()
527 struct sci_port *s = to_sci_port(port); in sci_rxd_in()
602 struct sci_port *sci_port = to_sci_port(port); in sci_receive_chars() local
623 sci_port->break_flag) in sci_receive_chars()
634 if (sci_port->break_flag) { in sci_receive_chars()
643 sci_port->break_flag = 0; in sci_receive_chars()
698 static inline void sci_schedule_break_timer(struct sci_port *port) in sci_schedule_break_timer()
706 struct sci_port *port = (struct sci_port *)data; in sci_break_timer()
728 struct sci_port *s = to_sci_port(port); in sci_handle_errors()
748 struct sci_port *sci_port = to_sci_port(port); in sci_handle_errors() local
750 if (!sci_port->break_flag) { in sci_handle_errors()
753 sci_port->break_flag = 1; in sci_handle_errors()
754 sci_schedule_break_timer(sci_port); in sci_handle_errors()
796 struct sci_port *s = to_sci_port(port); in sci_handle_fifo_overrun()
824 struct sci_port *s = to_sci_port(port); in sci_handle_breaks()
856 struct sci_port *s = to_sci_port(port); in sci_rx_interrupt()
952 struct sci_port *s = to_sci_port(port); in sci_mpxed_interrupt()
990 struct sci_port *sci_port; in sci_notifier() local
993 sci_port = container_of(self, struct sci_port, freq_transition); in sci_notifier()
997 struct uart_port *port = &sci_port->port; in sci_notifier()
1000 port->uartclk = clk_get_rate(sci_port->iclk); in sci_notifier()
1043 static int sci_request_irq(struct sci_port *port) in sci_request_irq()
1088 static void sci_free_irq(struct sci_port *port) in sci_free_irq()
1116 static void __devinit sci_init_gpios(struct sci_port *port) in sci_init_gpios()
1157 static void sci_free_gpios(struct sci_port *port) in sci_free_gpios()
1214 struct sci_port *s = arg; in sci_dma_tx_complete()
1249 static int sci_dma_rx_push(struct sci_port *s, struct tty_struct *tty, in sci_dma_rx_push()
1283 struct sci_port *s = arg; in sci_dma_rx_complete()
1305 static void sci_rx_dma_release(struct sci_port *s, bool enable_pio) in sci_rx_dma_release()
1320 static void sci_tx_dma_release(struct sci_port *s, bool enable_pio) in sci_tx_dma_release()
1332 static void sci_submit_rx(struct sci_port *s) in sci_submit_rx()
1376 struct sci_port *s = container_of(work, struct sci_port, work_rx); in work_fn_rx()
1432 struct sci_port *s = container_of(work, struct sci_port, work_tx); in work_fn_tx()
1489 struct sci_port *s = to_sci_port(port); in sci_start_tx()
1587 struct sci_port *s = (struct sci_port *)arg; in rx_timer_fn()
1602 struct sci_port *s = to_sci_port(port); in sci_request_dma()
1691 struct sci_port *s = to_sci_port(port); in sci_free_dma()
1710 struct sci_port *s = to_sci_port(port); in sci_startup()
1733 struct sci_port *s = to_sci_port(port); in sci_shutdown()
1789 struct sci_port *s = to_sci_port(port); in sci_set_termios()
1983 struct sci_port *sport = to_sci_port(port); in sci_config_port()
1992 struct sci_port *s = to_sci_port(port); in sci_verify_port()
2027 struct sci_port *sci_port, in sci_init_single() argument
2031 struct uart_port *port = &sci_port->port; in sci_init_single()
2034 sci_port->cfg = p; in sci_init_single()
2062 sci_port->iclk = clk_get(&dev->dev, "sci_ick"); in sci_init_single()
2063 if (IS_ERR(sci_port->iclk)) { in sci_init_single()
2064 sci_port->iclk = clk_get(&dev->dev, "peripheral_clk"); in sci_init_single()
2065 if (IS_ERR(sci_port->iclk)) { in sci_init_single()
2067 return PTR_ERR(sci_port->iclk); in sci_init_single()
2075 sci_port->fclk = clk_get(&dev->dev, "sci_fck"); in sci_init_single()
2076 if (IS_ERR(sci_port->fclk)) in sci_init_single()
2077 sci_port->fclk = NULL; in sci_init_single()
2081 sci_init_gpios(sci_port); in sci_init_single()
2088 sci_port->break_timer.data = (unsigned long)sci_port; in sci_init_single()
2089 sci_port->break_timer.function = sci_break_timer; in sci_init_single()
2090 init_timer(&sci_port->break_timer); in sci_init_single()
2156 struct sci_port *sci_port = &sci_ports[co->index]; in serial_console_write() local
2157 struct uart_port *port = &sci_port->port; in serial_console_write()
2160 sci_port_enable(sci_port); in serial_console_write()
2169 sci_port_disable(sci_port); in serial_console_write()
2174 struct sci_port *sci_port; in serial_console_setup() local
2188 sci_port = &sci_ports[co->index]; in serial_console_setup()
2189 port = &sci_port->port; in serial_console_setup()
2201 sci_port_enable(sci_port); in serial_console_setup()
2206 sci_port_disable(sci_port); in serial_console_setup()
2254 struct sci_port *sci_port = dev_get_drvdata(dev); in sci_runtime_suspend() local
2255 struct uart_port *port = &sci_port->port; in sci_runtime_suspend()
2260 sci_port->saved_smr = serial_port_in(port, SCSMR); in sci_runtime_suspend()
2261 sci_port->saved_brr = serial_port_in(port, SCBRR); in sci_runtime_suspend()
2265 sci_port->saved_fcr = serial_port_in(port, SCFCR); in sci_runtime_suspend()
2267 sci_port->saved_fcr = 0; in sci_runtime_suspend()
2274 struct sci_port *sci_port = dev_get_drvdata(dev); in sci_runtime_resume() local
2275 struct uart_port *port = &sci_port->port; in sci_runtime_resume()
2279 serial_port_out(port, SCSMR, sci_port->saved_smr); in sci_runtime_resume()
2280 serial_port_out(port, SCBRR, sci_port->saved_brr); in sci_runtime_resume()
2282 if (sci_port->saved_fcr) in sci_runtime_resume()
2283 serial_port_out(port, SCFCR, sci_port->saved_fcr); in sci_runtime_resume()
2285 serial_port_out(port, SCSCR, sci_port->cfg->scscr); in sci_runtime_resume()
2319 struct sci_port *port = platform_get_drvdata(dev); in sci_remove()
2338 struct sci_port *sciport) in sci_probe_single()
2362 struct sci_port *sp = &sci_ports[dev->id]; in sci_probe()
2399 struct sci_port *sport = dev_get_drvdata(dev); in sci_suspend()
2409 struct sci_port *sport = dev_get_drvdata(dev); in sci_resume()