Home
last modified time | relevance | path

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

/linux-5.19.10/Documentation/driver-api/serial/ !
Dserial-rs485.rst63 struct serial_rs485 rs485conf;
66 rs485conf.flags |= SER_RS485_ENABLED;
69 rs485conf.flags |= SER_RS485_RTS_ON_SEND;
71 rs485conf.flags &= ~(SER_RS485_RTS_ON_SEND);
74 rs485conf.flags |= SER_RS485_RTS_AFTER_SEND;
76 rs485conf.flags &= ~(SER_RS485_RTS_AFTER_SEND);
79 rs485conf.delay_rts_before_send = ...;
82 rs485conf.delay_rts_after_send = ...;
85 rs485conf.flags |= SER_RS485_RX_DURING_TX;
87 if (ioctl (fd, TIOCSRS485, &rs485conf) < 0) {
/linux-5.19.10/drivers/tty/serial/ !
Dstm32-usart.c103 struct serial_rs485 *rs485conf) in stm32_usart_config_rs485() argument
113 rs485conf->flags |= SER_RS485_RX_DURING_TX; in stm32_usart_config_rs485()
115 if (rs485conf->flags & SER_RS485_ENABLED) { in stm32_usart_config_rs485()
128 rs485conf->delay_rts_before_send, in stm32_usart_config_rs485()
129 rs485conf->delay_rts_after_send, in stm32_usart_config_rs485()
132 if (rs485conf->flags & SER_RS485_RTS_ON_SEND) in stm32_usart_config_rs485()
154 struct serial_rs485 *rs485conf = &port->rs485; in stm32_usart_init_rs485() local
156 rs485conf->flags = 0; in stm32_usart_init_rs485()
157 rs485conf->delay_rts_before_send = 0; in stm32_usart_init_rs485()
158 rs485conf->delay_rts_after_send = 0; in stm32_usart_init_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()
594 port->rs485 = *rs485conf; in ar933x_config_rs485()
Domap-serial.c1519 struct serial_rs485 *rs485conf = &up->port.rs485; in serial_omap_probe_rs485() local
1524 rs485conf->flags = 0; in serial_omap_probe_rs485()
1535 rs485conf->flags |= SER_RS485_RTS_ON_SEND; in serial_omap_probe_rs485()
1536 rs485conf->flags &= ~SER_RS485_RTS_AFTER_SEND; in serial_omap_probe_rs485()
1538 rs485conf->flags &= ~SER_RS485_RTS_ON_SEND; in serial_omap_probe_rs485()
1539 rs485conf->flags |= SER_RS485_RTS_AFTER_SEND; in serial_omap_probe_rs485()
1543 gflags = rs485conf->flags & SER_RS485_RTS_AFTER_SEND ? in serial_omap_probe_rs485()
Dserial_core.c3277 struct serial_rs485 *rs485conf = &port->rs485; in uart_get_rs485_mode() local
3285 rs485conf->delay_rts_before_send = rs485_delay[0]; in uart_get_rs485_mode()
3286 rs485conf->delay_rts_after_send = rs485_delay[1]; in uart_get_rs485_mode()
3288 rs485conf->delay_rts_before_send = 0; in uart_get_rs485_mode()
3289 rs485conf->delay_rts_after_send = 0; in uart_get_rs485_mode()
3296 rs485conf->flags &= ~(SER_RS485_RX_DURING_TX | SER_RS485_ENABLED | in uart_get_rs485_mode()
3299 rs485conf->flags |= SER_RS485_RTS_ON_SEND; in uart_get_rs485_mode()
3302 rs485conf->flags |= SER_RS485_RX_DURING_TX; in uart_get_rs485_mode()
3305 rs485conf->flags |= SER_RS485_ENABLED; in uart_get_rs485_mode()
3308 rs485conf->flags &= ~SER_RS485_RTS_ON_SEND; in uart_get_rs485_mode()
[all …]
Dimx.c1911 struct serial_rs485 *rs485conf) in imx_uart_rs485_config() argument
1918 rs485conf->flags &= ~SER_RS485_ENABLED; in imx_uart_rs485_config()
1920 if (rs485conf->flags & SER_RS485_ENABLED) { in imx_uart_rs485_config()
1923 !(rs485conf->flags & SER_RS485_RTS_ON_SEND)) in imx_uart_rs485_config()
1924 rs485conf->flags |= SER_RS485_RX_DURING_TX; in imx_uart_rs485_config()
1928 if (rs485conf->flags & SER_RS485_RTS_AFTER_SEND) in imx_uart_rs485_config()
1936 if (!(rs485conf->flags & SER_RS485_ENABLED) || in imx_uart_rs485_config()
1937 rs485conf->flags & SER_RS485_RX_DURING_TX) in imx_uart_rs485_config()
Datmel_serial.c289 struct serial_rs485 *rs485conf) in atmel_config_rs485() argument
299 if (rs485conf->flags & SER_RS485_ENABLED) { in atmel_config_rs485()
301 if (rs485conf->flags & SER_RS485_RX_DURING_TX) in atmel_config_rs485()
307 rs485conf->delay_rts_after_send); in atmel_config_rs485()