Lines Matching refs:rs485

1349 			struct serial_rs485 *rs485)  in lpuart_config_rs485()  argument
1359 rs485->delay_rts_before_send = 0; in lpuart_config_rs485()
1360 rs485->delay_rts_after_send = 0; in lpuart_config_rs485()
1361 rs485->flags &= ~SER_RS485_RX_DURING_TX; in lpuart_config_rs485()
1363 if (rs485->flags & SER_RS485_ENABLED) { in lpuart_config_rs485()
1372 if (!(rs485->flags & (SER_RS485_RTS_ON_SEND | in lpuart_config_rs485()
1374 rs485->flags |= SER_RS485_RTS_ON_SEND; in lpuart_config_rs485()
1376 if (rs485->flags & SER_RS485_RTS_ON_SEND && in lpuart_config_rs485()
1377 rs485->flags & SER_RS485_RTS_AFTER_SEND) in lpuart_config_rs485()
1378 rs485->flags &= ~SER_RS485_RTS_AFTER_SEND; in lpuart_config_rs485()
1386 if (rs485->flags & SER_RS485_RTS_ON_SEND) in lpuart_config_rs485()
1388 else if (rs485->flags & SER_RS485_RTS_AFTER_SEND) in lpuart_config_rs485()
1393 sport->port.rs485 = *rs485; in lpuart_config_rs485()
1400 struct serial_rs485 *rs485) in lpuart32_config_rs485() argument
1410 rs485->delay_rts_before_send = 0; in lpuart32_config_rs485()
1411 rs485->delay_rts_after_send = 0; in lpuart32_config_rs485()
1412 rs485->flags &= ~SER_RS485_RX_DURING_TX; in lpuart32_config_rs485()
1414 if (rs485->flags & SER_RS485_ENABLED) { in lpuart32_config_rs485()
1423 if (!(rs485->flags & (SER_RS485_RTS_ON_SEND | in lpuart32_config_rs485()
1425 rs485->flags |= SER_RS485_RTS_ON_SEND; in lpuart32_config_rs485()
1427 if (rs485->flags & SER_RS485_RTS_ON_SEND && in lpuart32_config_rs485()
1428 rs485->flags & SER_RS485_RTS_AFTER_SEND) in lpuart32_config_rs485()
1429 rs485->flags &= ~SER_RS485_RTS_AFTER_SEND; in lpuart32_config_rs485()
1437 if (rs485->flags & SER_RS485_RTS_ON_SEND) in lpuart32_config_rs485()
1439 else if (rs485->flags & SER_RS485_RTS_AFTER_SEND) in lpuart32_config_rs485()
1444 sport->port.rs485 = *rs485; in lpuart32_config_rs485()
1896 if (sport->port.rs485.flags & SER_RS485_ENABLED) in lpuart_set_termios()
2132 if (sport->port.rs485.flags & SER_RS485_ENABLED) in lpuart32_set_termios()
2753 if (sport->port.rs485.flags & SER_RS485_RX_DURING_TX) in lpuart_probe()
2756 if (sport->port.rs485.delay_rts_before_send || in lpuart_probe()
2757 sport->port.rs485.delay_rts_after_send) in lpuart_probe()
2760 sport->port.rs485_config(&sport->port, &sport->port.rs485); in lpuart_probe()