Searched refs:rs485conf (Results 1 – 7 of 7) sorted by relevance
72 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) {
152 struct serial_rs485 *rs485conf = &port->rs485; in stm32_usart_rs485_rts_enable() local155 !(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() local173 !(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() argument233 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 …]
394 struct serial_rs485 *rs485conf = &up->port.rs485; in ar933x_uart_tx_chars() local401 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() argument589 !!(rs485conf->flags & SER_RS485_RTS_AFTER_SEND)); in ar933x_config_rs485()
1491 struct serial_rs485 *rs485conf = &up->port.rs485; in serial_omap_probe_rs485() local1496 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()
3622 struct serial_rs485 *rs485conf = &port->rs485; in uart_get_rs485_mode() local3635 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 …]
2005 struct serial_rs485 *rs485conf) in imx_uart_rs485_config() argument2010 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()
296 struct serial_rs485 *rs485conf) in atmel_config_rs485() argument306 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()