Home
last modified time | relevance | path

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

/linux-6.12.1/Documentation/driver-api/serial/
Dserial-rs485.rst72 struct serial_rs485 rs485conf;
75 rs485conf.flags |= SER_RS485_ENABLED;
78 rs485conf.flags |= SER_RS485_RTS_ON_SEND;
80 rs485conf.flags &= ~(SER_RS485_RTS_ON_SEND);
83 rs485conf.flags |= SER_RS485_RTS_AFTER_SEND;
85 rs485conf.flags &= ~(SER_RS485_RTS_AFTER_SEND);
88 rs485conf.delay_rts_before_send = ...;
91 rs485conf.delay_rts_after_send = ...;
94 rs485conf.flags |= SER_RS485_RX_DURING_TX;
96 if (ioctl (fd, TIOCSRS485, &rs485conf) < 0) {
/linux-6.12.1/drivers/tty/serial/
Dstm32-usart.c152 struct serial_rs485 *rs485conf = &port->rs485; in stm32_usart_rs485_rts_enable() local
155 !(rs485conf->flags & SER_RS485_ENABLED)) in stm32_usart_rs485_rts_enable()
158 if (rs485conf->flags & SER_RS485_RTS_ON_SEND) { in stm32_usart_rs485_rts_enable()
170 struct serial_rs485 *rs485conf = &port->rs485; in stm32_usart_rs485_rts_disable() local
173 !(rs485conf->flags & SER_RS485_ENABLED)) in stm32_usart_rs485_rts_disable()
176 if (rs485conf->flags & SER_RS485_RTS_ON_SEND) { in stm32_usart_rs485_rts_disable()
223 struct serial_rs485 *rs485conf) in stm32_usart_config_rs485() argument
233 if (rs485conf->flags & SER_RS485_ENABLED) { in stm32_usart_config_rs485()
246 rs485conf->delay_rts_before_send, in stm32_usart_config_rs485()
247 rs485conf->delay_rts_after_send, 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()
439 gpiod_set_value(up->rts_gpiod, !!(rs485conf->flags & SER_RS485_RTS_AFTER_SEND)); in ar933x_uart_tx_chars()
582 struct serial_rs485 *rs485conf) in ar933x_config_rs485() argument
589 !!(rs485conf->flags & SER_RS485_RTS_AFTER_SEND)); in ar933x_config_rs485()
Domap-serial.c1491 struct serial_rs485 *rs485conf = &up->port.rs485; in serial_omap_probe_rs485() local
1496 rs485conf->flags = 0; in serial_omap_probe_rs485()
1510 rs485conf->flags |= SER_RS485_RTS_ON_SEND; in serial_omap_probe_rs485()
1511 rs485conf->flags &= ~SER_RS485_RTS_AFTER_SEND; in serial_omap_probe_rs485()
1513 rs485conf->flags &= ~SER_RS485_RTS_ON_SEND; in serial_omap_probe_rs485()
1514 rs485conf->flags |= SER_RS485_RTS_AFTER_SEND; in serial_omap_probe_rs485()
1518 gflags = rs485conf->flags & SER_RS485_RTS_AFTER_SEND ? in serial_omap_probe_rs485()
1528 if (rs485conf->flags & SER_RS485_ENABLED) { in serial_omap_probe_rs485()
1530 memset(rs485conf, 0, sizeof(*rs485conf)); in serial_omap_probe_rs485()
Dserial_core.c3622 struct serial_rs485 *rs485conf = &port->rs485; in uart_get_rs485_mode() local
3635 rs485conf->delay_rts_before_send = rs485_delay[0]; in uart_get_rs485_mode()
3636 rs485conf->delay_rts_after_send = rs485_delay[1]; in uart_get_rs485_mode()
3638 rs485conf->delay_rts_before_send = 0; in uart_get_rs485_mode()
3639 rs485conf->delay_rts_after_send = 0; in uart_get_rs485_mode()
3642 uart_sanitize_serial_rs485_delays(port, rs485conf); in uart_get_rs485_mode()
3648 rs485conf->flags &= ~(SER_RS485_RX_DURING_TX | SER_RS485_ENABLED | in uart_get_rs485_mode()
3651 rs485conf->flags |= SER_RS485_RTS_ON_SEND; in uart_get_rs485_mode()
3654 rs485conf->flags |= SER_RS485_RX_DURING_TX; in uart_get_rs485_mode()
3657 rs485conf->flags |= SER_RS485_ENABLED; in uart_get_rs485_mode()
[all …]
Dimx.c2005 struct serial_rs485 *rs485conf) in imx_uart_rs485_config() argument
2010 if (rs485conf->flags & SER_RS485_ENABLED) { in imx_uart_rs485_config()
2013 !(rs485conf->flags & SER_RS485_RTS_ON_SEND)) in imx_uart_rs485_config()
2014 rs485conf->flags |= SER_RS485_RX_DURING_TX; in imx_uart_rs485_config()
2018 if (rs485conf->flags & SER_RS485_RTS_AFTER_SEND) in imx_uart_rs485_config()
2026 if (!(rs485conf->flags & SER_RS485_ENABLED) || in imx_uart_rs485_config()
2027 rs485conf->flags & SER_RS485_RX_DURING_TX) { in imx_uart_rs485_config()
Datmel_serial.c296 struct serial_rs485 *rs485conf) in atmel_config_rs485() argument
306 if (rs485conf->flags & SER_RS485_ENABLED) { in atmel_config_rs485()
308 if (rs485conf->flags & SER_RS485_RX_DURING_TX) in atmel_config_rs485()
314 rs485conf->delay_rts_after_send); in atmel_config_rs485()