Home
last modified time | relevance | path

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

1234

/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/microchip/
H A 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/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
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/drivers/ptp/
H A Dptp_clock.c96 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_settime() local
108 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_gettime() local
120 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_adjtime() local
191 struct ptp_clock *ptp = container_of(dev, struct ptp_clock, dev); in ptp_clock_release() local
220 static int ptp_enable(struct ptp_clock_info *ptp, struct ptp_clock_request *request, int on) in ptp_enable()
227 struct ptp_clock *ptp = container_of(work, struct ptp_clock, in ptp_aux_kworker() local
243 struct ptp_clock *ptp; in ptp_clock_register() local
407 struct ptp_clock *ptp = dev_get_drvdata(dev); in unregister_vclock() local
413 int ptp_clock_unregister(struct ptp_clock *ptp) in ptp_clock_unregister()
437 void ptp_clock_event(struct ptp_clock *ptp, struct ptp_clock_event *event) in ptp_clock_event()
[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.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
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_chardev.c50 int ptp_set_pinfunc(struct ptp_clock *ptp, unsigned int pin, in ptp_set_pinfunc()
109 struct ptp_clock *ptp = in ptp_open() local
147 struct ptp_clock *ptp = in ptp_release() local
163 struct ptp_clock *ptp = in ptp_ioctl() local
517 struct ptp_clock *ptp = in ptp_poll() local
535 struct ptp_clock *ptp = in ptp_read() local
/linux/drivers/net/ethernet/renesas/
H A 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()
191 struct rcar_gen4_ptp_private *ptp; in rcar_gen4_ptp_alloc() local
H A 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/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/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/hisilicon/hns3/hns3pf/
H A 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
131 static int hclge_ptp_gettimex(struct ptp_clock_info *ptp, struct timespec64 *ts, in hclge_ptp_gettimex()
151 static int hclge_ptp_settime(struct ptp_clock_info *ptp, in hclge_ptp_settime()
171 static int hclge_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in hclge_ptp_adjtime()
423 struct hclge_ptp *ptp; in hclge_ptp_create_clock() local
529 struct hclge_ptp *ptp = hdev->ptp; in hclge_ptp_uninit() local
/linux/drivers/net/ethernet/engleder/
H A 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/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/intel/igb/
H A 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/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/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/wireless/intel/iwlwifi/mvm/
H A Dptp.c150 iwl_mvm_phc_get_crosstimestamp(struct ptp_clock_info *ptp, in iwl_mvm_phc_get_crosstimestamp()
206 static int iwl_mvm_ptp_gettime(struct ptp_clock_info *ptp, in iwl_mvm_ptp_gettime()
223 static int iwl_mvm_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in iwl_mvm_ptp_adjtime()
238 static int iwl_mvm_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in iwl_mvm_ptp_adjfine()

1234