Home
last modified time | relevance | path

Searched refs:cnow (Results 1 – 12 of 12) sorted by relevance

/linux-4.1.27/drivers/usb/serial/
Dgeneric.c468 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.1.27/net/irda/ircomm/
Dircomm_tty_ioctl.c389 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.1.27/drivers/tty/
Damiserial.c1223 struct async_icount cnow; in rs_get_icount() local
1227 cnow = info->icount; in rs_get_icount()
1229 icount->cts = cnow.cts; in rs_get_icount()
1230 icount->dsr = cnow.dsr; in rs_get_icount()
1231 icount->rng = cnow.rng; in rs_get_icount()
1232 icount->dcd = cnow.dcd; in rs_get_icount()
1233 icount->rx = cnow.rx; in rs_get_icount()
1234 icount->tx = cnow.tx; in rs_get_icount()
1235 icount->frame = cnow.frame; in rs_get_icount()
1236 icount->overrun = cnow.overrun; in rs_get_icount()
[all …]
Dnozomi.c1756 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 …]
Dmxser.c1645 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 …]
Dsynclink_gt.c1117 struct mgsl_icount cnow; /* kernel counter temps */ in get_icount() local
1121 cnow = info->icount; in get_icount()
1124 icount->cts = cnow.cts; in get_icount()
1125 icount->dsr = cnow.dsr; in get_icount()
1126 icount->rng = cnow.rng; in get_icount()
1127 icount->dcd = cnow.dcd; in get_icount()
1128 icount->rx = cnow.rx; in get_icount()
1129 icount->tx = cnow.tx; in get_icount()
1130 icount->frame = cnow.frame; in get_icount()
1131 icount->overrun = cnow.overrun; in get_icount()
[all …]
Dsynclinkmp.c1325 struct mgsl_icount cnow; /* kernel counter temps */ in get_icount() local
1329 cnow = info->icount; in get_icount()
1332 icount->cts = cnow.cts; in get_icount()
1333 icount->dsr = cnow.dsr; in get_icount()
1334 icount->rng = cnow.rng; in get_icount()
1335 icount->dcd = cnow.dcd; in get_icount()
1336 icount->rx = cnow.rx; in get_icount()
1337 icount->tx = cnow.tx; in get_icount()
1338 icount->frame = cnow.frame; in get_icount()
1339 icount->overrun = cnow.overrun; in get_icount()
[all …]
Dcyclades.c2620 struct cyclades_icount cnow; in cy_cflags_changed() local
2625 cnow = info->icount; /* atomic copy */ in cy_cflags_changed()
2628 ret = ((arg & TIOCM_RNG) && (cnow.rng != cprev->rng)) || in cy_cflags_changed()
2629 ((arg & TIOCM_DSR) && (cnow.dsr != cprev->dsr)) || in cy_cflags_changed()
2630 ((arg & TIOCM_CD) && (cnow.dcd != cprev->dcd)) || in cy_cflags_changed()
2631 ((arg & TIOCM_CTS) && (cnow.cts != cprev->cts)); in cy_cflags_changed()
2633 *cprev = cnow; in cy_cflags_changed()
2648 struct cyclades_icount cnow; /* kernel counter temps */ in cy_ioctl() local
2744 cnow = info->icount; in cy_ioctl()
2747 cy_cflags_changed(info, arg, &cnow)); in cy_ioctl()
[all …]
Dsynclink.c2671 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.1.27/drivers/char/pcmcia/
Dsynclink_cs.c1965 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.1.27/drivers/tty/serial/
Dserial_core.c1084 struct uart_icount cprev, cnow; in uart_wait_modem_status() local
1098 memcpy(&cnow, &uport->icount, sizeof(struct uart_icount)); in uart_wait_modem_status()
1103 if (((arg & TIOCM_RNG) && (cnow.rng != cprev.rng)) || in uart_wait_modem_status()
1104 ((arg & TIOCM_DSR) && (cnow.dsr != cprev.dsr)) || in uart_wait_modem_status()
1105 ((arg & TIOCM_CD) && (cnow.dcd != cprev.dcd)) || in uart_wait_modem_status()
1106 ((arg & TIOCM_CTS) && (cnow.cts != cprev.cts))) { in uart_wait_modem_status()
1119 cprev = cnow; in uart_wait_modem_status()
1137 struct uart_icount cnow; in uart_get_icount() local
1141 memcpy(&cnow, &uport->icount, sizeof(struct uart_icount)); in uart_get_icount()
1144 icount->cts = cnow.cts; in uart_get_icount()
[all …]
/linux-4.1.27/drivers/net/usb/
Dhso.c1567 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 …]