/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/af/ |
D | ptp.c | 66 #define is_rev_A0(ptp) (((ptp)->pdev->revision & 0x0F) == 0x0) argument 67 #define is_rev_A1(ptp) (((ptp)->pdev->revision & 0x0F) == 0x1) argument 76 static struct ptp *first_ptp_block; 79 static bool is_ptp_dev_cnf10ka(struct ptp *ptp) in is_ptp_dev_cnf10ka() argument 81 return ptp->pdev->subsystem_device == PCI_SUBSYS_DEVID_CNF10K_A_PTP; in is_ptp_dev_cnf10ka() 84 static bool is_ptp_dev_cn10ka(struct ptp *ptp) in is_ptp_dev_cn10ka() argument 86 return ptp->pdev->subsystem_device == PCI_SUBSYS_DEVID_CN10K_A_PTP; in is_ptp_dev_cn10ka() 89 static bool cn10k_ptp_errata(struct ptp *ptp) in cn10k_ptp_errata() argument 91 if ((is_ptp_dev_cn10ka(ptp) || is_ptp_dev_cnf10ka(ptp)) && in cn10k_ptp_errata() 92 (is_rev_A0(ptp) || is_rev_A1(ptp))) in cn10k_ptp_errata() [all …]
|
D | ptp.h | 15 struct ptp { struct 18 u64 (*read_ptp_tstmp)(struct ptp *ptp); argument 27 struct ptp *ptp_get(void); argument 28 void ptp_put(struct ptp *ptp);
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qede/ |
D | qede_ptp.c | 42 struct qede_ptp *ptp = container_of(info, struct qede_ptp, clock_info); in qede_ptp_adjfine() local 44 struct qede_dev *edev = ptp->edev; in qede_ptp_adjfine() 49 spin_lock_bh(&ptp->lock); in qede_ptp_adjfine() 50 rc = ptp->ops->adjfreq(edev->cdev, ppb); in qede_ptp_adjfine() 51 spin_unlock_bh(&ptp->lock); in qede_ptp_adjfine() 64 struct qede_ptp *ptp; in qede_ptp_adjtime() local 66 ptp = container_of(info, struct qede_ptp, clock_info); in qede_ptp_adjtime() 67 edev = ptp->edev; in qede_ptp_adjtime() 72 spin_lock_bh(&ptp->lock); in qede_ptp_adjtime() 73 timecounter_adjtime(&ptp->tc, delta); in qede_ptp_adjtime() [all …]
|
/linux-6.6.21/drivers/ptp/ |
D | ptp_clock.c | 79 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_settime() local 81 if (ptp_clock_freerun(ptp)) { in ptp_clock_settime() 86 return ptp->info->settime64(ptp->info, tp); in ptp_clock_settime() 91 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_gettime() local 94 if (ptp->info->gettimex64) in ptp_clock_gettime() 95 err = ptp->info->gettimex64(ptp->info, tp, NULL); in ptp_clock_gettime() 97 err = ptp->info->gettime64(ptp->info, tp); in ptp_clock_gettime() 103 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_adjtime() local 107 if (ptp_clock_freerun(ptp)) { in ptp_clock_adjtime() 112 ops = ptp->info; in ptp_clock_adjtime() [all …]
|
D | ptp_sysfs.c | 16 struct ptp_clock *ptp = dev_get_drvdata(dev); in clock_name_show() local 17 return sysfs_emit(page, "%s\n", ptp->info->name); in clock_name_show() 25 struct ptp_clock *ptp = dev_get_drvdata(dev); in max_phase_adjustment_show() local 28 ptp->info->getmaxphase(ptp->info)); in max_phase_adjustment_show() 36 struct ptp_clock *ptp = dev_get_drvdata(dev); \ 37 return snprintf(page, PAGE_SIZE-1, "%d\n", ptp->info->var); \ 52 struct ptp_clock *ptp = dev_get_drvdata(dev); in extts_enable_store() local 53 struct ptp_clock_info *ops = ptp->info; in extts_enable_store() 77 struct ptp_clock *ptp = dev_get_drvdata(dev); in extts_fifo_show() local 78 struct timestamp_event_queue *queue = &ptp->tsevq; in extts_fifo_show() [all …]
|
D | ptp_chardev.c | 48 int ptp_set_pinfunc(struct ptp_clock *ptp, unsigned int pin, in ptp_set_pinfunc() argument 51 struct ptp_clock_info *info = ptp->info; in ptp_set_pinfunc() 111 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_ioctl() local 115 struct ptp_clock_info *ops = ptp->info; in ptp_ioctl() 132 caps.max_adj = ptp->info->max_adj; in ptp_ioctl() 133 caps.n_alarm = ptp->info->n_alarm; in ptp_ioctl() 134 caps.n_ext_ts = ptp->info->n_ext_ts; in ptp_ioctl() 135 caps.n_per_out = ptp->info->n_per_out; in ptp_ioctl() 136 caps.pps = ptp->info->pps; in ptp_ioctl() 137 caps.n_pins = ptp->info->n_pins; in ptp_ioctl() [all …]
|
D | ptp_vclock.c | 43 static int ptp_vclock_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in ptp_vclock_adjfine() argument 45 struct ptp_vclock *vclock = info_to_vclock(ptp); in ptp_vclock_adjfine() 60 static int ptp_vclock_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_vclock_adjtime() argument 62 struct ptp_vclock *vclock = info_to_vclock(ptp); in ptp_vclock_adjtime() 72 static int ptp_vclock_gettime(struct ptp_clock_info *ptp, in ptp_vclock_gettime() argument 75 struct ptp_vclock *vclock = info_to_vclock(ptp); in ptp_vclock_gettime() 87 static int ptp_vclock_gettimex(struct ptp_clock_info *ptp, in ptp_vclock_gettimex() argument 91 struct ptp_vclock *vclock = info_to_vclock(ptp); in ptp_vclock_gettimex() 111 static int ptp_vclock_settime(struct ptp_clock_info *ptp, in ptp_vclock_settime() argument 114 struct ptp_vclock *vclock = info_to_vclock(ptp); in ptp_vclock_settime() [all …]
|
D | ptp_private.h | 90 static inline bool ptp_vclock_in_use(struct ptp_clock *ptp) in ptp_vclock_in_use() argument 94 if (mutex_lock_interruptible(&ptp->n_vclocks_mux)) in ptp_vclock_in_use() 97 if (!ptp->is_virtual_clock && ptp->n_vclocks) in ptp_vclock_in_use() 100 mutex_unlock(&ptp->n_vclocks_mux); in ptp_vclock_in_use() 106 static inline bool ptp_clock_freerun(struct ptp_clock *ptp) in ptp_clock_freerun() argument 108 if (ptp->has_cycles) in ptp_clock_freerun() 111 return ptp_vclock_in_use(ptp); in ptp_clock_freerun() 121 int ptp_set_pinfunc(struct ptp_clock *ptp, unsigned int pin, 141 int ptp_populate_pin_groups(struct ptp_clock *ptp); 142 void ptp_cleanup_pin_groups(struct ptp_clock *ptp);
|
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ptp.c | 62 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_settime() local 66 if (BNXT_PTP_USE_RTC(ptp->bp)) in bnxt_ptp_settime() 67 return bnxt_ptp_cfg_settime(ptp->bp, ns); in bnxt_ptp_settime() 69 spin_lock_bh(&ptp->ptp_lock); in bnxt_ptp_settime() 70 timecounter_init(&ptp->tc, &ptp->cc, ns); in bnxt_ptp_settime() 71 spin_unlock_bh(&ptp->ptp_lock); in bnxt_ptp_settime() 79 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_refclk_read() local 85 high_before = readl(bp->bar0 + ptp->refclk_mapped_regs[1]); in bnxt_refclk_read() 87 low = readl(bp->bar0 + ptp->refclk_mapped_regs[0]); in bnxt_refclk_read() 89 high_now = readl(bp->bar0 + ptp->refclk_mapped_regs[1]); in bnxt_refclk_read() [all …]
|
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_ptp.c | 13 static bool is_tstmp_atomic_update_supported(struct otx2_ptp *ptp) in is_tstmp_atomic_update_supported() argument 19 if (!ptp->nic) in is_tstmp_atomic_update_supported() 22 mutex_lock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported() 23 req = otx2_mbox_alloc_msg_ptp_get_cap(&ptp->nic->mbox); in is_tstmp_atomic_update_supported() 25 mutex_unlock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported() 29 err = otx2_sync_mbox_msg(&ptp->nic->mbox); in is_tstmp_atomic_update_supported() 31 mutex_unlock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported() 34 rsp = (struct ptp_get_cap_rsp *)otx2_mbox_get_rsp(&ptp->nic->mbox.mbox, 0, in is_tstmp_atomic_update_supported() 36 mutex_unlock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported() 49 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_hw_adjtime() local [all …]
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_ptp.c | 10 struct hclge_ptp *ptp = hdev->ptp; in hclge_ptp_get_cycle() local 12 ptp->cycle.quo = readl(hdev->ptp->io_base + HCLGE_PTP_CYCLE_QUO_REG) & in hclge_ptp_get_cycle() 14 ptp->cycle.numer = readl(hdev->ptp->io_base + HCLGE_PTP_CYCLE_NUM_REG); in hclge_ptp_get_cycle() 15 ptp->cycle.den = readl(hdev->ptp->io_base + HCLGE_PTP_CYCLE_DEN_REG); in hclge_ptp_get_cycle() 17 if (ptp->cycle.den == 0) { in hclge_ptp_get_cycle() 25 static int hclge_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in hclge_ptp_adjfine() argument 27 struct hclge_dev *hdev = hclge_ptp_get_hdev(ptp); in hclge_ptp_adjfine() 28 struct hclge_ptp_cycle *cycle = &hdev->ptp->cycle; in hclge_ptp_adjfine() 43 spin_lock_irqsave(&hdev->ptp->lock, flags); in hclge_ptp_adjfine() 45 hdev->ptp->io_base + HCLGE_PTP_CYCLE_QUO_REG); in hclge_ptp_adjfine() [all …]
|
/linux-6.6.21/drivers/net/ethernet/microchip/ |
D | lan743x_ptp.c | 81 struct lan743x_ptp *ptp = &adapter->ptp; in lan743x_ptp_tx_ts_enqueue_ts() local 83 spin_lock_bh(&ptp->tx_ts_lock); in lan743x_ptp_tx_ts_enqueue_ts() 84 if (ptp->tx_ts_queue_size < LAN743X_PTP_NUMBER_OF_TX_TIMESTAMPS) { in lan743x_ptp_tx_ts_enqueue_ts() 85 ptp->tx_ts_seconds_queue[ptp->tx_ts_queue_size] = seconds; in lan743x_ptp_tx_ts_enqueue_ts() 86 ptp->tx_ts_nseconds_queue[ptp->tx_ts_queue_size] = nano_seconds; in lan743x_ptp_tx_ts_enqueue_ts() 87 ptp->tx_ts_header_queue[ptp->tx_ts_queue_size] = header; in lan743x_ptp_tx_ts_enqueue_ts() 88 ptp->tx_ts_queue_size++; in lan743x_ptp_tx_ts_enqueue_ts() 93 spin_unlock_bh(&ptp->tx_ts_lock); in lan743x_ptp_tx_ts_enqueue_ts() 98 struct lan743x_ptp *ptp = &adapter->ptp; in lan743x_ptp_tx_ts_complete() local 105 spin_lock_bh(&ptp->tx_ts_lock); in lan743x_ptp_tx_ts_complete() [all …]
|
/linux-6.6.21/drivers/net/ethernet/sfc/siena/ |
D | ptp.c | 350 static int efx_phc_adjfine(struct ptp_clock_info *ptp, long scaled_ppm); 351 static int efx_phc_adjtime(struct ptp_clock_info *ptp, s64 delta); 352 static int efx_phc_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts); 353 static int efx_phc_settime(struct ptp_clock_info *ptp, 355 static int efx_phc_enable(struct ptp_clock_info *ptp, 559 struct efx_ptp_data *ptp, in efx_ptp_mac_nic_to_ktime_correction() argument 603 kt = ptp->nic_to_kernel_time(nic_major, nic_minor, in efx_ptp_mac_nic_to_ktime_correction() 612 struct efx_ptp_data *ptp = efx->ptp_data; in efx_siena_ptp_nic_to_kernel_time() local 616 kt = efx_ptp_mac_nic_to_ktime_correction(efx, ptp, in efx_siena_ptp_nic_to_kernel_time() 619 ptp->ts_corrections.general_tx); in efx_siena_ptp_nic_to_kernel_time() [all …]
|
/linux-6.6.21/drivers/net/ethernet/sfc/ |
D | ptp.c | 348 static int efx_phc_adjfine(struct ptp_clock_info *ptp, long scaled_ppm); 349 static int efx_phc_adjtime(struct ptp_clock_info *ptp, s64 delta); 350 static int efx_phc_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts); 351 static int efx_phc_settime(struct ptp_clock_info *ptp, 353 static int efx_phc_enable(struct ptp_clock_info *ptp, 546 struct efx_ptp_data *ptp, in efx_ptp_mac_nic_to_ktime_correction() argument 590 kt = ptp->nic_to_kernel_time(nic_major, nic_minor, in efx_ptp_mac_nic_to_ktime_correction() 599 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_nic_to_kernel_time() local 603 kt = efx_ptp_mac_nic_to_ktime_correction(efx, ptp, in efx_ptp_nic_to_kernel_time() 606 ptp->ts_corrections.general_tx); in efx_ptp_nic_to_kernel_time() [all …]
|
/linux-6.6.21/include/linux/ |
D | ptp_clock_kernel.h | 176 int (*adjfine)(struct ptp_clock_info *ptp, long scaled_ppm); 177 int (*adjphase)(struct ptp_clock_info *ptp, s32 phase); 178 s32 (*getmaxphase)(struct ptp_clock_info *ptp); 179 int (*adjtime)(struct ptp_clock_info *ptp, s64 delta); 180 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts); 181 int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts, 183 int (*getcrosststamp)(struct ptp_clock_info *ptp, 186 int (*getcycles64)(struct ptp_clock_info *ptp, struct timespec64 *ts); 187 int (*getcyclesx64)(struct ptp_clock_info *ptp, struct timespec64 *ts, 189 int (*getcrosscycles)(struct ptp_clock_info *ptp, [all …]
|
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
D | base.c | 44 const int slot = pt->base >> pt->ptp->shift; in nvkm_mmu_ptp_put() 45 struct nvkm_mmu_ptp *ptp = pt->ptp; in nvkm_mmu_ptp_put() local 50 if (!ptp->free) in nvkm_mmu_ptp_put() 51 list_add(&ptp->head, &mmu->ptp.list); in nvkm_mmu_ptp_put() 52 ptp->free |= BIT(slot); in nvkm_mmu_ptp_put() 55 if (ptp->free == ptp->mask) { in nvkm_mmu_ptp_put() 56 nvkm_mmu_ptc_put(mmu, force, &ptp->pt); in nvkm_mmu_ptp_put() 57 list_del(&ptp->head); in nvkm_mmu_ptp_put() 58 kfree(ptp); in nvkm_mmu_ptp_put() 68 struct nvkm_mmu_ptp *ptp; in nvkm_mmu_ptp_get() local [all …]
|
/linux-6.6.21/drivers/net/ethernet/renesas/ |
D | ravb_ptp.c | 73 u32 gti_ns_plus_1 = (priv->ptp.current_addend >> 20) + 1; in ravb_ptp_update_compare() 91 static int ravb_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in ravb_ptp_adjfine() argument 93 struct ravb_private *priv = container_of(ptp, struct ravb_private, in ravb_ptp_adjfine() 94 ptp.info); in ravb_ptp_adjfine() 100 addend = (u32)adjust_by_scaled_ppm(priv->ptp.default_addend, in ravb_ptp_adjfine() 105 priv->ptp.current_addend = addend; in ravb_ptp_adjfine() 120 static int ravb_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in ravb_ptp_adjtime() argument 122 struct ravb_private *priv = container_of(ptp, struct ravb_private, in ravb_ptp_adjtime() 123 ptp.info); in ravb_ptp_adjtime() 141 static int ravb_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) in ravb_ptp_gettime64() argument [all …]
|
D | rcar_gen4_ptp.c | 15 #define ptp_to_priv(ptp) container_of(ptp, struct rcar_gen4_ptp_private, info) argument 29 static int rcar_gen4_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in rcar_gen4_ptp_adjfine() argument 31 struct rcar_gen4_ptp_private *ptp_priv = ptp_to_priv(ptp); in rcar_gen4_ptp_adjfine() 47 static void _rcar_gen4_ptp_gettime(struct ptp_clock_info *ptp, in _rcar_gen4_ptp_gettime() argument 50 struct rcar_gen4_ptp_private *ptp_priv = ptp_to_priv(ptp); in _rcar_gen4_ptp_gettime() 57 static int rcar_gen4_ptp_gettime(struct ptp_clock_info *ptp, in rcar_gen4_ptp_gettime() argument 60 struct rcar_gen4_ptp_private *ptp_priv = ptp_to_priv(ptp); in rcar_gen4_ptp_gettime() 64 _rcar_gen4_ptp_gettime(ptp, ts); in rcar_gen4_ptp_gettime() 71 static void _rcar_gen4_ptp_settime(struct ptp_clock_info *ptp, in _rcar_gen4_ptp_settime() argument 74 struct rcar_gen4_ptp_private *ptp_priv = ptp_to_priv(ptp); in _rcar_gen4_ptp_settime() [all …]
|
/linux-6.6.21/Documentation/ABI/testing/ |
D | sysfs-ptp | 1 What: /sys/class/ptp/ 9 What: /sys/class/ptp/ptp<N>/ 17 What: /sys/class/ptp/ptp<N>/clock_name 28 What: /sys/class/ptp/ptp<N>/max_adjustment 36 What: /sys/class/ptp/ptp<N>/max_vclocks 40 This file contains the maximum number of ptp vclocks. 43 What: /sys/class/ptp/ptp<N>/n_alarms 50 What: /sys/class/ptp/ptp<N>/n_external_timestamps 57 What: /sys/class/ptp/ptp<N>/n_periodic_outputs 64 What: /sys/class/ptp/ptp<N>/n_pins [all …]
|
/linux-6.6.21/drivers/net/ethernet/intel/ice/ |
D | ice_ptp.c | 288 pf->ptp.tstamp_config.tx_type = on ? HWTSTAMP_TX_ON : HWTSTAMP_TX_OFF; in ice_set_tx_tstamp() 312 pf->ptp.tstamp_config.rx_filter = on ? HWTSTAMP_FILTER_ALL : in ice_set_rx_tstamp() 354 if (pf->ptp.clock) in ice_get_ptp_clock_index() 355 return ptp_clock_index(pf->ptp.clock); in ice_get_ptp_clock_index() 399 if (!pf->ptp.clock) in ice_set_ptp_clock_index() 408 value = (u32)ptp_clock_index(pf->ptp.clock); in ice_set_ptp_clock_index() 592 discard_time = pf->ptp.cached_phc_jiffies + msecs_to_jiffies(2000); in ice_ptp_extend_40b_ts() 594 pf->ptp.tx_hwtstamp_discarded++; in ice_ptp_extend_40b_ts() 598 return ice_ptp_extend_32b_ts(pf->ptp.cached_phc_time, in ice_ptp_extend_40b_ts() 704 pf->ptp.tx_hwtstamp_timeouts++; in ice_ptp_process_tx_tstamp() [all …]
|
/linux-6.6.21/drivers/net/ethernet/cavium/common/ |
D | cavium_ptp.h | 30 void cavium_ptp_put(struct cavium_ptp *ptp); 32 static inline u64 cavium_ptp_tstamp2time(struct cavium_ptp *ptp, u64 tstamp) in cavium_ptp_tstamp2time() argument 37 spin_lock_irqsave(&ptp->spin_lock, flags); in cavium_ptp_tstamp2time() 38 ret = timecounter_cyc2time(&ptp->time_counter, tstamp); in cavium_ptp_tstamp2time() 39 spin_unlock_irqrestore(&ptp->spin_lock, flags); in cavium_ptp_tstamp2time() 56 static inline void cavium_ptp_put(struct cavium_ptp *ptp) {} in cavium_ptp_put() argument 58 static inline u64 cavium_ptp_tstamp2time(struct cavium_ptp *ptp, u64 tstamp) in cavium_ptp_tstamp2time() argument
|
/linux-6.6.21/drivers/net/phy/mscc/ |
D | mscc_ptp.c | 428 static void vsc85xx_dequeue_skb(struct vsc85xx_ptp *ptp) in vsc85xx_dequeue_skb() argument 440 reg = vsc85xx_ts_read_csr(ptp->phydev, PROCESSOR, in vsc85xx_dequeue_skb() 450 reg = vsc85xx_ts_read_csr(ptp->phydev, PROCESSOR, in vsc85xx_dequeue_skb() 458 len = skb_queue_len(&ptp->tx_queue); in vsc85xx_dequeue_skb() 463 skb = __skb_dequeue(&ptp->tx_queue); in vsc85xx_dequeue_skb() 488 __skb_queue_tail(&ptp->tx_queue, skb); in vsc85xx_dequeue_skb() 492 static void vsc85xx_get_tx_ts(struct vsc85xx_ptp *ptp) in vsc85xx_get_tx_ts() argument 497 vsc85xx_dequeue_skb(ptp); in vsc85xx_get_tx_ts() 500 reg = vsc85xx_ts_read_csr(ptp->phydev, PROCESSOR, in vsc85xx_get_tx_ts() 612 struct vsc85xx_ptp *ptp = container_of(info, struct vsc85xx_ptp, caps); in vsc85xx_adjfine() local [all …]
|
/linux-6.6.21/include/soc/mscc/ |
D | ocelot_ptp.h | 48 int ocelot_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts); 49 int ocelot_ptp_settime64(struct ptp_clock_info *ptp, 51 int ocelot_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta); 52 int ocelot_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm); 53 int ocelot_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, 55 int ocelot_ptp_enable(struct ptp_clock_info *ptp,
|
/linux-6.6.21/Documentation/devicetree/bindings/ptp/ |
D | brcm,ptp-dte.txt | 9 "brcm,ptp-dte" 11 "brcm,iproc-ptp-dte" - for iproc based SoC's 16 ptp: ptp-dte@180af650 { 17 compatible = "brcm,iproc-ptp-dte", "brcm,ptp-dte";
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_ptp.c | 77 struct ptp_clock *ptp; member 106 mlxsw_sp1_ptp_clock(struct ptp_clock_info *ptp) in mlxsw_sp1_ptp_clock() argument 108 return container_of(ptp, struct mlxsw_sp1_ptp_clock, common.ptp_info); in mlxsw_sp1_ptp_clock() 189 static int mlxsw_sp1_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in mlxsw_sp1_ptp_adjfine() argument 191 struct mlxsw_sp1_ptp_clock *clock = mlxsw_sp1_ptp_clock(ptp); in mlxsw_sp1_ptp_adjfine() 205 static int mlxsw_sp1_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in mlxsw_sp1_ptp_adjtime() argument 207 struct mlxsw_sp1_ptp_clock *clock = mlxsw_sp1_ptp_clock(ptp); in mlxsw_sp1_ptp_adjtime() 218 static int mlxsw_sp1_ptp_gettimex(struct ptp_clock_info *ptp, in mlxsw_sp1_ptp_gettimex() argument 222 struct mlxsw_sp1_ptp_clock *clock = mlxsw_sp1_ptp_clock(ptp); in mlxsw_sp1_ptp_gettimex() 235 static int mlxsw_sp1_ptp_settime(struct ptp_clock_info *ptp, in mlxsw_sp1_ptp_settime() argument [all …]
|