Lines Matching refs:rts_gpio
166 int rts_gpio; member
316 if (gpio_get_value(up->rts_gpio) != res) { in serial_omap_stop_tx()
320 gpio_set_value(up->rts_gpio, res); in serial_omap_stop_tx()
425 if (gpio_get_value(up->rts_gpio) != res) { in serial_omap_start_tx()
426 gpio_set_value(up->rts_gpio, res); in serial_omap_start_tx()
1370 if (gpio_is_valid(up->rts_gpio)) { in serial_omap_config_rs485()
1375 gpio_set_value(up->rts_gpio, val); in serial_omap_config_rs485()
1557 up->rts_gpio = -EINVAL; in serial_omap_probe_rs485()
1568 up->rts_gpio = of_get_named_gpio_flags(np, "rts-gpio", 0, &flags); in serial_omap_probe_rs485()
1569 if (gpio_is_valid(up->rts_gpio)) { in serial_omap_probe_rs485()
1570 ret = devm_gpio_request(up->dev, up->rts_gpio, "omap-serial"); in serial_omap_probe_rs485()
1573 ret = gpio_direction_output(up->rts_gpio, in serial_omap_probe_rs485()
1577 } else if (up->rts_gpio == -EPROBE_DEFER) { in serial_omap_probe_rs485()
1580 up->rts_gpio = -EINVAL; in serial_omap_probe_rs485()