Searched refs:pps_gen (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/pps/generators/ |
| H A D | pps_gen.c | 39 struct pps_gen_device *pps_gen = file->private_data; in pps_gen_cdev_poll() local 41 poll_wait(file, &pps_gen->queue, wait); in pps_gen_cdev_poll() 47 struct pps_gen_device *pps_gen = file->private_data; in pps_gen_cdev_fasync() local 49 return fasync_helper(fd, file, on, &pps_gen->async_queue); in pps_gen_cdev_fasync() 55 struct pps_gen_device *pps_gen = file->private_data; in pps_gen_cdev_ioctl() local 63 dev_dbg(pps_gen->dev, "PPS_GEN_SETENABLE\n"); in pps_gen_cdev_ioctl() 69 ret = pps_gen->info->enable(pps_gen, status); in pps_gen_cdev_ioctl() 72 pps_gen->enabled = status; in pps_gen_cdev_ioctl() 77 dev_dbg(pps_gen->dev, "PPS_GEN_USESYSTEMCLOCK\n"); in pps_gen_cdev_ioctl() 79 ret = put_user(pps_gen->info->use_system_clock, uiuarg); in pps_gen_cdev_ioctl() [all …]
|
| H A D | pps_gen_tio.c | 44 struct pps_gen_device *pps_gen; member 85 tio->pps_gen->enabled = false; in pps_tio_disable() 97 tio->pps_gen->enabled = true; in pps_tio_enable() 154 tio->pps_gen->enabled = pps_generate_next_pulse(expires + SAFE_TIME_NS, tio); in hrtimer_callback() 155 if (!tio->pps_gen->enabled) in hrtimer_callback() 164 pps_gen_event(tio->pps_gen, PPS_GEN_EVENT_MISSEDPULSE, NULL); in hrtimer_callback() 168 static int pps_tio_gen_enable(struct pps_gen_device *pps_gen, bool enable) in pps_tio_gen_enable() argument 170 struct pps_tio *tio = container_of(pps_gen->info, struct pps_tio, gen_info); in pps_tio_gen_enable() 178 if (enable && !pps_gen->enabled) { in pps_tio_gen_enable() 181 } else if (!enable && pps_gen->enabled) { in pps_tio_gen_enable() [all …]
|
| H A D | pps_gen-dummy.c | 16 static struct pps_gen_device *pps_gen; variable 32 pps_gen_event(pps_gen, PPS_GEN_EVENT_MISSEDPULSE, NULL); in pps_gen_ktimer_event() 39 static int pps_gen_dummy_get_time(struct pps_gen_device *pps_gen, in pps_gen_dummy_get_time() argument 50 static int pps_gen_dummy_enable(struct pps_gen_device *pps_gen, bool enable) in pps_gen_dummy_enable() argument 77 pps_gen_unregister_source(pps_gen); in pps_gen_dummy_exit() 82 pps_gen = pps_gen_register_source(&pps_gen_dummy_info); in pps_gen_dummy_init() 83 if (IS_ERR(pps_gen)) in pps_gen_dummy_init() 84 return PTR_ERR(pps_gen); in pps_gen_dummy_init()
|
| /linux/ |
| H A D | MAINTAINERS | 21099 F: include/uapi/linux/pps_gen.h
|