/linux-6.3-rc2/include/linux/ |
A D | ptp_clock_kernel.h | 160 struct ptp_clock_info { struct 170 int (*adjfine)(struct ptp_clock_info *ptp, long scaled_ppm); argument 171 int (*adjphase)(struct ptp_clock_info *ptp, s32 phase); argument 172 int (*adjtime)(struct ptp_clock_info *ptp, s64 delta); argument 173 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts); argument 174 int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts, argument 176 int (*getcrosststamp)(struct ptp_clock_info *ptp, argument 182 int (*getcrosscycles)(struct ptp_clock_info *ptp, argument 184 int (*enable)(struct ptp_clock_info *ptp, argument 186 int (*verify)(struct ptp_clock_info *ptp, unsigned int pin, argument [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/engleder/ |
A D | tsnep_ptp.c | 79 ptp_clock_info); in tsnep_ptp_adjfine() 107 ptp_clock_info); in tsnep_ptp_adjtime() 134 ptp_clock_info); in tsnep_ptp_gettimex64() 160 ptp_clock_info); in tsnep_ptp_settime64() 183 ptp_clock_info); in tsnep_ptp_getcyclesx64() 212 snprintf(adapter->ptp_clock_info.name, 16, "%s", TSNEP); in tsnep_ptp_init() 213 adapter->ptp_clock_info.owner = THIS_MODULE; in tsnep_ptp_init() 217 adapter->ptp_clock_info.max_adj = (500000000 / 8 - 1); in tsnep_ptp_init() 218 adapter->ptp_clock_info.adjfine = tsnep_ptp_adjfine; in tsnep_ptp_init() 219 adapter->ptp_clock_info.adjtime = tsnep_ptp_adjtime; in tsnep_ptp_init() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/intel/e1000e/ |
A D | ptp.c | 30 ptp_clock_info); in e1000e_phc_adjfine() 69 ptp_clock_info); in e1000e_phc_adjtime() 144 ptp_clock_info); in e1000e_phc_getcrosststamp() 166 ptp_clock_info); in e1000e_phc_gettimex() 195 ptp_clock_info); in e1000e_phc_settime() 275 adapter->ptp_clock_info = e1000e_ptp_clock_info; in e1000e_ptp_init() 277 snprintf(adapter->ptp_clock_info.name, in e1000e_ptp_init() 278 sizeof(adapter->ptp_clock_info.name), "%pm", in e1000e_ptp_init() 293 adapter->ptp_clock_info.max_adj = 24000000 - 1; in e1000e_ptp_init() 299 adapter->ptp_clock_info.max_adj = 600000000 - 1; in e1000e_ptp_init() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/amd/xgbe/ |
A D | xgbe-ptp.c | 137 static int xgbe_adjfine(struct ptp_clock_info *info, long scaled_ppm) in xgbe_adjfine() 141 ptp_clock_info); in xgbe_adjfine() 156 static int xgbe_adjtime(struct ptp_clock_info *info, s64 delta) in xgbe_adjtime() 160 ptp_clock_info); in xgbe_adjtime() 170 static int xgbe_gettime(struct ptp_clock_info *info, struct timespec64 *ts) in xgbe_gettime() 174 ptp_clock_info); in xgbe_gettime() 189 static int xgbe_settime(struct ptp_clock_info *info, in xgbe_settime() 194 ptp_clock_info); in xgbe_settime() 209 static int xgbe_enable(struct ptp_clock_info *info, in xgbe_enable() 217 struct ptp_clock_info *info = &pdata->ptp_clock_info; in xgbe_ptp_register()
|
/linux-6.3-rc2/drivers/net/dsa/hirschmann/ |
A D | hellcreek_ptp.c | 83 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() 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() 402 hellcreek->ptp_clock_info.n_pins = 0; in hellcreek_ptp_setup() 403 hellcreek->ptp_clock_info.n_ext_ts = 0; in hellcreek_ptp_setup() 404 hellcreek->ptp_clock_info.n_per_out = 0; in hellcreek_ptp_setup() [all …]
|
/linux-6.3-rc2/include/soc/mscc/ |
A D | ocelot_ptp.h | 48 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.3-rc2/drivers/net/dsa/mv88e6xxx/ |
A D | ptp.c | 471 mv88e6xxx_ptp_gettime(&chip->ptp_clock_info, &ts); in mv88e6xxx_ptp_overflow_check() 496 chip->ptp_clock_info.owner = THIS_MODULE; in mv88e6xxx_ptp_setup() 497 snprintf(chip->ptp_clock_info.name, sizeof(chip->ptp_clock_info.name), in mv88e6xxx_ptp_setup() 500 chip->ptp_clock_info.n_ext_ts = ptp_ops->n_ext_ts; in mv88e6xxx_ptp_setup() 501 chip->ptp_clock_info.n_per_out = 0; in mv88e6xxx_ptp_setup() 503 chip->ptp_clock_info.pps = 0; in mv88e6xxx_ptp_setup() 505 for (i = 0; i < chip->ptp_clock_info.n_pins; ++i) { in mv88e6xxx_ptp_setup() 512 chip->ptp_clock_info.pin_config = chip->pin_config; in mv88e6xxx_ptp_setup() 515 chip->ptp_clock_info.adjfine = mv88e6xxx_ptp_adjfine; in mv88e6xxx_ptp_setup() 519 chip->ptp_clock_info.enable = ptp_ops->ptp_enable; in mv88e6xxx_ptp_setup() [all …]
|
A D | ptp.h | 144 long mv88e6xxx_hwtstamp_work(struct ptp_clock_info *ptp); 149 ptp_clock_info) 158 static inline long mv88e6xxx_hwtstamp_work(struct ptp_clock_info *ptp) in mv88e6xxx_hwtstamp_work()
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/ |
A D | en_clock.c | 133 ptp_clock_info); in mlx4_en_phc_adjfine() 152 static int mlx4_en_phc_adjtime(struct ptp_clock_info *ptp, s64 delta) in mlx4_en_phc_adjtime() 155 ptp_clock_info); in mlx4_en_phc_adjtime() 173 static int mlx4_en_phc_gettime(struct ptp_clock_info *ptp, in mlx4_en_phc_gettime() 177 ptp_clock_info); in mlx4_en_phc_gettime() 198 static int mlx4_en_phc_settime(struct ptp_clock_info *ptp, in mlx4_en_phc_settime() 202 ptp_clock_info); in mlx4_en_phc_settime() 230 static const struct ptp_clock_info mlx4_en_ptp_clock_info = { 289 mdev->ptp_clock_info = mlx4_en_ptp_clock_info; in mlx4_en_init_timestamp() 290 snprintf(mdev->ptp_clock_info.name, 16, "mlx4 ptp"); in mlx4_en_init_timestamp() [all …]
|
/linux-6.3-rc2/drivers/ptp/ |
A D | ptp_kvm_common.c | 22 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_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() 111 static const struct ptp_clock_info ptp_kvm_caps = {
|
A D | ptp_vmw.c | 45 static int ptp_vmw_adjtime(struct ptp_clock_info *info, s64 delta) in ptp_vmw_adjtime() 50 static int ptp_vmw_adjfine(struct ptp_clock_info *info, long delta) in ptp_vmw_adjfine() 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 = {
|
A D | ptp_vclock.c | 43 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 = {
|
A D | ptp_dte.c | 44 struct ptp_clock_info caps; 137 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() 216 static const struct ptp_clock_info ptp_dte_caps = {
|
A D | ptp_pch.c | 114 struct ptp_clock_info caps; 339 static int ptp_pch_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) in ptp_pch_adjfine() 352 static int ptp_pch_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_pch_adjtime() 368 static int ptp_pch_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in ptp_pch_gettime() 383 static int ptp_pch_settime(struct ptp_clock_info *ptp, in ptp_pch_settime() 400 static int ptp_pch_enable(struct ptp_clock_info *ptp, in ptp_pch_enable() 425 static const struct ptp_clock_info ptp_pch_caps = {
|
/linux-6.3-rc2/drivers/net/ethernet/cadence/ |
A D | macb_ptp.c | 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() 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() 183 static int gem_ptp_enable(struct ptp_clock_info *ptp, in gem_ptp_enable() 189 static const struct ptp_clock_info gem_ptp_caps_template = { 228 gem_tsu_set_time(&bp->ptp_clock_info, &ts); in gem_ptp_init_tsu() 259 gem_tsu_get_time(&bp->ptp_clock_info, &tsu, NULL); in gem_hw_timestamp() 329 bp->ptp_clock_info = gem_ptp_caps_template; in gem_ptp_init() [all …]
|
/linux-6.3-rc2/include/linux/fsl/ |
A D | ptp_qoriq.h | 146 struct ptp_clock_info caps; 188 const struct ptp_clock_info *caps); 190 int ptp_qoriq_adjfine(struct ptp_clock_info *ptp, long scaled_ppm); 191 int ptp_qoriq_adjtime(struct ptp_clock_info *ptp, s64 delta); 192 int ptp_qoriq_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts); 193 int ptp_qoriq_settime(struct ptp_clock_info *ptp, 195 int ptp_qoriq_enable(struct ptp_clock_info *ptp,
|
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb4/ |
A D | cxgb4_ptp.c | 209 struct adapter, ptp_clock_info); in cxgb4_ptp_adjfine() 272 static int cxgb4_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in cxgb4_ptp_adjtime() 276 ptp_clock_info); in cxgb4_ptp_adjtime() 319 ptp_clock_info); in cxgb4_ptp_gettime() 339 static int cxgb4_ptp_settime(struct ptp_clock_info *ptp, in cxgb4_ptp_settime() 343 struct adapter, ptp_clock_info); in cxgb4_ptp_settime() 395 static int cxgb4_ptp_enable(struct ptp_clock_info __always_unused *ptp, in cxgb4_ptp_enable() 402 static const struct ptp_clock_info cxgb4_ptp_clock_info = { 431 adapter->ptp_clock_info = cxgb4_ptp_clock_info; in cxgb4_ptp_init() 434 adapter->ptp_clock = ptp_clock_register(&adapter->ptp_clock_info, in cxgb4_ptp_init() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/renesas/ |
A D | rcar_gen4_ptp.c | 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() 122 static struct ptp_clock_info rcar_gen4_ptp_info = {
|
A D | ravb_ptp.c | 91 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() 285 static const struct ptp_clock_info ravb_ptp_info = {
|
/linux-6.3-rc2/drivers/net/ethernet/xscale/ |
A D | ptp_ixp46x.c | 28 struct ptp_clock_info caps; 123 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() 215 static const struct ptp_clock_info ptp_ixp_caps = {
|
/linux-6.3-rc2/drivers/net/ethernet/microchip/ |
A D | lan743x_ptp.c | 1534 ptp->ptp_clock_info.owner = THIS_MODULE; in lan743x_ptp_open() 1535 snprintf(ptp->ptp_clock_info.name, 16, "%pm", in lan743x_ptp_open() 1538 ptp->ptp_clock_info.n_alarm = 0; in lan743x_ptp_open() 1539 ptp->ptp_clock_info.n_ext_ts = LAN743X_PTP_N_EXTTS; in lan743x_ptp_open() 1541 ptp->ptp_clock_info.n_pins = n_pins; in lan743x_ptp_open() 1542 ptp->ptp_clock_info.pps = LAN743X_PTP_N_PPS; in lan743x_ptp_open() 1543 ptp->ptp_clock_info.pin_config = ptp->pin_config; in lan743x_ptp_open() 1544 ptp->ptp_clock_info.adjfine = lan743x_ptpci_adjfine; in lan743x_ptp_open() 1545 ptp->ptp_clock_info.adjtime = lan743x_ptpci_adjtime; in lan743x_ptp_open() 1547 ptp->ptp_clock_info.getcrosststamp = NULL; in lan743x_ptp_open() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/marvell/mvpp2/ |
A D | mvpp2_tai.c | 57 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.3-rc2/drivers/net/ethernet/stmicro/stmmac/ |
A D | stmmac_ptp.c | 24 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() 246 static int stmmac_getcrosststamp(struct ptp_clock_info *ptp, in stmmac_getcrosststamp() 257 static struct ptp_clock_info stmmac_ptp_clock_ops = {
|
/linux-6.3-rc2/drivers/net/ethernet/cavium/common/ |
A D | cavium_ptp.c | 93 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.3-rc2/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_ptp.c | 40 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()
|