Home
last modified time | relevance | path

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

/linux-6.1.9/Documentation/driver-api/serial/
Dserial-rs485.rst67 struct serial_rs485 rs485conf;
70 rs485conf.flags |= SER_RS485_ENABLED;
73 rs485conf.flags |= SER_RS485_RTS_ON_SEND;
75 rs485conf.flags &= ~(SER_RS485_RTS_ON_SEND);
78 rs485conf.flags |= SER_RS485_RTS_AFTER_SEND;
80 rs485conf.flags &= ~(SER_RS485_RTS_AFTER_SEND);
83 rs485conf.delay_rts_before_send = ...;
86 rs485conf.delay_rts_after_send = ...;
89 rs485conf.flags |= SER_RS485_RX_DURING_TX;
91 if (ioctl (fd, TIOCSRS485, &rs485conf) < 0) {
/linux-6.1.9/drivers/tty/serial/
Dstm32-usart.c148 struct serial_rs485 *rs485conf = &port->rs485; in stm32_usart_rs485_rts_enable() local
151 !(rs485conf->flags & SER_RS485_ENABLED)) in stm32_usart_rs485_rts_enable()
154 if (rs485conf->flags & SER_RS485_RTS_ON_SEND) { in stm32_usart_rs485_rts_enable()
166 struct serial_rs485 *rs485conf = &port->rs485; in stm32_usart_rs485_rts_disable() local
169 !(rs485conf->flags & SER_RS485_ENABLED)) in stm32_usart_rs485_rts_disable()
172 if (rs485conf->flags & SER_RS485_RTS_ON_SEND) { in stm32_usart_rs485_rts_disable()
219 struct serial_rs485 *rs485conf) in stm32_usart_config_rs485() argument
229 rs485conf->flags |= SER_RS485_RX_DURING_TX; in stm32_usart_config_rs485()
231 if (rs485conf->flags & SER_RS485_ENABLED) { in stm32_usart_config_rs485()
244 rs485conf->delay_rts_before_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()
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
591 !!(rs485conf->flags & SER_RS485_RTS_AFTER_SEND)); in ar933x_config_rs485()
Domap-serial.c1518 struct serial_rs485 *rs485conf = &up->port.rs485; in serial_omap_probe_rs485() local
1523 rs485conf->flags = 0; in serial_omap_probe_rs485()
1534 rs485conf->flags |= SER_RS485_RTS_ON_SEND; in serial_omap_probe_rs485()
1535 rs485conf->flags &= ~SER_RS485_RTS_AFTER_SEND; in serial_omap_probe_rs485()
1537 rs485conf->flags &= ~SER_RS485_RTS_ON_SEND; in serial_omap_probe_rs485()
1538 rs485conf->flags |= SER_RS485_RTS_AFTER_SEND; in serial_omap_probe_rs485()
1542 gflags = rs485conf->flags & SER_RS485_RTS_AFTER_SEND ? in serial_omap_probe_rs485()
1552 if (rs485conf->flags & SER_RS485_ENABLED) { in serial_omap_probe_rs485()
1554 memset(rs485conf, 0, sizeof(*rs485conf)); in serial_omap_probe_rs485()
Dserial_core.c3409 struct serial_rs485 *rs485conf = &port->rs485; in uart_get_rs485_mode() local
3417 rs485conf->delay_rts_before_send = rs485_delay[0]; in uart_get_rs485_mode()
3418 rs485conf->delay_rts_after_send = rs485_delay[1]; in uart_get_rs485_mode()
3420 rs485conf->delay_rts_before_send = 0; in uart_get_rs485_mode()
3421 rs485conf->delay_rts_after_send = 0; in uart_get_rs485_mode()
3424 uart_sanitize_serial_rs485_delays(port, rs485conf); in uart_get_rs485_mode()
3430 rs485conf->flags &= ~(SER_RS485_RX_DURING_TX | SER_RS485_ENABLED | in uart_get_rs485_mode()
3433 rs485conf->flags |= SER_RS485_RTS_ON_SEND; in uart_get_rs485_mode()
3436 rs485conf->flags |= SER_RS485_RX_DURING_TX; in uart_get_rs485_mode()
3439 rs485conf->flags |= SER_RS485_ENABLED; in uart_get_rs485_mode()
[all …]
Dimx.c1909 struct serial_rs485 *rs485conf) in imx_uart_rs485_config() argument
1914 if (rs485conf->flags & SER_RS485_ENABLED) { in imx_uart_rs485_config()
1917 !(rs485conf->flags & SER_RS485_RTS_ON_SEND)) in imx_uart_rs485_config()
1918 rs485conf->flags |= SER_RS485_RX_DURING_TX; in imx_uart_rs485_config()
1922 if (rs485conf->flags & SER_RS485_RTS_AFTER_SEND) in imx_uart_rs485_config()
1930 if (!(rs485conf->flags & SER_RS485_ENABLED) || in imx_uart_rs485_config()
1931 rs485conf->flags & SER_RS485_RX_DURING_TX) in imx_uart_rs485_config()
Datmel_serial.c295 struct serial_rs485 *rs485conf) in atmel_config_rs485() argument
305 if (rs485conf->flags & SER_RS485_ENABLED) { in atmel_config_rs485()
307 if (rs485conf->flags & SER_RS485_RX_DURING_TX) in atmel_config_rs485()
313 rs485conf->delay_rts_after_send); in atmel_config_rs485()