Home
last modified time | relevance | path

Searched defs:ptp (Results 1 – 25 of 112) sorted by relevance

12345

/Linux-v6.6/drivers/net/ethernet/marvell/octeontx2/af/
Dptp.h15 struct ptp { struct
18 u64 (*read_ptp_tstmp)(struct ptp *ptp); argument
19 spinlock_t ptp_lock; /* lock */ argument
27 struct ptp *ptp_get(void); argument
Dptp.c66 #define is_rev_A0(ptp) (((ptp)->pdev->revision & 0x0F) == 0x0) argument
67 #define is_rev_A1(ptp) (((ptp)->pdev->revision & 0x0F) == 0x1) argument
79 static bool is_ptp_dev_cnf10ka(struct ptp *ptp) in is_ptp_dev_cnf10ka()
84 static bool is_ptp_dev_cn10ka(struct ptp *ptp) in is_ptp_dev_cn10ka()
89 static bool cn10k_ptp_errata(struct ptp *ptp) in cn10k_ptp_errata()
100 struct ptp *ptp = rvu->ptp; in is_tstmp_atomic_update_supported() local
117 struct ptp *ptp = container_of(hrtimer, struct ptp, hrtimer); in ptp_reset_thresh() local
143 static void ptp_hrtimer_start(struct ptp *ptp, ktime_t start_ns) in ptp_hrtimer_start()
152 static u64 read_ptp_tstmp_sec_nsec(struct ptp *ptp) in read_ptp_tstmp_sec_nsec()
171 static u64 read_ptp_tstmp_nsec(struct ptp *ptp) in read_ptp_tstmp_nsec()
[all …]
/Linux-v6.6/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ptp.c13 static bool is_tstmp_atomic_update_supported(struct otx2_ptp *ptp) in is_tstmp_atomic_update_supported()
49 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_hw_adjtime() local
72 static u64 otx2_ptp_get_clock(struct otx2_ptp *ptp) in otx2_ptp_get_clock()
102 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_hw_gettime() local
115 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_hw_settime() local
144 struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp, in otx2_ptp_adjfine() local
161 static int ptp_set_thresh(struct otx2_ptp *ptp, u64 thresh) in ptp_set_thresh()
178 static int ptp_extts_on(struct otx2_ptp *ptp, int on) in ptp_extts_on()
197 struct otx2_ptp *ptp = container_of(cc, struct otx2_ptp, cycle_counter); in ptp_cc_read() local
202 static u64 ptp_tstmp_read(struct otx2_ptp *ptp) in ptp_tstmp_read()
[all …]
/Linux-v6.6/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ptp.c62 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_settime() local
79 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_refclk_read() local
102 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_get_current_time() local
143 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_gettimex() local
164 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_update_current_time() local
170 static int bnxt_ptp_adjphc(struct bnxt_ptp_cfg *ptp, s64 delta) in bnxt_ptp_adjphc()
196 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_adjtime() local
229 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_adjfine() local
245 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_pps_event() local
273 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_cfg_pin() local
[all …]
/Linux-v6.6/drivers/net/ethernet/microchip/
Dlan743x_ptp.c81 struct lan743x_ptp *ptp = &adapter->ptp; in lan743x_ptp_tx_ts_enqueue_ts() local
98 struct lan743x_ptp *ptp = &adapter->ptp; in lan743x_ptp_tx_ts_complete() local
159 struct lan743x_ptp *ptp = &adapter->ptp; in lan743x_ptp_reserve_event_ch() local
178 struct lan743x_ptp *ptp = &adapter->ptp; in lan743x_ptp_release_event_ch() local
202 struct lan743x_ptp *ptp = &adapter->ptp; in lan743x_led_mux_enable() local
219 struct lan743x_ptp *ptp = &adapter->ptp; in lan743x_led_mux_save() local
337 struct lan743x_ptp *ptp = in lan743x_ptpci_adjfine() local
363 struct lan743x_ptp *ptp = in lan743x_ptpci_adjtime() local
376 struct lan743x_ptp *ptp = in lan743x_ptpci_gettime64() local
397 struct lan743x_ptp *ptp = in lan743x_ptpci_settime64() local
[all …]
/Linux-v6.6/drivers/ptp/
Dptp_clock.c78 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_settime() local
90 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_gettime() local
102 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_adjtime() local
171 struct ptp_clock *ptp = container_of(dev, struct ptp_clock, dev); in ptp_clock_release() local
192 struct ptp_clock *ptp = container_of(work, struct ptp_clock, in ptp_aux_kworker() local
208 struct ptp_clock *ptp; in ptp_clock_register() local
346 struct ptp_clock *ptp = dev_get_drvdata(dev); in unregister_vclock() local
352 int ptp_clock_unregister(struct ptp_clock *ptp) in ptp_clock_unregister()
376 void ptp_clock_event(struct ptp_clock *ptp, struct ptp_clock_event *event) in ptp_clock_event()
403 int ptp_clock_index(struct ptp_clock *ptp) in ptp_clock_index()
[all …]
Dptp_sysfs.c16 struct ptp_clock *ptp = dev_get_drvdata(dev); in clock_name_show() local
25 struct ptp_clock *ptp = dev_get_drvdata(dev); in max_phase_adjustment_show() local
52 struct ptp_clock *ptp = dev_get_drvdata(dev); in extts_enable_store() local
77 struct ptp_clock *ptp = dev_get_drvdata(dev); in extts_fifo_show() local
112 struct ptp_clock *ptp = dev_get_drvdata(dev); in period_store() local
140 struct ptp_clock *ptp = dev_get_drvdata(dev); in pps_enable_store() local
165 struct ptp_clock *ptp = dev_get_drvdata(dev); in unregister_vclock() local
187 struct ptp_clock *ptp = dev_get_drvdata(dev); in n_vclocks_show() local
204 struct ptp_clock *ptp = dev_get_drvdata(dev); in n_vclocks_store() local
266 struct ptp_clock *ptp = dev_get_drvdata(dev); in max_vclocks_show() local
[all …]
Dptp_vclock.c43 static int ptp_vclock_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in ptp_vclock_adjfine()
60 static int ptp_vclock_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_vclock_adjtime()
72 static int ptp_vclock_gettime(struct ptp_clock_info *ptp, in ptp_vclock_gettime()
87 static int ptp_vclock_gettimex(struct ptp_clock_info *ptp, in ptp_vclock_gettimex()
111 static int ptp_vclock_settime(struct ptp_clock_info *ptp, in ptp_vclock_settime()
125 static int ptp_vclock_getcrosststamp(struct ptp_clock_info *ptp, in ptp_vclock_getcrosststamp()
147 static long ptp_vclock_refresh(struct ptp_clock_info *ptp) in ptp_vclock_refresh()
170 struct ptp_clock *ptp = vclock->pclock; in ptp_vclock_read() local
236 struct ptp_clock *ptp; in ptp_get_vclocks_index() local
Dptp_kvm_common.c58 static int ptp_kvm_getcrosststamp(struct ptp_clock_info *ptp, in ptp_kvm_getcrosststamp()
69 static int ptp_kvm_adjfine(struct ptp_clock_info *ptp, long delta) in ptp_kvm_adjfine()
74 static int ptp_kvm_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_kvm_adjtime()
79 static int ptp_kvm_settime(struct ptp_clock_info *ptp, in ptp_kvm_settime()
85 static int ptp_kvm_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_kvm_gettime()
105 static int ptp_kvm_enable(struct ptp_clock_info *ptp, in ptp_kvm_enable()
Dptp_chardev.c48 int ptp_set_pinfunc(struct ptp_clock *ptp, unsigned int pin, in ptp_set_pinfunc()
111 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_ioctl() local
437 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_poll() local
449 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_read() local
/Linux-v6.6/drivers/net/ethernet/qlogic/qede/
Dqede_ptp.c42 struct qede_ptp *ptp = container_of(info, struct qede_ptp, clock_info); in qede_ptp_adjfine() local
64 struct qede_ptp *ptp; in qede_ptp_adjtime() local
82 struct qede_ptp *ptp; in qede_ptp_gettime() local
103 struct qede_ptp *ptp; in qede_ptp_settime() local
127 struct qede_ptp *ptp; in qede_ptp_ancillary_feature_enable() local
141 struct qede_ptp *ptp; in qede_ptp_task() local
187 struct qede_ptp *ptp; in qede_ptp_read_cc() local
206 struct qede_ptp *ptp = edev->ptp; in qede_ptp_cfg_filters() local
296 struct qede_ptp *ptp; in qede_ptp_hw_ts() local
326 struct qede_ptp *ptp = edev->ptp; in qede_ptp_get_ts_info() local
[all …]
/Linux-v6.6/drivers/net/ethernet/renesas/
Drcar_gen4_ptp.c15 #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()
47 static void _rcar_gen4_ptp_gettime(struct ptp_clock_info *ptp, in _rcar_gen4_ptp_gettime()
57 static int rcar_gen4_ptp_gettime(struct ptp_clock_info *ptp, in rcar_gen4_ptp_gettime()
71 static void _rcar_gen4_ptp_settime(struct ptp_clock_info *ptp, in _rcar_gen4_ptp_settime()
86 static int rcar_gen4_ptp_settime(struct ptp_clock_info *ptp, in rcar_gen4_ptp_settime()
99 static int rcar_gen4_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in rcar_gen4_ptp_adjtime()
116 static int rcar_gen4_ptp_enable(struct ptp_clock_info *ptp, in rcar_gen4_ptp_enable()
172 struct rcar_gen4_ptp_private *ptp; in rcar_gen4_ptp_alloc() local
Dravb_ptp.c91 static int ravb_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in ravb_ptp_adjfine()
120 static int ravb_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in ravb_ptp_adjtime()
141 static int ravb_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) in ravb_ptp_gettime64()
155 static int ravb_ptp_settime64(struct ptp_clock_info *ptp, in ravb_ptp_settime64()
170 static int ravb_ptp_extts(struct ptp_clock_info *ptp, in ravb_ptp_extts()
205 static int ravb_ptp_perout(struct ptp_clock_info *ptp, in ravb_ptp_perout()
272 static int ravb_ptp_enable(struct ptp_clock_info *ptp, in ravb_ptp_enable()
/Linux-v6.6/drivers/net/ethernet/intel/e1000e/
Dptp.c27 static int e1000e_phc_adjfine(struct ptp_clock_info *ptp, long delta) in e1000e_phc_adjfine()
66 static int e1000e_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) in e1000e_phc_adjtime()
140 static int e1000e_phc_getcrosststamp(struct ptp_clock_info *ptp, in e1000e_phc_getcrosststamp()
161 static int e1000e_phc_gettimex(struct ptp_clock_info *ptp, in e1000e_phc_gettimex()
191 static int e1000e_phc_settime(struct ptp_clock_info *ptp, in e1000e_phc_settime()
218 static int e1000e_phc_enable(struct ptp_clock_info __always_unused *ptp, in e1000e_phc_enable()
/Linux-v6.6/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ptp.c24 static int stmmac_adjust_freq(struct ptp_clock_info *ptp, long scaled_ppm) in stmmac_adjust_freq()
48 static int stmmac_adjust_time(struct ptp_clock_info *ptp, s64 delta) in stmmac_adjust_time()
124 static int stmmac_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts) in stmmac_get_time()
149 static int stmmac_set_time(struct ptp_clock_info *ptp, in stmmac_set_time()
163 static int stmmac_enable(struct ptp_clock_info *ptp, in stmmac_enable()
249 static int stmmac_getcrosststamp(struct ptp_clock_info *ptp, in stmmac_getcrosststamp()
/Linux-v6.6/drivers/net/ethernet/sfc/
Dptp.c546 struct efx_ptp_data *ptp, 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
620 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_get_attributes() local
842 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_send_times() local
913 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_process_times() local
1008 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_synchronize() local
1173 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_process_events() local
1250 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_insert_filter() local
1311 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_insert_eth_multicast_filter() local
1324 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_insert_multicast_filters() local
[all …]
/Linux-v6.6/drivers/net/ethernet/sfc/siena/
Dptp.c559 struct efx_ptp_data *ptp, 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
633 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_get_attributes() local
861 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_send_times() local
932 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_process_times() local
1027 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_synchronize() local
1154 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_drop_time_expired_events() local
1180 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_match_rx() local
1228 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_process_events() local
1262 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_remove_multicast_filters() local
[all …]
/Linux-v6.6/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_ptp.c10 struct hclge_ptp *ptp = hdev->ptp; in hclge_ptp_get_cycle() local
25 static int hclge_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in hclge_ptp_adjfine()
59 struct hclge_ptp *ptp = hdev->ptp; in hclge_ptp_set_tx_info() local
128 static int hclge_ptp_gettimex(struct ptp_clock_info *ptp, struct timespec64 *ts, in hclge_ptp_gettimex()
148 static int hclge_ptp_settime(struct ptp_clock_info *ptp, in hclge_ptp_settime()
168 static int hclge_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in hclge_ptp_adjtime()
424 struct hclge_ptp *ptp; in hclge_ptp_create_clock() local
530 struct hclge_ptp *ptp = hdev->ptp; in hclge_ptp_uninit() local
/Linux-v6.6/drivers/net/ethernet/engleder/
Dtsnep_ptp.c76 static int tsnep_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in tsnep_ptp_adjfine()
104 static int tsnep_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in tsnep_ptp_adjtime()
129 static int tsnep_ptp_gettimex64(struct ptp_clock_info *ptp, in tsnep_ptp_gettimex64()
156 static int tsnep_ptp_settime64(struct ptp_clock_info *ptp, in tsnep_ptp_settime64()
178 static int tsnep_ptp_getcyclesx64(struct ptp_clock_info *ptp, in tsnep_ptp_getcyclesx64()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx4/
Den_clock.c128 static int mlx4_en_phc_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in mlx4_en_phc_adjfine()
152 static int mlx4_en_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) in mlx4_en_phc_adjtime()
173 static int mlx4_en_phc_gettime(struct ptp_clock_info *ptp, in mlx4_en_phc_gettime()
198 static int mlx4_en_phc_settime(struct ptp_clock_info *ptp, in mlx4_en_phc_settime()
223 static int mlx4_en_phc_enable(struct ptp_clock_info __always_unused *ptp, in mlx4_en_phc_enable()
/Linux-v6.6/drivers/net/ethernet/intel/igb/
Digb_ptp.c194 static int igb_ptp_adjfine_82576(struct ptp_clock_info *ptp, long scaled_ppm) in igb_ptp_adjfine_82576()
208 static int igb_ptp_adjfine_82580(struct ptp_clock_info *ptp, long scaled_ppm) in igb_ptp_adjfine_82580()
228 static int igb_ptp_adjtime_82576(struct ptp_clock_info *ptp, s64 delta) in igb_ptp_adjtime_82576()
241 static int igb_ptp_adjtime_i210(struct ptp_clock_info *ptp, s64 delta) in igb_ptp_adjtime_i210()
259 static int igb_ptp_gettimex_82576(struct ptp_clock_info *ptp, in igb_ptp_gettimex_82576()
286 static int igb_ptp_gettimex_82580(struct ptp_clock_info *ptp, in igb_ptp_gettimex_82580()
314 static int igb_ptp_gettimex_i210(struct ptp_clock_info *ptp, in igb_ptp_gettimex_i210()
336 static int igb_ptp_settime_82576(struct ptp_clock_info *ptp, in igb_ptp_settime_82576()
355 static int igb_ptp_settime_i210(struct ptp_clock_info *ptp, in igb_ptp_settime_i210()
489 static int igb_ptp_feature_enable_82580(struct ptp_clock_info *ptp, in igb_ptp_feature_enable_82580()
[all …]
/Linux-v6.6/include/linux/
Dptp_clock_kernel.h398 static inline int ptp_clock_unregister(struct ptp_clock *ptp) in ptp_clock_unregister()
400 static inline void ptp_clock_event(struct ptp_clock *ptp, in ptp_clock_event()
403 static inline int ptp_clock_index(struct ptp_clock *ptp) in ptp_clock_index()
405 static inline int ptp_find_pin(struct ptp_clock *ptp, in ptp_find_pin()
408 static inline int ptp_find_pin_unlocked(struct ptp_clock *ptp, in ptp_find_pin_unlocked()
412 static inline int ptp_schedule_worker(struct ptp_clock *ptp, in ptp_schedule_worker()
415 static inline void ptp_cancel_worker_sync(struct ptp_clock *ptp) in ptp_cancel_worker_sync()
/Linux-v6.6/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ptp.c206 static int cxgb4_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in cxgb4_ptp_adjfine()
272 static int cxgb4_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in cxgb4_ptp_adjtime()
316 static int cxgb4_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in cxgb4_ptp_gettime()
339 static int cxgb4_ptp_settime(struct ptp_clock_info *ptp, in cxgb4_ptp_settime()
395 static int cxgb4_ptp_enable(struct ptp_clock_info __always_unused *ptp, in cxgb4_ptp_enable()
/Linux-v6.6/drivers/net/ethernet/xscale/
Dptp_ixp46x.c123 static int ptp_ixp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in ptp_ixp_adjfine()
136 static int ptp_ixp_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_ixp_adjtime()
154 static int ptp_ixp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_ixp_gettime()
171 static int ptp_ixp_settime(struct ptp_clock_info *ptp, in ptp_ixp_settime()
190 static int ptp_ixp_enable(struct ptp_clock_info *ptp, in ptp_ixp_enable()
/Linux-v6.6/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_tai.c85 static struct mvpp2_tai *ptp_to_tai(struct ptp_clock_info *ptp) in ptp_to_tai()
164 static int mvpp22_tai_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in mvpp22_tai_adjfine()
205 static int mvpp22_tai_adjtime(struct ptp_clock_info *ptp, s64 delta) in mvpp22_tai_adjtime()
235 static int mvpp22_tai_gettimex64(struct ptp_clock_info *ptp, in mvpp22_tai_gettimex64()
276 static int mvpp22_tai_settime64(struct ptp_clock_info *ptp, in mvpp22_tai_settime64()
302 static long mvpp22_tai_aux_work(struct ptp_clock_info *ptp) in mvpp22_tai_aux_work()

12345