/Linux-v4.19/drivers/usb/serial/ |
D | generic.c | 496 struct async_icount cnow; in usb_serial_generic_msr_changed() local 508 cnow = port->icount; /* atomic copy*/ in usb_serial_generic_msr_changed() 511 ret = ((arg & TIOCM_RNG) && (cnow.rng != cprev->rng)) || in usb_serial_generic_msr_changed() 512 ((arg & TIOCM_DSR) && (cnow.dsr != cprev->dsr)) || in usb_serial_generic_msr_changed() 513 ((arg & TIOCM_CD) && (cnow.dcd != cprev->dcd)) || in usb_serial_generic_msr_changed() 514 ((arg & TIOCM_CTS) && (cnow.cts != cprev->cts)); in usb_serial_generic_msr_changed() 516 *cprev = cnow; in usb_serial_generic_msr_changed() 524 struct async_icount cnow; in usb_serial_generic_tiocmiwait() local 529 cnow = port->icount; /* atomic copy */ in usb_serial_generic_tiocmiwait() 533 usb_serial_generic_msr_changed(tty, arg, &cnow)); in usb_serial_generic_tiocmiwait() [all …]
|
/Linux-v4.19/drivers/tty/ |
D | amiserial.c | 1193 struct async_icount cnow; in rs_get_icount() local 1197 cnow = info->icount; in rs_get_icount() 1199 icount->cts = cnow.cts; in rs_get_icount() 1200 icount->dsr = cnow.dsr; in rs_get_icount() 1201 icount->rng = cnow.rng; in rs_get_icount() 1202 icount->dcd = cnow.dcd; in rs_get_icount() 1203 icount->rx = cnow.rx; in rs_get_icount() 1204 icount->tx = cnow.tx; in rs_get_icount() 1205 icount->frame = cnow.frame; in rs_get_icount() 1206 icount->overrun = cnow.overrun; in rs_get_icount() [all …]
|
D | nozomi.c | 1722 const struct async_icount cnow = port->tty_icount; in ntty_cflags_changed() local 1725 ret = ((flags & TIOCM_RNG) && (cnow.rng != cprev->rng)) in ntty_cflags_changed() 1726 || ((flags & TIOCM_DSR) && (cnow.dsr != cprev->dsr)) in ntty_cflags_changed() 1727 || ((flags & TIOCM_CD) && (cnow.dcd != cprev->dcd)) in ntty_cflags_changed() 1728 || ((flags & TIOCM_CTS) && (cnow.cts != cprev->cts)); in ntty_cflags_changed() 1730 *cprev = cnow; in ntty_cflags_changed() 1739 const struct async_icount cnow = port->tty_icount; in ntty_tiocgicount() local 1741 icount->cts = cnow.cts; in ntty_tiocgicount() 1742 icount->dsr = cnow.dsr; in ntty_tiocgicount() 1743 icount->rng = cnow.rng; in ntty_tiocgicount() [all …]
|
D | mxser.c | 1641 struct async_icount cnow; in mxser_cflags_changed() local 1646 cnow = info->icount; /* atomic copy */ in mxser_cflags_changed() 1649 ret = ((arg & TIOCM_RNG) && (cnow.rng != cprev->rng)) || in mxser_cflags_changed() 1650 ((arg & TIOCM_DSR) && (cnow.dsr != cprev->dsr)) || in mxser_cflags_changed() 1651 ((arg & TIOCM_CD) && (cnow.dcd != cprev->dcd)) || in mxser_cflags_changed() 1652 ((arg & TIOCM_CTS) && (cnow.cts != cprev->cts)); in mxser_cflags_changed() 1654 *cprev = cnow; in mxser_cflags_changed() 1664 struct async_icount cnow; in mxser_ioctl() local 1735 cnow = info->icount; /* note the counters on entry */ in mxser_ioctl() 1739 mxser_cflags_changed(info, arg, &cnow)); in mxser_ioctl() [all …]
|
D | synclink_gt.c | 1102 struct mgsl_icount cnow; /* kernel counter temps */ in get_icount() local 1106 cnow = info->icount; in get_icount() 1109 icount->cts = cnow.cts; in get_icount() 1110 icount->dsr = cnow.dsr; in get_icount() 1111 icount->rng = cnow.rng; in get_icount() 1112 icount->dcd = cnow.dcd; in get_icount() 1113 icount->rx = cnow.rx; in get_icount() 1114 icount->tx = cnow.tx; in get_icount() 1115 icount->frame = cnow.frame; in get_icount() 1116 icount->overrun = cnow.overrun; in get_icount() [all …]
|
D | synclinkmp.c | 1311 struct mgsl_icount cnow; /* kernel counter temps */ in get_icount() local 1315 cnow = info->icount; in get_icount() 1318 icount->cts = cnow.cts; in get_icount() 1319 icount->dsr = cnow.dsr; in get_icount() 1320 icount->rng = cnow.rng; in get_icount() 1321 icount->dcd = cnow.dcd; in get_icount() 1322 icount->rx = cnow.rx; in get_icount() 1323 icount->tx = cnow.tx; in get_icount() 1324 icount->frame = cnow.frame; in get_icount() 1325 icount->overrun = cnow.overrun; in get_icount() [all …]
|
D | cyclades.c | 2595 struct cyclades_icount cnow; in cy_cflags_changed() local 2600 cnow = info->icount; /* atomic copy */ in cy_cflags_changed() 2603 ret = ((arg & TIOCM_RNG) && (cnow.rng != cprev->rng)) || in cy_cflags_changed() 2604 ((arg & TIOCM_DSR) && (cnow.dsr != cprev->dsr)) || in cy_cflags_changed() 2605 ((arg & TIOCM_CD) && (cnow.dcd != cprev->dcd)) || in cy_cflags_changed() 2606 ((arg & TIOCM_CTS) && (cnow.cts != cprev->cts)); in cy_cflags_changed() 2608 *cprev = cnow; in cy_cflags_changed() 2623 struct cyclades_icount cnow; /* kernel counter temps */ in cy_ioctl() local 2719 cnow = info->icount; in cy_ioctl() 2722 cy_cflags_changed(info, arg, &cnow)); in cy_ioctl() [all …]
|
D | synclink.c | 2660 struct mgsl_icount cprev, cnow; in mgsl_wait_event() local 2719 cnow = info->icount; in mgsl_wait_event() 2733 cnow.exithunt == cprev.exithunt && in mgsl_wait_event() 2734 cnow.rxidle == cprev.rxidle) { in mgsl_wait_event() 2748 (cnow.exithunt != cprev.exithunt ? MgslEvent_ExitHuntMode:0) + in mgsl_wait_event() 2749 (cnow.rxidle != cprev.rxidle ? MgslEvent_IdleReceived:0) ); in mgsl_wait_event() 2753 cprev = cnow; in mgsl_wait_event() 2781 struct mgsl_icount cprev, cnow; in modem_input_wait() local 2800 cnow = info->icount; in modem_input_wait() 2805 if (cnow.rng == cprev.rng && cnow.dsr == cprev.dsr && in modem_input_wait() [all …]
|
/Linux-v4.19/drivers/char/pcmcia/ |
D | synclink_cs.c | 1958 struct mgsl_icount cprev, cnow; in wait_events() local 2009 cnow = info->icount; in wait_events() 2023 cnow.exithunt == cprev.exithunt && in wait_events() 2024 cnow.rxidle == cprev.rxidle) { in wait_events() 2038 (cnow.exithunt != cprev.exithunt ? MgslEvent_ExitHuntMode:0) + in wait_events() 2039 (cnow.rxidle != cprev.rxidle ? MgslEvent_IdleReceived:0) ); in wait_events() 2043 cprev = cnow; in wait_events() 2066 struct mgsl_icount cprev, cnow; in modem_input_wait() local 2085 cnow = info->icount; in modem_input_wait() 2090 if (cnow.rng == cprev.rng && cnow.dsr == cprev.dsr && in modem_input_wait() [all …]
|
/Linux-v4.19/drivers/tty/serial/ |
D | serial_core.c | 1187 struct uart_icount cprev, cnow; in uart_wait_modem_status() local 1204 memcpy(&cnow, &uport->icount, sizeof(struct uart_icount)); in uart_wait_modem_status() 1209 if (((arg & TIOCM_RNG) && (cnow.rng != cprev.rng)) || in uart_wait_modem_status() 1210 ((arg & TIOCM_DSR) && (cnow.dsr != cprev.dsr)) || in uart_wait_modem_status() 1211 ((arg & TIOCM_CD) && (cnow.dcd != cprev.dcd)) || in uart_wait_modem_status() 1212 ((arg & TIOCM_CTS) && (cnow.cts != cprev.cts))) { in uart_wait_modem_status() 1225 cprev = cnow; in uart_wait_modem_status() 1244 struct uart_icount cnow; in uart_get_icount() local 1251 memcpy(&cnow, &uport->icount, sizeof(struct uart_icount)); in uart_get_icount() 1255 icount->cts = cnow.cts; in uart_get_icount() [all …]
|
/Linux-v4.19/drivers/net/usb/ |
D | hso.c | 1559 struct uart_icount cprev, cnow; in hso_wait_modem_status() local 1575 memcpy(&cnow, &tiocmget->icount, sizeof(struct uart_icount)); in hso_wait_modem_status() 1578 if (((arg & TIOCM_RNG) && (cnow.rng != cprev.rng)) || in hso_wait_modem_status() 1579 ((arg & TIOCM_DSR) && (cnow.dsr != cprev.dsr)) || in hso_wait_modem_status() 1580 ((arg & TIOCM_CD) && (cnow.dcd != cprev.dcd))) { in hso_wait_modem_status() 1590 cprev = cnow; in hso_wait_modem_status() 1607 struct uart_icount cnow; in hso_get_count() local 1616 memcpy(&cnow, &tiocmget->icount, sizeof(struct uart_icount)); in hso_get_count() 1619 icount->cts = cnow.cts; in hso_get_count() 1620 icount->dsr = cnow.dsr; in hso_get_count() [all …]
|