Home
last modified time | relevance | path

Searched refs:rs485conf (Results 1 – 6 of 6) sorted by relevance

/drivers/tty/serial/
Dstm32-usart.c78 struct serial_rs485 *rs485conf = &port->rs485; in stm32_usart_rs485_rts_enable() local
81 !(rs485conf->flags & SER_RS485_ENABLED)) in stm32_usart_rs485_rts_enable()
84 if (rs485conf->flags & SER_RS485_RTS_ON_SEND) { in stm32_usart_rs485_rts_enable()
96 struct serial_rs485 *rs485conf = &port->rs485; in stm32_usart_rs485_rts_disable() local
99 !(rs485conf->flags & SER_RS485_ENABLED)) in stm32_usart_rs485_rts_disable()
102 if (rs485conf->flags & SER_RS485_RTS_ON_SEND) { in stm32_usart_rs485_rts_disable()
149 struct serial_rs485 *rs485conf) in stm32_usart_config_rs485() argument
159 port->rs485 = *rs485conf; in stm32_usart_config_rs485()
161 rs485conf->flags |= SER_RS485_RX_DURING_TX; in stm32_usart_config_rs485()
163 if (rs485conf->flags & SER_RS485_ENABLED) { in stm32_usart_config_rs485()
[all …]
Dar933x_uart.c394 struct serial_rs485 *rs485conf = &up->port.rs485; in ar933x_uart_tx_chars() local
401 if ((rs485conf->flags & SER_RS485_ENABLED) && in ar933x_uart_tx_chars()
404 gpiod_set_value(up->rts_gpiod, !!(rs485conf->flags & SER_RS485_RTS_ON_SEND)); in ar933x_uart_tx_chars()
441 gpiod_set_value(up->rts_gpiod, !!(rs485conf->flags & SER_RS485_RTS_AFTER_SEND)); in ar933x_uart_tx_chars()
584 struct serial_rs485 *rs485conf) in ar933x_config_rs485() argument
589 if ((rs485conf->flags & SER_RS485_ENABLED) && in ar933x_config_rs485()
595 if (rs485conf->flags & SER_RS485_ENABLED) in ar933x_config_rs485()
597 !!(rs485conf->flags & SER_RS485_RTS_AFTER_SEND)); in ar933x_config_rs485()
599 port->rs485 = *rs485conf; in ar933x_config_rs485()
Domap-serial.c1540 struct serial_rs485 *rs485conf = &up->port.rs485; in serial_omap_probe_rs485() local
1545 rs485conf->flags = 0; in serial_omap_probe_rs485()
1556 rs485conf->flags |= SER_RS485_RTS_ON_SEND; in serial_omap_probe_rs485()
1557 rs485conf->flags &= ~SER_RS485_RTS_AFTER_SEND; in serial_omap_probe_rs485()
1559 rs485conf->flags &= ~SER_RS485_RTS_ON_SEND; in serial_omap_probe_rs485()
1560 rs485conf->flags |= SER_RS485_RTS_AFTER_SEND; in serial_omap_probe_rs485()
1564 gflags = rs485conf->flags & SER_RS485_RTS_AFTER_SEND ? in serial_omap_probe_rs485()
Dserial_core.c3273 struct serial_rs485 *rs485conf = &port->rs485; in uart_get_rs485_mode() local
3281 rs485conf->delay_rts_before_send = rs485_delay[0]; in uart_get_rs485_mode()
3282 rs485conf->delay_rts_after_send = rs485_delay[1]; in uart_get_rs485_mode()
3284 rs485conf->delay_rts_before_send = 0; in uart_get_rs485_mode()
3285 rs485conf->delay_rts_after_send = 0; in uart_get_rs485_mode()
3292 rs485conf->flags &= ~(SER_RS485_RX_DURING_TX | SER_RS485_ENABLED | in uart_get_rs485_mode()
3295 rs485conf->flags |= SER_RS485_RTS_ON_SEND; in uart_get_rs485_mode()
3298 rs485conf->flags |= SER_RS485_RX_DURING_TX; in uart_get_rs485_mode()
3301 rs485conf->flags |= SER_RS485_ENABLED; in uart_get_rs485_mode()
3304 rs485conf->flags &= ~SER_RS485_RTS_ON_SEND; in uart_get_rs485_mode()
[all …]
Dimx.c1934 struct serial_rs485 *rs485conf) in imx_uart_rs485_config() argument
1941 rs485conf->flags &= ~SER_RS485_ENABLED; in imx_uart_rs485_config()
1943 if (rs485conf->flags & SER_RS485_ENABLED) { in imx_uart_rs485_config()
1946 !(rs485conf->flags & SER_RS485_RTS_ON_SEND)) in imx_uart_rs485_config()
1947 rs485conf->flags |= SER_RS485_RX_DURING_TX; in imx_uart_rs485_config()
1951 if (rs485conf->flags & SER_RS485_RTS_AFTER_SEND) in imx_uart_rs485_config()
1959 if (!(rs485conf->flags & SER_RS485_ENABLED) || in imx_uart_rs485_config()
1960 rs485conf->flags & SER_RS485_RX_DURING_TX) in imx_uart_rs485_config()
1963 port->rs485 = *rs485conf; in imx_uart_rs485_config()
Datmel_serial.c288 struct serial_rs485 *rs485conf) in atmel_config_rs485() argument
298 if (rs485conf->flags & SER_RS485_ENABLED) { in atmel_config_rs485()
300 if (rs485conf->flags & SER_RS485_RX_DURING_TX) in atmel_config_rs485()
306 rs485conf->delay_rts_after_send); in atmel_config_rs485()