Lines Matching refs:sport
327 struct esp32_port *sport = container_of(port, struct esp32_port, port); in esp32_uart_startup() local
329 ret = clk_prepare_enable(sport->clk); in esp32_uart_startup()
335 clk_disable_unprepare(sport->clk); in esp32_uart_startup()
355 struct esp32_port *sport = container_of(port, struct esp32_port, port); in esp32_uart_shutdown() local
359 clk_disable_unprepare(sport->clk); in esp32_uart_shutdown()
481 struct esp32_port *sport = container_of(port, struct esp32_port, port); in esp32_uart_poll_init() local
483 return clk_prepare_enable(sport->clk); in esp32_uart_poll_init()
534 struct esp32_port *sport = esp32_uart_ports[co->index]; in esp32_uart_console_write() local
535 struct uart_port *port = &sport->port; in esp32_uart_console_write()
554 struct esp32_port *sport; in esp32_uart_console_setup() local
569 sport = esp32_uart_ports[co->index]; in esp32_uart_console_setup()
570 if (!sport) in esp32_uart_console_setup()
573 ret = clk_prepare_enable(sport->clk); in esp32_uart_console_setup()
580 return uart_set_options(&sport->port, co, baud, parity, bits, flow); in esp32_uart_console_setup()
585 struct esp32_port *sport = esp32_uart_ports[co->index]; in esp32_uart_console_exit() local
587 clk_disable_unprepare(sport->clk); in esp32_uart_console_exit()
683 struct esp32_port *sport; in esp32_uart_probe() local
687 sport = devm_kzalloc(&pdev->dev, sizeof(*sport), GFP_KERNEL); in esp32_uart_probe()
688 if (!sport) in esp32_uart_probe()
691 port = &sport->port; in esp32_uart_probe()
714 sport->clk = devm_clk_get(&pdev->dev, NULL); in esp32_uart_probe()
715 if (IS_ERR(sport->clk)) in esp32_uart_probe()
716 return PTR_ERR(sport->clk); in esp32_uart_probe()
718 port->uartclk = clk_get_rate(sport->clk); in esp32_uart_probe()
729 esp32_uart_ports[port->line] = sport; in esp32_uart_probe()