Home
last modified time | relevance | path

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

/linux/drivers/usb/serial/
H A Dgeneric.c498 unsigned long arg, struct async_icount *cprev) in usb_serial_generic_msr_changed() argument
516 ret = ((arg & TIOCM_RNG) && (cnow.rng != cprev->rng)) || in usb_serial_generic_msr_changed()
517 ((arg & TIOCM_DSR) && (cnow.dsr != cprev->dsr)) || in usb_serial_generic_msr_changed()
518 ((arg & TIOCM_CD) && (cnow.dcd != cprev->dcd)) || in usb_serial_generic_msr_changed()
519 ((arg & TIOCM_CTS) && (cnow.cts != cprev->cts)); in usb_serial_generic_msr_changed()
521 *cprev = cnow; in usb_serial_generic_msr_changed()
/linux/drivers/tty/
H A Dnozomi.c1675 struct async_icount *cprev) in ntty_cflags_changed() argument
1680 ret = ((flags & TIOCM_RNG) && (cnow.rng != cprev->rng)) in ntty_cflags_changed()
1681 || ((flags & TIOCM_DSR) && (cnow.dsr != cprev->dsr)) in ntty_cflags_changed()
1682 || ((flags & TIOCM_CD) && (cnow.dcd != cprev->dcd)) in ntty_cflags_changed()
1683 || ((flags & TIOCM_CTS) && (cnow.cts != cprev->cts)); in ntty_cflags_changed()
1685 *cprev = cnow; in ntty_cflags_changed()
1718 struct async_icount cprev = port->tty_icount; in ntty_ioctl() local
1721 ntty_cflags_changed(port, arg, &cprev)); in ntty_ioctl()
/linux/drivers/net/usb/
H A Dhso.c1537 struct uart_icount cprev, cnow; in hso_wait_modem_status() local
1548 memcpy(&cprev, &tiocmget->icount, sizeof(struct uart_icount)); in hso_wait_modem_status()
1556 if (((arg & TIOCM_RNG) && (cnow.rng != cprev.rng)) || in hso_wait_modem_status()
1557 ((arg & TIOCM_DSR) && (cnow.dsr != cprev.dsr)) || in hso_wait_modem_status()
1558 ((arg & TIOCM_CD) && (cnow.dcd != cprev.dcd))) { in hso_wait_modem_status()
1568 cprev = cnow; in hso_wait_modem_status()
/linux/drivers/tty/serial/
H A Dserial_core.c1207 struct uart_icount cprev, cnow; in uart_wait_modem_status() local
1217 memcpy(&cprev, &uport->icount, sizeof(struct uart_icount)); in uart_wait_modem_status()
1228 if (((arg & TIOCM_RNG) && (cnow.rng != cprev.rng)) || in uart_wait_modem_status()
1229 ((arg & TIOCM_DSR) && (cnow.dsr != cprev.dsr)) || in uart_wait_modem_status()
1230 ((arg & TIOCM_CD) && (cnow.dcd != cprev.dcd)) || in uart_wait_modem_status()
1231 ((arg & TIOCM_CTS) && (cnow.cts != cprev.cts))) { in uart_wait_modem_status()
1244 cprev = cnow; in uart_wait_modem_status()