/linux-4.1.27/drivers/pps/ |
D | pps.c | 54 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 …]
|
D | kapi.c | 55 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 …]
|
D | sysfs.c | 35 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 …]
|
D | kc.c | 49 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 …]
|
D | kc.h | 29 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
|
D | Kconfig | 43 source drivers/pps/clients/Kconfig 45 source drivers/pps/generators/Kconfig
|
D | Makefile | 5 pps_core-y := pps.o kapi.o sysfs.o
|
/linux-4.1.27/drivers/pps/clients/ |
D | pps-ldisc.c | 34 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 …]
|
D | pps-ktimer.c | 35 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()
|
D | pps_parport.c | 56 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()
|
D | pps-gpio.c | 42 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()
|
D | Makefile | 5 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
|
D | Kconfig | 16 will be called pps-ktimer.
|
/linux-4.1.27/Documentation/ABI/testing/ |
D | sysfs-pps | 1 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/ |
D | pps_kernel.h | 42 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,
|
D | ptp_clock_kernel.h | 103 int pps; member
|
/linux-4.1.27/net/netfilter/ |
D | xt_rateest.c | 29 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()
|
D | Kconfig | 1127 destination address' or `500pps from any given source address'
|
/linux-4.1.27/Documentation/devicetree/bindings/pps/ |
D | pps-gpio.txt | 7 - compatible: should be "pps-gpio" 15 pps { 16 compatible = "pps-gpio";
|
/linux-4.1.27/drivers/ptp/ |
D | ptp_clock.c | 234 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()
|
D | ptp_sysfs.c | 47 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()
|
D | ptp_chardev.c | 139 caps.pps = ptp->info->pps; in ptp_ioctl()
|
D | ptp_ixp46x.c | 248 .pps = 0,
|
D | ptp_pch.c | 518 .pps = 0,
|
/linux-4.1.27/include/uapi/linux/ |
D | gen_stats.h | 38 __u32 pps; member 48 __u64 pps; member
|
D | ptp_clock.h | 52 int pps; /* Whether the clock supports a PPS callback. */ member
|
D | pkt_sched.h | 39 __u32 pps; /* Current flow packet rate */ member
|
D | Kbuild | 331 header-y += pps.h
|
/linux-4.1.27/drivers/staging/sm750fb/ |
D | sm750_hw.c | 488 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/ |
D | testptp.c | 179 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/ |
D | gen_stats.c | 202 est.pps = r->pps; in gnet_stats_copy_rate_est() 206 d->tc_stats.pps = est.pps; in gnet_stats_copy_rate_est()
|
D | gen_estimator.c | 139 e->rate_est->pps = (e->avpps+0x1FF)>>10; in est_timer() 237 est->avpps = rate_est->pps<<10; in gen_new_estimator()
|
D | pktgen.c | 3160 __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/ |
D | intel_dsi_panel_vbt.c | 395 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()
|
D | intel_bios.c | 795 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()
|
D | intel_bios.h | 917 struct mipi_pps_data pps[MAX_MIPI_CONFIGURATIONS]; member
|
D | i915_drv.h | 1378 struct mipi_pps_data *pps; member
|
/linux-4.1.27/drivers/gpu/drm/gma500/ |
D | intel_bios.c | 93 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()
|
D | psb_drv.h | 617 struct edp_power_seq pps; member
|
/linux-4.1.27/drivers/video/fbdev/ |
D | clps711x-fb.c | 109 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/ |
D | pps.txt | 128 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/ |
D | 3945-rs.c | 190 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/ |
D | osdmap.c | 1497 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/ |
D | imx6qdl-gw51xx.dtsi | 51 pps { 52 compatible = "pps-gpio";
|
D | imx6qdl-gw52xx.dtsi | 66 pps { 67 compatible = "pps-gpio";
|
D | imx6qdl-gw53xx.dtsi | 67 pps { 68 compatible = "pps-gpio";
|
D | imx6q-gw5400-a.dts | 68 pps { 69 compatible = "pps-gpio";
|
D | imx6qdl-gw54xx.dtsi | 67 pps { 68 compatible = "pps-gpio";
|
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ptp.c | 166 .pps = 0,
|
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/ |
D | ptp.c | 189 .pps = 0,
|
/linux-4.1.27/drivers/ |
D | Makefile | 104 obj-$(CONFIG_PPS) += pps/
|
D | Kconfig | 59 source "drivers/pps/Kconfig"
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
D | en_clock.c | 231 .pps = 0,
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ptp.c | 871 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/ |
D | igb_ptp.c | 988 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()
|
D | igb_main.c | 5409 if (adapter->ptp_caps.pps) in igb_tsync_interrupt()
|
/linux-4.1.27/drivers/net/ethernet/ti/ |
D | cpts.c | 213 .pps = 0,
|
/linux-4.1.27/drivers/staging/lustre/lnet/klnds/o2iblnd/ |
D | o2iblnd.c | 1801 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()
|
D | o2iblnd.h | 964 int kiblnd_pmr_pool_map(kib_pmr_poolset_t *pps, kib_hca_dev_t *hdev,
|
D | o2iblnd_cb.c | 599 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/ |
D | i40e_ptp.c | 613 pf->ptp_caps.pps = 0; in i40e_ptp_create_clock()
|
/linux-4.1.27/drivers/net/ethernet/freescale/ |
D | fec_ptp.c | 581 fep->ptp_caps.pps = 1; in fec_ptp_init()
|
D | gianfar_ptp.c | 417 .pps = 1,
|
/linux-4.1.27/drivers/video/fbdev/omap2/dss/ |
D | dsi.c | 4340 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/ |
D | pktgen.txt | 91 763292pps 390Mb/sec (390805504bps) errors: 39664
|
/linux-4.1.27/Documentation/ioctl/ |
D | ioctl-number.txt | 257 'p' A1-A5 linux/pps.h LinuxPPS
|
/linux-4.1.27/Documentation/ |
D | 00-INDEX | 374 pps/
|
D | devices.txt | 442 225 = /dev/pps Pulse Per Second driver
|
/linux-4.1.27/drivers/net/phy/ |
D | dp83640.c | 1024 clock->caps.pps = 0; in dp83640_clock_init()
|
/linux-4.1.27/drivers/net/ethernet/adi/ |
D | bfin_mac.c | 1037 .pps = 0,
|
/linux-4.1.27/drivers/net/ethernet/sfc/ |
D | ptp.c | 1198 .pps = 1,
|
/linux-4.1.27/drivers/net/ethernet/emulex/benet/ |
D | be_main.c | 1663 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/ |
D | tilegx.c | 877 .pps = 0,
|
/linux-4.1.27/drivers/scsi/be2iscsi/ |
D | be_main.c | 5312 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/ |
D | cvmx-mio-defs.h | 2785 uint64_t pps:1; member 2823 uint64_t pps:1;
|
/linux-4.1.27/ |
D | MAINTAINERS | 7835 F: Documentation/pps/ 7836 F: drivers/pps/ 7837 F: include/linux/pps*.h
|
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 13345 bp->ptp_clock_info.pps = 0; in bnx2x_register_phc()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
D | tg3.c | 6318 .pps = 0,
|