Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/include/linux/
Dptp_clock_kernel.h122 struct ptp_clock_info { struct
132 int (*adjfine)(struct ptp_clock_info *ptp, long scaled_ppm); argument
133 int (*adjfreq)(struct ptp_clock_info *ptp, s32 delta); argument
134 int (*adjphase)(struct ptp_clock_info *ptp, s32 phase); argument
135 int (*adjtime)(struct ptp_clock_info *ptp, s64 delta); argument
136 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts); argument
137 int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts, argument
139 int (*getcrosststamp)(struct ptp_clock_info *ptp, argument
141 int (*settime64)(struct ptp_clock_info *p, const struct timespec64 *ts); argument
142 int (*enable)(struct ptp_clock_info *ptp, argument
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000e/
Dptp.c25 static int e1000e_phc_adjfreq(struct ptp_clock_info *ptp, s32 delta) in e1000e_phc_adjfreq()
28 ptp_clock_info); in e1000e_phc_adjfreq()
78 static int e1000e_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) in e1000e_phc_adjtime()
81 ptp_clock_info); in e1000e_phc_adjtime()
152 static int e1000e_phc_getcrosststamp(struct ptp_clock_info *ptp, in e1000e_phc_getcrosststamp()
156 ptp_clock_info); in e1000e_phc_getcrosststamp()
173 static int e1000e_phc_gettimex(struct ptp_clock_info *ptp, in e1000e_phc_gettimex()
178 ptp_clock_info); in e1000e_phc_gettimex()
203 static int e1000e_phc_settime(struct ptp_clock_info *ptp, in e1000e_phc_settime()
207 ptp_clock_info); in e1000e_phc_settime()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/include/soc/mscc/
Docelot_ptp.h47 int ocelot_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts);
48 int ocelot_ptp_settime64(struct ptp_clock_info *ptp,
50 int ocelot_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta);
51 int ocelot_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm);
52 int ocelot_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin,
54 int ocelot_ptp_enable(struct ptp_clock_info *ptp,
57 const struct ptp_clock_info *info);
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/ptp/
Dptp_kvm.c22 struct ptp_clock_info caps;
85 static int ptp_kvm_getcrosststamp(struct ptp_clock_info *ptp, in ptp_kvm_getcrosststamp()
96 static int ptp_kvm_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_kvm_adjfreq()
101 static int ptp_kvm_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_kvm_adjtime()
106 static int ptp_kvm_settime(struct ptp_clock_info *ptp, in ptp_kvm_settime()
112 static int ptp_kvm_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_kvm_gettime()
137 static int ptp_kvm_enable(struct ptp_clock_info *ptp, in ptp_kvm_enable()
143 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_dte.c54 struct ptp_clock_info caps;
147 static int ptp_dte_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_dte_adjfreq()
170 static int ptp_dte_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_dte_adjtime()
182 static int ptp_dte_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_dte_gettime()
194 static int ptp_dte_settime(struct ptp_clock_info *ptp, in ptp_dte_settime()
219 static int ptp_dte_enable(struct ptp_clock_info *ptp, in ptp_dte_enable()
225 static const struct ptp_clock_info ptp_dte_caps = {
Dptp_sysfs.c41 struct ptp_clock_info *ops = ptp->info; in extts_enable_store()
101 struct ptp_clock_info *ops = ptp->info; in period_store()
129 struct ptp_clock_info *ops = ptp->info; in pps_enable_store()
173 struct ptp_clock_info *info = ptp->info; in ptp_is_attribute_visible()
260 struct ptp_clock_info *info = ptp->info; in ptp_populate_pin_groups()
/kernel/linux/linux-5.10/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()
43 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_tsu_get_time()
72 static int gem_tsu_set_time(struct ptp_clock_info *ptp, in gem_tsu_set_time()
75 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_tsu_set_time()
117 static int gem_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in gem_ptp_adjfine()
119 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_ptp_adjfine()
152 static int gem_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in gem_ptp_adjtime()
154 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_ptp_adjtime()
164 gem_tsu_get_time(&bp->ptp_clock_info, &now); in gem_ptp_adjtime()
167 gem_tsu_set_time(&bp->ptp_clock_info, in gem_ptp_adjtime()
[all …]
/kernel/linux/linux-5.10/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,
/kernel/linux/linux-5.10/drivers/net/ethernet/microchip/
Dlan743x_ptp.c321 static int lan743x_ptpci_adjfine(struct ptp_clock_info *ptpci, long scaled_ppm) in lan743x_ptpci_adjfine()
324 container_of(ptpci, struct lan743x_ptp, ptp_clock_info); in lan743x_ptpci_adjfine()
354 static int lan743x_ptpci_adjfreq(struct ptp_clock_info *ptpci, s32 delta_ppb) in lan743x_ptpci_adjfreq()
357 container_of(ptpci, struct lan743x_ptp, ptp_clock_info); in lan743x_ptpci_adjfreq()
388 static int lan743x_ptpci_adjtime(struct ptp_clock_info *ptpci, s64 delta) in lan743x_ptpci_adjtime()
391 container_of(ptpci, struct lan743x_ptp, ptp_clock_info); in lan743x_ptpci_adjtime()
400 static int lan743x_ptpci_gettime64(struct ptp_clock_info *ptpci, in lan743x_ptpci_gettime64()
404 container_of(ptpci, struct lan743x_ptp, ptp_clock_info); in lan743x_ptpci_gettime64()
417 static int lan743x_ptpci_settime64(struct ptp_clock_info *ptpci, in lan743x_ptpci_settime64()
421 container_of(ptpci, struct lan743x_ptp, ptp_clock_info); in lan743x_ptpci_settime64()
[all …]
Dlan743x_ptp.h70 struct ptp_clock_info ptp_clock_info; member
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ptp.c21 static int stmmac_adjust_freq(struct ptp_clock_info *ptp, s32 ppb) in stmmac_adjust_freq()
56 static int stmmac_adjust_time(struct ptp_clock_info *ptp, s64 delta) in stmmac_adjust_time()
93 static int stmmac_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts) in stmmac_get_time()
118 static int stmmac_set_time(struct ptp_clock_info *ptp, in stmmac_set_time()
132 static int stmmac_enable(struct ptp_clock_info *ptp, in stmmac_enable()
169 static struct ptp_clock_info stmmac_ptp_clock_ops = {
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ptp.c10 static int otx2_ptp_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) in otx2_ptp_adjfine()
62 static int otx2_ptp_adjtime(struct ptp_clock_info *ptp_info, s64 delta) in otx2_ptp_adjtime()
75 static int otx2_ptp_gettime(struct ptp_clock_info *ptp_info, in otx2_ptp_gettime()
92 static int otx2_ptp_settime(struct ptp_clock_info *ptp_info, in otx2_ptp_settime()
109 static int otx2_ptp_enable(struct ptp_clock_info *ptp_info, in otx2_ptp_enable()
156 ptp_ptr->ptp_info = (struct ptp_clock_info) { in otx2_ptp_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/xscale/
Dptp_ixp46x.c31 struct ptp_clock_info caps;
124 static int ptp_ixp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in ptp_ixp_adjfreq()
148 static int ptp_ixp_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_ixp_adjtime()
166 static int ptp_ixp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_ixp_gettime()
183 static int ptp_ixp_settime(struct ptp_clock_info *ptp, in ptp_ixp_settime()
202 static int ptp_ixp_enable(struct ptp_clock_info *ptp, in ptp_ixp_enable()
227 static const struct ptp_clock_info ptp_ixp_caps = {
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
211 static int ravb_ptp_perout(struct ptp_clock_info *ptp, in ravb_ptp_perout()
277 static int ravb_ptp_enable(struct ptp_clock_info *ptp, in ravb_ptp_enable()
290 static const struct ptp_clock_info ravb_ptp_info = {
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/
Docelot_ptp.c11 int ocelot_ptp_gettime64(struct ptp_clock_info *ptp, struct timespec64 *ts) in ocelot_ptp_gettime64()
45 int ocelot_ptp_settime64(struct ptp_clock_info *ptp, in ocelot_ptp_settime64()
77 int ocelot_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in ocelot_ptp_adjtime()
122 int ocelot_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in ocelot_ptp_adjfine()
168 int ocelot_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, in ocelot_ptp_verify()
183 int ocelot_ptp_enable(struct ptp_clock_info *ptp, in ocelot_ptp_enable()
304 const struct ptp_clock_info *info) in ocelot_init_timestamp()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dclock.c166 static int mlx5_ptp_settime(struct ptp_clock_info *ptp, const struct timespec64 *ts) in mlx5_ptp_settime()
182 static int mlx5_ptp_gettimex(struct ptp_clock_info *ptp, struct timespec64 *ts, in mlx5_ptp_gettimex()
201 static int mlx5_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in mlx5_ptp_adjtime()
216 static int mlx5_ptp_adjfreq(struct ptp_clock_info *ptp, s32 delta) in mlx5_ptp_adjfreq()
246 static int mlx5_extts_configure(struct ptp_clock_info *ptp, in mlx5_extts_configure()
308 static int mlx5_perout_configure(struct ptp_clock_info *ptp, in mlx5_perout_configure()
387 static int mlx5_pps_configure(struct ptp_clock_info *ptp, in mlx5_pps_configure()
398 static int mlx5_ptp_enable(struct ptp_clock_info *ptp, in mlx5_ptp_enable()
420 static int mlx5_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin, in mlx5_ptp_verify()
440 static const struct ptp_clock_info mlx5_ptp_clock_info = {
/kernel/linux/linux-5.10/drivers/hv/
Dhv_util.c645 static int hv_ptp_enable(struct ptp_clock_info *info, in hv_ptp_enable()
651 static int hv_ptp_settime(struct ptp_clock_info *p, const struct timespec64 *ts) in hv_ptp_settime()
656 static int hv_ptp_adjfreq(struct ptp_clock_info *ptp, s32 delta) in hv_ptp_adjfreq()
660 static int hv_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in hv_ptp_adjtime()
665 static int hv_ptp_gettime(struct ptp_clock_info *info, struct timespec64 *ts) in hv_ptp_gettime()
670 static struct ptp_clock_info ptp_hyperv_info = {

1234