Lines Matching refs:rs485conf
152 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()
250 if (rs485conf->flags & SER_RS485_RTS_ON_SEND) in stm32_usart_config_rs485()
259 rs485conf->flags |= SER_RS485_RX_DURING_TX; in stm32_usart_config_rs485()
282 struct serial_rs485 *rs485conf = &port->rs485; in stm32_usart_init_rs485() local
284 rs485conf->flags = 0; in stm32_usart_init_rs485()
285 rs485conf->delay_rts_before_send = 0; in stm32_usart_init_rs485()
286 rs485conf->delay_rts_after_send = 0; in stm32_usart_init_rs485()
1160 struct serial_rs485 *rs485conf = &port->rs485; in stm32_usart_set_termios() local
1358 if (rs485conf->flags & SER_RS485_ENABLED) { in stm32_usart_set_termios()
1360 rs485conf->delay_rts_before_send, in stm32_usart_set_termios()
1361 rs485conf->delay_rts_after_send, in stm32_usart_set_termios()
1363 if (rs485conf->flags & SER_RS485_RTS_ON_SEND) { in stm32_usart_set_termios()
1365 rs485conf->flags &= ~SER_RS485_RTS_AFTER_SEND; in stm32_usart_set_termios()
1368 rs485conf->flags |= SER_RS485_RTS_AFTER_SEND; in stm32_usart_set_termios()