Lines Matching refs:sifive_serial_port
147 struct sifive_serial_port { struct
161 struct sifive_serial_port, \ argument
165 struct sifive_serial_port, \
225 static void __ssp_writel(u32 v, u16 offs, struct sifive_serial_port *ssp) in __ssp_writel()
242 static u32 __ssp_readl(struct sifive_serial_port *ssp, u16 offs) in __ssp_readl()
258 static int sifive_serial_is_txfifo_full(struct sifive_serial_port *ssp) in sifive_serial_is_txfifo_full()
275 static void __ssp_transmit_char(struct sifive_serial_port *ssp, int ch) in __ssp_transmit_char()
289 static void __ssp_transmit_chars(struct sifive_serial_port *ssp) in __ssp_transmit_chars()
306 static void __ssp_enable_txwm(struct sifive_serial_port *ssp) in __ssp_enable_txwm()
322 static void __ssp_enable_rxwm(struct sifive_serial_port *ssp) in __ssp_enable_rxwm()
338 static void __ssp_disable_txwm(struct sifive_serial_port *ssp) in __ssp_disable_txwm()
354 static void __ssp_disable_rxwm(struct sifive_serial_port *ssp) in __ssp_disable_rxwm()
375 static char __ssp_receive_char(struct sifive_serial_port *ssp, char *is_empty) in __ssp_receive_char()
403 static void __ssp_receive_chars(struct sifive_serial_port *ssp) in __ssp_receive_chars()
430 static void __ssp_update_div(struct sifive_serial_port *ssp) in __ssp_update_div()
449 static void __ssp_update_baud_rate(struct sifive_serial_port *ssp, in __ssp_update_baud_rate()
466 static void __ssp_set_stop_bits(struct sifive_serial_port *ssp, char nstop) in __ssp_set_stop_bits()
489 static void __maybe_unused __ssp_wait_for_xmitr(struct sifive_serial_port *ssp) in __ssp_wait_for_xmitr()
501 struct sifive_serial_port *ssp = port_to_sifive_serial_port(port); in sifive_serial_stop_tx()
508 struct sifive_serial_port *ssp = port_to_sifive_serial_port(port); in sifive_serial_stop_rx()
515 struct sifive_serial_port *ssp = port_to_sifive_serial_port(port); in sifive_serial_start_tx()
522 struct sifive_serial_port *ssp = dev_id; in sifive_serial_irq()
565 struct sifive_serial_port *ssp = port_to_sifive_serial_port(port); in sifive_serial_startup()
574 struct sifive_serial_port *ssp = port_to_sifive_serial_port(port); in sifive_serial_shutdown()
597 struct sifive_serial_port *ssp = notifier_to_sifive_serial_port(nb); in sifive_serial_clk_notifier()
631 struct sifive_serial_port *ssp = port_to_sifive_serial_port(port); in sifive_serial_set_termios()
688 struct sifive_serial_port *ssp = port_to_sifive_serial_port(port); in sifive_serial_config_port()
707 struct sifive_serial_port *ssp = port_to_sifive_serial_port(port); in sifive_serial_poll_get_char()
720 struct sifive_serial_port *ssp = port_to_sifive_serial_port(port); in sifive_serial_poll_put_char()
774 static struct sifive_serial_port *sifive_serial_console_ports[SIFIVE_SERIAL_MAX_PORTS];
778 struct sifive_serial_port *ssp = port_to_sifive_serial_port(port); in sifive_serial_console_putchar()
787 struct sifive_serial_port *ssp = sifive_serial_console_ports[co->index]; in sifive_serial_console_write()
813 struct sifive_serial_port *ssp; in sifive_serial_console_setup()
852 static void __ssp_add_console_port(struct sifive_serial_port *ssp) in __ssp_add_console_port()
857 static void __ssp_remove_console_port(struct sifive_serial_port *ssp) in __ssp_remove_console_port()
868 static void __ssp_add_console_port(struct sifive_serial_port *ssp) in __ssp_add_console_port()
870 static void __ssp_remove_console_port(struct sifive_serial_port *ssp) in __ssp_remove_console_port()
907 struct sifive_serial_port *ssp; in sifive_serial_probe()
1009 struct sifive_serial_port *ssp = platform_get_drvdata(dev); in sifive_serial_remove()
1019 struct sifive_serial_port *ssp = dev_get_drvdata(dev); in sifive_serial_suspend()
1026 struct sifive_serial_port *ssp = dev_get_drvdata(dev); in sifive_serial_resume()