Home
last modified time | relevance | path

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

/drivers/usb/serial/
Dgeneric.c456 struct async_icount cnow; in usb_serial_generic_msr_changed() local
473 cnow = port->icount; /* atomic copy*/ in usb_serial_generic_msr_changed()
476 ret = ((arg & TIOCM_RNG) && (cnow.rng != cprev->rng)) || in usb_serial_generic_msr_changed()
477 ((arg & TIOCM_DSR) && (cnow.dsr != cprev->dsr)) || in usb_serial_generic_msr_changed()
478 ((arg & TIOCM_CD) && (cnow.dcd != cprev->dcd)) || in usb_serial_generic_msr_changed()
479 ((arg & TIOCM_CTS) && (cnow.cts != cprev->cts)); in usb_serial_generic_msr_changed()
481 *cprev = cnow; in usb_serial_generic_msr_changed()
489 struct async_icount cnow; in usb_serial_generic_tiocmiwait() local
494 cnow = port->icount; /* atomic copy */ in usb_serial_generic_tiocmiwait()
498 usb_serial_generic_msr_changed(tty, arg, &cnow)); in usb_serial_generic_tiocmiwait()
[all …]
/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
2742 cnow = info->icount; in cy_ioctl()
2745 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 …]
/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 …]
/drivers/tty/serial/
Dserial_core.c1065 struct uart_icount cprev, cnow; in uart_wait_modem_status() local
1083 memcpy(&cnow, &uport->icount, sizeof(struct uart_icount)); in uart_wait_modem_status()
1088 if (((arg & TIOCM_RNG) && (cnow.rng != cprev.rng)) || in uart_wait_modem_status()
1089 ((arg & TIOCM_DSR) && (cnow.dsr != cprev.dsr)) || in uart_wait_modem_status()
1090 ((arg & TIOCM_CD) && (cnow.dcd != cprev.dcd)) || in uart_wait_modem_status()
1091 ((arg & TIOCM_CTS) && (cnow.cts != cprev.cts))) { in uart_wait_modem_status()
1104 cprev = cnow; in uart_wait_modem_status()
1123 struct uart_icount cnow; in uart_get_icount() local
1127 memcpy(&cnow, &uport->icount, sizeof(struct uart_icount)); in uart_get_icount()
1130 icount->cts = cnow.cts; in uart_get_icount()
[all …]
/drivers/net/usb/
Dhso.c1564 struct uart_icount cprev, cnow; in hso_wait_modem_status() local
1580 memcpy(&cnow, &tiocmget->icount, sizeof(struct uart_icount)); in hso_wait_modem_status()
1583 if (((arg & TIOCM_RNG) && (cnow.rng != cprev.rng)) || in hso_wait_modem_status()
1584 ((arg & TIOCM_DSR) && (cnow.dsr != cprev.dsr)) || in hso_wait_modem_status()
1585 ((arg & TIOCM_CD) && (cnow.dcd != cprev.dcd))) { in hso_wait_modem_status()
1595 cprev = cnow; in hso_wait_modem_status()
1612 struct uart_icount cnow; in hso_get_count() local
1621 memcpy(&cnow, &tiocmget->icount, sizeof(struct uart_icount)); in hso_get_count()
1624 icount->cts = cnow.cts; in hso_get_count()
1625 icount->dsr = cnow.dsr; in hso_get_count()
[all …]
/drivers/staging/sb105x/
Dsb_pci_mp.c1023 struct sb_uart_icount cprev, cnow; in mp_wait_modem_status() local
1035 memcpy(&cnow, &port->icount, sizeof(struct sb_uart_icount)); in mp_wait_modem_status()
1040 if (((arg & TIOCM_RNG) && (cnow.rng != cprev.rng)) || in mp_wait_modem_status()
1041 ((arg & TIOCM_DSR) && (cnow.dsr != cprev.dsr)) || in mp_wait_modem_status()
1042 ((arg & TIOCM_CD) && (cnow.dcd != cprev.dcd)) || in mp_wait_modem_status()
1043 ((arg & TIOCM_CTS) && (cnow.cts != cprev.cts))) { in mp_wait_modem_status()
1055 cprev = cnow; in mp_wait_modem_status()
1067 struct sb_uart_icount cnow; in mp_get_count() local
1071 memcpy(&cnow, &port->icount, sizeof(struct sb_uart_icount)); in mp_get_count()
1074 icount.cts = cnow.cts; in mp_get_count()
[all …]