Home
last modified time | relevance | path

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

123

/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A 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
H A Dptp.c67 #define is_rev_A0(ptp) (((ptp)->pdev->revision & 0x0F) == 0x0) argument
68 #define is_rev_A1(ptp) (((ptp)->pdev->revision & 0x0F) == 0x1) argument
80 static bool is_ptp_dev_cnf10ka(struct ptp *ptp) in is_ptp_dev_cnf10ka()
85 static bool is_ptp_dev_cn10ka(struct ptp *ptp) in is_ptp_dev_cn10ka()
90 static bool cn10k_ptp_errata(struct ptp *ptp) in cn10k_ptp_errata()
101 struct ptp *ptp = rvu->ptp; in is_tstmp_atomic_update_supported() local
118 struct ptp *ptp = container_of(hrtimer, struct ptp, hrtimer); in ptp_reset_thresh() local
144 static void ptp_hrtimer_start(struct ptp *ptp, ktime_t start_ns) in ptp_hrtimer_start()
153 static u64 read_ptp_tstmp_sec_nsec(struct ptp *ptp) in read_ptp_tstmp_sec_nsec()
172 static u64 read_ptp_tstmp_nsec(struct ptp *ptp) in read_ptp_tstmp_nsec()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A 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_pps_on(struct otx2_ptp *ptp, int on, u64 period) in ptp_pps_on()
198 struct otx2_ptp *ptp = container_of(cc, struct otx2_ptp, cycle_counter); in ptp_cc_read() local
203 static u64 ptp_tstmp_read(struct otx2_ptp *ptp) in ptp_tstmp_read()
[all …]
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ptp.c62 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_settime() local
80 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in __bnxt_refclk_read() local
104 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_refclk_read() local
118 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_refclk_read_low() local
139 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_get_current_time() local
185 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_gettimex() local
204 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in bnxt_ptp_update_current_time() local
210 static int bnxt_ptp_adjphc(struct bnxt_ptp_cfg *ptp, s64 delta) in bnxt_ptp_adjphc()
234 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_adjtime() local
268 struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg, in bnxt_ptp_adjfine() local
[all …]
/linux/drivers/net/ethernet/qlogic/qede/
H A 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
288 struct qede_ptp *ptp; in qede_hwtstamp_set() local
330 struct qede_ptp *ptp; in qede_hwtstamp_get() local
[all …]
/linux/drivers/ptp/
H A Dptp_clock.c97 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_settime() local
112 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_gettime() local
124 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_adjtime() local
204 struct ptp_clock *ptp = container_of(dev, struct ptp_clock, dev); in ptp_clock_release() local
233 static int ptp_enable(struct ptp_clock_info *ptp, struct ptp_clock_request *request, int on) in ptp_enable()
240 struct ptp_clock *ptp = container_of(work, struct ptp_clock, in ptp_aux_kworker() local
255 struct ptp_clock *ptp = filep->private_data; in ptp_n_perout_loopback_read() local
273 struct ptp_clock *ptp = filep->private_data; in ptp_perout_loopback_write() local
319 struct ptp_clock *ptp; in ptp_clock_register() local
491 struct ptp_clock *ptp = dev_get_drvdata(dev); in unregister_vclock() local
[all …]
H A 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
51 struct ptp_clock *ptp = dev_get_drvdata(dev); in extts_enable_store() local
76 struct ptp_clock *ptp = dev_get_drvdata(dev); in extts_fifo_show() local
115 struct ptp_clock *ptp = dev_get_drvdata(dev); in period_store() local
143 struct ptp_clock *ptp = dev_get_drvdata(dev); in pps_enable_store() local
168 struct ptp_clock *ptp = dev_get_drvdata(dev); in unregister_vclock() local
190 struct ptp_clock *ptp = dev_get_drvdata(dev); in n_vclocks_show() local
207 struct ptp_clock *ptp = dev_get_drvdata(dev); in n_vclocks_store() local
269 struct ptp_clock *ptp = dev_get_drvdata(dev); in max_vclocks_show() local
[all …]
H A Dptp_vclock.c45 static int ptp_vclock_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in ptp_vclock_adjfine()
62 static int ptp_vclock_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_vclock_adjtime()
74 static int ptp_vclock_gettime(struct ptp_clock_info *ptp, in ptp_vclock_gettime()
89 static int ptp_vclock_gettimex(struct ptp_clock_info *ptp, in ptp_vclock_gettimex()
113 static int ptp_vclock_settime(struct ptp_clock_info *ptp, in ptp_vclock_settime()
127 static int ptp_vclock_getcrosststamp(struct ptp_clock_info *ptp, in ptp_vclock_getcrosststamp()
149 static long ptp_vclock_refresh(struct ptp_clock_info *ptp) in ptp_vclock_refresh()
159 static void ptp_vclock_set_subclass(struct ptp_clock *ptp) in ptp_vclock_set_subclass()
177 struct ptp_clock *ptp = vclock->pclock; in ptp_vclock_read() local
245 struct ptp_clock *ptp; in ptp_get_vclocks_index() local
H A 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()
H A Dptp_dte.c137 static int ptp_dte_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in ptp_dte_adjfine()
161 static int ptp_dte_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_dte_adjtime()
173 static int ptp_dte_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_dte_gettime()
185 static int ptp_dte_settime(struct ptp_clock_info *ptp, in ptp_dte_settime()
210 static int ptp_dte_enable(struct ptp_clock_info *ptp, in ptp_dte_enable()
H A Dptp_qoriq.c202 int ptp_qoriq_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in ptp_qoriq_adjfine()
233 int ptp_qoriq_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_qoriq_adjtime()
261 int ptp_qoriq_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_qoriq_gettime()
279 int ptp_qoriq_settime(struct ptp_clock_info *ptp, in ptp_qoriq_settime()
300 int ptp_qoriq_enable(struct ptp_clock_info *ptp, in ptp_qoriq_enable()
468 static int ptp_qoriq_perout_loopback(struct ptp_clock_info *ptp, in ptp_qoriq_perout_loopback()
/linux/drivers/net/ethernet/intel/e1000e/
H A 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()
141 static int e1000e_phc_getcrosststamp(struct ptp_clock_info *ptp, in e1000e_phc_getcrosststamp()
162 static int e1000e_phc_gettimex(struct ptp_clock_info *ptp, in e1000e_phc_gettimex()
192 static int e1000e_phc_settime(struct ptp_clock_info *ptp, in e1000e_phc_settime()
219 static int e1000e_phc_enable(struct ptp_clock_info __always_unused *ptp, in e1000e_phc_enable()
/linux/drivers/net/ethernet/sfc/siena/
H A 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/drivers/net/ethernet/sfc/
H A Dptp.c552 struct efx_ptp_data *ptp, in efx_ptp_mac_nic_to_ktime_correction()
605 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_nic_to_kernel_time() local
626 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_get_attributes() local
848 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_send_times() local
919 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_process_times() local
1014 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_synchronize() local
1179 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_process_events() local
1256 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_insert_filter() local
1317 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_insert_eth_multicast_filter() local
1329 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_insert_multicast_filters() local
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A 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/drivers/net/ethernet/chelsio/cxgb4/
H A 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/drivers/net/ethernet/xscale/
H A 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/drivers/net/ethernet/marvell/mvpp2/
H A 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()
/linux/drivers/net/ethernet/google/gve/
H A Dgve_ptp.c44 const struct gve_ptp *ptp = container_of(info, struct gve_ptp, info); in gve_ptp_do_aux_work() local
70 struct gve_ptp *ptp; in gve_ptp_init() local
98 struct gve_ptp *ptp = priv->ptp; in gve_ptp_release() local
/linux/drivers/net/dsa/hirschmann/
H A Dhellcreek_ptp.c88 static int hellcreek_ptp_gettimex(struct ptp_clock_info *ptp, in hellcreek_ptp_gettimex()
104 static int hellcreek_ptp_settime(struct ptp_clock_info *ptp, in hellcreek_ptp_settime()
132 static int hellcreek_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in hellcreek_ptp_adjfine()
179 static int hellcreek_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in hellcreek_ptp_adjtime()
227 static int hellcreek_ptp_enable(struct ptp_clock_info *ptp, in hellcreek_ptp_enable()
/linux/drivers/net/ethernet/cavium/common/
H A Dcavium_ptp.h32 static inline u64 cavium_ptp_tstamp2time(struct cavium_ptp *ptp, u64 tstamp) in cavium_ptp_tstamp2time()
56 static inline void cavium_ptp_put(struct cavium_ptp *ptp) {} in cavium_ptp_put()
58 static inline u64 cavium_ptp_tstamp2time(struct cavium_ptp *ptp, u64 tstamp) in cavium_ptp_tstamp2time()
/linux/drivers/net/ethernet/cadence/
H A Dmacb_ptp.c43 static int gem_tsu_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts, in gem_tsu_get_time()
79 static int gem_tsu_set_time(struct ptp_clock_info *ptp, in gem_tsu_set_time()
124 static int gem_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in gem_ptp_adjfine()
159 static int gem_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in gem_ptp_adjtime()
185 static int gem_ptp_enable(struct ptp_clock_info *ptp, in gem_ptp_enable()
/linux/drivers/net/ethernet/wangxun/libwx/
H A Dwx_ptp.c65 static int wx_ptp_adjfine(struct ptp_clock_info *ptp, long ppb) in wx_ptp_adjfine()
84 static int wx_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in wx_ptp_adjtime()
99 static int wx_ptp_gettimex64(struct ptp_clock_info *ptp, in wx_ptp_gettimex64()
113 static int wx_ptp_settime64(struct ptp_clock_info *ptp, in wx_ptp_settime64()
319 static long wx_ptp_do_aux_work(struct ptp_clock_info *ptp) in wx_ptp_do_aux_work()
411 static int wx_ptp_feature_enable(struct ptp_clock_info *ptp, in wx_ptp_feature_enable()
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_ptp.c622 static int lan966x_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in lan966x_ptp_adjfine()
669 static int lan966x_ptp_settime64(struct ptp_clock_info *ptp, in lan966x_ptp_settime64()
708 int lan966x_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) in lan966x_ptp_gettime64()
745 static int lan966x_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in lan966x_ptp_adjtime()
793 static int lan966x_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, in lan966x_ptp_verify()
833 static int lan966x_ptp_perout(struct ptp_clock_info *ptp, in lan966x_ptp_perout()
930 static int lan966x_ptp_extts(struct ptp_clock_info *ptp, in lan966x_ptp_extts()
969 static int lan966x_ptp_enable(struct ptp_clock_info *ptp, in lan966x_ptp_enable()
/linux/drivers/net/ethernet/ti/
H A Dcpts.c216 static int cpts_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in cpts_ptp_adjfine()
230 static int cpts_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in cpts_ptp_adjtime()
241 static int cpts_ptp_gettimeex(struct ptp_clock_info *ptp, in cpts_ptp_gettimeex()
260 static int cpts_ptp_settime(struct ptp_clock_info *ptp, in cpts_ptp_settime()
299 static int cpts_ptp_enable(struct ptp_clock_info *ptp, in cpts_ptp_enable()
392 static long cpts_overflow_check(struct ptp_clock_info *ptp) in cpts_overflow_check()

123