Lines Matching refs:pps
20 struct pps_device *pps; in pps_tty_dcd_change() local
25 pps = pps_lookup_dev(tty); in pps_tty_dcd_change()
30 if (WARN_ON_ONCE(pps == NULL)) in pps_tty_dcd_change()
34 pps_event(pps, &ts, status ? PPS_CAPTUREASSERT : in pps_tty_dcd_change()
37 dev_dbg(pps->dev, "PPS %s at %lu\n", in pps_tty_dcd_change()
48 struct pps_device *pps; in pps_tty_open() local
59 pps = pps_register_source(&info, PPS_CAPTUREBOTH | \ in pps_tty_open()
61 if (IS_ERR(pps)) { in pps_tty_open()
63 return PTR_ERR(pps); in pps_tty_open()
65 pps->lookup_cookie = tty; in pps_tty_open()
74 dev_info(pps->dev, "source \"%s\" added\n", info.path); in pps_tty_open()
79 pps_unregister_source(pps); in pps_tty_open()
87 struct pps_device *pps = pps_lookup_dev(tty); in pps_tty_close() local
91 if (WARN_ON(!pps)) in pps_tty_close()
94 dev_info(pps->dev, "removed\n"); in pps_tty_close()
95 pps_unregister_source(pps); in pps_tty_close()