/linux-4.4.14/drivers/ptp/ |
D | ptp_clock.c | 109 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_settime() local 112 return ptp->info->settime64(ptp->info, &ts); in ptp_clock_settime() 117 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_gettime() local 121 err = ptp->info->gettime64(ptp->info, &ts); in ptp_clock_gettime() 129 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_adjtime() local 133 ops = ptp->info; in ptp_clock_adjtime() 157 ptp->dialed_frequency = tx->freq; in ptp_clock_adjtime() 159 tx->freq = ptp->dialed_frequency; in ptp_clock_adjtime() 180 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in delete_ptp_clock() local 182 mutex_destroy(&ptp->tsevq_mux); in delete_ptp_clock() [all …]
|
D | ptp_sysfs.c | 28 struct ptp_clock *ptp = dev_get_drvdata(dev); in clock_name_show() local 29 return snprintf(page, PAGE_SIZE-1, "%s\n", ptp->info->name); in clock_name_show() 37 struct ptp_clock *ptp = dev_get_drvdata(dev); \ 38 return snprintf(page, PAGE_SIZE-1, "%d\n", ptp->info->var); \ 74 struct ptp_clock *ptp = dev_get_drvdata(dev); in extts_enable_store() local 75 struct ptp_clock_info *ops = ptp->info; in extts_enable_store() 98 struct ptp_clock *ptp = dev_get_drvdata(dev); in extts_fifo_show() local 99 struct timestamp_event_queue *queue = &ptp->tsevq; in extts_fifo_show() 107 if (mutex_lock_interruptible(&ptp->tsevq_mux)) in extts_fifo_show() 124 mutex_unlock(&ptp->tsevq_mux); in extts_fifo_show() [all …]
|
D | ptp_chardev.c | 58 int ptp_set_pinfunc(struct ptp_clock *ptp, unsigned int pin, in ptp_set_pinfunc() argument 61 struct ptp_clock_info *info = ptp->info; in ptp_set_pinfunc() 124 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_ioctl() local 125 struct ptp_clock_info *ops = ptp->info; in ptp_ioctl() 135 caps.max_adj = ptp->info->max_adj; in ptp_ioctl() 136 caps.n_alarm = ptp->info->n_alarm; in ptp_ioctl() 137 caps.n_ext_ts = ptp->info->n_ext_ts; in ptp_ioctl() 138 caps.n_per_out = ptp->info->n_per_out; in ptp_ioctl() 139 caps.pps = ptp->info->pps; in ptp_ioctl() 140 caps.n_pins = ptp->info->n_pins; in ptp_ioctl() [all …]
|
D | ptp_ixp46x.c | 136 static int ptp_ixp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_ixp_adjfreq() argument 141 struct ixp_clock *ixp_clock = container_of(ptp, struct ixp_clock, caps); in ptp_ixp_adjfreq() 160 static int ptp_ixp_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_ixp_adjtime() argument 164 struct ixp_clock *ixp_clock = container_of(ptp, struct ixp_clock, caps); in ptp_ixp_adjtime() 178 static int ptp_ixp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_ixp_gettime() argument 183 struct ixp_clock *ixp_clock = container_of(ptp, struct ixp_clock, caps); in ptp_ixp_gettime() 197 static int ptp_ixp_settime(struct ptp_clock_info *ptp, in ptp_ixp_settime() argument 202 struct ixp_clock *ixp_clock = container_of(ptp, struct ixp_clock, caps); in ptp_ixp_settime() 217 static int ptp_ixp_enable(struct ptp_clock_info *ptp, in ptp_ixp_enable() argument 220 struct ixp_clock *ixp_clock = container_of(ptp, struct ixp_clock, caps); in ptp_ixp_enable()
|
D | ptp_private.h | 77 int ptp_set_pinfunc(struct ptp_clock *ptp, unsigned int pin, 97 int ptp_cleanup_sysfs(struct ptp_clock *ptp); 99 int ptp_populate_sysfs(struct ptp_clock *ptp);
|
D | Makefile | 5 ptp-y := ptp_clock.o ptp_chardev.o ptp_sysfs.o 6 obj-$(CONFIG_PTP_1588_CLOCK) += ptp.o
|
D | ptp_pch.c | 412 static int ptp_pch_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_pch_adjfreq() argument 417 struct pch_dev *pch_dev = container_of(ptp, struct pch_dev, caps); in ptp_pch_adjfreq() 436 static int ptp_pch_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_pch_adjtime() argument 440 struct pch_dev *pch_dev = container_of(ptp, struct pch_dev, caps); in ptp_pch_adjtime() 452 static int ptp_pch_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_pch_gettime() argument 457 struct pch_dev *pch_dev = container_of(ptp, struct pch_dev, caps); in ptp_pch_gettime() 469 static int ptp_pch_settime(struct ptp_clock_info *ptp, in ptp_pch_settime() argument 474 struct pch_dev *pch_dev = container_of(ptp, struct pch_dev, caps); in ptp_pch_settime() 487 static int ptp_pch_enable(struct ptp_clock_info *ptp, in ptp_pch_enable() argument 490 struct pch_dev *pch_dev = container_of(ptp, struct pch_dev, caps); in ptp_pch_enable()
|
D | Kconfig | 26 will be called ptp.
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
D | ptp.c | 324 static int efx_phc_adjfreq(struct ptp_clock_info *ptp, s32 delta); 325 static int efx_phc_adjtime(struct ptp_clock_info *ptp, s64 delta); 326 static int efx_phc_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts); 327 static int efx_phc_settime(struct ptp_clock_info *ptp, 329 static int efx_phc_enable(struct ptp_clock_info *ptp, 479 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_get_attributes() local 506 ptp->ns_to_nic_time = efx_ptp_ns_to_s27; in efx_ptp_get_attributes() 507 ptp->nic_to_kernel_time = efx_ptp_s27_to_ktime_correction; in efx_ptp_get_attributes() 509 ptp->ns_to_nic_time = efx_ptp_ns_to_s_ns; in efx_ptp_get_attributes() 510 ptp->nic_to_kernel_time = efx_ptp_s_ns_to_ktime_correction; in efx_ptp_get_attributes() [all …]
|
D | Makefile | 4 mcdi.o mcdi_port.o mcdi_mon.o ptp.o
|
/linux-4.4.14/drivers/net/ethernet/renesas/ |
D | ravb_ptp.c | 77 u32 gti_ns_plus_1 = (priv->ptp.current_addend >> 20) + 1; in ravb_ptp_update_compare() 95 static int ravb_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ravb_ptp_adjfreq() argument 97 struct ravb_private *priv = container_of(ptp, struct ravb_private, in ravb_ptp_adjfreq() 98 ptp.info); in ravb_ptp_adjfreq() 109 addend = priv->ptp.default_addend; in ravb_ptp_adjfreq() 116 priv->ptp.current_addend = addend; in ravb_ptp_adjfreq() 131 static int ravb_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in ravb_ptp_adjtime() argument 133 struct ravb_private *priv = container_of(ptp, struct ravb_private, in ravb_ptp_adjtime() 134 ptp.info); in ravb_ptp_adjtime() 152 static int ravb_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) in ravb_ptp_gettime64() argument [all …]
|
D | ravb.h | 798 struct ravb_ptp ptp; member
|
D | ravb_main.c | 1183 info->phc_index = ptp_clock_index(priv->ptp.clock); in ravb_get_ts_info()
|
/linux-4.4.14/include/linux/ |
D | ptp_clock_kernel.h | 105 int (*adjfreq)(struct ptp_clock_info *ptp, s32 delta); 106 int (*adjtime)(struct ptp_clock_info *ptp, s64 delta); 107 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts); 109 int (*enable)(struct ptp_clock_info *ptp, 111 int (*verify)(struct ptp_clock_info *ptp, unsigned int pin, 133 extern int ptp_clock_unregister(struct ptp_clock *ptp); 168 extern void ptp_clock_event(struct ptp_clock *ptp, 177 extern int ptp_clock_index(struct ptp_clock *ptp); 189 int ptp_find_pin(struct ptp_clock *ptp,
|
/linux-4.4.14/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ptp.c | 35 static int stmmac_adjust_freq(struct ptp_clock_info *ptp, s32 ppb) in stmmac_adjust_freq() argument 38 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_adjust_freq() 57 priv->hw->ptp->config_addend(priv->ioaddr, addend); in stmmac_adjust_freq() 72 static int stmmac_adjust_time(struct ptp_clock_info *ptp, s64 delta) in stmmac_adjust_time() argument 75 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_adjust_time() 92 priv->hw->ptp->adjust_systime(priv->ioaddr, sec, nsec, neg_adj); in stmmac_adjust_time() 108 static int stmmac_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts) in stmmac_get_time() argument 111 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_get_time() 117 ns = priv->hw->ptp->get_systime(priv->ioaddr); in stmmac_get_time() 135 static int stmmac_set_time(struct ptp_clock_info *ptp, in stmmac_set_time() argument [all …]
|
D | common.h | 454 const struct stmmac_hwtimestamp *ptp; member
|
D | stmmac_main.c | 595 priv->hw->ptp->config_hw_tstamping(priv->ioaddr, 0); in stmmac_hwtstamp_ioctl() 602 priv->hw->ptp->config_hw_tstamping(priv->ioaddr, value); in stmmac_hwtstamp_ioctl() 605 priv->hw->ptp->config_sub_second_increment(priv->ioaddr); in stmmac_hwtstamp_ioctl() 620 priv->hw->ptp->config_addend(priv->ioaddr, in stmmac_hwtstamp_ioctl() 627 priv->hw->ptp->init_systime(priv->ioaddr, (u32)now.tv_sec, in stmmac_hwtstamp_ioctl() 667 priv->hw->ptp = &stmmac_ptp; in stmmac_init_ptp()
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/ |
D | ptp.c | 37 static int e1000e_phc_adjfreq(struct ptp_clock_info *ptp, s32 delta) in e1000e_phc_adjfreq() argument 39 struct e1000_adapter *adapter = container_of(ptp, struct e1000_adapter, in e1000e_phc_adjfreq() 48 if ((delta > ptp->max_adj) || (delta <= -1000000000)) in e1000e_phc_adjfreq() 88 static int e1000e_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) in e1000e_phc_adjtime() argument 90 struct e1000_adapter *adapter = container_of(ptp, struct e1000_adapter, in e1000e_phc_adjtime() 109 static int e1000e_phc_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in e1000e_phc_gettime() argument 111 struct e1000_adapter *adapter = container_of(ptp, struct e1000_adapter, in e1000e_phc_gettime() 133 static int e1000e_phc_settime(struct ptp_clock_info *ptp, in e1000e_phc_settime() argument 136 struct e1000_adapter *adapter = container_of(ptp, struct e1000_adapter, in e1000e_phc_settime() 160 static int e1000e_phc_enable(struct ptp_clock_info __always_unused *ptp, in e1000e_phc_enable() argument
|
D | Makefile | 36 param.o ethtool.o netdev.o ptp.o
|
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_ptp.c | 260 static int fm10k_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in fm10k_ptp_adjfreq() argument 266 interface = container_of(ptp, struct fm10k_intfc, ptp_caps); in fm10k_ptp_adjfreq() 275 static int fm10k_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in fm10k_ptp_adjtime() argument 280 interface = container_of(ptp, struct fm10k_intfc, ptp_caps); in fm10k_ptp_adjtime() 289 static int fm10k_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in fm10k_ptp_gettime() argument 295 interface = container_of(ptp, struct fm10k_intfc, ptp_caps); in fm10k_ptp_gettime() 306 static int fm10k_ptp_settime(struct ptp_clock_info *ptp, in fm10k_ptp_settime() argument 313 interface = container_of(ptp, struct fm10k_intfc, ptp_caps); in fm10k_ptp_settime() 322 static int fm10k_ptp_enable(struct ptp_clock_info *ptp, in fm10k_ptp_enable() argument 337 if (rq->perout.index >= ptp->n_per_out) in fm10k_ptp_enable() [all …]
|
/linux-4.4.14/Documentation/devicetree/bindings/pinctrl/ |
D | marvell,kirkwood-pinctrl.txt | 28 mpp4 4 gpio, nand(io6), uart0(rxd), ptp(clk) 29 mpp5 5 gpo, nand(io7), uart0(txd), ptp(trig) 30 mpp6 6 sysrst(out), spi(mosi), ptp(trig) 31 mpp7 7 gpo, pex(rsto), spi(cs), ptp(trig) 32 mpp8 8 gpio, twsi0(sda), uart0(rts), uart1(rts), ptp(clk), 34 mpp9 9 gpio, twsi(sck), uart0(cts), uart1(cts), ptp(evreq), 36 mpp10 10 gpo, spi(sck), uart0(txd), ptp(trig) 37 mpp11 11 gpio, spi(miso), uart0(rxd), ptp(clk), ptp-1(evreq), 38 ptp-2(trig) 66 mpp4 4 gpio, nand(io6), uart0(rxd), ptp(clk) [all …]
|
D | marvell,armada-38x-pinctrl.txt | 32 mpp14 14 gpio, ge0(rxd2), ptp(clk), dram(vttctrl), spi0(cs3), dev(we1), pcie3(clkreq) 35 mpp17 17 gpio, ge0(rxclk), ptp(clk), ua1(rxd), spi0(sck), sata1(prsnt), sata0(prsnt) 36 mpp18 18 gpio, ge0(rxerr), ptp(trig), ua1(txd), spi0(cs0) 37 mpp19 19 gpio, ge0(col), ptp(evreq), ge0(txerr), sata1(prsnt), ua0(cts) 38 mpp20 20 gpio, ge0(txclk), ptp(clk), sata0(prsnt), ua0(rts) 54 mpp36 36 gpio, ptp(trig), dev(a0) 55 mpp37 37 gpio, ptp(clk), ge1(rxclk), sd0(d3), dev(ad8) 56 mpp38 38 gpio, ptp(evreq), ge1(rxd1), ref(clk_out0), sd0(d0), dev(ad4) 69 mpp51 51 gpio, tdm(dtx), audio(sdo), dram(deccerr), ptp(trig) 70 mpp52 52 gpio, pcie0(rstout), tdm(int), audio(sdi), sd0(d6), ptp(clk) [all …]
|
D | marvell,armada-375-pinctrl.txt | 18 mpp2 2 gpio, dev(ad4), ptp(evreq), led(c0), audio(sdi) 19 mpp3 3 gpio, dev(ad5), ptp(trig), led(p3), audio(mclk) 23 mpp7 7 gpio, dev(ad1), ptp(clk), led(p2), audio(extclk) 48 mpp32 32 gpio, ge1(txd2), spi1(sck), ptp(trig) 79 mpp63 63 gpio, ptp(trig), led(p2), dev(burst/last) 82 mpp66 66 gpio, ptp(evreq), spi1(cs3)
|
D | marvell,armada-xp-pinctrl.txt | 39 mpp18 18 gpio, ge0(rxerr), ge1(rxd0), lcd(d18), ptp(trig) 40 mpp19 19 gpio, ge0(crs), ge1(rxd1), lcd(d19), ptp(evreq) 41 mpp20 20 gpio, ge0(rxd4), ge1(rxd2), lcd(d20), ptp(clk) 48 mpp27 27 gpio, lcd(e), tdm(dtx), ptp(trig) 49 mpp28 28 gpio, lcd(pwm), tdm(drx), ptp(evreq) 50 mpp29 29 gpio, lcd(ref-clk), tdm(int0), ptp(clk)
|
D | marvell,armada-39x-pinctrl.txt | 26 mpp8 8 gpio, dev(ad10), ptp(trig) 27 mpp9 9 gpio, dev(ad11), ptp(clk) 28 mpp10 10 gpio, dev(ad12), ptp(evreq)
|
/linux-4.4.14/arch/parisc/kernel/ |
D | entry.S | 457 .macro tlb_lock spc,ptp,pte,tmp,tmp1,fault 464 LDREG 0(\ptp),\pte 490 .macro update_accessed ptp,pte,tmp,tmp1 494 STREG \tmp,0(\ptp) 499 .macro update_dirty ptp,pte,tmp 502 STREG \pte,0(\ptp) 1148 ptp = r25 /* page directory/page table pointer */ define 1154 get_pgd spc,ptp 1157 L3_ptep ptp,pte,t0,va,dtlb_check_alias_20w 1159 tlb_lock spc,ptp,pte,t0,t1,dtlb_check_alias_20w [all …]
|
/linux-4.4.14/Documentation/ABI/testing/ |
D | sysfs-ptp | 1 What: /sys/class/ptp/ 9 What: /sys/class/ptp/ptpN/ 17 What: /sys/class/ptp/ptpN/clock_name 28 What: /sys/class/ptp/ptpN/max_adjustment 36 What: /sys/class/ptp/ptpN/n_alarms 43 What: /sys/class/ptp/ptpN/n_external_timestamps 50 What: /sys/class/ptp/ptpN/n_periodic_outputs 57 What: /sys/class/ptp/ptpN/n_pins 64 What: /sys/class/ptp/ptpN/pins 77 What: /sys/class/ptp/ptpN/pps_avaiable [all …]
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/ |
D | en_clock.c | 113 static int mlx4_en_phc_adjfreq(struct ptp_clock_info *ptp, s32 delta) in mlx4_en_phc_adjfreq() argument 119 struct mlx4_en_dev *mdev = container_of(ptp, struct mlx4_en_dev, in mlx4_en_phc_adjfreq() 146 static int mlx4_en_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) in mlx4_en_phc_adjtime() argument 148 struct mlx4_en_dev *mdev = container_of(ptp, struct mlx4_en_dev, in mlx4_en_phc_adjtime() 167 static int mlx4_en_phc_gettime(struct ptp_clock_info *ptp, in mlx4_en_phc_gettime() argument 170 struct mlx4_en_dev *mdev = container_of(ptp, struct mlx4_en_dev, in mlx4_en_phc_gettime() 192 static int mlx4_en_phc_settime(struct ptp_clock_info *ptp, in mlx4_en_phc_settime() argument 195 struct mlx4_en_dev *mdev = container_of(ptp, struct mlx4_en_dev, in mlx4_en_phc_settime() 217 static int mlx4_en_phc_enable(struct ptp_clock_info __always_unused *ptp, in mlx4_en_phc_enable() argument
|
/linux-4.4.14/sound/pci/ctxfi/ |
D | ctvmem.c | 132 unsigned long *ptp; in ct_vm_map() local 142 ptp = (unsigned long *)vm->ptp[0].area; in ct_vm_map() 148 ptp[pte_start + i] = addr; in ct_vm_map() 171 addr = (index >= CT_PTP_NUM) ? ~0UL : vm->ptp[index].addr; in ct_get_ptp_phys() 194 PAGE_SIZE, &vm->ptp[i]); in ct_vm_create() 244 snd_dma_free_pages(&vm->ptp[i]); in ct_vm_destroy()
|
D | ctvmem.h | 46 struct snd_dma_buffer ptp[CT_PTP_NUM]; /* Device page table pages */ member
|
/linux-4.4.14/drivers/net/ethernet/intel/igb/ |
D | igb_ptp.c | 200 static int igb_ptp_adjfreq_82576(struct ptp_clock_info *ptp, s32 ppb) in igb_ptp_adjfreq_82576() argument 202 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_adjfreq_82576() 229 static int igb_ptp_adjfreq_82580(struct ptp_clock_info *ptp, s32 ppb) in igb_ptp_adjfreq_82580() argument 231 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_adjfreq_82580() 255 static int igb_ptp_adjtime_82576(struct ptp_clock_info *ptp, s64 delta) in igb_ptp_adjtime_82576() argument 257 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_adjtime_82576() 268 static int igb_ptp_adjtime_i210(struct ptp_clock_info *ptp, s64 delta) in igb_ptp_adjtime_i210() argument 270 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_adjtime_i210() 286 static int igb_ptp_gettime_82576(struct ptp_clock_info *ptp, in igb_ptp_gettime_82576() argument 289 struct igb_adapter *igb = container_of(ptp, struct igb_adapter, in igb_ptp_gettime_82576() [all …]
|
/linux-4.4.14/drivers/net/ethernet/ti/ |
D | cpts.c | 130 static int cpts_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in cpts_ptp_adjfreq() argument 136 struct cpts *cpts = container_of(ptp, struct cpts, info); in cpts_ptp_adjfreq() 158 static int cpts_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in cpts_ptp_adjtime() argument 161 struct cpts *cpts = container_of(ptp, struct cpts, info); in cpts_ptp_adjtime() 170 static int cpts_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in cpts_ptp_gettime() argument 174 struct cpts *cpts = container_of(ptp, struct cpts, info); in cpts_ptp_gettime() 185 static int cpts_ptp_settime(struct ptp_clock_info *ptp, in cpts_ptp_settime() argument 190 struct cpts *cpts = container_of(ptp, struct cpts, info); in cpts_ptp_settime() 201 static int cpts_ptp_enable(struct ptp_clock_info *ptp, in cpts_ptp_enable() argument
|
/linux-4.4.14/drivers/net/ethernet/freescale/ |
D | fec_ptp.c | 302 static int fec_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in fec_ptp_adjfreq() argument 312 container_of(ptp, struct fec_enet_private, ptp_caps); in fec_ptp_adjfreq() 371 static int fec_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in fec_ptp_adjtime() argument 374 container_of(ptp, struct fec_enet_private, ptp_caps); in fec_ptp_adjtime() 392 static int fec_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in fec_ptp_gettime() argument 395 container_of(ptp, struct fec_enet_private, ptp_caps); in fec_ptp_gettime() 416 static int fec_ptp_settime(struct ptp_clock_info *ptp, in fec_ptp_settime() argument 420 container_of(ptp, struct fec_enet_private, ptp_caps); in fec_ptp_settime() 454 static int fec_ptp_enable(struct ptp_clock_info *ptp, in fec_ptp_enable() argument 458 container_of(ptp, struct fec_enet_private, ptp_caps); in fec_ptp_enable()
|
D | gianfar_ptp.c | 283 static int ptp_gianfar_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_gianfar_adjfreq() argument 288 struct etsects *etsects = container_of(ptp, struct etsects, caps); in ptp_gianfar_adjfreq() 306 static int ptp_gianfar_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_gianfar_adjtime() argument 310 struct etsects *etsects = container_of(ptp, struct etsects, caps); in ptp_gianfar_adjtime() 325 static int ptp_gianfar_gettime(struct ptp_clock_info *ptp, in ptp_gianfar_gettime() argument 330 struct etsects *etsects = container_of(ptp, struct etsects, caps); in ptp_gianfar_gettime() 343 static int ptp_gianfar_settime(struct ptp_clock_info *ptp, in ptp_gianfar_settime() argument 348 struct etsects *etsects = container_of(ptp, struct etsects, caps); in ptp_gianfar_settime() 362 static int ptp_gianfar_enable(struct ptp_clock_info *ptp, in ptp_gianfar_enable() argument 365 struct etsects *etsects = container_of(ptp, struct etsects, caps); in ptp_gianfar_enable()
|
D | gianfar.h | 562 u8 ptp; /* Flag to enable tx timestamping */ member
|
D | gianfar.c | 2478 fcb->ptp = 1; in gfar_start_xmit()
|
/linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
D | i40e_ptp.c | 120 static int i40e_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in i40e_ptp_adjfreq() argument 122 struct i40e_pf *pf = container_of(ptp, struct i40e_pf, ptp_caps); in i40e_ptp_adjfreq() 158 static int i40e_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in i40e_ptp_adjtime() argument 160 struct i40e_pf *pf = container_of(ptp, struct i40e_pf, ptp_caps); in i40e_ptp_adjtime() 183 static int i40e_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in i40e_ptp_gettime() argument 185 struct i40e_pf *pf = container_of(ptp, struct i40e_pf, ptp_caps); in i40e_ptp_gettime() 203 static int i40e_ptp_settime(struct ptp_clock_info *ptp, in i40e_ptp_settime() argument 206 struct i40e_pf *pf = container_of(ptp, struct i40e_pf, ptp_caps); in i40e_ptp_settime() 225 static int i40e_ptp_feature_enable(struct ptp_clock_info *ptp, in i40e_ptp_feature_enable() argument
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ptp.c | 213 static int ixgbe_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ixgbe_ptp_adjfreq() argument 216 container_of(ptp, struct ixgbe_adapter, ptp_caps); in ixgbe_ptp_adjfreq() 259 static int ixgbe_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in ixgbe_ptp_adjtime() argument 262 container_of(ptp, struct ixgbe_adapter, ptp_caps); in ixgbe_ptp_adjtime() 282 static int ixgbe_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ixgbe_ptp_gettime() argument 285 container_of(ptp, struct ixgbe_adapter, ptp_caps); in ixgbe_ptp_gettime() 306 static int ixgbe_ptp_settime(struct ptp_clock_info *ptp, in ixgbe_ptp_settime() argument 310 container_of(ptp, struct ixgbe_adapter, ptp_caps); in ixgbe_ptp_settime() 334 static int ixgbe_ptp_feature_enable(struct ptp_clock_info *ptp, in ixgbe_ptp_feature_enable() argument 338 container_of(ptp, struct ixgbe_adapter, ptp_caps); in ixgbe_ptp_feature_enable()
|
/linux-4.4.14/arch/mips/include/asm/octeon/ |
D | cvmx-ciu-defs.h | 281 uint64_t ptp:1; member 355 uint64_t ptp:1; 365 uint64_t ptp:1; member 431 uint64_t ptp:1; 438 uint64_t ptp:1; member 510 uint64_t ptp:1; 521 uint64_t ptp:1; member 593 uint64_t ptp:1; 603 uint64_t ptp:1; member 659 uint64_t ptp:1; [all …]
|
D | cvmx-ciu2-defs.h | 513 uint64_t ptp:1; member 551 uint64_t ptp:1; 566 uint64_t ptp:1; member 604 uint64_t ptp:1; 619 uint64_t ptp:1; member 657 uint64_t ptp:1; 1500 uint64_t ptp:1; member 1538 uint64_t ptp:1; 1553 uint64_t ptp:1; member 1591 uint64_t ptp:1; [all …]
|
D | cvmx-pko-defs.h | 779 uint64_t ptp:1; member 789 uint64_t ptp:1; 800 uint64_t ptp:1; member 810 uint64_t ptp:1;
|
/linux-4.4.14/net/ceph/ |
D | auth_x.c | 154 void **ptp; in process_one_ticket() local 214 ptp = &tp; in process_one_ticket() 215 tpend = *ptp + dlen; in process_one_ticket() 218 ptp = p; in process_one_ticket() 221 ceph_decode_32_safe(ptp, tpend, dlen, bad); in process_one_ticket() 223 ceph_decode_need(ptp, tpend, 1 + sizeof(u64), bad); in process_one_ticket() 224 blob_struct_v = ceph_decode_8(ptp); in process_one_ticket() 225 new_secret_id = ceph_decode_64(ptp); in process_one_ticket() 226 ret = ceph_decode_buffer(&new_ticket_blob, ptp, tpend); in process_one_ticket()
|
/linux-4.4.14/Documentation/devicetree/bindings/powerpc/fsl/ |
D | fman.txt | 313 - ptp-timer 332 ptp-timer: ptp_timer@fe000 { 333 compatible = "fsl,fman-ptp-timer"; 342 ptp-timer = <&ptp-timer>; 359 Must include "fsl,fman-ptp-timer". 368 ptp-timer@fe000 { 369 compatible = "fsl,fman-ptp-timer"; 607 ptp-timer@fe000 { 608 compatible = "fsl,fman-ptp-timer";
|
/linux-4.4.14/Documentation/ |
D | Makefile | 3 networking pcmcia prctl ptp spi timers vDSO video4linux \
|
D | 00-INDEX | 376 ptp/
|
/linux-4.4.14/drivers/net/phy/ |
D | dp83640.c | 377 static int ptp_dp83640_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_dp83640_adjfreq() argument 380 container_of(ptp, struct dp83640_clock, caps); in ptp_dp83640_adjfreq() 410 static int ptp_dp83640_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_dp83640_adjtime() argument 413 container_of(ptp, struct dp83640_clock, caps); in ptp_dp83640_adjtime() 431 static int ptp_dp83640_gettime(struct ptp_clock_info *ptp, in ptp_dp83640_gettime() argument 435 container_of(ptp, struct dp83640_clock, caps); in ptp_dp83640_gettime() 456 static int ptp_dp83640_settime(struct ptp_clock_info *ptp, in ptp_dp83640_settime() argument 460 container_of(ptp, struct dp83640_clock, caps); in ptp_dp83640_settime() 473 static int ptp_dp83640_enable(struct ptp_clock_info *ptp, in ptp_dp83640_enable() argument 477 container_of(ptp, struct dp83640_clock, caps); in ptp_dp83640_enable() [all …]
|
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/ |
D | Makefile | 5 xgbe-ptp.o
|
/linux-4.4.14/arch/powerpc/boot/dts/fsl/ |
D | qoriq-fman-0.dtsi | 97 ptp_timer0: ptp-timer@fe000 { 98 compatible = "fsl,fman-ptp-timer";
|
D | qoriq-fman3l-0.dtsi | 90 ptp_timer0: ptp-timer@fe000 { 91 compatible = "fsl,fman-ptp-timer";
|
D | qoriq-fman-1.dtsi | 97 ptp_timer1: ptp-timer@fe000 { 98 compatible = "fsl,fman-ptp-timer";
|
D | qoriq-fman3-0.dtsi | 102 ptp_timer0: ptp-timer@fe000 { 103 compatible = "fsl,fman-ptp-timer";
|
D | qoriq-fman3-1.dtsi | 102 ptp_timer1: ptp-timer@fe000 { 103 compatible = "fsl,fman-ptp-timer";
|
D | pq3-etsec1-timer-0.dtsi | 36 compatible = "fsl,etsec-ptp";
|
D | qoriq-fman3-1-1g-2.dtsi | 53 ptp-timer = <&ptp_timer1>;
|
D | qoriq-fman-1-1g-0.dtsi | 54 ptp-timer = <&ptp_timer1>;
|
D | qoriq-fman3-0-1g-2.dtsi | 53 ptp-timer = <&ptp_timer0>;
|
D | qoriq-fman-1-1g-4.dtsi | 54 ptp-timer = <&ptp_timer1>;
|
D | qoriq-fman3-1-1g-1.dtsi | 53 ptp-timer = <&ptp_timer1>;
|
D | qoriq-fman-0-1g-4.dtsi | 54 ptp-timer = <&ptp_timer0>;
|
D | qoriq-fman3-0-1g-0.dtsi | 53 ptp-timer = <&ptp_timer0>;
|
D | qoriq-fman3-1-1g-0.dtsi | 53 ptp-timer = <&ptp_timer1>;
|
D | qoriq-fman-1-1g-1.dtsi | 54 ptp-timer = <&ptp_timer1>;
|
D | qoriq-fman3-1-1g-3.dtsi | 53 ptp-timer = <&ptp_timer1>;
|
D | qoriq-fman3-0-10g-0-best-effort.dtsi | 57 ptp-timer = <&ptp_timer0>;
|
D | qoriq-fman3-0-1g-5.dtsi | 53 ptp-timer = <&ptp_timer0>;
|
D | qoriq-fman3-0-1g-4.dtsi | 53 ptp-timer = <&ptp_timer0>;
|
D | qoriq-fman-0-1g-1.dtsi | 54 ptp-timer = <&ptp_timer0>;
|
D | qoriq-fman3-1-1g-5.dtsi | 53 ptp-timer = <&ptp_timer1>;
|
D | qoriq-fman3-0-10g-1-best-effort.dtsi | 57 ptp-timer = <&ptp_timer0>;
|
D | qoriq-fman-0-1g-3.dtsi | 54 ptp-timer = <&ptp_timer0>;
|
D | qoriq-fman-1-1g-3.dtsi | 54 ptp-timer = <&ptp_timer1>;
|
D | qoriq-fman-0-1g-2.dtsi | 54 ptp-timer = <&ptp_timer0>;
|
D | qoriq-fman-0-1g-0.dtsi | 54 ptp-timer = <&ptp_timer0>;
|
D | qoriq-fman3-1-1g-4.dtsi | 53 ptp-timer = <&ptp_timer1>;
|
D | qoriq-fman-1-1g-2.dtsi | 54 ptp-timer = <&ptp_timer1>;
|
D | qoriq-fman3-0-1g-3.dtsi | 53 ptp-timer = <&ptp_timer0>;
|
D | qoriq-fman3-0-1g-1.dtsi | 53 ptp-timer = <&ptp_timer0>;
|
D | bsc9131rdb.dtsi | 84 compatible = "fsl,etsec-ptp";
|
D | bsc9132qds.dtsi | 91 compatible = "fsl,etsec-ptp";
|
D | p1022ds.dtsi | 219 compatible = "fsl,etsec-ptp";
|
D | p1010rdb.dtsi | 190 compatible = "fsl,etsec-ptp";
|
D | p1021rdb-pc.dtsi | 228 compatible = "fsl,etsec-ptp";
|
D | p1020rdb-pd.dts | 229 compatible = "fsl,etsec-ptp";
|
D | p1025twr.dtsi | 142 compatible = "fsl,etsec-ptp";
|
/linux-4.4.14/drivers/net/ethernet/adi/ |
D | bfin_mac.c | 944 static int bfin_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in bfin_ptp_adjfreq() argument 950 container_of(ptp, struct bfin_mac_local, caps); in bfin_ptp_adjfreq() 968 static int bfin_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in bfin_ptp_adjtime() argument 973 container_of(ptp, struct bfin_mac_local, caps); in bfin_ptp_adjtime() 986 static int bfin_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in bfin_ptp_gettime() argument 991 container_of(ptp, struct bfin_mac_local, caps); in bfin_ptp_gettime() 1004 static int bfin_ptp_settime(struct ptp_clock_info *ptp, in bfin_ptp_settime() argument 1010 container_of(ptp, struct bfin_mac_local, caps); in bfin_ptp_settime() 1023 static int bfin_ptp_enable(struct ptp_clock_info *ptp, in bfin_ptp_enable() argument
|
/linux-4.4.14/arch/sparc/mm/ |
D | srmmu.c | 114 unsigned long ptp; /* Physical address, shifted right by 4 */ in pmd_set() local 117 ptp = __nocache_pa((unsigned long) ptep) >> 4; in pmd_set() 119 set_pte((pte_t *)&pmdp->pmdv[i], SRMMU_ET_PTD | ptp); in pmd_set() 120 ptp += (SRMMU_REAL_PTRS_PER_PTE*sizeof(pte_t) >> 4); in pmd_set() 126 unsigned long ptp; /* Physical address, shifted right by 4 */ in pmd_populate() local 129 ptp = page_to_pfn(ptep) << (PAGE_SHIFT-4); /* watch for overflow */ in pmd_populate() 131 set_pte((pte_t *)&pmdp->pmdv[i], SRMMU_ET_PTD | ptp); in pmd_populate() 132 ptp += (SRMMU_REAL_PTRS_PER_PTE*sizeof(pte_t) >> 4); in pmd_populate()
|
/linux-4.4.14/drivers/net/ethernet/octeon/ |
D | octeon_mgmt.c | 697 union cvmx_mio_ptp_clock_cfg ptp; in octeon_mgmt_ioctl_hwtstamp() local 710 ptp.u64 = cvmx_read_csr(CVMX_MIO_PTP_CLOCK_CFG); in octeon_mgmt_ioctl_hwtstamp() 711 if (!ptp.s.ext_clk_en) { in octeon_mgmt_ioctl_hwtstamp() 717 if (!ptp.s.ptp_en) in octeon_mgmt_ioctl_hwtstamp() 725 ptp.s.ext_clk_in, in octeon_mgmt_ioctl_hwtstamp() 730 if (!ptp.s.ptp_en) { in octeon_mgmt_ioctl_hwtstamp() 731 ptp.s.ptp_en = 1; in octeon_mgmt_ioctl_hwtstamp() 732 cvmx_write_csr(CVMX_MIO_PTP_CLOCK_CFG, ptp.u64); in octeon_mgmt_ioctl_hwtstamp()
|
/linux-4.4.14/Documentation/devicetree/bindings/clock/ |
D | imx28-clock.txt | 50 ptp 36
|
D | mvebu-gated-clock.txt | 32 4 ptp PTP
|
/linux-4.4.14/drivers/net/ethernet/tile/ |
D | tilegx.c | 820 static int ptp_mpipe_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_mpipe_adjfreq() argument 823 struct mpipe_data *md = container_of(ptp, struct mpipe_data, caps); in ptp_mpipe_adjfreq() 831 static int ptp_mpipe_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_mpipe_adjtime() argument 834 struct mpipe_data *md = container_of(ptp, struct mpipe_data, caps); in ptp_mpipe_adjtime() 842 static int ptp_mpipe_gettime(struct ptp_clock_info *ptp, in ptp_mpipe_gettime() argument 846 struct mpipe_data *md = container_of(ptp, struct mpipe_data, caps); in ptp_mpipe_gettime() 854 static int ptp_mpipe_settime(struct ptp_clock_info *ptp, in ptp_mpipe_settime() argument 858 struct mpipe_data *md = container_of(ptp, struct mpipe_data, caps); in ptp_mpipe_settime() 866 static int ptp_mpipe_enable(struct ptp_clock_info *ptp, in ptp_mpipe_enable() argument
|
/linux-4.4.14/drivers/clk/mxs/ |
D | clk-imx28.c | 144 emi_xtal, lcdif_div, etm_div, ptp, saif0_div, saif1_div, enumerator 209 clks[ptp] = mxs_clk_div("ptp", "ptp_sel", ENET, 21, 6, 27); in mx28_clocks_init()
|
/linux-4.4.14/Documentation/devicetree/bindings/net/ |
D | fsl-tsec-phy.txt | 87 - compatible Should be "fsl,etsec-ptp" 140 compatible = "fsl,etsec-ptp";
|
/linux-4.4.14/drivers/ |
D | Makefile | 107 obj-$(CONFIG_PTP_1588_CLOCK) += ptp/
|
D | Kconfig | 65 source "drivers/ptp/Kconfig"
|
/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/ |
D | lio_main.c | 1471 static int liquidio_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in liquidio_ptp_adjfreq() argument 1473 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_adjfreq() 1508 static int liquidio_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in liquidio_ptp_adjtime() argument 1511 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_adjtime() 1525 static int liquidio_ptp_gettime(struct ptp_clock_info *ptp, in liquidio_ptp_gettime() argument 1531 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_gettime() 1550 static int liquidio_ptp_settime(struct ptp_clock_info *ptp, in liquidio_ptp_settime() argument 1555 struct lio *lio = container_of(ptp, struct lio, ptp_info); in liquidio_ptp_settime() 1574 static int liquidio_ptp_enable(struct ptp_clock_info *ptp, in liquidio_ptp_enable() argument
|
/linux-4.4.14/arch/arm/boot/dts/ |
D | vfxxx.dtsi | 544 clock-names = "ipg", "ahb", "ptp"; 555 clock-names = "ipg", "ahb", "ptp";
|
D | imx6ul.dtsi | 313 clock-names = "ipg", "ahb", "ptp", 580 clock-names = "ipg", "ahb", "ptp",
|
D | imx7d.dtsi | 873 clock-names = "ipg", "ahb", "ptp", 891 clock-names = "ipg", "ahb", "ptp",
|
D | imx50.dtsi | 487 clock-names = "ipg", "ahb", "ptp";
|
D | imx51.dtsi | 587 clock-names = "ipg", "ahb", "ptp";
|
D | imx6sx.dtsi | 828 clock-names = "ipg", "ahb", "ptp", 937 clock-names = "ipg", "ahb", "ptp",
|
D | imx53.dtsi | 742 clock-names = "ipg", "ahb", "ptp";
|
D | imx6qdl.dtsi | 959 clock-names = "ipg", "ahb", "ptp";
|
/linux-4.4.14/arch/powerpc/boot/dts/ |
D | mpc8313erdb.dts | 180 compatible = "fsl,etsec-ptp";
|
/linux-4.4.14/Documentation/networking/ |
D | timestamping.txt | 270 as linuxptp. For the PTP clock API, see Documentation/ptp/ptp.txt.
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 13636 static int bnx2x_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in bnx2x_ptp_adjfreq() argument 13638 struct bnx2x *bp = container_of(ptp, struct bnx2x, ptp_clock_info); in bnx2x_ptp_adjfreq() 13704 static int bnx2x_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in bnx2x_ptp_adjtime() argument 13706 struct bnx2x *bp = container_of(ptp, struct bnx2x, ptp_clock_info); in bnx2x_ptp_adjtime() 13715 static int bnx2x_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in bnx2x_ptp_gettime() argument 13717 struct bnx2x *bp = container_of(ptp, struct bnx2x, ptp_clock_info); in bnx2x_ptp_gettime() 13729 static int bnx2x_ptp_settime(struct ptp_clock_info *ptp, in bnx2x_ptp_settime() argument 13732 struct bnx2x *bp = container_of(ptp, struct bnx2x, ptp_clock_info); in bnx2x_ptp_settime() 13746 static int bnx2x_ptp_enable(struct ptp_clock_info *ptp, in bnx2x_ptp_enable() argument 13749 struct bnx2x *bp = container_of(ptp, struct bnx2x, ptp_clock_info); in bnx2x_ptp_enable()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/ |
D | tg3.c | 6173 static int tg3_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in tg3_ptp_adjfreq() argument 6175 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_adjfreq() 6209 static int tg3_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in tg3_ptp_adjtime() argument 6211 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_adjtime() 6220 static int tg3_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in tg3_ptp_gettime() argument 6223 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_gettime() 6235 static int tg3_ptp_settime(struct ptp_clock_info *ptp, in tg3_ptp_settime() argument 6239 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_settime() 6251 static int tg3_ptp_enable(struct ptp_clock_info *ptp, in tg3_ptp_enable() argument 6254 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); in tg3_ptp_enable()
|
/linux-4.4.14/security/smack/ |
D | smack_lsm.c | 496 static int smack_ptrace_traceme(struct task_struct *ptp) in smack_ptrace_traceme() argument 503 rc = smk_ptrace_rule_check(ptp, skp, PTRACE_MODE_ATTACH, __func__); in smack_ptrace_traceme()
|
/linux-4.4.14/ |
D | MAINTAINERS | 8576 F: Documentation/ABI/testing/sysfs-ptp 8577 F: Documentation/ptp/* 8580 F: drivers/ptp/*
|