Home
last modified time | relevance | path

Searched refs:ptp_clock_info (Results 1 – 25 of 107) sorted by relevance

12345

/linux-6.1.9/include/linux/
Dptp_clock_kernel.h164 struct ptp_clock_info { struct
174 int (*adjfine)(struct ptp_clock_info *ptp, long scaled_ppm); argument
175 int (*adjfreq)(struct ptp_clock_info *ptp, s32 delta); argument
176 int (*adjphase)(struct ptp_clock_info *ptp, s32 phase); argument
177 int (*adjtime)(struct ptp_clock_info *ptp, s64 delta); argument
178 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts); argument
179 int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts, argument
181 int (*getcrosststamp)(struct ptp_clock_info *ptp, argument
183 int (*settime64)(struct ptp_clock_info *p, const struct timespec64 *ts); argument
184 int (*getcycles64)(struct ptp_clock_info *ptp, struct timespec64 *ts); argument
[all …]
/linux-6.1.9/drivers/net/ethernet/engleder/
Dtsnep_ptp.c76 static int tsnep_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in tsnep_ptp_adjfine()
79 ptp_clock_info); in tsnep_ptp_adjfine()
104 static int tsnep_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in tsnep_ptp_adjtime()
107 ptp_clock_info); in tsnep_ptp_adjtime()
129 static int tsnep_ptp_gettimex64(struct ptp_clock_info *ptp, in tsnep_ptp_gettimex64()
134 ptp_clock_info); in tsnep_ptp_gettimex64()
156 static int tsnep_ptp_settime64(struct ptp_clock_info *ptp, in tsnep_ptp_settime64()
160 ptp_clock_info); in tsnep_ptp_settime64()
178 static int tsnep_ptp_getcyclesx64(struct ptp_clock_info *ptp, in tsnep_ptp_getcyclesx64()
183 ptp_clock_info); in tsnep_ptp_getcyclesx64()
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/e1000e/
Dptp.c27 static int e1000e_phc_adjfine(struct ptp_clock_info *ptp, long delta) in e1000e_phc_adjfine()
30 ptp_clock_info); in e1000e_phc_adjfine()
76 static int e1000e_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) in e1000e_phc_adjtime()
79 ptp_clock_info); in e1000e_phc_adjtime()
150 static int e1000e_phc_getcrosststamp(struct ptp_clock_info *ptp, in e1000e_phc_getcrosststamp()
154 ptp_clock_info); in e1000e_phc_getcrosststamp()
171 static int e1000e_phc_gettimex(struct ptp_clock_info *ptp, in e1000e_phc_gettimex()
176 ptp_clock_info); in e1000e_phc_gettimex()
201 static int e1000e_phc_settime(struct ptp_clock_info *ptp, in e1000e_phc_settime()
205 ptp_clock_info); in e1000e_phc_settime()
[all …]
/linux-6.1.9/drivers/net/dsa/mv88e6xxx/
Dptp.c199 static int mv88e6xxx_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in mv88e6xxx_ptp_adjfine()
227 static int mv88e6xxx_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in mv88e6xxx_ptp_adjtime()
238 static int mv88e6xxx_ptp_gettime(struct ptp_clock_info *ptp, in mv88e6xxx_ptp_gettime()
253 static int mv88e6xxx_ptp_settime(struct ptp_clock_info *ptp, in mv88e6xxx_ptp_settime()
321 static int mv88e6352_ptp_enable(struct ptp_clock_info *ptp, in mv88e6352_ptp_enable()
334 static int mv88e6352_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, in mv88e6352_ptp_verify()
442 mv88e6xxx_ptp_gettime(&chip->ptp_clock_info, &ts); in mv88e6xxx_ptp_overflow_check()
467 chip->ptp_clock_info.owner = THIS_MODULE; in mv88e6xxx_ptp_setup()
468 snprintf(chip->ptp_clock_info.name, sizeof(chip->ptp_clock_info.name), in mv88e6xxx_ptp_setup()
471 chip->ptp_clock_info.n_ext_ts = ptp_ops->n_ext_ts; in mv88e6xxx_ptp_setup()
[all …]
Dptp.h144 long mv88e6xxx_hwtstamp_work(struct ptp_clock_info *ptp);
149 ptp_clock_info)
157 static inline long mv88e6xxx_hwtstamp_work(struct ptp_clock_info *ptp) in mv88e6xxx_hwtstamp_work()
/linux-6.1.9/drivers/net/dsa/hirschmann/
Dhellcreek_ptp.c83 static int hellcreek_ptp_gettime(struct ptp_clock_info *ptp, in hellcreek_ptp_gettime()
98 static int hellcreek_ptp_settime(struct ptp_clock_info *ptp, in hellcreek_ptp_settime()
126 static int hellcreek_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in hellcreek_ptp_adjfine()
173 static int hellcreek_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in hellcreek_ptp_adjtime()
221 static int hellcreek_ptp_enable(struct ptp_clock_info *ptp, in hellcreek_ptp_enable()
391 hellcreek->ptp_clock_info.owner = THIS_MODULE; in hellcreek_ptp_setup()
392 snprintf(hellcreek->ptp_clock_info.name, in hellcreek_ptp_setup()
393 sizeof(hellcreek->ptp_clock_info.name), in hellcreek_ptp_setup()
400 hellcreek->ptp_clock_info.max_adj = 62500000; in hellcreek_ptp_setup()
401 hellcreek->ptp_clock_info.n_alarm = 0; in hellcreek_ptp_setup()
[all …]
/linux-6.1.9/include/soc/mscc/
Docelot_ptp.h48 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,
58 const struct ptp_clock_info *info);
/linux-6.1.9/drivers/net/ethernet/amd/xgbe/
Dxgbe-ptp.c137 static int xgbe_adjfreq(struct ptp_clock_info *info, s32 delta) in xgbe_adjfreq()
141 ptp_clock_info); in xgbe_adjfreq()
168 static int xgbe_adjtime(struct ptp_clock_info *info, s64 delta) in xgbe_adjtime()
172 ptp_clock_info); in xgbe_adjtime()
182 static int xgbe_gettime(struct ptp_clock_info *info, struct timespec64 *ts) in xgbe_gettime()
186 ptp_clock_info); in xgbe_gettime()
201 static int xgbe_settime(struct ptp_clock_info *info, in xgbe_settime()
206 ptp_clock_info); in xgbe_settime()
221 static int xgbe_enable(struct ptp_clock_info *info, in xgbe_enable()
229 struct ptp_clock_info *info = &pdata->ptp_clock_info; in xgbe_ptp_register()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Den_clock.c121 static int mlx4_en_phc_adjfreq(struct ptp_clock_info *ptp, s32 delta) in mlx4_en_phc_adjfreq()
128 ptp_clock_info); in mlx4_en_phc_adjfreq()
154 static int mlx4_en_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) in mlx4_en_phc_adjtime()
157 ptp_clock_info); in mlx4_en_phc_adjtime()
175 static int mlx4_en_phc_gettime(struct ptp_clock_info *ptp, in mlx4_en_phc_gettime()
179 ptp_clock_info); in mlx4_en_phc_gettime()
200 static int mlx4_en_phc_settime(struct ptp_clock_info *ptp, in mlx4_en_phc_settime()
204 ptp_clock_info); in mlx4_en_phc_settime()
225 static int mlx4_en_phc_enable(struct ptp_clock_info __always_unused *ptp, in mlx4_en_phc_enable()
232 static const struct ptp_clock_info mlx4_en_ptp_clock_info = {
[all …]
/linux-6.1.9/drivers/ptp/
Dptp_kvm_common.c22 struct ptp_clock_info caps;
58 static int ptp_kvm_getcrosststamp(struct ptp_clock_info *ptp, in ptp_kvm_getcrosststamp()
69 static int ptp_kvm_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_kvm_adjfreq()
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()
111 static const struct ptp_clock_info ptp_kvm_caps = {
Dptp_vmw.c45 static int ptp_vmw_adjtime(struct ptp_clock_info *info, s64 delta) in ptp_vmw_adjtime()
50 static int ptp_vmw_adjfreq(struct ptp_clock_info *info, s32 delta) in ptp_vmw_adjfreq()
55 static int ptp_vmw_gettime(struct ptp_clock_info *info, struct timespec64 *ts) in ptp_vmw_gettime()
65 static int ptp_vmw_settime(struct ptp_clock_info *info, in ptp_vmw_settime()
71 static int ptp_vmw_enable(struct ptp_clock_info *info, in ptp_vmw_enable()
77 static struct ptp_clock_info ptp_vmw_clock_info = {
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()
157 static const struct ptp_clock_info ptp_vclock_info = {
Dptp_dte.c44 struct ptp_clock_info caps;
137 static int ptp_dte_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_dte_adjfreq()
160 static int ptp_dte_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_dte_adjtime()
172 static int ptp_dte_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_dte_gettime()
184 static int ptp_dte_settime(struct ptp_clock_info *ptp, in ptp_dte_settime()
209 static int ptp_dte_enable(struct ptp_clock_info *ptp, in ptp_dte_enable()
215 static const struct ptp_clock_info ptp_dte_caps = {
Dptp_pch.c114 struct ptp_clock_info caps;
339 static int ptp_pch_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_pch_adjfreq()
363 static int ptp_pch_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_pch_adjtime()
379 static int ptp_pch_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_pch_gettime()
394 static int ptp_pch_settime(struct ptp_clock_info *ptp, in ptp_pch_settime()
411 static int ptp_pch_enable(struct ptp_clock_info *ptp, in ptp_pch_enable()
436 static const struct ptp_clock_info ptp_pch_caps = {
/linux-6.1.9/drivers/net/ethernet/cadence/
Dmacb_ptp.c41 static int gem_tsu_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts, in gem_tsu_get_time()
44 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_tsu_get_time()
77 static int gem_tsu_set_time(struct ptp_clock_info *ptp, in gem_tsu_set_time()
80 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_tsu_set_time()
122 static int gem_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in gem_ptp_adjfine()
124 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_ptp_adjfine()
157 static int gem_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in gem_ptp_adjtime()
159 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_ptp_adjtime()
169 gem_tsu_get_time(&bp->ptp_clock_info, &now, NULL); in gem_ptp_adjtime()
172 gem_tsu_set_time(&bp->ptp_clock_info, in gem_ptp_adjtime()
[all …]
/linux-6.1.9/include/linux/fsl/
Dptp_qoriq.h146 struct ptp_clock_info caps;
187 const struct ptp_clock_info *caps);
189 int ptp_qoriq_adjfine(struct ptp_clock_info *ptp, long scaled_ppm);
190 int ptp_qoriq_adjtime(struct ptp_clock_info *ptp, s64 delta);
191 int ptp_qoriq_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts);
192 int ptp_qoriq_settime(struct ptp_clock_info *ptp,
194 int ptp_qoriq_enable(struct ptp_clock_info *ptp,
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ptp.c204 static int cxgb4_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in cxgb4_ptp_adjfreq()
207 struct adapter, ptp_clock_info); in cxgb4_ptp_adjfreq()
269 static int cxgb4_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in cxgb4_ptp_adjtime()
273 ptp_clock_info); in cxgb4_ptp_adjtime()
313 static int cxgb4_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in cxgb4_ptp_gettime()
316 ptp_clock_info); in cxgb4_ptp_gettime()
336 static int cxgb4_ptp_settime(struct ptp_clock_info *ptp, in cxgb4_ptp_settime()
340 struct adapter, ptp_clock_info); in cxgb4_ptp_settime()
392 static int cxgb4_ptp_enable(struct ptp_clock_info __always_unused *ptp, in cxgb4_ptp_enable()
399 static const struct ptp_clock_info cxgb4_ptp_clock_info = {
[all …]
/linux-6.1.9/drivers/net/ethernet/microchip/
Dlan743x_ptp.c335 static int lan743x_ptpci_adjfine(struct ptp_clock_info *ptpci, long scaled_ppm) in lan743x_ptpci_adjfine()
338 container_of(ptpci, struct lan743x_ptp, ptp_clock_info); in lan743x_ptpci_adjfine()
368 static int lan743x_ptpci_adjfreq(struct ptp_clock_info *ptpci, s32 delta_ppb) in lan743x_ptpci_adjfreq()
371 container_of(ptpci, struct lan743x_ptp, ptp_clock_info); in lan743x_ptpci_adjfreq()
402 static int lan743x_ptpci_adjtime(struct ptp_clock_info *ptpci, s64 delta) in lan743x_ptpci_adjtime()
405 container_of(ptpci, struct lan743x_ptp, ptp_clock_info); in lan743x_ptpci_adjtime()
414 static int lan743x_ptpci_gettime64(struct ptp_clock_info *ptpci, in lan743x_ptpci_gettime64()
418 container_of(ptpci, struct lan743x_ptp, ptp_clock_info); in lan743x_ptpci_gettime64()
435 static int lan743x_ptpci_settime64(struct ptp_clock_info *ptpci, in lan743x_ptpci_settime64()
439 container_of(ptpci, struct lan743x_ptp, ptp_clock_info); in lan743x_ptpci_settime64()
[all …]
/linux-6.1.9/drivers/net/ethernet/xscale/
Dptp_ixp46x.c28 struct ptp_clock_info caps;
123 static int ptp_ixp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_ixp_adjfreq()
147 static int ptp_ixp_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_ixp_adjtime()
165 static int ptp_ixp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_ixp_gettime()
182 static int ptp_ixp_settime(struct ptp_clock_info *ptp, in ptp_ixp_settime()
201 static int ptp_ixp_enable(struct ptp_clock_info *ptp, in ptp_ixp_enable()
226 static const struct ptp_clock_info ptp_ixp_caps = {
/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ptp.c22 static int stmmac_adjust_freq(struct ptp_clock_info *ptp, s32 ppb) in stmmac_adjust_freq()
57 static int stmmac_adjust_time(struct ptp_clock_info *ptp, s64 delta) in stmmac_adjust_time()
133 static int stmmac_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts) in stmmac_get_time()
158 static int stmmac_set_time(struct ptp_clock_info *ptp, in stmmac_set_time()
172 static int stmmac_enable(struct ptp_clock_info *ptp, in stmmac_enable()
255 static int stmmac_getcrosststamp(struct ptp_clock_info *ptp, in stmmac_getcrosststamp()
266 static struct ptp_clock_info stmmac_ptp_clock_ops = {
/linux-6.1.9/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_tai.c57 struct ptp_clock_info caps;
85 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-6.1.9/drivers/net/ethernet/cavium/common/
Dcavium_ptp.c93 static int cavium_ptp_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) in cavium_ptp_adjfine()
140 static int cavium_ptp_adjtime(struct ptp_clock_info *ptp_info, s64 delta) in cavium_ptp_adjtime()
161 static int cavium_ptp_gettime(struct ptp_clock_info *ptp_info, in cavium_ptp_gettime()
183 static int cavium_ptp_settime(struct ptp_clock_info *ptp_info, in cavium_ptp_settime()
206 static int cavium_ptp_enable(struct ptp_clock_info *ptp_info, in cavium_ptp_enable()
261 clock->ptp_info = (struct ptp_clock_info) { in cavium_ptp_probe()
/linux-6.1.9/drivers/net/ethernet/renesas/
Dravb_ptp.c91 static int ravb_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ravb_ptp_adjfreq()
127 static int ravb_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in ravb_ptp_adjtime()
148 static int ravb_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) in ravb_ptp_gettime64()
162 static int ravb_ptp_settime64(struct ptp_clock_info *ptp, in ravb_ptp_settime64()
177 static int ravb_ptp_extts(struct ptp_clock_info *ptp, in ravb_ptp_extts()
212 static int ravb_ptp_perout(struct ptp_clock_info *ptp, in ravb_ptp_perout()
279 static int ravb_ptp_enable(struct ptp_clock_info *ptp, in ravb_ptp_enable()
292 static const struct ptp_clock_info ravb_ptp_info = {
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ptp.c40 static int otx2_ptp_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) in otx2_ptp_adjfine()
136 static int otx2_ptp_adjtime(struct ptp_clock_info *ptp_info, s64 delta) in otx2_ptp_adjtime()
149 static int otx2_ptp_gettime(struct ptp_clock_info *ptp_info, in otx2_ptp_gettime()
162 static int otx2_ptp_settime(struct ptp_clock_info *ptp_info, in otx2_ptp_settime()
179 static int otx2_ptp_verify_pin(struct ptp_clock_info *ptp, unsigned int pin, in otx2_ptp_verify_pin()
238 static int otx2_ptp_enable(struct ptp_clock_info *ptp_info, in otx2_ptp_enable()
318 ptp_ptr->ptp_info = (struct ptp_clock_info) { in otx2_ptp_init()
/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/
Dlan966x_ptp.c381 static int lan966x_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in lan966x_ptp_adjfine()
428 static int lan966x_ptp_settime64(struct ptp_clock_info *ptp, in lan966x_ptp_settime64()
467 int lan966x_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) in lan966x_ptp_gettime64()
504 static int lan966x_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in lan966x_ptp_adjtime()
552 static int lan966x_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, in lan966x_ptp_verify()
557 struct ptp_clock_info *info; in lan966x_ptp_verify()
592 static int lan966x_ptp_perout(struct ptp_clock_info *ptp, in lan966x_ptp_perout()
693 static int lan966x_ptp_extts(struct ptp_clock_info *ptp, in lan966x_ptp_extts()
738 static int lan966x_ptp_enable(struct ptp_clock_info *ptp, in lan966x_ptp_enable()
753 static struct ptp_clock_info lan966x_ptp_clock_info = {
[all …]

12345