Home
last modified time | relevance | path

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

/linux-6.15/drivers/net/ethernet/pensando/ionic/
H A Dionic_phc.c79 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_set_ts_config()
191 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_set()
215 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_replay()
229 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_recreate_queues()
253 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_get()
396 timecounter_init(&phc->tc, &phc->cc, ns); in ionic_phc_settime64()
512 if (!lif->phc || !lif->phc->ptp) in ionic_lif_unregister_phc()
557 phc->cc.mask, phc->cc.mult, phc->cc.shift); in ionic_lif_alloc_phc()
613 phc->cc.mask, phc->cc.mult, phc->cc.shift); in ionic_lif_alloc_phc()
616 phc->init_cc_mult = phc->cc.mult; in ionic_lif_alloc_phc()
[all …]
H A Dionic_ethtool.c1026 if (!lif->phc || !lif->phc->ptp) in ionic_get_ts_info()
1029 info->phc_index = ptp_clock_index(lif->phc->ptp); in ionic_get_ts_info()
H A Dionic_lif.h242 struct ionic_phc *phc; member
H A Dionic_txrx.c1817 if (lif->hwstamp_txq && lif->phc->ts_config_tx_mode) in ionic_start_xmit()
H A Dionic_lif.c1499 if (lif->phc) in ionic_set_nic_features()
/linux-6.15/drivers/ptp/
H A Dptp_mock.c57 spin_lock(&phc->lock); in mock_phc_adjfine()
69 spin_lock(&phc->lock); in mock_phc_adjtime()
83 timecounter_init(&phc->tc, &phc->cc, ns); in mock_phc_settime64()
120 struct mock_phc *phc; in mock_phc_create() local
123 phc = kzalloc(sizeof(*phc), GFP_KERNEL); in mock_phc_create()
124 if (!phc) { in mock_phc_create()
148 timecounter_init(&phc->tc, &phc->cc, 0); in mock_phc_create()
150 phc->clock = ptp_clock_register(&phc->info, dev); in mock_phc_create()
158 return phc; in mock_phc_create()
161 kfree(phc); in mock_phc_create()
[all …]
/linux-6.15/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_ptp.c265 struct lan966x_phc *phc; in lan966x_ptp_hwtstamp_set() local
308 phc = &lan966x->phc[LAN966X_PHC_PORT]; in lan966x_ptp_hwtstamp_set()
319 struct lan966x_phc *phc; in lan966x_ptp_hwtstamp_get() local
321 phc = &lan966x->phc[LAN966X_PHC_PORT]; in lan966x_ptp_hwtstamp_get()
556 phc = &lan966x->phc[i]; in lan966x_ptp_ext_irq_handler()
987 struct lan966x_phc *phc = &lan966x->phc[index]; in lan966x_ptp_phc_init() local
992 p = &phc->pins[i]; in lan966x_ptp_phc_init()
1000 phc->info.pin_config = &phc->pins[0]; in lan966x_ptp_phc_init()
1001 phc->clock = ptp_clock_register(&phc->info, lan966x->dev); in lan966x_ptp_phc_init()
1005 phc->index = index; in lan966x_ptp_phc_init()
[all …]
H A Dlan966x_ethtool.c545 struct lan966x_phc *phc; in lan966x_get_ts_info() local
550 phc = &lan966x->phc[LAN966X_PHC_PORT]; in lan966x_get_ts_info()
552 if (phc->clock) { in lan966x_get_ts_info()
553 info->phc_index = ptp_clock_index(phc->clock); in lan966x_get_ts_info()
H A Dlan966x_taprio.c381 lan966x_ptp_gettime64(&lan966x->phc[LAN966X_PHC_PORT].info, &ts); in lan966x_taprio_new_base_time()
H A Dlan966x_main.h316 struct lan966x_phc phc[LAN966X_PHC_COUNT]; member
/linux-6.15/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_ptp.c86 struct sparx5_phc *phc; in sparx5_ptp_hwtstamp_set() local
135 phc = &sparx5->phc[SPARX5_PHC_PORT]; in sparx5_ptp_hwtstamp_set()
146 struct sparx5_phc *phc; in sparx5_ptp_hwtstamp_get() local
148 phc = &sparx5->phc[SPARX5_PHC_PORT]; in sparx5_ptp_hwtstamp_get()
590 struct sparx5_phc *phc = &sparx5->phc[index]; in sparx5_ptp_phc_init() local
593 phc->clock = ptp_clock_register(&phc->info, sparx5->dev); in sparx5_ptp_phc_init()
594 if (IS_ERR(phc->clock)) in sparx5_ptp_phc_init()
597 phc->index = index; in sparx5_ptp_phc_init()
598 phc->sparx5 = sparx5; in sparx5_ptp_phc_init()
679 struct sparx5_phc *phc; in sparx5_ptp_rxtstamp() local
[all …]
H A Dsparx5_ethtool.c1190 struct sparx5_phc *phc; in sparx5_get_ts_info() local
1195 phc = &sparx5->phc[SPARX5_PHC_PORT]; in sparx5_get_ts_info()
1197 if (phc->clock) { in sparx5_get_ts_info()
1198 info->phc_index = ptp_clock_index(phc->clock); in sparx5_get_ts_info()
H A Dsparx5_qos.c35 sparx5_ptp_gettime64(&sparx5->phc[SPARX5_PHC_PORT].info, &ts); in sparx5_new_base_time()
H A Dsparx5_main.h423 struct sparx5_phc phc[SPARX5_PHC_COUNT]; member
/linux-6.15/include/linux/
H A Dptp_mock.h17 void mock_phc_destroy(struct mock_phc *phc);
18 int mock_phc_index(struct mock_phc *phc);
27 static inline void mock_phc_destroy(struct mock_phc *phc) in mock_phc_destroy() argument
31 static inline int mock_phc_index(struct mock_phc *phc) in mock_phc_index() argument
/linux-6.15/drivers/net/ethernet/intel/iavf/
H A Diavf_ptp.c411 bool phc = iavf_ptp_cap_supported(adapter, VIRTCHNL_1588_PTP_CAP_READ_PHC); in iavf_ptp_process_caps() local
417 if (adapter->ptp.clock && !phc) in iavf_ptp_process_caps()
419 else if (!adapter->ptp.clock && phc) in iavf_ptp_process_caps()
/linux-6.15/tools/testing/selftests/ptp/
H A DMakefile5 TEST_PROGS = phc.sh
/linux-6.15/drivers/net/netdevsim/
H A Dnetdev.c931 struct mock_phc *phc; in nsim_init_netdevsim() local
934 phc = mock_phc_create(&ns->nsim_bus_dev->dev); in nsim_init_netdevsim()
935 if (IS_ERR(phc)) in nsim_init_netdevsim()
936 return PTR_ERR(phc); in nsim_init_netdevsim()
938 ns->phc = phc; in nsim_init_netdevsim()
984 mock_phc_destroy(ns->phc); in nsim_init_netdevsim()
1002 mock_phc_destroy(ns->phc); in nsim_exit_netdevsim()
H A Dethtool.c159 info->phc_index = mock_phc_index(ns->phc); in nsim_get_ts_info()
H A Dnetdevsim.h106 struct mock_phc *phc; member
/linux-6.15/Documentation/devicetree/bindings/ptp/
H A Dptp-idt82p33.yaml41 phc@51 {
H A Dptp-idtcm.yaml65 phc@5b {
H A Dfsl,ptp.yaml144 phc@24e00 {
/linux-6.15/Documentation/devicetree/bindings/net/
H A Dfsl,fman.yaml135 '^phc@[a-f0-9]+$':
199 ptp_timer: phc@fe000 {
/linux-6.15/Documentation/netlink/specs/
H A Dethtool.yaml889 name: phc-index
1257 name: phc-vclocks
1258 attr-cnt-name: __ethtool-a-phc-vclocks-cnt
1981 - phc-index
2111 name: phc-vclocks-get
2114 attribute-set: phc-vclocks
2116 do: &phc-vclocks-get-op
2124 dump: *phc-vclocks-get-op