/linux-6.1.9/include/linux/ |
D | ptp_clock_kernel.h | 196 struct ptp_clock; 263 extern struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info, 272 extern int ptp_clock_unregister(struct ptp_clock *ptp); 281 extern void ptp_clock_event(struct ptp_clock *ptp, 290 extern int ptp_clock_index(struct ptp_clock *ptp); 308 int ptp_find_pin(struct ptp_clock *ptp, 321 int ptp_find_pin_unlocked(struct ptp_clock *ptp, 332 int ptp_schedule_worker(struct ptp_clock *ptp, unsigned long delay); 339 void ptp_cancel_worker_sync(struct ptp_clock *ptp); 342 static inline struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info, in ptp_clock_register() [all …]
|
/linux-6.1.9/drivers/ptp/ |
D | ptp_private.h | 30 struct ptp_clock { struct 63 struct ptp_clock *pclock; argument 65 struct ptp_clock *clock; 86 static inline bool ptp_vclock_in_use(struct ptp_clock *ptp) in ptp_vclock_in_use() 102 static inline bool ptp_clock_freerun(struct ptp_clock *ptp) in ptp_clock_freerun() 117 int ptp_set_pinfunc(struct ptp_clock *ptp, unsigned int pin, 137 int ptp_populate_pin_groups(struct ptp_clock *ptp); 138 void ptp_cleanup_pin_groups(struct ptp_clock *ptp); 140 struct ptp_vclock *ptp_vclock_register(struct ptp_clock *pclock);
|
D | ptp_clock.c | 78 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_settime() 90 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_gettime() 102 struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); in ptp_clock_adjtime() 170 struct ptp_clock *ptp = container_of(dev, struct ptp_clock, dev); in ptp_clock_release() 191 struct ptp_clock *ptp = container_of(work, struct ptp_clock, in ptp_aux_kworker() 204 struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info, in ptp_clock_register() 207 struct ptp_clock *ptp; in ptp_clock_register() 216 ptp = kzalloc(sizeof(struct ptp_clock), GFP_KERNEL); in ptp_clock_register() 345 struct ptp_clock *ptp = dev_get_drvdata(dev); in unregister_vclock() 351 int ptp_clock_unregister(struct ptp_clock *ptp) in ptp_clock_unregister() [all …]
|
D | ptp_sysfs.c | 16 struct ptp_clock *ptp = dev_get_drvdata(dev); in clock_name_show() 25 struct ptp_clock *ptp = dev_get_drvdata(dev); \ 41 struct ptp_clock *ptp = dev_get_drvdata(dev); in extts_enable_store() 66 struct ptp_clock *ptp = dev_get_drvdata(dev); in extts_fifo_show() 101 struct ptp_clock *ptp = dev_get_drvdata(dev); in period_store() 129 struct ptp_clock *ptp = dev_get_drvdata(dev); in pps_enable_store() 154 struct ptp_clock *ptp = dev_get_drvdata(dev); in unregister_vclock() 176 struct ptp_clock *ptp = dev_get_drvdata(dev); in n_vclocks_show() 193 struct ptp_clock *ptp = dev_get_drvdata(dev); in n_vclocks_store() 255 struct ptp_clock *ptp = dev_get_drvdata(dev); in max_vclocks_show() [all …]
|
D | ptp_kvm_common.c | 21 struct ptp_clock *ptp_clock; member 132 ptp_clock_unregister(kvm_ptp_clock.ptp_clock); in ptp_kvm_exit() 148 kvm_ptp_clock.ptp_clock = ptp_clock_register(&kvm_ptp_clock.caps, NULL); in ptp_kvm_init() 150 return PTR_ERR_OR_ZERO(kvm_ptp_clock.ptp_clock); in ptp_kvm_init()
|
D | ptp_pch.c | 113 struct ptp_clock *ptp_clock; member 310 ptp_clock_event(pch_dev->ptp_clock, &event); in isr() 321 ptp_clock_event(pch_dev->ptp_clock, &event); in isr() 455 ptp_clock_unregister(chip->ptp_clock); in pch_remove() 485 chip->ptp_clock = ptp_clock_register(&chip->caps, &pdev->dev); in pch_probe() 486 if (IS_ERR(chip->ptp_clock)) in pch_probe() 487 return PTR_ERR(chip->ptp_clock); in pch_probe() 524 ptp_clock_unregister(chip->ptp_clock); in pch_probe()
|
D | ptp_vclock.c | 92 struct ptp_clock *pptp = vclock->pclock; in ptp_vclock_gettimex() 129 struct ptp_clock *pptp = vclock->pclock; in ptp_vclock_getcrosststamp() 170 struct ptp_clock *ptp = vclock->pclock; in ptp_vclock_read() 185 struct ptp_vclock *ptp_vclock_register(struct ptp_clock *pclock) in ptp_vclock_register() 236 struct ptp_clock *ptp; in ptp_get_vclocks_index()
|
D | ptp_idt82p33.h | 60 struct ptp_clock *ptp_clock; member
|
/linux-6.1.9/drivers/net/ethernet/xscale/ |
D | ptp_ixp46x.c | 27 struct ptp_clock *ptp_clock; member 91 ptp_clock_event(ixp_clock->ptp_clock, &event); in isr() 105 ptp_clock_event(ixp_clock->ptp_clock, &event); in isr() 247 *phc_index = ptp_clock_index(ixp_clock.ptp_clock); in ixp46x_ptp_find() 249 if (!ixp_clock.ptp_clock) in ixp46x_ptp_find() 259 struct ptp_clock *ptp_clock = d; in ptp_ixp_unregister_action() local 261 ptp_clock_unregister(ptp_clock); in ptp_ixp_unregister_action() 262 ixp_clock.ptp_clock = NULL; in ptp_ixp_unregister_action() 279 ixp_clock.ptp_clock = ptp_clock_register(&ixp_clock.caps, NULL); in ptp_ixp_probe() 281 if (IS_ERR(ixp_clock.ptp_clock)) in ptp_ixp_probe() [all …]
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/ |
D | en_clock.c | 85 if (mdev->ptp_clock) { in mlx4_en_remove_timestamp() 86 ptp_clock_unregister(mdev->ptp_clock); in mlx4_en_remove_timestamp() 87 mdev->ptp_clock = NULL; in mlx4_en_remove_timestamp() 272 if (mdev->ptp_clock) in mlx4_en_init_timestamp() 294 mdev->ptp_clock = ptp_clock_register(&mdev->ptp_clock_info, in mlx4_en_init_timestamp() 296 if (IS_ERR(mdev->ptp_clock)) { in mlx4_en_init_timestamp() 297 mdev->ptp_clock = NULL; in mlx4_en_init_timestamp() 299 } else if (mdev->ptp_clock) { in mlx4_en_init_timestamp()
|
/linux-6.1.9/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_tai.c | 58 struct ptp_clock *ptp_clock; member 342 return ptp_clock_index(tai->ptp_clock); in mvpp22_tai_ptp_clock_index() 377 ptp_schedule_worker(tai->ptp_clock, delay); in mvpp22_tai_start() 382 ptp_cancel_worker_sync(tai->ptp_clock); in mvpp22_tai_stop() 389 if (!IS_ERR(tai->ptp_clock)) in mvpp22_tai_remove() 390 ptp_clock_unregister(tai->ptp_clock); in mvpp22_tai_remove() 450 tai->ptp_clock = ptp_clock_register(&tai->caps, dev); in mvpp22_tai_probe() 451 if (IS_ERR(tai->ptp_clock)) in mvpp22_tai_probe() 452 return PTR_ERR(tai->ptp_clock); in mvpp22_tai_probe()
|
/linux-6.1.9/drivers/net/ethernet/intel/e1000e/ |
D | ptp.c | 280 adapter->ptp_clock = NULL; in e1000e_ptp_init() 327 adapter->ptp_clock = ptp_clock_register(&adapter->ptp_clock_info, in e1000e_ptp_init() 329 if (IS_ERR(adapter->ptp_clock)) { in e1000e_ptp_init() 330 adapter->ptp_clock = NULL; in e1000e_ptp_init() 332 } else if (adapter->ptp_clock) { in e1000e_ptp_init() 350 if (adapter->ptp_clock) { in e1000e_ptp_remove() 351 ptp_clock_unregister(adapter->ptp_clock); in e1000e_ptp_remove() 352 adapter->ptp_clock = NULL; in e1000e_ptp_remove()
|
/linux-6.1.9/drivers/net/ethernet/engleder/ |
D | tsnep_ptp.c | 226 adapter->ptp_clock = ptp_clock_register(&adapter->ptp_clock_info, in tsnep_ptp_init() 228 if (IS_ERR(adapter->ptp_clock)) { in tsnep_ptp_init() 231 retval = PTR_ERR(adapter->ptp_clock); in tsnep_ptp_init() 232 adapter->ptp_clock = NULL; in tsnep_ptp_init() 233 } else if (adapter->ptp_clock) { in tsnep_ptp_init() 242 if (adapter->ptp_clock) { in tsnep_ptp_cleanup() 243 ptp_clock_unregister(adapter->ptp_clock); in tsnep_ptp_cleanup()
|
/linux-6.1.9/drivers/net/ethernet/cavium/common/ |
D | cavium_ptp.h | 24 struct ptp_clock *ptp_clock; member 46 return ptp_clock_index(clock->ptp_clock); in cavium_ptp_clock_index()
|
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_ptp.c | 424 if (!IS_ERR_OR_NULL(adapter->ptp_clock)) in cxgb4_ptp_init() 431 adapter->ptp_clock = ptp_clock_register(&adapter->ptp_clock_info, in cxgb4_ptp_init() 433 if (IS_ERR_OR_NULL(adapter->ptp_clock)) { in cxgb4_ptp_init() 434 adapter->ptp_clock = NULL; in cxgb4_ptp_init() 443 ptp_clock_unregister(adapter->ptp_clock); in cxgb4_ptp_init() 444 adapter->ptp_clock = NULL; in cxgb4_ptp_init() 461 if (adapter->ptp_clock) { in cxgb4_ptp_stop() 462 ptp_clock_unregister(adapter->ptp_clock); in cxgb4_ptp_stop() 463 adapter->ptp_clock = NULL; in cxgb4_ptp_stop()
|
/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ptp.c | 314 priv->ptp_clock = ptp_clock_register(&priv->ptp_clock_ops, in stmmac_ptp_register() 316 if (IS_ERR(priv->ptp_clock)) { in stmmac_ptp_register() 318 priv->ptp_clock = NULL; in stmmac_ptp_register() 319 } else if (priv->ptp_clock) in stmmac_ptp_register() 331 if (priv->ptp_clock) { in stmmac_ptp_unregister() 332 ptp_clock_unregister(priv->ptp_clock); in stmmac_ptp_unregister() 333 priv->ptp_clock = NULL; in stmmac_ptp_unregister()
|
D | stmmac_hwtstamp.c | 27 u32 ptp_clock, int gmac4, u32 *ssinc) in config_sub_second_increment() argument 42 data = (2000000000ULL / ptp_clock); in config_sub_second_increment() 44 data = (1000000000ULL / ptp_clock); in config_sub_second_increment() 211 ptp_clock_event(priv->ptp_clock, &event); in timestamp_interrupt()
|
/linux-6.1.9/drivers/net/dsa/hirschmann/ |
D | hellcreek_ptp.c | 413 hellcreek->ptp_clock = ptp_clock_register(&hellcreek->ptp_clock_info, in hellcreek_ptp_setup() 415 if (IS_ERR(hellcreek->ptp_clock)) in hellcreek_ptp_setup() 416 return PTR_ERR(hellcreek->ptp_clock); in hellcreek_ptp_setup() 434 if (hellcreek->ptp_clock) in hellcreek_ptp_setup() 435 ptp_clock_unregister(hellcreek->ptp_clock); in hellcreek_ptp_setup() 450 if (hellcreek->ptp_clock) in hellcreek_ptp_free() 451 ptp_clock_unregister(hellcreek->ptp_clock); in hellcreek_ptp_free() 452 hellcreek->ptp_clock = NULL; in hellcreek_ptp_free()
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_ptp.c | 208 ptp_clock_event(ptp->ptp_clock, &event); in otx2_ptp_extts_check() 250 pin = ptp_find_pin(ptp->ptp_clock, PTP_PF_EXTTS, in otx2_ptp_enable() 336 ptp_ptr->ptp_clock = ptp_clock_register(&ptp_ptr->ptp_info, pfvf->dev); in otx2_ptp_init() 337 if (IS_ERR_OR_NULL(ptp_ptr->ptp_clock)) { in otx2_ptp_init() 338 err = ptp_ptr->ptp_clock ? in otx2_ptp_init() 339 PTR_ERR(ptp_ptr->ptp_clock) : -ENODEV; in otx2_ptp_init() 370 ptp_clock_unregister(ptp->ptp_clock); in otx2_ptp_destroy() 381 return ptp_clock_index(pfvf->ptp->ptp_clock); in otx2_ptp_clock_index()
|
/linux-6.1.9/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-ptp.c | 230 struct ptp_clock *clock; in xgbe_ptp_register() 250 pdata->ptp_clock = clock; in xgbe_ptp_register() 277 if (pdata->ptp_clock) in xgbe_ptp_unregister() 278 ptp_clock_unregister(pdata->ptp_clock); in xgbe_ptp_unregister()
|
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ptp.c | 252 ptp_clock_event(bp->ptp_cfg->ptp_clock, &event); in bnxt_ptp_pps_event() 434 pin_id = ptp_find_pin(ptp->ptp_clock, PTP_PF_EXTTS, in bnxt_ptp_enable() 449 pin_id = ptp_find_pin(ptp->ptp_clock, PTP_PF_PEROUT, in bnxt_ptp_enable() 723 ptp_schedule_worker(ptp->ptp_clock, 0); in bnxt_get_tx_ts_p5() 845 if (!ptp->ptp_clock) { in bnxt_ptp_timecounter_init() 896 if (ptp->ptp_clock) { in bnxt_ptp_free() 897 ptp_clock_unregister(ptp->ptp_clock); in bnxt_ptp_free() 898 ptp->ptp_clock = NULL; in bnxt_ptp_free() 916 if (ptp->ptp_clock && bnxt_pps_config_ok(bp)) in bnxt_ptp_init() 938 ptp->ptp_clock = ptp_clock_register(&ptp->ptp_info, &bp->pdev->dev); in bnxt_ptp_init() [all …]
|
/linux-6.1.9/drivers/net/dsa/mv88e6xxx/ |
D | ptp.c | 194 ptp_clock_event(chip->ptp_clock, &ev); in mv88e6352_tai_event_work() 289 pin = ptp_find_pin(chip->ptp_clock, PTP_PF_EXTTS, rq->extts.index); in mv88e6352_ptp_enable_extts() 494 chip->ptp_clock = ptp_clock_register(&chip->ptp_clock_info, chip->dev); in mv88e6xxx_ptp_setup() 495 if (IS_ERR(chip->ptp_clock)) in mv88e6xxx_ptp_setup() 496 return PTR_ERR(chip->ptp_clock); in mv88e6xxx_ptp_setup() 506 if (chip->ptp_clock) { in mv88e6xxx_ptp_free() 511 ptp_clock_unregister(chip->ptp_clock); in mv88e6xxx_ptp_free() 512 chip->ptp_clock = NULL; in mv88e6xxx_ptp_free()
|
/linux-6.1.9/drivers/net/ethernet/mscc/ |
D | ocelot_ptp.c | 217 pin = ptp_find_pin(ocelot->ptp_clock, PTP_PF_PEROUT, in ocelot_ptp_enable() 564 info->phc_index = ocelot->ptp_clock ? in ocelot_get_ts_info() 565 ptp_clock_index(ocelot->ptp_clock) : -1; in ocelot_get_ts_info() 797 struct ptp_clock *ptp_clock; in ocelot_init_timestamp() local 812 ptp_clock = ptp_clock_register(&ocelot->ptp_info, ocelot->dev); in ocelot_init_timestamp() 813 if (IS_ERR(ptp_clock)) in ocelot_init_timestamp() 814 return PTR_ERR(ptp_clock); in ocelot_init_timestamp() 816 if (!ptp_clock) in ocelot_init_timestamp() 819 ocelot->ptp_clock = ptp_clock; in ocelot_init_timestamp() 838 if (ocelot->ptp_clock) in ocelot_deinit_timestamp() [all …]
|
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ptp.c | 684 if (!adapter->ptp_clock) in ixgbe_ptp_check_pps_event() 689 ptp_clock_event(adapter->ptp_clock, &event); in ixgbe_ptp_check_pps_event() 1384 if (!IS_ERR_OR_NULL(adapter->ptp_clock)) in ixgbe_ptp_create_clock() 1439 adapter->ptp_clock = NULL; in ixgbe_ptp_create_clock() 1444 adapter->ptp_clock = ptp_clock_register(&adapter->ptp_caps, in ixgbe_ptp_create_clock() 1446 if (IS_ERR(adapter->ptp_clock)) { in ixgbe_ptp_create_clock() 1447 err = PTR_ERR(adapter->ptp_clock); in ixgbe_ptp_create_clock() 1448 adapter->ptp_clock = NULL; in ixgbe_ptp_create_clock() 1451 } else if (adapter->ptp_clock) in ixgbe_ptp_create_clock() 1531 if (adapter->ptp_clock) { in ixgbe_ptp_stop() [all …]
|
/linux-6.1.9/drivers/net/ethernet/cadence/ |
D | macb_ptp.c | 375 bp->ptp_clock = ptp_clock_register(&bp->ptp_clock_info, &dev->dev); in gem_ptp_init() 376 if (IS_ERR(bp->ptp_clock)) { in gem_ptp_init() 378 PTR_ERR(bp->ptp_clock)); in gem_ptp_init() 379 bp->ptp_clock = NULL; in gem_ptp_init() 381 } else if (bp->ptp_clock == NULL) { in gem_ptp_init() 403 if (bp->ptp_clock) in gem_ptp_remove() 404 ptp_clock_unregister(bp->ptp_clock); in gem_ptp_remove()
|