ascport 398 drivers/tty/serial/st-asc.c struct asc_port *ascport = to_asc_port(port); ascport 411 drivers/tty/serial/st-asc.c if (!ascport->rts) ascport 418 drivers/tty/serial/st-asc.c gpiod_set_value(ascport->rts, mctrl & TIOCM_RTS); ascport 484 drivers/tty/serial/st-asc.c struct asc_port *ascport = to_asc_port(port); ascport 490 drivers/tty/serial/st-asc.c clk_prepare_enable(ascport->clk); ascport 502 drivers/tty/serial/st-asc.c clk_disable_unprepare(ascport->clk); ascport 510 drivers/tty/serial/st-asc.c struct asc_port *ascport = to_asc_port(port); ascport 520 drivers/tty/serial/st-asc.c (ascport->hw_flow_control ? 0 : CRTSCTS)); ascport 522 drivers/tty/serial/st-asc.c port->uartclk = clk_get_rate(ascport->clk); ascport 560 drivers/tty/serial/st-asc.c if (ascport->rts) { ascport 561 drivers/tty/serial/st-asc.c devm_gpiod_put(port->dev, ascport->rts); ascport 562 drivers/tty/serial/st-asc.c ascport->rts = NULL; ascport 564 drivers/tty/serial/st-asc.c pinctrl_select_state(ascport->pinctrl, ascport 565 drivers/tty/serial/st-asc.c ascport->states[DEFAULT]); ascport 569 drivers/tty/serial/st-asc.c if (!ascport->rts && ascport->states[NO_HW_FLOWCTRL]) { ascport 570 drivers/tty/serial/st-asc.c pinctrl_select_state(ascport->pinctrl, ascport 571 drivers/tty/serial/st-asc.c ascport->states[NO_HW_FLOWCTRL]); ascport 579 drivers/tty/serial/st-asc.c ascport->rts = gpiod; ascport 583 drivers/tty/serial/st-asc.c if ((baud < 19200) && !ascport->force_m1) { ascport 604 drivers/tty/serial/st-asc.c ascport->port.read_status_mask = ASC_RXBUF_DUMMY_OE; ascport 606 drivers/tty/serial/st-asc.c ascport->port.read_status_mask |= ASC_RXBUF_FE | ASC_RXBUF_PE; ascport 608 drivers/tty/serial/st-asc.c ascport->port.read_status_mask |= ASC_RXBUF_DUMMY_BE; ascport 613 drivers/tty/serial/st-asc.c ascport->port.ignore_status_mask = 0; ascport 615 drivers/tty/serial/st-asc.c ascport->port.ignore_status_mask |= ASC_RXBUF_FE | ASC_RXBUF_PE; ascport 617 drivers/tty/serial/st-asc.c ascport->port.ignore_status_mask |= ASC_RXBUF_DUMMY_BE; ascport 623 drivers/tty/serial/st-asc.c ascport->port.ignore_status_mask |= ASC_RXBUF_DUMMY_OE; ascport 630 drivers/tty/serial/st-asc.c ascport->port.ignore_status_mask |= ASC_RXBUF_DUMMY_RX; ascport 720 drivers/tty/serial/st-asc.c static int asc_init_port(struct asc_port *ascport, ascport 723 drivers/tty/serial/st-asc.c struct uart_port *port = &ascport->port; ascport 742 drivers/tty/serial/st-asc.c ascport->clk = devm_clk_get(&pdev->dev, NULL); ascport 744 drivers/tty/serial/st-asc.c if (WARN_ON(IS_ERR(ascport->clk))) ascport 747 drivers/tty/serial/st-asc.c clk_prepare_enable(ascport->clk); ascport 748 drivers/tty/serial/st-asc.c ascport->port.uartclk = clk_get_rate(ascport->clk); ascport 749 drivers/tty/serial/st-asc.c WARN_ON(ascport->port.uartclk == 0); ascport 750 drivers/tty/serial/st-asc.c clk_disable_unprepare(ascport->clk); ascport 752 drivers/tty/serial/st-asc.c ascport->pinctrl = devm_pinctrl_get(&pdev->dev); ascport 753 drivers/tty/serial/st-asc.c if (IS_ERR(ascport->pinctrl)) { ascport 754 drivers/tty/serial/st-asc.c ret = PTR_ERR(ascport->pinctrl); ascport 759 drivers/tty/serial/st-asc.c ascport->states[DEFAULT] = ascport 760 drivers/tty/serial/st-asc.c pinctrl_lookup_state(ascport->pinctrl, "default"); ascport 761 drivers/tty/serial/st-asc.c if (IS_ERR(ascport->states[DEFAULT])) { ascport 762 drivers/tty/serial/st-asc.c ret = PTR_ERR(ascport->states[DEFAULT]); ascport 769 drivers/tty/serial/st-asc.c ascport->states[NO_HW_FLOWCTRL] = ascport 770 drivers/tty/serial/st-asc.c pinctrl_lookup_state(ascport->pinctrl, "no-hw-flowctrl"); ascport 771 drivers/tty/serial/st-asc.c if (IS_ERR(ascport->states[NO_HW_FLOWCTRL])) ascport 772 drivers/tty/serial/st-asc.c ascport->states[NO_HW_FLOWCTRL] = NULL; ascport 816 drivers/tty/serial/st-asc.c struct asc_port *ascport; ascport 818 drivers/tty/serial/st-asc.c ascport = asc_of_get_asc_port(pdev); ascport 819 drivers/tty/serial/st-asc.c if (!ascport) ascport 822 drivers/tty/serial/st-asc.c ret = asc_init_port(ascport, pdev); ascport 826 drivers/tty/serial/st-asc.c ret = uart_add_one_port(&asc_uart_driver, &ascport->port); ascport 830 drivers/tty/serial/st-asc.c platform_set_drvdata(pdev, &ascport->port); ascport 914 drivers/tty/serial/st-asc.c struct asc_port *ascport; ascport 923 drivers/tty/serial/st-asc.c ascport = &asc_ports[co->index]; ascport 931 drivers/tty/serial/st-asc.c if (ascport->port.mapbase == 0 || ascport->port.membase == NULL) ascport 937 drivers/tty/serial/st-asc.c return uart_set_options(&ascport->port, co, baud, parity, bits, flow);