/drivers/tty/serial/8250/ |
D | 8250_lpc18xx.c | 40 struct serial_rs485 *rs485) in lpc18xx_rs485_config() argument 47 if (rs485->flags & SER_RS485_ENABLED) in lpc18xx_rs485_config() 48 memset(rs485->padding, 0, sizeof(rs485->padding)); in lpc18xx_rs485_config() 50 memset(rs485, 0, sizeof(*rs485)); in lpc18xx_rs485_config() 52 rs485->flags &= SER_RS485_ENABLED | SER_RS485_RTS_ON_SEND | in lpc18xx_rs485_config() 55 if (rs485->flags & SER_RS485_ENABLED) { in lpc18xx_rs485_config() 59 if (rs485->flags & SER_RS485_RTS_ON_SEND) { in lpc18xx_rs485_config() 61 rs485->flags &= ~SER_RS485_RTS_AFTER_SEND; in lpc18xx_rs485_config() 63 rs485->flags |= SER_RS485_RTS_AFTER_SEND; in lpc18xx_rs485_config() 67 if (rs485->delay_rts_after_send) { in lpc18xx_rs485_config() [all …]
|
D | 8250_fintek.c | 92 struct serial_rs485 *rs485) in fintek_8250_rs485_config() argument 100 if (rs485->flags & SER_RS485_ENABLED) in fintek_8250_rs485_config() 101 memset(rs485->padding, 0, sizeof(rs485->padding)); in fintek_8250_rs485_config() 103 memset(rs485, 0, sizeof(*rs485)); in fintek_8250_rs485_config() 105 rs485->flags &= SER_RS485_ENABLED | SER_RS485_RTS_ON_SEND | in fintek_8250_rs485_config() 108 if (rs485->delay_rts_before_send) { in fintek_8250_rs485_config() 109 rs485->delay_rts_before_send = 1; in fintek_8250_rs485_config() 113 if (rs485->delay_rts_after_send) { in fintek_8250_rs485_config() 114 rs485->delay_rts_after_send = 1; in fintek_8250_rs485_config() 118 if ((!!(rs485->flags & SER_RS485_RTS_ON_SEND)) == in fintek_8250_rs485_config() [all …]
|
D | 8250_pci.c | 1546 struct serial_rs485 *rs485) in pci_fintek_rs485_config() argument 1555 if (!rs485) in pci_fintek_rs485_config() 1556 rs485 = &port->rs485; in pci_fintek_rs485_config() 1557 else if (rs485->flags & SER_RS485_ENABLED) in pci_fintek_rs485_config() 1558 memset(rs485->padding, 0, sizeof(rs485->padding)); in pci_fintek_rs485_config() 1560 memset(rs485, 0, sizeof(*rs485)); in pci_fintek_rs485_config() 1563 rs485->flags &= SER_RS485_ENABLED | SER_RS485_RTS_ON_SEND; in pci_fintek_rs485_config() 1565 if (rs485->flags & SER_RS485_ENABLED) { in pci_fintek_rs485_config() 1569 if (rs485->flags & SER_RS485_RTS_ON_SEND) { in pci_fintek_rs485_config() 1577 rs485->delay_rts_after_send = 0; in pci_fintek_rs485_config() [all …]
|
D | 8250_core.c | 990 uart->port.rs485 = up->port.rs485; in serial8250_register_8250_port()
|
/drivers/tty/serial/ |
D | omap-serial.c | 303 if (port->rs485.flags & SER_RS485_ENABLED) { in serial_omap_stop_tx() 314 res = (port->rs485.flags & SER_RS485_RTS_AFTER_SEND) ? in serial_omap_stop_tx() 317 if (port->rs485.delay_rts_after_send > 0) in serial_omap_stop_tx() 319 port->rs485.delay_rts_after_send); in serial_omap_stop_tx() 342 if ((port->rs485.flags & SER_RS485_ENABLED) && in serial_omap_stop_tx() 343 !(port->rs485.flags & SER_RS485_RX_DURING_TX)) { in serial_omap_stop_tx() 418 if (port->rs485.flags & SER_RS485_ENABLED) { in serial_omap_start_tx() 424 res = (port->rs485.flags & SER_RS485_RTS_ON_SEND) ? 1 : 0; in serial_omap_start_tx() 427 if (port->rs485.delay_rts_before_send > 0) in serial_omap_start_tx() 428 mdelay(port->rs485.delay_rts_before_send); in serial_omap_start_tx() [all …]
|
D | sc16is7xx.c | 742 if ((port->rs485.flags & SER_RS485_ENABLED) && in sc16is7xx_tx_proc() 743 (port->rs485.delay_rts_before_send > 0)) in sc16is7xx_tx_proc() 744 msleep(port->rs485.delay_rts_before_send); in sc16is7xx_tx_proc() 754 struct serial_rs485 *rs485 = &port->rs485; in sc16is7xx_reconf_rs485() local 758 if (rs485->flags & SER_RS485_ENABLED) { in sc16is7xx_reconf_rs485() 761 if (rs485->flags & SER_RS485_RTS_AFTER_SEND) in sc16is7xx_reconf_rs485() 952 struct serial_rs485 *rs485) in sc16is7xx_config_rs485() argument 957 if (rs485->flags & SER_RS485_ENABLED) { in sc16is7xx_config_rs485() 960 rts_during_rx = rs485->flags & SER_RS485_RTS_AFTER_SEND; in sc16is7xx_config_rs485() 961 rts_during_tx = rs485->flags & SER_RS485_RTS_ON_SEND; in sc16is7xx_config_rs485() [all …]
|
D | mcf.c | 106 if (port->rs485.flags & SER_RS485_ENABLED) { in mcf_start_tx() 260 if (port->rs485.flags & SER_RS485_ENABLED) { in mcf_set_termios() 361 if (port->rs485.flags & SER_RS485_ENABLED) in mcf_tx_chars() 441 static int mcf_config_rs485(struct uart_port *port, struct serial_rs485 *rs485) in mcf_config_rs485() argument 448 if (rs485->flags & SER_RS485_ENABLED) { in mcf_config_rs485() 458 port->rs485 = *rs485; in mcf_config_rs485()
|
D | max310x.c | 889 struct serial_rs485 *rs485) in max310x_rs485_config() argument 893 if (rs485->delay_rts_before_send > 0x0f || in max310x_rs485_config() 894 rs485->delay_rts_after_send > 0x0f) in max310x_rs485_config() 897 val = (rs485->delay_rts_before_send << 4) | in max310x_rs485_config() 898 rs485->delay_rts_after_send; in max310x_rs485_config() 900 if (rs485->flags & SER_RS485_ENABLED) { in max310x_rs485_config() 914 rs485->flags &= SER_RS485_RTS_ON_SEND | SER_RS485_ENABLED; in max310x_rs485_config() 915 memset(rs485->padding, 0, sizeof(rs485->padding)); in max310x_rs485_config() 916 port->rs485 = *rs485; in max310x_rs485_config()
|
D | crisv10.c | 1340 info->rs485 = *r; in e100_enable_rs485() 1343 if (info->rs485.delay_rts_before_send >= 1000) in e100_enable_rs485() 1344 info->rs485.delay_rts_before_send = 1000; in e100_enable_rs485() 1360 int old_value = (info->rs485.flags) & SER_RS485_ENABLED; in e100_write_rs485() 1367 info->rs485.flags |= SER_RS485_ENABLED; in e100_write_rs485() 1371 info->rs485.flags &= ~(SER_RS485_ENABLED); in e100_write_rs485() 1382 e100_rts(info, (info->rs485.flags & SER_RS485_RTS_AFTER_SEND)); in rs485_toggle_rts_timer_function() 1560 if (info->rs485.flags & SER_RS485_ENABLED) { in transmit_chars_dma() 2432 if (info->rs485.flags & SER_RS485_ENABLED) { in handle_ser_tx_interrupt() 3023 if (info->rs485.flags & SER_RS485_ENABLED) in rs_write() [all …]
|
D | atmel_serial.c | 244 return (port->rs485.flags & SER_RS485_ENABLED) && in atmel_uart_is_half_duplex() 245 !(port->rs485.flags & SER_RS485_RX_DURING_TX); in atmel_uart_is_half_duplex() 354 port->rs485 = *rs485conf; in atmel_config_rs485() 399 if (port->rs485.flags & SER_RS485_ENABLED) { in atmel_set_mctrl() 401 port->rs485.delay_rts_after_send); in atmel_set_mctrl() 1742 struct serial_rs485 *rs485conf = &port->rs485; in atmel_init_rs485() 1759 port->rs485 = pdata->rs485; in atmel_init_rs485() 2230 if (port->rs485.flags & SER_RS485_ENABLED) { in atmel_set_termios() 2232 port->rs485.delay_rts_after_send); in atmel_set_termios() 2502 if (port->rs485.flags & SER_RS485_ENABLED) in atmel_init_port() [all …]
|
D | imx.c | 375 if (port->rs485.flags & SER_RS485_ENABLED && in imx_stop_tx() 378 if (port->rs485.flags & SER_RS485_RTS_AFTER_SEND) in imx_stop_tx() 581 if (port->rs485.flags & SER_RS485_ENABLED) { in imx_start_tx() 584 if (port->rs485.flags & SER_RS485_RTS_ON_SEND) in imx_start_tx() 826 if (!(port->rs485.flags & SER_RS485_ENABLED)) { in imx_set_mctrl() 1312 if (port->rs485.flags & SER_RS485_ENABLED) { in imx_set_termios() 1318 if (!(port->rs485.flags & in imx_set_termios() 1327 } else if (port->rs485.flags & SER_RS485_ENABLED) in imx_set_termios() 1329 if (!(port->rs485.flags & SER_RS485_RTS_AFTER_SEND)) in imx_set_termios() 1579 port->rs485 = *rs485conf; in imx_rs485_config() [all …]
|
D | crisv10.h | 113 struct serial_rs485 rs485; /* RS-485 support */ member
|
D | serial_core.c | 1172 struct serial_rs485 __user *rs485) in uart_get_rs485_config() argument 1178 aux = port->rs485; in uart_get_rs485_config() 1181 if (copy_to_user(rs485, &aux, sizeof(aux))) in uart_get_rs485_config() 1190 struct serial_rs485 rs485; in uart_set_rs485_config() local 1197 if (copy_from_user(&rs485, rs485_user, sizeof(*rs485_user))) in uart_set_rs485_config() 1201 ret = port->rs485_config(port, &rs485); in uart_set_rs485_config() 1206 if (copy_to_user(rs485_user, &port->rs485, sizeof(port->rs485))) in uart_set_rs485_config()
|
/drivers/staging/comedi/ |
D | Kconfig | 868 digital interface rs485 boards PCI-HPDI32 and PMC-HPDI32.
|