Home
last modified time | relevance | path

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

/drivers/usb/serial/
Dgeneric.c502 struct async_icount cnow; in usb_serial_generic_msr_changed() local
514 cnow = port->icount; /* atomic copy*/ in usb_serial_generic_msr_changed()
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()
530 struct async_icount cnow; in usb_serial_generic_tiocmiwait() local
535 cnow = port->icount; /* atomic copy */ in usb_serial_generic_tiocmiwait()
539 usb_serial_generic_msr_changed(tty, arg, &cnow)); in usb_serial_generic_tiocmiwait()
[all …]
/drivers/tty/
Damiserial.c1086 struct async_icount cnow; in rs_get_icount() local
1090 cnow = info->icount; in rs_get_icount()
1092 icount->cts = cnow.cts; in rs_get_icount()
1093 icount->dsr = cnow.dsr; in rs_get_icount()
1094 icount->rng = cnow.rng; in rs_get_icount()
1095 icount->dcd = cnow.dcd; in rs_get_icount()
1096 icount->rx = cnow.rx; in rs_get_icount()
1097 icount->tx = cnow.tx; in rs_get_icount()
1098 icount->frame = cnow.frame; in rs_get_icount()
1099 icount->overrun = cnow.overrun; in rs_get_icount()
[all …]
Dmxser.c1215 struct async_icount cnow; in mxser_cflags_changed() local
1220 cnow = info->icount; /* atomic copy */ in mxser_cflags_changed()
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()
1272 struct async_icount cnow; in mxser_ioctl() local
1294 cnow = info->icount; /* note the counters on entry */ in mxser_ioctl()
1298 mxser_cflags_changed(info, arg, &cnow)); in mxser_ioctl()
[all …]
Dnozomi.c1696 const struct async_icount cnow = port->tty_icount; in ntty_cflags_changed() local
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()
1713 const struct async_icount cnow = port->tty_icount; in ntty_tiocgicount() local
1715 icount->cts = cnow.cts; in ntty_tiocgicount()
1716 icount->dsr = cnow.dsr; in ntty_tiocgicount()
1717 icount->rng = cnow.rng; in ntty_tiocgicount()
[all …]
Dsynclink_gt.c1045 struct mgsl_icount cnow; /* kernel counter temps */ in get_icount() local
1049 cnow = info->icount; in get_icount()
1052 icount->cts = cnow.cts; in get_icount()
1053 icount->dsr = cnow.dsr; in get_icount()
1054 icount->rng = cnow.rng; in get_icount()
1055 icount->dcd = cnow.dcd; in get_icount()
1056 icount->rx = cnow.rx; in get_icount()
1057 icount->tx = cnow.tx; in get_icount()
1058 icount->frame = cnow.frame; in get_icount()
1059 icount->overrun = cnow.overrun; in get_icount()
[all …]
/drivers/char/pcmcia/
Dsynclink_cs.c1950 struct mgsl_icount cprev, cnow; in wait_events() local
2001 cnow = 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
2077 cnow = 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
1207 memcpy(&cnow, &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()
1247 struct uart_icount cnow; in uart_get_icount() local
1254 memcpy(&cnow, &uport->icount, sizeof(struct uart_icount)); in uart_get_icount()
1258 icount->cts = cnow.cts; in uart_get_icount()
[all …]
/drivers/net/usb/
Dhso.c1543 struct uart_icount cprev, cnow; in hso_wait_modem_status() local
1559 memcpy(&cnow, &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()
1591 struct uart_icount cnow; in hso_get_count() local
1600 memcpy(&cnow, &tiocmget->icount, sizeof(struct uart_icount)); in hso_get_count()
1603 icount->cts = cnow.cts; in hso_get_count()
1604 icount->dsr = cnow.dsr; in hso_get_count()
[all …]