Lines Matching refs:icount
72 struct async_icount icount;
441 struct async_icount prev = priv->icount;
446 if ((prev.rng == priv->icount.rng) &&
447 (prev.dsr == priv->icount.dsr) &&
448 (prev.dcd == priv->icount.dcd) &&
449 (prev.cts == priv->icount.cts))
452 (prev.rng != priv->icount.rng)) ||
454 (prev.dsr != priv->icount.dsr)) ||
456 (prev.dcd != priv->icount.dcd)) ||
458 (prev.cts != priv->icount.cts)))
463 struct serial_icounter_struct icount;
464 struct async_icount cnow = priv->icount;
465 memset(&icount, 0, sizeof(icount));
466 icount.cts = cnow.cts;
467 icount.dsr = cnow.dsr;
468 icount.rng = cnow.rng;
469 icount.dcd = cnow.dcd;
470 icount.rx = cnow.rx;
471 icount.tx = cnow.tx;
472 icount.frame = cnow.frame;
473 icount.overrun = cnow.overrun;
474 icount.parity = cnow.parity;
475 icount.brk = cnow.brk;
476 icount.buf_overrun = cnow.buf_overrun;
477 if (copy_to_user(user_arg, &icount, sizeof(icount)))
578 priv->icount.cts++;
580 priv->icount.dsr++;
582 priv->icount.dcd++;
584 priv->icount.rng++;
601 priv->icount.brk++;
603 priv->icount.frame++;
605 priv->icount.parity++;
607 priv->icount.overrun++;