Home
last modified time | relevance | path

Searched refs:cprev (Results 1 – 8 of 8) sorted by relevance

/drivers/usb/serial/
Dgeneric.c499 unsigned long arg, struct async_icount *cprev) in usb_serial_generic_msr_changed() argument
517 ret = ((arg & TIOCM_RNG) && (cnow.rng != cprev->rng)) || in usb_serial_generic_msr_changed()
518 ((arg & TIOCM_DSR) && (cnow.dsr != cprev->dsr)) || in usb_serial_generic_msr_changed()
519 ((arg & TIOCM_CD) && (cnow.dcd != cprev->dcd)) || in usb_serial_generic_msr_changed()
520 ((arg & TIOCM_CTS) && (cnow.cts != cprev->cts)); in usb_serial_generic_msr_changed()
522 *cprev = cnow; in usb_serial_generic_msr_changed()
/drivers/tty/
Damiserial.c1111 struct async_icount cprev, cnow; /* kernel counter temps */ in rs_ioctl() local
1139 cprev = info->icount; in rs_ioctl()
1147 if (cnow.rng == cprev.rng && cnow.dsr == cprev.dsr && in rs_ioctl()
1148 cnow.dcd == cprev.dcd && cnow.cts == cprev.cts) { in rs_ioctl()
1152 if ( ((arg & TIOCM_RNG) && (cnow.rng != cprev.rng)) || in rs_ioctl()
1153 ((arg & TIOCM_DSR) && (cnow.dsr != cprev.dsr)) || in rs_ioctl()
1154 ((arg & TIOCM_CD) && (cnow.dcd != cprev.dcd)) || in rs_ioctl()
1155 ((arg & TIOCM_CTS) && (cnow.cts != cprev.cts)) ) { in rs_ioctl()
1165 cprev = cnow; in rs_ioctl()
Dnozomi.c1694 struct async_icount *cprev) in ntty_cflags_changed() argument
1699 ret = ((flags & TIOCM_RNG) && (cnow.rng != cprev->rng)) in ntty_cflags_changed()
1700 || ((flags & TIOCM_DSR) && (cnow.dsr != cprev->dsr)) in ntty_cflags_changed()
1701 || ((flags & TIOCM_CD) && (cnow.dcd != cprev->dcd)) in ntty_cflags_changed()
1702 || ((flags & TIOCM_CTS) && (cnow.cts != cprev->cts)); in ntty_cflags_changed()
1704 *cprev = cnow; in ntty_cflags_changed()
1737 struct async_icount cprev = port->tty_icount; in ntty_ioctl() local
1740 ntty_cflags_changed(port, arg, &cprev)); in ntty_ioctl()
Dsynclink_gt.c2658 struct mgsl_icount cprev, cnow; in wait_mgsl_event() local
2686 cprev = info->icount; in wait_mgsl_event()
2724 cnow.exithunt == cprev.exithunt && in wait_mgsl_event()
2725 cnow.rxidle == cprev.rxidle) { in wait_mgsl_event()
2739 (cnow.exithunt != cprev.exithunt ? MgslEvent_ExitHuntMode:0) + in wait_mgsl_event()
2740 (cnow.rxidle != cprev.rxidle ? MgslEvent_IdleReceived:0) ); in wait_mgsl_event()
2744 cprev = cnow; in wait_mgsl_event()
3034 struct mgsl_icount cprev, cnow; in modem_input_wait() local
3039 cprev = info->icount; in modem_input_wait()
3058 if (cnow.rng == cprev.rng && cnow.dsr == cprev.dsr && in modem_input_wait()
[all …]
Dmxser.c1213 struct async_icount *cprev) in mxser_cflags_changed() argument
1223 ret = ((arg & TIOCM_RNG) && (cnow.rng != cprev->rng)) || in mxser_cflags_changed()
1224 ((arg & TIOCM_DSR) && (cnow.dsr != cprev->dsr)) || in mxser_cflags_changed()
1225 ((arg & TIOCM_CD) && (cnow.dcd != cprev->dcd)) || in mxser_cflags_changed()
1226 ((arg & TIOCM_CTS) && (cnow.cts != cprev->cts)); in mxser_cflags_changed()
1228 *cprev = cnow; in mxser_cflags_changed()
/drivers/char/pcmcia/
Dsynclink_cs.c1950 struct mgsl_icount cprev, cnow; in wait_events() local
1979 cprev = info->icount; in wait_events()
2015 cnow.exithunt == cprev.exithunt && in wait_events()
2016 cnow.rxidle == cprev.rxidle) { in wait_events()
2030 (cnow.exithunt != cprev.exithunt ? MgslEvent_ExitHuntMode:0) + in wait_events()
2031 (cnow.rxidle != cprev.rxidle ? MgslEvent_IdleReceived:0) ); in wait_events()
2035 cprev = cnow; in wait_events()
2058 struct mgsl_icount cprev, cnow; in modem_input_wait() local
2063 cprev = info->icount; in modem_input_wait()
2082 if (cnow.rng == cprev.rng && cnow.dsr == cprev.dsr && in modem_input_wait()
[all …]
/drivers/tty/serial/
Dserial_core.c1190 struct uart_icount cprev, cnow; in uart_wait_modem_status() local
1200 memcpy(&cprev, &uport->icount, sizeof(struct uart_icount)); in uart_wait_modem_status()
1212 if (((arg & TIOCM_RNG) && (cnow.rng != cprev.rng)) || in uart_wait_modem_status()
1213 ((arg & TIOCM_DSR) && (cnow.dsr != cprev.dsr)) || in uart_wait_modem_status()
1214 ((arg & TIOCM_CD) && (cnow.dcd != cprev.dcd)) || in uart_wait_modem_status()
1215 ((arg & TIOCM_CTS) && (cnow.cts != cprev.cts))) { in uart_wait_modem_status()
1228 cprev = cnow; in uart_wait_modem_status()
/drivers/net/usb/
Dhso.c1543 struct uart_icount cprev, cnow; in hso_wait_modem_status() local
1554 memcpy(&cprev, &tiocmget->icount, sizeof(struct uart_icount)); in hso_wait_modem_status()
1562 if (((arg & TIOCM_RNG) && (cnow.rng != cprev.rng)) || in hso_wait_modem_status()
1563 ((arg & TIOCM_DSR) && (cnow.dsr != cprev.dsr)) || in hso_wait_modem_status()
1564 ((arg & TIOCM_CD) && (cnow.dcd != cprev.dcd))) { in hso_wait_modem_status()
1574 cprev = cnow; in hso_wait_modem_status()