Lines Matching full:pps
3 * pps-ldisc.c -- PPS line discipline
18 struct pps_device *pps; in pps_tty_dcd_change() local
23 pps = pps_lookup_dev(tty); in pps_tty_dcd_change()
28 if (WARN_ON_ONCE(pps == NULL)) in pps_tty_dcd_change()
31 /* Now do the PPS event report */ in pps_tty_dcd_change()
32 pps_event(pps, &ts, active ? PPS_CAPTUREASSERT : in pps_tty_dcd_change()
35 dev_dbg(pps->dev, "PPS %s at %lu\n", in pps_tty_dcd_change()
46 struct pps_device *pps; in pps_tty_open() local
57 pps = pps_register_source(&info, PPS_CAPTUREBOTH | \ in pps_tty_open()
59 if (IS_ERR(pps)) { in pps_tty_open()
60 pr_err("cannot register PPS source \"%s\"\n", info.path); in pps_tty_open()
61 return PTR_ERR(pps); in pps_tty_open()
63 pps->lookup_cookie = tty; in pps_tty_open()
72 dev_info(pps->dev, "source \"%s\" added\n", info.path); in pps_tty_open()
77 pps_unregister_source(pps); in pps_tty_open()
85 struct pps_device *pps = pps_lookup_dev(tty); in pps_tty_close() local
89 if (WARN_ON(!pps)) in pps_tty_close()
92 dev_info(pps->dev, "removed\n"); in pps_tty_close()
93 pps_unregister_source(pps); in pps_tty_close()
123 pr_err("can't register PPS line discipline\n"); in pps_tty_init()
125 pr_info("PPS line discipline registered\n"); in pps_tty_init()
140 MODULE_DESCRIPTION("PPS TTY device driver");