Searched refs:cnow (Results 1 – 11 of 11) sorted by relevance
/drivers/usb/serial/ |
D | generic.c | 495 struct async_icount cnow; in usb_serial_generic_msr_changed() local 507 cnow = port->icount; /* atomic copy*/ in usb_serial_generic_msr_changed() 510 ret = ((arg & TIOCM_RNG) && (cnow.rng != cprev->rng)) || in usb_serial_generic_msr_changed() 511 ((arg & TIOCM_DSR) && (cnow.dsr != cprev->dsr)) || in usb_serial_generic_msr_changed() 512 ((arg & TIOCM_CD) && (cnow.dcd != cprev->dcd)) || in usb_serial_generic_msr_changed() 513 ((arg & TIOCM_CTS) && (cnow.cts != cprev->cts)); in usb_serial_generic_msr_changed() 515 *cprev = cnow; in usb_serial_generic_msr_changed() 523 struct async_icount cnow; in usb_serial_generic_tiocmiwait() local 528 cnow = port->icount; /* atomic copy */ in usb_serial_generic_tiocmiwait() 532 usb_serial_generic_msr_changed(tty, arg, &cnow)); in usb_serial_generic_tiocmiwait() [all …]
|
/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 | 1759 const struct async_icount cnow = port->tty_icount; in ntty_cflags_changed() local 1762 ret = ((flags & TIOCM_RNG) && (cnow.rng != cprev->rng)) || in ntty_cflags_changed() 1763 ((flags & TIOCM_DSR) && (cnow.dsr != cprev->dsr)) || in ntty_cflags_changed() 1764 ((flags & TIOCM_CD) && (cnow.dcd != cprev->dcd)) || in ntty_cflags_changed() 1765 ((flags & TIOCM_CTS) && (cnow.cts != cprev->cts)); in ntty_cflags_changed() 1767 *cprev = cnow; in ntty_cflags_changed() 1776 const struct async_icount cnow = port->tty_icount; in ntty_tiocgicount() local 1778 icount->cts = cnow.cts; in ntty_tiocgicount() 1779 icount->dsr = cnow.dsr; in ntty_tiocgicount() 1780 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 | 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 | 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 | 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 …]
|
/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 …]
|
/drivers/tty/serial/ |
D | serial_core.c | 1096 struct uart_icount cprev, cnow; in uart_wait_modem_status() local 1110 memcpy(&cnow, &uport->icount, sizeof(struct uart_icount)); in uart_wait_modem_status() 1115 if (((arg & TIOCM_RNG) && (cnow.rng != cprev.rng)) || in uart_wait_modem_status() 1116 ((arg & TIOCM_DSR) && (cnow.dsr != cprev.dsr)) || in uart_wait_modem_status() 1117 ((arg & TIOCM_CD) && (cnow.dcd != cprev.dcd)) || in uart_wait_modem_status() 1118 ((arg & TIOCM_CTS) && (cnow.cts != cprev.cts))) { in uart_wait_modem_status() 1131 cprev = cnow; in uart_wait_modem_status() 1149 struct uart_icount cnow; in uart_get_icount() local 1153 memcpy(&cnow, &uport->icount, sizeof(struct uart_icount)); in uart_get_icount() 1156 icount->cts = cnow.cts; in uart_get_icount() [all …]
|
/drivers/net/usb/ |
D | hso.c | 1566 struct uart_icount cprev, cnow; in hso_wait_modem_status() local 1582 memcpy(&cnow, &tiocmget->icount, sizeof(struct uart_icount)); in hso_wait_modem_status() 1585 if (((arg & TIOCM_RNG) && (cnow.rng != cprev.rng)) || in hso_wait_modem_status() 1586 ((arg & TIOCM_DSR) && (cnow.dsr != cprev.dsr)) || in hso_wait_modem_status() 1587 ((arg & TIOCM_CD) && (cnow.dcd != cprev.dcd))) { in hso_wait_modem_status() 1597 cprev = cnow; in hso_wait_modem_status() 1614 struct uart_icount cnow; in hso_get_count() local 1623 memcpy(&cnow, &tiocmget->icount, sizeof(struct uart_icount)); in hso_get_count() 1626 icount->cts = cnow.cts; in hso_get_count() 1627 icount->dsr = cnow.dsr; in hso_get_count() [all …]
|