Home
last modified time | relevance | path

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

/linux-4.1.27/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.c55 static void pps_echo_client_default(struct pps_device *pps, int event, in pps_echo_client_default() argument
58 dev_info(pps->dev, "echo %s %s\n", in pps_echo_client_default()
81 struct pps_device *pps; in pps_register_source() local
99 pps = kzalloc(sizeof(struct pps_device), GFP_KERNEL); in pps_register_source()
100 if (pps == NULL) { in pps_register_source()
108 pps->params.api_version = PPS_API_VERS; in pps_register_source()
109 pps->params.mode = default_params; in pps_register_source()
110 pps->info = *info; in pps_register_source()
113 if ((pps->info.mode & (PPS_ECHOASSERT | PPS_ECHOCLEAR)) && in pps_register_source()
114 pps->info.echo == NULL) in pps_register_source()
[all …]
Dsysfs.c35 struct pps_device *pps = dev_get_drvdata(dev); in assert_show() local
37 if (!(pps->info.mode & PPS_CAPTUREASSERT)) in assert_show()
41 (long long) pps->assert_tu.sec, pps->assert_tu.nsec, in assert_show()
42 pps->assert_sequence); in assert_show()
49 struct pps_device *pps = dev_get_drvdata(dev); in clear_show() local
51 if (!(pps->info.mode & PPS_CAPTURECLEAR)) in clear_show()
55 (long long) pps->clear_tu.sec, pps->clear_tu.nsec, in clear_show()
56 pps->clear_sequence); in clear_show()
63 struct pps_device *pps = dev_get_drvdata(dev); in mode_show() local
65 return sprintf(buf, "%4x\n", pps->info.mode); in mode_show()
[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
DKconfig43 source drivers/pps/clients/Kconfig
45 source drivers/pps/generators/Kconfig
DMakefile5 pps_core-y := pps.o kapi.o sysfs.o
/linux-4.1.27/drivers/pps/clients/
Dpps-ldisc.c34 struct pps_device *pps; in pps_tty_dcd_change() local
39 pps = pps_lookup_dev(tty); in pps_tty_dcd_change()
44 if (WARN_ON_ONCE(pps == NULL)) in pps_tty_dcd_change()
48 pps_event(pps, &ts, status ? PPS_CAPTUREASSERT : in pps_tty_dcd_change()
51 dev_dbg(pps->dev, "PPS %s at %lu\n", in pps_tty_dcd_change()
62 struct pps_device *pps; in pps_tty_open() local
73 pps = pps_register_source(&info, PPS_CAPTUREBOTH | \ in pps_tty_open()
75 if (pps == NULL) { in pps_tty_open()
79 pps->lookup_cookie = tty; in pps_tty_open()
88 dev_info(pps->dev, "source \"%s\" added\n", info.path); 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()
73 dev_info(pps->dev, "ktimer PPS source unregistered\n"); in pps_ktimer_exit()
76 pps_unregister_source(pps); in pps_ktimer_exit()
81 pps = pps_register_source(&pps_ktimer_info, in pps_ktimer_init()
83 if (pps == NULL) { in pps_ktimer_init()
91 dev_info(pps->dev, "ktimer PPS source registered\n"); in pps_ktimer_init()
Dpps_parport.c56 struct pps_device *pps; /* PPS device */ member
98 dev_err(dev->pps->dev, "lost the signal\n"); in parport_irq()
115 dev_err(dev->pps->dev, "disabled clear edge capture after %d" in parport_irq()
123 pps_event(dev->pps, &ts_assert, in parport_irq()
129 pps_event(dev->pps, &ts_assert, in parport_irq()
132 pps_event(dev->pps, &ts_clear, in parport_irq()
169 device->pps = pps_register_source(&info, in parport_attach()
171 if (device->pps == NULL) { in parport_attach()
205 pps_unregister_source(device->pps); in parport_detach()
Dpps-gpio.c42 struct pps_device *pps; /* PPS source device */ member
67 pps_event(info->pps, &ts, PPS_CAPTUREASSERT, NULL); in pps_gpio_irq_handler()
71 pps_event(info->pps, &ts, PPS_CAPTURECLEAR, NULL); in pps_gpio_irq_handler()
160 data->pps = pps_register_source(&data->info, pps_default_params); in pps_gpio_probe()
161 if (data->pps == NULL) { in pps_gpio_probe()
171 pps_unregister_source(data->pps); in pps_gpio_probe()
177 dev_info(data->pps->dev, "Registered IRQ %d as PPS source\n", in pps_gpio_probe()
187 pps_unregister_source(data->pps); in pps_gpio_remove()
DMakefile5 obj-$(CONFIG_PPS_CLIENT_KTIMER) += pps-ktimer.o
6 obj-$(CONFIG_PPS_CLIENT_LDISC) += pps-ldisc.o
8 obj-$(CONFIG_PPS_CLIENT_GPIO) += pps-gpio.o
DKconfig16 will be called pps-ktimer.
/linux-4.1.27/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-4.1.27/include/linux/
Dpps_kernel.h42 void (*echo)(struct pps_device *pps,
92 extern int pps_register_cdev(struct pps_device *pps);
93 extern void pps_unregister_cdev(struct pps_device *pps);
101 extern void pps_unregister_source(struct pps_device *pps);
102 extern void pps_event(struct pps_device *pps,
Dptp_clock_kernel.h103 int pps; member
/linux-4.1.27/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()
DKconfig1127 destination address' or `500pps from any given source address'
/linux-4.1.27/Documentation/devicetree/bindings/pps/
Dpps-gpio.txt7 - compatible: should be "pps-gpio"
15 pps {
16 compatible = "pps-gpio";
/linux-4.1.27/drivers/ptp/
Dptp_clock.c234 if (info->pps) { in ptp_clock_register()
235 struct pps_source_info pps; in ptp_clock_register() local
236 memset(&pps, 0, sizeof(pps)); in ptp_clock_register()
237 snprintf(pps.name, PPS_MAX_NAME_LEN, "ptp%d", index); in ptp_clock_register()
238 pps.mode = PTP_PPS_MODE; in ptp_clock_register()
239 pps.owner = info->owner; in ptp_clock_register()
240 ptp->pps_source = pps_register_source(&pps, PTP_PPS_DEFAULTS); in ptp_clock_register()
Dptp_sysfs.c47 PTP_SHOW_INT(pps_available, pps);
255 if (info->pps) in ptp_cleanup_sysfs()
327 if (info->pps) { in ptp_populate_sysfs()
339 if (info->pps) in ptp_populate_sysfs()
Dptp_chardev.c139 caps.pps = ptp->info->pps; in ptp_ioctl()
Dptp_ixp46x.c248 .pps = 0,
Dptp_pch.c518 .pps = 0,
/linux-4.1.27/include/uapi/linux/
Dgen_stats.h38 __u32 pps; member
48 __u64 pps; member
Dptp_clock.h52 int pps; /* Whether the clock supports a PPS callback. */ member
Dpkt_sched.h39 __u32 pps; /* Current flow packet rate */ member
DKbuild331 header-y += pps.h
/linux-4.1.27/drivers/staging/sm750fb/
Dsm750_hw.c488 unsigned int dpms, pps, crtdb; in hw_sm750_setBLANK() local
490 dpms = pps = crtdb = 0; in hw_sm750_setBLANK()
501 pps = PANEL_DISPLAY_CTRL_DATA_ENABLE; in hw_sm750_setBLANK()
508 pps = PANEL_DISPLAY_CTRL_DATA_DISABLE; in hw_sm750_setBLANK()
518 pps = PANEL_DISPLAY_CTRL_DATA_DISABLE; in hw_sm750_setBLANK()
527 pps = PANEL_DISPLAY_CTRL_DATA_DISABLE; in hw_sm750_setBLANK()
536 pps = PANEL_DISPLAY_CTRL_DATA_DISABLE; in hw_sm750_setBLANK()
548 …POKE32(PANEL_DISPLAY_CTRL, FIELD_VALUE(PEEK32(PANEL_DISPLAY_CTRL), PANEL_DISPLAY_CTRL, DATA, pps)); in hw_sm750_setBLANK()
/linux-4.1.27/Documentation/ptp/
Dtestptp.c179 int pps = -1; in main() local
232 pps = atoi(optarg); in main()
284 caps.pps, in main()
467 if (pps != -1) { in main()
468 int enable = pps ? 1 : 0; in main()
/linux-4.1.27/net/core/
Dgen_stats.c202 est.pps = r->pps; in gnet_stats_copy_rate_est()
206 d->tc_stats.pps = est.pps; in gnet_stats_copy_rate_est()
Dgen_estimator.c139 e->rate_est->pps = (e->avpps+0x1FF)>>10; in est_timer()
237 est->avpps = rate_est->pps<<10; in gen_new_estimator()
Dpktgen.c3160 __u64 bps, mbps, pps; in show_results() local
3173 pps = div64_u64(pkt_dev->sofar * NSEC_PER_SEC, in show_results()
3176 bps = pps * 8 * pkt_dev->cur_pkt_size; in show_results()
3181 (unsigned long long)pps, in show_results()
/linux-4.1.27/drivers/gpu/drm/i915/
Dintel_dsi_panel_vbt.c395 struct mipi_pps_data *pps = dev_priv->vbt.dsi.pps; in vbt_panel_init() local
667 intel_dsi->backlight_off_delay = pps->bl_disable_delay / 10; in vbt_panel_init()
668 intel_dsi->backlight_on_delay = pps->bl_enable_delay / 10; in vbt_panel_init()
669 intel_dsi->panel_on_delay = pps->panel_on_delay / 10; in vbt_panel_init()
670 intel_dsi->panel_off_delay = pps->panel_off_delay / 10; in vbt_panel_init()
671 intel_dsi->panel_pwr_cycle_delay = pps->panel_power_cycle_delay / 10; in vbt_panel_init()
Dintel_bios.c795 struct mipi_pps_data *pps; in parse_mipi() local
829 pps = &start->pps[panel_type]; in parse_mipi()
836 dev_priv->vbt.dsi.pps = kmemdup(pps, sizeof(struct mipi_pps_data), GFP_KERNEL); in parse_mipi()
837 if (!dev_priv->vbt.dsi.pps) { in parse_mipi()
Dintel_bios.h917 struct mipi_pps_data pps[MAX_MIPI_CONFIGURATIONS]; member
Di915_drv.h1378 struct mipi_pps_data *pps; member
/linux-4.1.27/drivers/gpu/drm/gma500/
Dintel_bios.c93 dev_priv->edp.pps = *edp_pps; in parse_edp()
96 dev_priv->edp.pps.t1_t3, dev_priv->edp.pps.t8, in parse_edp()
97 dev_priv->edp.pps.t9, dev_priv->edp.pps.t10, in parse_edp()
98 dev_priv->edp.pps.t11_t12); in parse_edp()
Dpsb_drv.h617 struct edp_power_seq pps; member
/linux-4.1.27/drivers/video/fbdev/
Dclps711x-fb.c109 u32 lcdcon, pps; in clps711x_fb_set_par() local
135 pps = clk_get_rate(cfb->clk) / (PICOS2KHZ(info->var.pixclock) * 1000); in clps711x_fb_set_par()
136 if (pps) in clps711x_fb_set_par()
137 pps--; in clps711x_fb_set_par()
138 lcdcon |= (pps & 0x3f) << 19; in clps711x_fb_set_par()
/linux-4.1.27/Documentation/pps/
Dpps.txt128 Please see the file drivers/pps/clients/ktimer.c for example code.
136 $ ls /sys/class/pps/
142 $ ls /sys/class/pps/pps0/
148 $ cat /sys/class/pps/pps0/assert
169 and the userland tools provided into Documentaion/pps/ directory.
187 (see Documentation/pps/).
/linux-4.1.27/drivers/net/wireless/iwlegacy/
D3945-rs.c190 u32 packet_count, duration, pps; in il3945_bg_rate_scale_flush() local
211 pps = (packet_count * 1000) / duration; in il3945_bg_rate_scale_flush()
213 pps = 0; in il3945_bg_rate_scale_flush()
215 if (pps) { in il3945_bg_rate_scale_flush()
216 duration = (IL_AVERAGE_PACKETS * 1000) / pps; in il3945_bg_rate_scale_flush()
/linux-4.1.27/net/ceph/
Dosdmap.c1497 struct ceph_pg pgid, u32 pps, int *osds) in pg_to_raw_osds() argument
1512 len = do_crush(osdmap, ruleno, pps, osds, in pg_to_raw_osds()
1566 static void apply_primary_affinity(struct ceph_osdmap *osdmap, u32 pps, in apply_primary_affinity() argument
1607 pps, osd) >> 16) >= aff) { in apply_primary_affinity()
1700 u32 pps; in ceph_calc_pg_acting() local
1711 pps = crush_hash32_2(CRUSH_HASH_RJENKINS1, in ceph_calc_pg_acting()
1722 pps = ceph_stable_mod(pgid.seed, pool->pgp_num, in ceph_calc_pg_acting()
1727 len = pg_to_raw_osds(osdmap, pool, pgid, pps, osds); in ceph_calc_pg_acting()
1735 apply_primary_affinity(osdmap, pps, pool, osds, len, primary); in ceph_calc_pg_acting()
/linux-4.1.27/arch/arm/boot/dts/
Dimx6qdl-gw51xx.dtsi51 pps {
52 compatible = "pps-gpio";
Dimx6qdl-gw52xx.dtsi66 pps {
67 compatible = "pps-gpio";
Dimx6qdl-gw53xx.dtsi67 pps {
68 compatible = "pps-gpio";
Dimx6q-gw5400-a.dts68 pps {
69 compatible = "pps-gpio";
Dimx6qdl-gw54xx.dtsi67 pps {
68 compatible = "pps-gpio";
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ptp.c166 .pps = 0,
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
Dptp.c189 .pps = 0,
/linux-4.1.27/drivers/
DMakefile104 obj-$(CONFIG_PPS) += pps/
DKconfig59 source "drivers/pps/Kconfig"
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Den_clock.c231 .pps = 0,
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ptp.c871 adapter->ptp_caps.pps = 1; in ixgbe_ptp_create_clock()
887 adapter->ptp_caps.pps = 0; in ixgbe_ptp_create_clock()
/linux-4.1.27/drivers/net/ethernet/intel/igb/
Digb_ptp.c988 adapter->ptp_caps.pps = 0; in igb_ptp_init()
1008 adapter->ptp_caps.pps = 0; in igb_ptp_init()
1036 adapter->ptp_caps.pps = 1; in igb_ptp_init()
Digb_main.c5409 if (adapter->ptp_caps.pps) in igb_tsync_interrupt()
/linux-4.1.27/drivers/net/ethernet/ti/
Dcpts.c213 .pps = 0,
/linux-4.1.27/drivers/staging/lustre/lnet/klnds/o2iblnd/
Do2iblnd.c1801 int kiblnd_pmr_pool_map(kib_pmr_poolset_t *pps, kib_hca_dev_t *hdev, in kiblnd_pmr_pool_map() argument
1809 node = kiblnd_pool_alloc_node(&pps->pps_poolset); in kiblnd_pmr_pool_map()
2079 kib_pmr_poolset_t *pps; in kiblnd_net_fini_pools() local
2092 pps = net->ibn_pmr_ps[i]; in kiblnd_net_fini_pools()
2093 kiblnd_fini_poolset(&pps->pps_poolset); in kiblnd_net_fini_pools()
Do2iblnd.h964 int kiblnd_pmr_pool_map(kib_pmr_poolset_t *pps, kib_hca_dev_t *hdev,
Do2iblnd_cb.c599 kib_pmr_poolset_t *pps; in kiblnd_pmr_map_tx() local
613 pps = net->ibn_pmr_ps[cpt]; in kiblnd_pmr_map_tx()
614 rc = kiblnd_pmr_pool_map(pps, hdev, rd, &iova, &tx->tx_u.pmr); in kiblnd_pmr_map_tx()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_ptp.c613 pf->ptp_caps.pps = 0; in i40e_ptp_create_clock()
/linux-4.1.27/drivers/net/ethernet/freescale/
Dfec_ptp.c581 fep->ptp_caps.pps = 1; in fec_ptp_init()
Dgianfar_ptp.c417 .pps = 1,
/linux-4.1.27/drivers/video/fbdev/omap2/dss/
Ddsi.c4340 int bl, wc, pps, tot; in print_dsi_vm() local
4343 pps = DIV_ROUND_UP(wc + 6, t->ndl); /* pixel packet size */ in print_dsi_vm()
4345 tot = bl + pps; in print_dsi_vm()
4353 t->hss, t->hsa, t->hse, t->hbp, pps, t->hfp, in print_dsi_vm()
4354 bl, pps, tot, in print_dsi_vm()
4359 TO_DSI_T(pps), in print_dsi_vm()
4363 TO_DSI_T(pps), in print_dsi_vm()
/linux-4.1.27/Documentation/networking/
Dpktgen.txt91 763292pps 390Mb/sec (390805504bps) errors: 39664
/linux-4.1.27/Documentation/ioctl/
Dioctl-number.txt257 'p' A1-A5 linux/pps.h LinuxPPS
/linux-4.1.27/Documentation/
D00-INDEX374 pps/
Ddevices.txt442 225 = /dev/pps Pulse Per Second driver
/linux-4.1.27/drivers/net/phy/
Ddp83640.c1024 clock->caps.pps = 0; in dp83640_clock_init()
/linux-4.1.27/drivers/net/ethernet/adi/
Dbfin_mac.c1037 .pps = 0,
/linux-4.1.27/drivers/net/ethernet/sfc/
Dptp.c1198 .pps = 1,
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
Dbe_main.c1663 u32 pps, delta; in be_eqd_update() local
1696 pps = (((u32)(rx_pkts - aic->rx_pkts_prev) * 1000) / delta) + in be_eqd_update()
1698 eqd = (pps / 15000) << 2; in be_eqd_update()
/linux-4.1.27/drivers/net/ethernet/tile/
Dtilegx.c877 .pps = 0,
/linux-4.1.27/drivers/scsi/be2iscsi/
Dbe_main.c5312 u32 pps, delta; in be_eqd_update() local
5329 pps = (((u32)(pbe_eq->cq_count - aic->eq_prev) * 1000) / delta); in be_eqd_update()
5330 eqd = (pps / 1500) << 2; in be_eqd_update()
/linux-4.1.27/arch/mips/include/asm/octeon/
Dcvmx-mio-defs.h2785 uint64_t pps:1; member
2823 uint64_t pps:1;
/linux-4.1.27/
DMAINTAINERS7835 F: Documentation/pps/
7836 F: drivers/pps/
7837 F: include/linux/pps*.h
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c13345 bp->ptp_clock_info.pps = 0; in bnx2x_register_phc()
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dtg3.c6318 .pps = 0,