/drivers/net/ethernet/qlogic/qede/ |
D | qede_ptp.c | 40 struct qede_ptp *ptp = container_of(info, struct qede_ptp, clock_info); in qede_ptp_adjfreq() local 41 struct qede_dev *edev = ptp->edev; in qede_ptp_adjfreq() 46 spin_lock_bh(&ptp->lock); in qede_ptp_adjfreq() 47 rc = ptp->ops->adjfreq(edev->cdev, ppb); in qede_ptp_adjfreq() 48 spin_unlock_bh(&ptp->lock); in qede_ptp_adjfreq() 61 struct qede_ptp *ptp; in qede_ptp_adjtime() local 63 ptp = container_of(info, struct qede_ptp, clock_info); in qede_ptp_adjtime() 64 edev = ptp->edev; in qede_ptp_adjtime() 69 spin_lock_bh(&ptp->lock); in qede_ptp_adjtime() 70 timecounter_adjtime(&ptp->tc, delta); in qede_ptp_adjtime() [all …]
|
/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_vclock_in_use(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_vclock_in_use(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); \ 26 return snprintf(page, PAGE_SIZE-1, "%d\n", ptp->info->var); \ 41 struct ptp_clock *ptp = dev_get_drvdata(dev); in extts_enable_store() local 42 struct ptp_clock_info *ops = ptp->info; in extts_enable_store() 66 struct ptp_clock *ptp = dev_get_drvdata(dev); in extts_fifo_show() local 67 struct timestamp_event_queue *queue = &ptp->tsevq; in extts_fifo_show() 75 if (mutex_lock_interruptible(&ptp->tsevq_mux)) in extts_fifo_show() 93 mutex_unlock(&ptp->tsevq_mux); in extts_fifo_show() [all …]
|
D | ptp_vclock.c | 16 static int ptp_vclock_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in ptp_vclock_adjfine() argument 18 struct ptp_vclock *vclock = info_to_vclock(ptp); in ptp_vclock_adjfine() 33 static int ptp_vclock_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_vclock_adjtime() argument 35 struct ptp_vclock *vclock = info_to_vclock(ptp); in ptp_vclock_adjtime() 45 static int ptp_vclock_gettime(struct ptp_clock_info *ptp, in ptp_vclock_gettime() argument 48 struct ptp_vclock *vclock = info_to_vclock(ptp); in ptp_vclock_gettime() 60 static int ptp_vclock_settime(struct ptp_clock_info *ptp, in ptp_vclock_settime() argument 63 struct ptp_vclock *vclock = info_to_vclock(ptp); in ptp_vclock_settime() 74 static long ptp_vclock_refresh(struct ptp_clock_info *ptp) in ptp_vclock_refresh() argument 76 struct ptp_vclock *vclock = info_to_vclock(ptp); in ptp_vclock_refresh() [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_private.h | 88 static inline bool ptp_vclock_in_use(struct ptp_clock *ptp) in ptp_vclock_in_use() argument 92 if (mutex_lock_interruptible(&ptp->n_vclocks_mux)) in ptp_vclock_in_use() 95 if (!ptp->is_virtual_clock && ptp->n_vclocks) in ptp_vclock_in_use() 98 mutex_unlock(&ptp->n_vclocks_mux); in ptp_vclock_in_use() 110 int ptp_set_pinfunc(struct ptp_clock *ptp, unsigned int pin, 130 int ptp_populate_pin_groups(struct ptp_clock *ptp); 131 void ptp_cleanup_pin_groups(struct ptp_clock *ptp);
|
D | Makefile | 6 ptp-y := ptp_clock.o ptp_chardev.o ptp_sysfs.o ptp_vclock.o 9 obj-$(CONFIG_PTP_1588_CLOCK) += ptp.o 14 obj-$(CONFIG_PTP_1588_CLOCK_QORIQ) += ptp-qoriq.o 15 ptp-qoriq-y += ptp_qoriq.o 16 ptp-qoriq-$(CONFIG_DEBUG_FS) += ptp_qoriq_debugfs.o
|
D | ptp_kvm_common.c | 58 static int ptp_kvm_getcrosststamp(struct ptp_clock_info *ptp, in ptp_kvm_getcrosststamp() argument 69 static int ptp_kvm_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_kvm_adjfreq() argument 74 static int ptp_kvm_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_kvm_adjtime() argument 79 static int ptp_kvm_settime(struct ptp_clock_info *ptp, in ptp_kvm_settime() argument 85 static int ptp_kvm_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_kvm_gettime() argument 105 static int ptp_kvm_enable(struct ptp_clock_info *ptp, in ptp_kvm_enable() argument
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ptp.c | 49 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_settime() local 53 spin_lock_bh(&ptp->ptp_lock); in bnxt_ptp_settime() 54 timecounter_init(&ptp->tc, &ptp->cc, ns); in bnxt_ptp_settime() 55 spin_unlock_bh(&ptp->ptp_lock); in bnxt_ptp_settime() 63 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_refclk_read() local 69 high_before = readl(bp->bar0 + ptp->refclk_mapped_regs[1]); in bnxt_refclk_read() 71 low = readl(bp->bar0 + ptp->refclk_mapped_regs[0]); in bnxt_refclk_read() 73 high_now = readl(bp->bar0 + ptp->refclk_mapped_regs[1]); in bnxt_refclk_read() 76 low = readl(bp->bar0 + ptp->refclk_mapped_regs[0]); in bnxt_refclk_read() 86 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_get_current_time() local [all …]
|
/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_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in hclge_ptp_adjfreq() argument 27 struct hclge_dev *hdev = hclge_ptp_get_hdev(ptp); in hclge_ptp_adjfreq() 28 struct hclge_ptp_cycle *cycle = &hdev->ptp->cycle; in hclge_ptp_adjfreq() 55 spin_lock_irqsave(&hdev->ptp->lock, flags); in hclge_ptp_adjfreq() 57 hdev->ptp->io_base + HCLGE_PTP_CYCLE_QUO_REG); in hclge_ptp_adjfreq() [all …]
|
/drivers/net/ethernet/microchip/ |
D | lan743x_ptp.c | 69 struct lan743x_ptp *ptp = &adapter->ptp; in lan743x_ptp_tx_ts_enqueue_ts() local 71 spin_lock_bh(&ptp->tx_ts_lock); in lan743x_ptp_tx_ts_enqueue_ts() 72 if (ptp->tx_ts_queue_size < LAN743X_PTP_NUMBER_OF_TX_TIMESTAMPS) { in lan743x_ptp_tx_ts_enqueue_ts() 73 ptp->tx_ts_seconds_queue[ptp->tx_ts_queue_size] = seconds; in lan743x_ptp_tx_ts_enqueue_ts() 74 ptp->tx_ts_nseconds_queue[ptp->tx_ts_queue_size] = nano_seconds; in lan743x_ptp_tx_ts_enqueue_ts() 75 ptp->tx_ts_header_queue[ptp->tx_ts_queue_size] = header; in lan743x_ptp_tx_ts_enqueue_ts() 76 ptp->tx_ts_queue_size++; in lan743x_ptp_tx_ts_enqueue_ts() 81 spin_unlock_bh(&ptp->tx_ts_lock); in lan743x_ptp_tx_ts_enqueue_ts() 86 struct lan743x_ptp *ptp = &adapter->ptp; in lan743x_ptp_tx_ts_complete() local 93 spin_lock_bh(&ptp->tx_ts_lock); in lan743x_ptp_tx_ts_complete() [all …]
|
/drivers/net/ethernet/marvell/octeontx2/af/ |
D | ptp.c | 42 static struct ptp *first_ptp_block; 78 struct ptp *ptp_get(void) in ptp_get() 80 struct ptp *ptp = first_ptp_block; in ptp_get() local 86 if (!ptp) in ptp_get() 87 ptp = ERR_PTR(-EPROBE_DEFER); in ptp_get() 89 pci_dev_get(ptp->pdev); in ptp_get() 91 return ptp; in ptp_get() 94 void ptp_put(struct ptp *ptp) in ptp_put() argument 96 if (!ptp) in ptp_put() 99 pci_dev_put(ptp->pdev); in ptp_put() [all …]
|
/drivers/net/ethernet/sfc/ |
D | ptp.c | 351 static int efx_phc_adjfreq(struct ptp_clock_info *ptp, s32 delta); 352 static int efx_phc_adjtime(struct ptp_clock_info *ptp, s64 delta); 353 static int efx_phc_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts); 354 static int efx_phc_settime(struct ptp_clock_info *ptp, 356 static int efx_phc_enable(struct ptp_clock_info *ptp, 566 struct efx_ptp_data *ptp, in efx_ptp_mac_nic_to_ktime_correction() argument 610 kt = ptp->nic_to_kernel_time(nic_major, nic_minor, in efx_ptp_mac_nic_to_ktime_correction() 619 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_nic_to_kernel_time() local 623 kt = efx_ptp_mac_nic_to_ktime_correction(efx, ptp, in efx_ptp_nic_to_kernel_time() 626 ptp->ts_corrections.general_tx); in efx_ptp_nic_to_kernel_time() [all …]
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_ptp.c | 13 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_adjfine() local 17 if (!ptp->nic) in otx2_ptp_adjfine() 20 req = otx2_mbox_alloc_msg_ptp_op(&ptp->nic->mbox); in otx2_ptp_adjfine() 27 return otx2_sync_mbox_msg(&ptp->nic->mbox); in otx2_ptp_adjfine() 32 struct otx2_ptp *ptp = container_of(cc, struct otx2_ptp, cycle_counter); in ptp_cc_read() local 37 if (!ptp->nic) in ptp_cc_read() 40 req = otx2_mbox_alloc_msg_ptp_op(&ptp->nic->mbox); in ptp_cc_read() 46 err = otx2_sync_mbox_msg(&ptp->nic->mbox); in ptp_cc_read() 50 rsp = (struct ptp_rsp *)otx2_mbox_get_rsp(&ptp->nic->mbox.mbox, 0, in ptp_cc_read() 60 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_adjtime() local [all …]
|
/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 …]
|
/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_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ravb_ptp_adjfreq() argument 93 struct ravb_private *priv = container_of(ptp, struct ravb_private, in ravb_ptp_adjfreq() 94 ptp.info); in ravb_ptp_adjfreq() 105 addend = priv->ptp.default_addend; in ravb_ptp_adjfreq() 112 priv->ptp.current_addend = addend; in ravb_ptp_adjfreq() 127 static int ravb_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in ravb_ptp_adjtime() argument 129 struct ravb_private *priv = container_of(ptp, struct ravb_private, in ravb_ptp_adjtime() 130 ptp.info); in ravb_ptp_adjtime() 148 static int ravb_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) in ravb_ptp_gettime64() argument [all …]
|
/drivers/net/ethernet/intel/ice/ |
D | ice_ptp.c | 76 pf->ptp.tstamp_config.rx_filter = HWTSTAMP_FILTER_ALL; in ice_ptp_cfg_timestamp() 77 pf->ptp.tstamp_config.tx_type = HWTSTAMP_TX_ON; in ice_ptp_cfg_timestamp() 79 pf->ptp.tstamp_config.rx_filter = HWTSTAMP_FILTER_NONE; in ice_ptp_cfg_timestamp() 80 pf->ptp.tstamp_config.tx_type = HWTSTAMP_TX_OFF; in ice_ptp_cfg_timestamp() 108 if (pf->ptp.clock) in ice_get_ptp_clock_index() 109 return ptp_clock_index(pf->ptp.clock); in ice_get_ptp_clock_index() 153 if (!pf->ptp.clock) in ice_set_ptp_clock_index() 162 value = (u32)ptp_clock_index(pf->ptp.clock); in ice_set_ptp_clock_index() 274 WRITE_ONCE(pf->ptp.cached_phc_time, systime); in ice_ptp_update_cached_phctime() 394 return ice_ptp_extend_32b_ts(pf->ptp.cached_phc_time, in ice_ptp_extend_40b_ts() [all …]
|
/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 …]
|
/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
|
/drivers/net/ethernet/intel/e1000e/ |
D | ptp.c | 25 static int e1000e_phc_adjfreq(struct ptp_clock_info *ptp, s32 delta) in e1000e_phc_adjfreq() argument 27 struct e1000_adapter *adapter = container_of(ptp, struct e1000_adapter, in e1000e_phc_adjfreq() 36 if ((delta > ptp->max_adj) || (delta <= -1000000000)) in e1000e_phc_adjfreq() 78 static int e1000e_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) in e1000e_phc_adjtime() argument 80 struct e1000_adapter *adapter = container_of(ptp, struct e1000_adapter, in e1000e_phc_adjtime() 152 static int e1000e_phc_getcrosststamp(struct ptp_clock_info *ptp, in e1000e_phc_getcrosststamp() argument 155 struct e1000_adapter *adapter = container_of(ptp, struct e1000_adapter, in e1000e_phc_getcrosststamp() 173 static int e1000e_phc_gettimex(struct ptp_clock_info *ptp, in e1000e_phc_gettimex() argument 177 struct e1000_adapter *adapter = container_of(ptp, struct e1000_adapter, in e1000e_phc_gettimex() 203 static int e1000e_phc_settime(struct ptp_clock_info *ptp, in e1000e_phc_settime() argument [all …]
|
/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_tai.c | 85 static struct mvpp2_tai *ptp_to_tai(struct ptp_clock_info *ptp) in ptp_to_tai() argument 87 return container_of(ptp, struct mvpp2_tai, caps); in ptp_to_tai() 164 static int mvpp22_tai_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in mvpp22_tai_adjfine() argument 166 struct mvpp2_tai *tai = ptp_to_tai(ptp); in mvpp22_tai_adjfine() 205 static int mvpp22_tai_adjtime(struct ptp_clock_info *ptp, s64 delta) in mvpp22_tai_adjtime() argument 207 struct mvpp2_tai *tai = ptp_to_tai(ptp); in mvpp22_tai_adjtime() 235 static int mvpp22_tai_gettimex64(struct ptp_clock_info *ptp, in mvpp22_tai_gettimex64() argument 239 struct mvpp2_tai *tai = ptp_to_tai(ptp); in mvpp22_tai_gettimex64() 276 static int mvpp22_tai_settime64(struct ptp_clock_info *ptp, in mvpp22_tai_settime64() argument 279 struct mvpp2_tai *tai = ptp_to_tai(ptp); in mvpp22_tai_settime64() [all …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_ptp.c | 67 struct ptp_clock *ptp; member 151 static int mlxsw_sp1_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in mlxsw_sp1_ptp_adjfine() argument 154 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp1_ptp_adjfine() 180 static int mlxsw_sp1_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in mlxsw_sp1_ptp_adjtime() argument 183 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp1_ptp_adjtime() 194 static int mlxsw_sp1_ptp_gettimex(struct ptp_clock_info *ptp, in mlxsw_sp1_ptp_gettimex() argument 199 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp1_ptp_gettimex() 212 static int mlxsw_sp1_ptp_settime(struct ptp_clock_info *ptp, in mlxsw_sp1_ptp_settime() argument 216 container_of(ptp, struct mlxsw_sp_ptp_clock, ptp_info); in mlxsw_sp1_ptp_settime() 290 clock->ptp = ptp_clock_register(&clock->ptp_info, dev); in mlxsw_sp1_ptp_clock_init() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | clock.c | 223 static int mlx5_ptp_settime(struct ptp_clock_info *ptp, const struct timespec64 *ts) in mlx5_ptp_settime() argument 225 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_settime() 256 static int mlx5_ptp_gettimex(struct ptp_clock_info *ptp, struct timespec64 *ts, in mlx5_ptp_gettimex() argument 259 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_gettimex() 304 static int mlx5_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in mlx5_ptp_adjtime() argument 306 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_adjtime() 338 static int mlx5_ptp_adjfreq(struct ptp_clock_info *ptp, s32 delta) in mlx5_ptp_adjfreq() argument 340 struct mlx5_clock *clock = container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_ptp_adjfreq() 373 static int mlx5_extts_configure(struct ptp_clock_info *ptp, in mlx5_extts_configure() argument 378 container_of(ptp, struct mlx5_clock, ptp_info); in mlx5_extts_configure() [all …]
|
/drivers/net/ethernet/mscc/ |
D | ocelot_ptp.c | 13 int ocelot_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) in ocelot_ptp_gettime64() argument 15 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_gettime64() 47 int ocelot_ptp_settime64(struct ptp_clock_info *ptp, in ocelot_ptp_settime64() argument 50 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_settime64() 79 int ocelot_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in ocelot_ptp_adjtime() argument 82 struct ocelot *ocelot = container_of(ptp, struct ocelot, in ocelot_ptp_adjtime() 113 ocelot_ptp_gettime64(ptp, &ts); in ocelot_ptp_adjtime() 118 ocelot_ptp_settime64(ptp, &ts); in ocelot_ptp_adjtime() 124 int ocelot_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in ocelot_ptp_adjfine() argument 126 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); in ocelot_ptp_adjfine() [all …]
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ptp.c | 22 static int stmmac_adjust_freq(struct ptp_clock_info *ptp, s32 ppb) in stmmac_adjust_freq() argument 25 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_adjust_freq() 57 static int stmmac_adjust_time(struct ptp_clock_info *ptp, s64 delta) in stmmac_adjust_time() argument 60 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_adjust_time() 133 static int stmmac_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts) in stmmac_get_time() argument 136 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_get_time() 158 static int stmmac_set_time(struct ptp_clock_info *ptp, in stmmac_set_time() argument 162 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_set_time() 172 static int stmmac_enable(struct ptp_clock_info *ptp, in stmmac_enable() argument 176 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_enable() [all …]
|