/linux-4.1.27/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.1.27/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, 482 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_get_attributes() local 503 ptp->ns_to_nic_time = efx_ptp_ns_to_s27; in efx_ptp_get_attributes() 504 ptp->nic_to_kernel_time = efx_ptp_s27_to_ktime_correction; in efx_ptp_get_attributes() 506 ptp->ns_to_nic_time = efx_ptp_ns_to_s_ns; in efx_ptp_get_attributes() 507 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.1.27/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.1.27/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 | 594 priv->hw->ptp->config_hw_tstamping(priv->ioaddr, 0); in stmmac_hwtstamp_ioctl() 601 priv->hw->ptp->config_hw_tstamping(priv->ioaddr, value); in stmmac_hwtstamp_ioctl() 604 priv->hw->ptp->config_sub_second_increment(priv->ioaddr); in stmmac_hwtstamp_ioctl() 619 priv->hw->ptp->config_addend(priv->ioaddr, in stmmac_hwtstamp_ioctl() 624 priv->hw->ptp->init_systime(priv->ioaddr, now.tv_sec, in stmmac_hwtstamp_ioctl() 664 priv->hw->ptp = &stmmac_ptp; in stmmac_init_ptp()
|
/linux-4.1.27/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.1.27/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_ptp.c | 259 static int fm10k_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in fm10k_ptp_adjfreq() argument 265 interface = container_of(ptp, struct fm10k_intfc, ptp_caps); in fm10k_ptp_adjfreq() 274 static int fm10k_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in fm10k_ptp_adjtime() argument 279 interface = container_of(ptp, struct fm10k_intfc, ptp_caps); in fm10k_ptp_adjtime() 288 static int fm10k_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in fm10k_ptp_gettime() argument 294 interface = container_of(ptp, struct fm10k_intfc, ptp_caps); in fm10k_ptp_gettime() 305 static int fm10k_ptp_settime(struct ptp_clock_info *ptp, in fm10k_ptp_settime() argument 312 interface = container_of(ptp, struct fm10k_intfc, ptp_caps); in fm10k_ptp_settime() 321 static int fm10k_ptp_enable(struct ptp_clock_info *ptp, in fm10k_ptp_enable() argument 336 if (rq->perout.index >= ptp->n_per_out) in fm10k_ptp_enable() [all …]
|
/linux-4.1.27/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), m(vtt_ctrl), spi0(cs3), dev(wen1), pcie3(clkreq) 35 mpp17 17 gpio, ge0(rxclk), ptp(clk), ua1(rxd), spi0(sck), sata1(prsnt) 36 mpp18 18 gpio, ge0(rxerr), ptp(trig_gen), ua1(txd), spi0(cs0) 37 mpp19 19 gpio, ge0(col), ptp(event_req), ge0(txerr), sata1(prsnt), ua0(cts) 38 mpp20 20 gpio, ge0(txclk), ptp(clk), sata0(prsnt), ua0(rts) 54 mpp36 36 gpio, ptp(trig_gen), dev(a0) 55 mpp37 37 gpio, ptp(clk), ge1(rxclk), sd0(d3), dev(ad8) 56 mpp38 38 gpio, ptp(event_req), ge1(rxd1), ref(clk_out0), sd0(d0), dev(ad4)
|
D | marvell,armada-375-pinctrl.txt | 18 mpp2 2 gpio, dev(ad4), ptp(eventreq), led(c0), audio(sdi) 19 mpp3 3 gpio, dev(ad5), ptp(triggen), 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(triggen) 79 mpp63 63 gpio, ptp(triggen), led(p2) 82 mpp66 66 gpio, ptp(eventreq), 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 | 25 mpp8 8 gpio, dev(ad10), ptp(trig) 26 mpp9 9 gpio, dev(ad11), ptp(clk) 27 mpp10 10 gpio, dev(ad12), ptp(event)
|
/linux-4.1.27/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) 1136 ptp = r25 /* page directory/page table pointer */ define 1142 get_pgd spc,ptp 1145 L3_ptep ptp,pte,t0,va,dtlb_check_alias_20w 1147 tlb_lock spc,ptp,pte,t0,t1,dtlb_check_alias_20w [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/net/ethernet/freescale/ |
D | fec_ptp.c | 304 static int fec_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in fec_ptp_adjfreq() argument 314 container_of(ptp, struct fec_enet_private, ptp_caps); in fec_ptp_adjfreq() 372 static int fec_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in fec_ptp_adjtime() argument 375 container_of(ptp, struct fec_enet_private, ptp_caps); in fec_ptp_adjtime() 393 static int fec_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in fec_ptp_gettime() argument 396 container_of(ptp, struct fec_enet_private, ptp_caps); in fec_ptp_gettime() 417 static int fec_ptp_settime(struct ptp_clock_info *ptp, in fec_ptp_settime() argument 421 container_of(ptp, struct fec_enet_private, ptp_caps); in fec_ptp_settime() 455 static int fec_ptp_enable(struct ptp_clock_info *ptp, in fec_ptp_enable() argument 459 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 | 557 u8 ptp; /* Flag to enable tx timestamping */ member
|
D | gianfar.c | 2405 fcb->ptp = 1; in gfar_start_xmit()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40e/ |
D | i40e_ptp.c | 121 static int i40e_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in i40e_ptp_adjfreq() argument 123 struct i40e_pf *pf = container_of(ptp, struct i40e_pf, ptp_caps); in i40e_ptp_adjfreq() 159 static int i40e_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in i40e_ptp_adjtime() argument 161 struct i40e_pf *pf = container_of(ptp, struct i40e_pf, ptp_caps); in i40e_ptp_adjtime() 184 static int i40e_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in i40e_ptp_gettime() argument 186 struct i40e_pf *pf = container_of(ptp, struct i40e_pf, ptp_caps); in i40e_ptp_gettime() 204 static int i40e_ptp_settime(struct ptp_clock_info *ptp, in i40e_ptp_settime() argument 207 struct i40e_pf *pf = container_of(ptp, struct i40e_pf, ptp_caps); in i40e_ptp_settime() 226 static int i40e_ptp_feature_enable(struct ptp_clock_info *ptp, in i40e_ptp_feature_enable() argument
|
/linux-4.1.27/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.1.27/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.1.27/net/ceph/ |
D | auth_x.c | 153 void **ptp; in process_one_ticket() local 213 ptp = &tp; in process_one_ticket() 214 tpend = *ptp + dlen; in process_one_ticket() 217 ptp = p; in process_one_ticket() 220 ceph_decode_32_safe(ptp, tpend, dlen, bad); in process_one_ticket() 222 ceph_decode_need(ptp, tpend, 1 + sizeof(u64), bad); in process_one_ticket() 223 blob_struct_v = ceph_decode_8(ptp); in process_one_ticket() 224 new_secret_id = ceph_decode_64(ptp); in process_one_ticket() 225 ret = ceph_decode_buffer(&new_ticket_blob, ptp, tpend); in process_one_ticket()
|
/linux-4.1.27/Documentation/devicetree/bindings/powerpc/fsl/ |
D | fman.txt | 300 - ptp-timer 319 ptp-timer: ptp_timer@fe000 { 320 compatible = "fsl,fman-ptp-timer"; 329 ptp-timer = <&ptp-timer>; 346 Must include "fsl,fman-ptp-timer". 355 ptp-timer@fe000 { 356 compatible = "fsl,fman-ptp-timer"; 594 ptp-timer@fe000 { 595 compatible = "fsl,fman-ptp-timer";
|
/linux-4.1.27/Documentation/ |
D | Makefile | 3 networking pcmcia prctl ptp spi timers vDSO video4linux \
|
D | 00-INDEX | 376 ptp/
|
/linux-4.1.27/drivers/net/phy/ |
D | dp83640.c | 376 static int ptp_dp83640_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_dp83640_adjfreq() argument 379 container_of(ptp, struct dp83640_clock, caps); in ptp_dp83640_adjfreq() 409 static int ptp_dp83640_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_dp83640_adjtime() argument 412 container_of(ptp, struct dp83640_clock, caps); in ptp_dp83640_adjtime() 430 static int ptp_dp83640_gettime(struct ptp_clock_info *ptp, in ptp_dp83640_gettime() argument 434 container_of(ptp, struct dp83640_clock, caps); in ptp_dp83640_gettime() 455 static int ptp_dp83640_settime(struct ptp_clock_info *ptp, in ptp_dp83640_settime() argument 459 container_of(ptp, struct dp83640_clock, caps); in ptp_dp83640_settime() 472 static int ptp_dp83640_enable(struct ptp_clock_info *ptp, in ptp_dp83640_enable() argument 476 container_of(ptp, struct dp83640_clock, caps); in ptp_dp83640_enable() [all …]
|
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/ |
D | Makefile | 5 xgbe-ptp.o
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/Documentation/devicetree/bindings/clock/ |
D | imx28-clock.txt | 50 ptp 36
|
D | mvebu-gated-clock.txt | 31 4 ptp PTP
|
/linux-4.1.27/drivers/net/ethernet/tile/ |
D | tilegx.c | 819 static int ptp_mpipe_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_mpipe_adjfreq() argument 822 struct mpipe_data *md = container_of(ptp, struct mpipe_data, caps); in ptp_mpipe_adjfreq() 830 static int ptp_mpipe_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_mpipe_adjtime() argument 833 struct mpipe_data *md = container_of(ptp, struct mpipe_data, caps); in ptp_mpipe_adjtime() 841 static int ptp_mpipe_gettime(struct ptp_clock_info *ptp, in ptp_mpipe_gettime() argument 845 struct mpipe_data *md = container_of(ptp, struct mpipe_data, caps); in ptp_mpipe_gettime() 853 static int ptp_mpipe_settime(struct ptp_clock_info *ptp, in ptp_mpipe_settime() argument 857 struct mpipe_data *md = container_of(ptp, struct mpipe_data, caps); in ptp_mpipe_settime() 865 static int ptp_mpipe_enable(struct ptp_clock_info *ptp, in ptp_mpipe_enable() argument
|
/linux-4.1.27/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.1.27/arch/powerpc/boot/dts/fsl/ |
D | pq3-etsec1-timer-0.dtsi | 36 compatible = "fsl,etsec-ptp";
|
/linux-4.1.27/Documentation/devicetree/bindings/net/ |
D | fsl-tsec-phy.txt | 83 - compatible Should be "fsl,etsec-ptp" 136 compatible = "fsl,etsec-ptp";
|
/linux-4.1.27/drivers/ |
D | Makefile | 105 obj-$(CONFIG_PTP_1588_CLOCK) += ptp/
|
D | Kconfig | 61 source "drivers/ptp/Kconfig"
|
/linux-4.1.27/arch/arm/boot/dts/ |
D | vfxxx.dtsi | 498 clock-names = "ipg", "ahb", "ptp"; 509 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 | 791 clock-names = "ipg", "ahb", "ptp", 900 clock-names = "ipg", "ahb", "ptp",
|
D | imx53.dtsi | 741 clock-names = "ipg", "ahb", "ptp";
|
D | imx6qdl.dtsi | 905 clock-names = "ipg", "ahb", "ptp";
|
/linux-4.1.27/arch/powerpc/boot/dts/ |
D | mpc8313erdb.dts | 180 compatible = "fsl,etsec-ptp";
|
/linux-4.1.27/Documentation/networking/ |
D | timestamping.txt | 270 as linuxptp. For the PTP clock API, see Documentation/ptp/ptp.txt.
|
/linux-4.1.27/security/smack/ |
D | smack_lsm.c | 458 static int smack_ptrace_traceme(struct task_struct *ptp) in smack_ptrace_traceme() argument 463 rc = cap_ptrace_traceme(ptp); in smack_ptrace_traceme() 469 rc = smk_ptrace_rule_check(ptp, skp, PTRACE_MODE_ATTACH, __func__); in smack_ptrace_traceme()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 13217 static int bnx2x_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in bnx2x_ptp_adjfreq() argument 13219 struct bnx2x *bp = container_of(ptp, struct bnx2x, ptp_clock_info); in bnx2x_ptp_adjfreq() 13285 static int bnx2x_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in bnx2x_ptp_adjtime() argument 13287 struct bnx2x *bp = container_of(ptp, struct bnx2x, ptp_clock_info); in bnx2x_ptp_adjtime() 13296 static int bnx2x_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in bnx2x_ptp_gettime() argument 13298 struct bnx2x *bp = container_of(ptp, struct bnx2x, ptp_clock_info); in bnx2x_ptp_gettime() 13310 static int bnx2x_ptp_settime(struct ptp_clock_info *ptp, in bnx2x_ptp_settime() argument 13313 struct bnx2x *bp = container_of(ptp, struct bnx2x, ptp_clock_info); in bnx2x_ptp_settime() 13327 static int bnx2x_ptp_enable(struct ptp_clock_info *ptp, in bnx2x_ptp_enable() argument 13330 struct bnx2x *bp = container_of(ptp, struct bnx2x, ptp_clock_info); in bnx2x_ptp_enable()
|
/linux-4.1.27/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.1.27/ |
D | MAINTAINERS | 7906 F: Documentation/ABI/testing/sysfs-ptp 7907 F: Documentation/ptp/* 7910 F: drivers/ptp/*
|