Lines Matching refs:rs485
195 struct serial_rs485 *rs485) in fintek_8250_rs485_config() argument
204 if (!(rs485->flags & SER_RS485_RTS_ON_SEND) == in fintek_8250_rs485_config()
205 !(rs485->flags & SER_RS485_RTS_AFTER_SEND)) in fintek_8250_rs485_config()
208 if (rs485->flags & SER_RS485_ENABLED) { in fintek_8250_rs485_config()
209 memset(rs485->padding, 0, sizeof(rs485->padding)); in fintek_8250_rs485_config()
212 memset(rs485, 0, sizeof(*rs485)); in fintek_8250_rs485_config()
215 rs485->flags &= SER_RS485_ENABLED | SER_RS485_RTS_ON_SEND | in fintek_8250_rs485_config()
220 rs485->delay_rts_before_send = 0; in fintek_8250_rs485_config()
221 rs485->delay_rts_after_send = 0; in fintek_8250_rs485_config()
224 if (rs485->delay_rts_before_send) { in fintek_8250_rs485_config()
225 rs485->delay_rts_before_send = 1; in fintek_8250_rs485_config()
229 if (rs485->delay_rts_after_send) { in fintek_8250_rs485_config()
230 rs485->delay_rts_after_send = 1; in fintek_8250_rs485_config()
234 if (rs485->flags & SER_RS485_RTS_ON_SEND) in fintek_8250_rs485_config()
244 port->rs485 = *rs485; in fintek_8250_rs485_config()