Lines Matching full:rs485

434 	/* in rs485 mode disable transmitter */  in imx_uart_stop_tx()
435 if (port->rs485.flags & SER_RS485_ENABLED) { in imx_uart_stop_tx()
439 if (port->rs485.delay_rts_after_send > 0) { in imx_uart_stop_tx()
441 port->rs485.delay_rts_after_send); in imx_uart_stop_tx()
455 if (port->rs485.flags & SER_RS485_RTS_AFTER_SEND) in imx_uart_stop_tx()
492 if (port->rs485.flags & SER_RS485_ENABLED && in imx_uart_stop_rx()
493 port->rs485.flags & SER_RS485_RTS_ON_SEND && in imx_uart_stop_rx()
597 else if (sport->port.rs485.flags & SER_RS485_ENABLED) { in imx_uart_dma_tx_callback()
682 if (port->rs485.flags & SER_RS485_ENABLED) { in imx_uart_start_tx()
685 if (port->rs485.flags & SER_RS485_RTS_ON_SEND) in imx_uart_start_tx()
691 if (!(port->rs485.flags & SER_RS485_RX_DURING_TX) && in imx_uart_start_tx()
697 if (port->rs485.delay_rts_before_send > 0) { in imx_uart_start_tx()
699 port->rs485.delay_rts_before_send); in imx_uart_start_tx()
1074 if (!(port->rs485.flags & SER_RS485_ENABLED)) { in imx_uart_set_mctrl()
1592 if (port->rs485.flags & SER_RS485_ENABLED && in imx_uart_shutdown()
1593 port->rs485.flags & SER_RS485_RTS_ON_SEND && in imx_uart_shutdown()
1687 if (port->rs485.flags & SER_RS485_ENABLED) { in imx_uart_set_termios()
1689 * RTS is mandatory for rs485 operation, so keep in imx_uart_set_termios()
1693 if (port->rs485.flags & SER_RS485_RTS_AFTER_SEND) in imx_uart_set_termios()
2217 static const struct serial_rs485 imx_no_rs485 = {}; /* No RS485 if no RTS */
2298 /* RTS is required to control the RS485 transmitter */ in imx_uart_probe()
2339 if (sport->port.rs485.flags & SER_RS485_ENABLED && in imx_uart_probe()
2341 dev_err(&pdev->dev, "no RTS control, disabling rs485\n"); in imx_uart_probe()
2348 if (sport->port.rs485.flags & SER_RS485_ENABLED && in imx_uart_probe()
2350 (!(sport->port.rs485.flags & SER_RS485_RTS_ON_SEND) && in imx_uart_probe()
2351 !(sport->port.rs485.flags & SER_RS485_RX_DURING_TX))) in imx_uart_probe()
2366 * In case RS485 is enabled without GPIO RTS control, the UART IP in imx_uart_probe()
2375 if (sport->port.rs485.flags & SER_RS485_ENABLED && in imx_uart_probe()