Home
last modified time | relevance | path

Searched refs:pps (Results 1 – 25 of 34) sorted by relevance

12

/linux-2.6.39/drivers/pps/
Dpps.c54 struct pps_device *pps = file->private_data; in pps_cdev_poll() local
56 poll_wait(file, &pps->queue, wait); in pps_cdev_poll()
63 struct pps_device *pps = file->private_data; in pps_cdev_fasync() local
64 return fasync_helper(fd, file, on, &pps->async_queue); in pps_cdev_fasync()
70 struct pps_device *pps = file->private_data; in pps_cdev_ioctl() local
78 dev_dbg(pps->dev, "PPS_GETPARAMS\n"); in pps_cdev_ioctl()
80 spin_lock_irq(&pps->lock); in pps_cdev_ioctl()
83 params = pps->params; in pps_cdev_ioctl()
85 spin_unlock_irq(&pps->lock); in pps_cdev_ioctl()
94 dev_dbg(pps->dev, "PPS_SETPARAMS\n"); in pps_cdev_ioctl()
[all …]
Dkapi.c73 struct pps_device *pps; in pps_register_source() local
98 pps = kzalloc(sizeof(struct pps_device), GFP_KERNEL); in pps_register_source()
99 if (pps == NULL) { in pps_register_source()
107 pps->params.api_version = PPS_API_VERS; in pps_register_source()
108 pps->params.mode = default_params; in pps_register_source()
109 pps->info = *info; in pps_register_source()
111 init_waitqueue_head(&pps->queue); in pps_register_source()
112 spin_lock_init(&pps->lock); in pps_register_source()
115 err = pps_register_cdev(pps); in pps_register_source()
122 dev_info(pps->dev, "new PPS source %s\n", info->name); in pps_register_source()
[all …]
Dsysfs.c35 struct pps_device *pps = dev_get_drvdata(dev); in pps_show_assert() local
37 if (!(pps->info.mode & PPS_CAPTUREASSERT)) in pps_show_assert()
41 (long long) pps->assert_tu.sec, pps->assert_tu.nsec, in pps_show_assert()
42 pps->assert_sequence); in pps_show_assert()
48 struct pps_device *pps = dev_get_drvdata(dev); in pps_show_clear() local
50 if (!(pps->info.mode & PPS_CAPTURECLEAR)) in pps_show_clear()
54 (long long) pps->clear_tu.sec, pps->clear_tu.nsec, in pps_show_clear()
55 pps->clear_sequence); in pps_show_clear()
61 struct pps_device *pps = dev_get_drvdata(dev); in pps_show_mode() local
63 return sprintf(buf, "%4x\n", pps->info.mode); in pps_show_mode()
[all …]
Dkc.c49 int pps_kc_bind(struct pps_device *pps, struct pps_bind_args *bind_args) in pps_kc_bind() argument
55 if (pps_kc_hardpps_dev == pps) { in pps_kc_bind()
59 dev_info(pps->dev, "unbound kernel" in pps_kc_bind()
63 dev_err(pps->dev, "selected kernel consumer" in pps_kc_bind()
69 pps_kc_hardpps_dev == pps) { in pps_kc_bind()
71 pps_kc_hardpps_dev = pps; in pps_kc_bind()
73 dev_info(pps->dev, "bound kernel consumer: " in pps_kc_bind()
77 dev_err(pps->dev, "another kernel consumer" in pps_kc_bind()
92 void pps_kc_remove(struct pps_device *pps) in pps_kc_remove() argument
95 if (pps == pps_kc_hardpps_dev) { in pps_kc_remove()
[all …]
Dkc.h29 extern int pps_kc_bind(struct pps_device *pps,
31 extern void pps_kc_remove(struct pps_device *pps);
32 extern void pps_kc_event(struct pps_device *pps,
38 static inline int pps_kc_bind(struct pps_device *pps, in pps_kc_bind() argument
40 static inline void pps_kc_remove(struct pps_device *pps) {} in pps_kc_remove() argument
41 static inline void pps_kc_event(struct pps_device *pps, in pps_kc_event() argument
DKconfig42 source drivers/pps/clients/Kconfig
44 source drivers/pps/generators/Kconfig
DMakefile5 pps_core-y := pps.o kapi.o sysfs.o
/linux-2.6.39/drivers/pps/clients/
Dpps-ldisc.c34 struct pps_device *pps = (struct pps_device *)tty->disc_data; in pps_tty_dcd_change() local
36 BUG_ON(pps == NULL); in pps_tty_dcd_change()
39 pps_event(pps, ts, status ? PPS_CAPTUREASSERT : in pps_tty_dcd_change()
42 dev_dbg(pps->dev, "PPS %s at %lu\n", in pps_tty_dcd_change()
53 struct pps_device *pps; in pps_tty_open() local
64 pps = pps_register_source(&info, PPS_CAPTUREBOTH | \ in pps_tty_open()
66 if (pps == NULL) { in pps_tty_open()
70 tty->disc_data = pps; in pps_tty_open()
79 dev_info(pps->dev, "source \"%s\" added\n", info.path); in pps_tty_open()
85 pps_unregister_source(pps); in pps_tty_open()
[all …]
Dpps-ktimer.c35 static struct pps_device *pps; variable
49 pps_event(pps, &ts, PPS_CAPTUREASSERT, NULL); in pps_ktimer_event()
58 static void pps_ktimer_echo(struct pps_device *pps, int event, void *data) in pps_ktimer_echo() argument
60 dev_info(pps->dev, "echo %s %s\n", in pps_ktimer_echo()
85 dev_info(pps->dev, "ktimer PPS source unregistered\n"); in pps_ktimer_exit()
88 pps_unregister_source(pps); in pps_ktimer_exit()
93 pps = pps_register_source(&pps_ktimer_info, in pps_ktimer_init()
95 if (pps == NULL) { in pps_ktimer_init()
103 dev_info(pps->dev, "ktimer PPS source registered\n"); in pps_ktimer_init()
Dpps_parport.c55 struct pps_device *pps; /* PPS device */ member
97 dev_err(dev->pps->dev, "lost the signal\n"); in parport_irq()
114 dev_err(dev->pps->dev, "disabled clear edge capture after %d" in parport_irq()
122 pps_event(dev->pps, &ts_assert, in parport_irq()
128 pps_event(dev->pps, &ts_assert, in parport_irq()
131 pps_event(dev->pps, &ts_clear, in parport_irq()
137 static void pps_echo(struct pps_device *pps, int event, void *data) in pps_echo() argument
139 dev_info(pps->dev, "echo %s %s\n", in pps_echo()
177 device->pps = pps_register_source(&info, in parport_attach()
179 if (device->pps == NULL) { in parport_attach()
[all …]
DMakefile5 obj-$(CONFIG_PPS_CLIENT_KTIMER) += pps-ktimer.o
6 obj-$(CONFIG_PPS_CLIENT_LDISC) += pps-ldisc.o
DKconfig16 will be called pps-ktimer.
/linux-2.6.39/Documentation/ABI/testing/
Dsysfs-pps1 What: /sys/class/pps/
5 The /sys/class/pps/ directory will contain files and
9 What: /sys/class/pps/ppsX/
13 The /sys/class/pps/ppsX/ directory is related to X-th
17 What: /sys/class/pps/ppsX/assert
21 The /sys/class/pps/ppsX/assert file reports the assert events
29 What: /sys/class/pps/ppsX/clear
33 The /sys/class/pps/ppsX/clear file reports the clear events
41 What: /sys/class/pps/ppsX/mode
45 The /sys/class/pps/ppsX/mode file reports the functioning
[all …]
/linux-2.6.39/include/linux/
Dpps_kernel.h42 void (*echo)(struct pps_device *pps,
90 extern void pps_unregister_source(struct pps_device *pps);
91 extern int pps_register_cdev(struct pps_device *pps);
92 extern void pps_unregister_cdev(struct pps_device *pps);
93 extern void pps_event(struct pps_device *pps,
Dgen_stats.h37 __u32 pps; member
Dpkt_sched.h39 __u32 pps; /* Current flow packet rate */ member
/linux-2.6.39/net/netfilter/
Dxt_rateest.c29 pps1 = info->pps1 >= r->pps ? info->pps1 - r->pps : 0; in xt_rateest_mt()
32 pps1 = r->pps; in xt_rateest_mt()
44 pps2 = info->pps2 >= r->pps ? info->pps2 - r->pps : 0; in xt_rateest_mt()
47 pps2 = r->pps; in xt_rateest_mt()
/linux-2.6.39/Documentation/pps/
Dpps.txt113 Please see the file drivers/pps/clients/ktimer.c for example code.
121 $ ls /sys/class/pps/
127 $ ls /sys/class/pps/pps0/
133 $ cat /sys/class/pps/pps0/assert
154 and the userland tools provided into Documentaion/pps/ directory.
172 (see Documentation/pps/).
/linux-2.6.39/net/core/
Dgen_stats.c152 d->tc_stats.pps = r->pps; in gnet_stats_copy_rate_est()
Dgen_estimator.c139 e->rate_est->pps = (e->avpps+0x1FF)>>10; in est_timer()
233 est->avpps = rate_est->pps<<10; in gen_new_estimator()
/linux-2.6.39/drivers/net/wireless/iwlegacy/
Diwl-3945-rs.c193 u32 packet_count, duration, pps; in iwl3945_bg_rate_scale_flush() local
215 pps = (packet_count * 1000) / duration; in iwl3945_bg_rate_scale_flush()
217 pps = 0; in iwl3945_bg_rate_scale_flush()
219 if (pps) { in iwl3945_bg_rate_scale_flush()
220 duration = (IWL_AVERAGE_PACKETS * 1000) / pps; in iwl3945_bg_rate_scale_flush()
/linux-2.6.39/drivers/
DKconfig55 source "drivers/pps/Kconfig"
DMakefile78 obj-$(CONFIG_PPS) += pps/
/linux-2.6.39/net/ceph/
Dosdmap.c1044 unsigned poolid, ps, pps; in calc_pg_raw() local
1077 pps = ceph_stable_mod(ps, in calc_pg_raw()
1081 pps = ceph_stable_mod(ps, in calc_pg_raw()
1084 pps += poolid; in calc_pg_raw()
1085 *num = crush_do_rule(osdmap->crush, ruleno, pps, osds, in calc_pg_raw()
/linux-2.6.39/drivers/staging/solo6x10/
Dv4l2-enc.c578 static const u8 pps[] = { in h264_write_vol() local
601 write_bytes(out, &bits, pps, sizeof(pps)); in h264_write_vol()

12