/linux-4.4.14/drivers/usb/serial/ |
D | generic.c | 468 struct async_icount cnow; in usb_serial_generic_msr_changed() local 480 cnow = port->icount; /* atomic copy*/ in usb_serial_generic_msr_changed() 483 ret = ((arg & TIOCM_RNG) && (cnow.rng != cprev->rng)) || in usb_serial_generic_msr_changed() 484 ((arg & TIOCM_DSR) && (cnow.dsr != cprev->dsr)) || in usb_serial_generic_msr_changed() 485 ((arg & TIOCM_CD) && (cnow.dcd != cprev->dcd)) || in usb_serial_generic_msr_changed() 486 ((arg & TIOCM_CTS) && (cnow.cts != cprev->cts)); in usb_serial_generic_msr_changed() 488 *cprev = cnow; in usb_serial_generic_msr_changed() 496 struct async_icount cnow; in usb_serial_generic_tiocmiwait() local 501 cnow = port->icount; /* atomic copy */ in usb_serial_generic_tiocmiwait() 505 usb_serial_generic_msr_changed(tty, arg, &cnow)); in usb_serial_generic_tiocmiwait() [all …]
|
/linux-4.4.14/net/irda/ircomm/ |
D | ircomm_tty_ioctl.c | 389 cnow = driver->icount; in ircomm_tty_ioctl() 392 if (put_user(cnow.cts, &p_cuser->cts) || in ircomm_tty_ioctl() 393 put_user(cnow.dsr, &p_cuser->dsr) || in ircomm_tty_ioctl() 394 put_user(cnow.rng, &p_cuser->rng) || in ircomm_tty_ioctl() 395 put_user(cnow.dcd, &p_cuser->dcd) || in ircomm_tty_ioctl() 396 put_user(cnow.rx, &p_cuser->rx) || in ircomm_tty_ioctl() 397 put_user(cnow.tx, &p_cuser->tx) || in ircomm_tty_ioctl() 398 put_user(cnow.frame, &p_cuser->frame) || in ircomm_tty_ioctl() 399 put_user(cnow.overrun, &p_cuser->overrun) || in ircomm_tty_ioctl() 400 put_user(cnow.parity, &p_cuser->parity) || in ircomm_tty_ioctl() [all …]
|
/linux-4.4.14/drivers/tty/ |
D | amiserial.c | 1219 struct async_icount cnow; in rs_get_icount() local 1223 cnow = info->icount; in rs_get_icount() 1225 icount->cts = cnow.cts; in rs_get_icount() 1226 icount->dsr = cnow.dsr; in rs_get_icount() 1227 icount->rng = cnow.rng; in rs_get_icount() 1228 icount->dcd = cnow.dcd; in rs_get_icount() 1229 icount->rx = cnow.rx; in rs_get_icount() 1230 icount->tx = cnow.tx; in rs_get_icount() 1231 icount->frame = cnow.frame; in rs_get_icount() 1232 icount->overrun = cnow.overrun; in rs_get_icount() [all …]
|
D | nozomi.c | 1756 const struct async_icount cnow = port->tty_icount; in ntty_cflags_changed() local 1759 ret = ((flags & TIOCM_RNG) && (cnow.rng != cprev->rng)) || in ntty_cflags_changed() 1760 ((flags & TIOCM_DSR) && (cnow.dsr != cprev->dsr)) || in ntty_cflags_changed() 1761 ((flags & TIOCM_CD) && (cnow.dcd != cprev->dcd)) || in ntty_cflags_changed() 1762 ((flags & TIOCM_CTS) && (cnow.cts != cprev->cts)); in ntty_cflags_changed() 1764 *cprev = cnow; in ntty_cflags_changed() 1773 const struct async_icount cnow = port->tty_icount; in ntty_tiocgicount() local 1775 icount->cts = cnow.cts; in ntty_tiocgicount() 1776 icount->dsr = cnow.dsr; in ntty_tiocgicount() 1777 icount->rng = cnow.rng; in ntty_tiocgicount() [all …]
|
D | mxser.c | 1645 struct async_icount cnow; in mxser_cflags_changed() local 1650 cnow = info->icount; /* atomic copy */ in mxser_cflags_changed() 1653 ret = ((arg & TIOCM_RNG) && (cnow.rng != cprev->rng)) || in mxser_cflags_changed() 1654 ((arg & TIOCM_DSR) && (cnow.dsr != cprev->dsr)) || in mxser_cflags_changed() 1655 ((arg & TIOCM_CD) && (cnow.dcd != cprev->dcd)) || in mxser_cflags_changed() 1656 ((arg & TIOCM_CTS) && (cnow.cts != cprev->cts)); in mxser_cflags_changed() 1658 *cprev = cnow; in mxser_cflags_changed() 1668 struct async_icount cnow; in mxser_ioctl() local 1740 cnow = info->icount; /* note the counters on entry */ in mxser_ioctl() 1744 mxser_cflags_changed(info, arg, &cnow)); in mxser_ioctl() [all …]
|
D | synclink_gt.c | 1108 struct mgsl_icount cnow; /* kernel counter temps */ in get_icount() local 1112 cnow = info->icount; in get_icount() 1115 icount->cts = cnow.cts; in get_icount() 1116 icount->dsr = cnow.dsr; in get_icount() 1117 icount->rng = cnow.rng; in get_icount() 1118 icount->dcd = cnow.dcd; in get_icount() 1119 icount->rx = cnow.rx; in get_icount() 1120 icount->tx = cnow.tx; in get_icount() 1121 icount->frame = cnow.frame; in get_icount() 1122 icount->overrun = cnow.overrun; in get_icount() [all …]
|
D | synclinkmp.c | 1316 struct mgsl_icount cnow; /* kernel counter temps */ in get_icount() local 1320 cnow = info->icount; in get_icount() 1323 icount->cts = cnow.cts; in get_icount() 1324 icount->dsr = cnow.dsr; in get_icount() 1325 icount->rng = cnow.rng; in get_icount() 1326 icount->dcd = cnow.dcd; in get_icount() 1327 icount->rx = cnow.rx; in get_icount() 1328 icount->tx = cnow.tx; in get_icount() 1329 icount->frame = cnow.frame; in get_icount() 1330 icount->overrun = cnow.overrun; in get_icount() [all …]
|
D | cyclades.c | 2611 struct cyclades_icount cnow; in cy_cflags_changed() local 2616 cnow = info->icount; /* atomic copy */ in cy_cflags_changed() 2619 ret = ((arg & TIOCM_RNG) && (cnow.rng != cprev->rng)) || in cy_cflags_changed() 2620 ((arg & TIOCM_DSR) && (cnow.dsr != cprev->dsr)) || in cy_cflags_changed() 2621 ((arg & TIOCM_CD) && (cnow.dcd != cprev->dcd)) || in cy_cflags_changed() 2622 ((arg & TIOCM_CTS) && (cnow.cts != cprev->cts)); in cy_cflags_changed() 2624 *cprev = cnow; in cy_cflags_changed() 2639 struct cyclades_icount cnow; /* kernel counter temps */ in cy_ioctl() local 2735 cnow = info->icount; in cy_ioctl() 2738 cy_cflags_changed(info, arg, &cnow)); in cy_ioctl() [all …]
|
D | synclink.c | 2671 struct mgsl_icount cprev, cnow; in mgsl_wait_event() local 2730 cnow = info->icount; in mgsl_wait_event() 2744 cnow.exithunt == cprev.exithunt && in mgsl_wait_event() 2745 cnow.rxidle == cprev.rxidle) { in mgsl_wait_event() 2759 (cnow.exithunt != cprev.exithunt ? MgslEvent_ExitHuntMode:0) + in mgsl_wait_event() 2760 (cnow.rxidle != cprev.rxidle ? MgslEvent_IdleReceived:0) ); in mgsl_wait_event() 2764 cprev = cnow; in mgsl_wait_event() 2792 struct mgsl_icount cprev, cnow; in modem_input_wait() local 2811 cnow = info->icount; in modem_input_wait() 2816 if (cnow.rng == cprev.rng && cnow.dsr == cprev.dsr && in modem_input_wait() [all …]
|
/linux-4.4.14/drivers/char/pcmcia/ |
D | synclink_cs.c | 1965 struct mgsl_icount cprev, cnow; in wait_events() local 2016 cnow = info->icount; in wait_events() 2030 cnow.exithunt == cprev.exithunt && in wait_events() 2031 cnow.rxidle == cprev.rxidle) { in wait_events() 2045 (cnow.exithunt != cprev.exithunt ? MgslEvent_ExitHuntMode:0) + in wait_events() 2046 (cnow.rxidle != cprev.rxidle ? MgslEvent_IdleReceived:0) ); in wait_events() 2050 cprev = cnow; in wait_events() 2073 struct mgsl_icount cprev, cnow; in modem_input_wait() local 2092 cnow = info->icount; in modem_input_wait() 2097 if (cnow.rng == cprev.rng && cnow.dsr == cprev.dsr && in modem_input_wait() [all …]
|
/linux-4.4.14/drivers/tty/serial/ |
D | serial_core.c | 1093 struct uart_icount cprev, cnow; in uart_wait_modem_status() local 1107 memcpy(&cnow, &uport->icount, sizeof(struct uart_icount)); in uart_wait_modem_status() 1112 if (((arg & TIOCM_RNG) && (cnow.rng != cprev.rng)) || in uart_wait_modem_status() 1113 ((arg & TIOCM_DSR) && (cnow.dsr != cprev.dsr)) || in uart_wait_modem_status() 1114 ((arg & TIOCM_CD) && (cnow.dcd != cprev.dcd)) || in uart_wait_modem_status() 1115 ((arg & TIOCM_CTS) && (cnow.cts != cprev.cts))) { in uart_wait_modem_status() 1128 cprev = cnow; in uart_wait_modem_status() 1146 struct uart_icount cnow; in uart_get_icount() local 1150 memcpy(&cnow, &uport->icount, sizeof(struct uart_icount)); in uart_get_icount() 1153 icount->cts = cnow.cts; in uart_get_icount() [all …]
|
/linux-4.4.14/drivers/net/usb/ |
D | hso.c | 1567 struct uart_icount cprev, cnow; in hso_wait_modem_status() local 1583 memcpy(&cnow, &tiocmget->icount, sizeof(struct uart_icount)); in hso_wait_modem_status() 1586 if (((arg & TIOCM_RNG) && (cnow.rng != cprev.rng)) || in hso_wait_modem_status() 1587 ((arg & TIOCM_DSR) && (cnow.dsr != cprev.dsr)) || in hso_wait_modem_status() 1588 ((arg & TIOCM_CD) && (cnow.dcd != cprev.dcd))) { in hso_wait_modem_status() 1598 cprev = cnow; in hso_wait_modem_status() 1615 struct uart_icount cnow; in hso_get_count() local 1624 memcpy(&cnow, &tiocmget->icount, sizeof(struct uart_icount)); in hso_get_count() 1627 icount->cts = cnow.cts; in hso_get_count() 1628 icount->dsr = cnow.dsr; in hso_get_count() [all …]
|