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) {
148 struct serial_rs485 *rs485conf = &port->rs485; in stm32_usart_rs485_rts_enable() local151 !(rs485conf->flags & SER_RS485_ENABLED)) in stm32_usart_rs485_rts_enable()154 if (rs485conf->flags & SER_RS485_RTS_ON_SEND) { in stm32_usart_rs485_rts_enable()166 struct serial_rs485 *rs485conf = &port->rs485; in stm32_usart_rs485_rts_disable() local169 !(rs485conf->flags & SER_RS485_ENABLED)) in stm32_usart_rs485_rts_disable()172 if (rs485conf->flags & SER_RS485_RTS_ON_SEND) { in stm32_usart_rs485_rts_disable()219 struct serial_rs485 *rs485conf) in stm32_usart_config_rs485() argument229 if (rs485conf->flags & SER_RS485_ENABLED) { in stm32_usart_config_rs485()242 rs485conf->delay_rts_before_send, in stm32_usart_config_rs485()243 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()440 gpiod_set_value(up->rts_gpiod, !!(rs485conf->flags & SER_RS485_RTS_AFTER_SEND)); in ar933x_uart_tx_chars()583 struct serial_rs485 *rs485conf) in ar933x_config_rs485() argument590 !!(rs485conf->flags & SER_RS485_RTS_AFTER_SEND)); in ar933x_config_rs485()
1496 struct serial_rs485 *rs485conf = &up->port.rs485; in serial_omap_probe_rs485() local1501 rs485conf->flags = 0; in serial_omap_probe_rs485()1515 rs485conf->flags |= SER_RS485_RTS_ON_SEND; in serial_omap_probe_rs485()1516 rs485conf->flags &= ~SER_RS485_RTS_AFTER_SEND; in serial_omap_probe_rs485()1518 rs485conf->flags &= ~SER_RS485_RTS_ON_SEND; in serial_omap_probe_rs485()1519 rs485conf->flags |= SER_RS485_RTS_AFTER_SEND; in serial_omap_probe_rs485()1523 gflags = rs485conf->flags & SER_RS485_RTS_AFTER_SEND ? in serial_omap_probe_rs485()1533 if (rs485conf->flags & SER_RS485_ENABLED) { in serial_omap_probe_rs485()1535 memset(rs485conf, 0, sizeof(*rs485conf)); in serial_omap_probe_rs485()
3632 struct serial_rs485 *rs485conf = &port->rs485; in uart_get_rs485_mode() local3645 rs485conf->delay_rts_before_send = rs485_delay[0]; in uart_get_rs485_mode()3646 rs485conf->delay_rts_after_send = rs485_delay[1]; in uart_get_rs485_mode()3648 rs485conf->delay_rts_before_send = 0; in uart_get_rs485_mode()3649 rs485conf->delay_rts_after_send = 0; in uart_get_rs485_mode()3652 uart_sanitize_serial_rs485_delays(port, rs485conf); in uart_get_rs485_mode()3658 rs485conf->flags &= ~(SER_RS485_RX_DURING_TX | SER_RS485_ENABLED | in uart_get_rs485_mode()3661 rs485conf->flags |= SER_RS485_RTS_ON_SEND; in uart_get_rs485_mode()3664 rs485conf->flags |= SER_RS485_RX_DURING_TX; in uart_get_rs485_mode()3667 rs485conf->flags |= SER_RS485_ENABLED; in uart_get_rs485_mode()[all …]
1956 struct serial_rs485 *rs485conf) in imx_uart_rs485_config() argument1961 if (rs485conf->flags & SER_RS485_ENABLED) { in imx_uart_rs485_config()1964 !(rs485conf->flags & SER_RS485_RTS_ON_SEND)) in imx_uart_rs485_config()1965 rs485conf->flags |= SER_RS485_RX_DURING_TX; in imx_uart_rs485_config()1969 if (rs485conf->flags & SER_RS485_RTS_AFTER_SEND) in imx_uart_rs485_config()1977 if (!(rs485conf->flags & SER_RS485_ENABLED) || in imx_uart_rs485_config()1978 rs485conf->flags & SER_RS485_RX_DURING_TX) { in imx_uart_rs485_config()
294 struct serial_rs485 *rs485conf) in atmel_config_rs485() argument304 if (rs485conf->flags & SER_RS485_ENABLED) { in atmel_config_rs485()306 if (rs485conf->flags & SER_RS485_RX_DURING_TX) in atmel_config_rs485()312 rs485conf->delay_rts_after_send); in atmel_config_rs485()