Searched refs:phc (Results 1 - 19 of 19) sorted by relevance

/linux-master/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) argument
31 static inline int mock_phc_index(struct mock_phc *phc) argument
/linux-master/drivers/ptp/
H A Dptp_mock.c51 struct mock_phc *phc = info_to_phc(info); local
57 spin_lock(&phc->lock);
58 timecounter_read(&phc->tc);
59 phc->cc.mult = MOCK_PHC_CC_MULT + adj;
60 spin_unlock(&phc->lock);
67 struct mock_phc *phc = info_to_phc(info); local
69 spin_lock(&phc->lock);
70 timecounter_adjtime(&phc->tc, delta);
71 spin_unlock(&phc->lock);
79 struct mock_phc *phc local
91 struct mock_phc *phc = info_to_phc(info); local
112 mock_phc_index(struct mock_phc *phc) argument
120 struct mock_phc *phc; local
167 mock_phc_destroy(struct mock_phc *phc) argument
[all...]
/linux-master/drivers/net/ethernet/pensando/ionic/
H A Dionic_phc.c79 if (!lif->phc || !lif->phc->ptp)
82 mutex_lock(&lif->phc->config_lock);
94 memcpy(config, &lif->phc->ts_config, sizeof(*config));
95 memset(&lif->phc->ts_config, 0, sizeof(lif->phc->ts_config));
96 lif->phc->ts_config_tx_mode = 0;
97 lif->phc->ts_config_rx_filt = 0;
137 if (tx_mode != lif->phc->ts_config_tx_mode) {
143 if (rx_filt != lif->phc
295 struct ionic_phc *phc = container_of(cc, struct ionic_phc, cc); local
301 ionic_setphc_cmd(struct ionic_phc *phc, struct ionic_admin_ctx *ctx) argument
319 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); local
356 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); local
382 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); local
412 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); local
436 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); local
523 struct ionic_phc *phc; local
[all...]
H A Dionic_ethtool.c977 if (!lif->phc || !lif->phc->ptp)
980 info->phc_index = ptp_clock_index(lif->phc->ptp);
H A Dionic_lif.h242 struct ionic_phc *phc; member in struct:ionic_lif
H A Dionic_txrx.c1793 if (lif->hwstamp_txq && lif->phc->ts_config_tx_mode)
H A Dionic_lif.c1451 if (lif->phc)
/linux-master/tools/testing/selftests/ptp/
H A DMakefile5 TEST_PROGS = phc.sh
/linux-master/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_ptp.c82 struct sparx5_phc *phc; local
131 phc = &sparx5->phc[SPARX5_PHC_PORT];
132 phc->hwtstamp_config = *cfg;
142 struct sparx5_phc *phc; local
144 phc = &sparx5->phc[SPARX5_PHC_PORT];
145 *cfg = phc->hwtstamp_config;
393 struct sparx5_phc *phc = container_of(ptp, struct sparx5_phc, info); local
394 struct sparx5 *sparx5 = phc
441 struct sparx5_phc *phc = container_of(ptp, struct sparx5_phc, info); local
479 struct sparx5_phc *phc = container_of(ptp, struct sparx5_phc, info); local
516 struct sparx5_phc *phc = container_of(ptp, struct sparx5_phc, info); local
576 struct sparx5_phc *phc = &sparx5->phc[index]; local
665 struct sparx5_phc *phc; local
[all...]
H A Dsparx5_ethtool.c1190 struct sparx5_phc *phc; local
1195 phc = &sparx5->phc[SPARX5_PHC_PORT];
1197 info->phc_index = phc->clock ? ptp_clock_index(phc->clock) : -1;
H A Dsparx5_qos.c35 sparx5_ptp_gettime64(&sparx5->phc[SPARX5_PHC_PORT].info, &ts);
H A Dsparx5_main.h288 struct sparx5_phc phc[SPARX5_PHC_COUNT]; member in struct:sparx5
289 spinlock_t ptp_clock_lock; /* lock for phc */
/linux-master/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_ptp.c265 struct lan966x_phc *phc; local
308 phc = &lan966x->phc[LAN966X_PHC_PORT];
309 phc->hwtstamp_config = *cfg;
319 struct lan966x_phc *phc; local
321 phc = &lan966x->phc[LAN966X_PHC_PORT];
322 *cfg = phc->hwtstamp_config;
542 struct lan966x_phc *phc; local
556 phc
598 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); local
646 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); local
684 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); local
721 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); local
770 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); local
810 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); local
911 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); local
987 struct lan966x_phc *phc = &lan966x->phc[index]; local
1087 struct lan966x_phc *phc; local
[all...]
H A Dlan966x_ethtool.c553 struct lan966x_phc *phc; local
558 phc = &lan966x->phc[LAN966X_PHC_PORT];
560 info->phc_index = phc->clock ? ptp_clock_index(phc->clock) : -1;
H A Dlan966x_taprio.c381 lan966x_ptp_gettime64(&lan966x->phc[LAN966X_PHC_PORT].info, &ts);
H A Dlan966x_main.h368 struct lan966x_phc phc[LAN966X_PHC_COUNT]; member in struct:lan966x
369 spinlock_t ptp_clock_lock; /* lock for phc */
/linux-master/drivers/net/netdevsim/
H A Dnetdev.c354 struct mock_phc *phc; local
357 phc = mock_phc_create(&ns->nsim_bus_dev->dev);
358 if (IS_ERR(phc))
359 return PTR_ERR(phc);
361 ns->phc = phc;
390 mock_phc_destroy(ns->phc);
408 mock_phc_destroy(ns->phc);
H A Dethtool.c148 info->phc_index = mock_phc_index(ns->phc);
H A Dnetdevsim.h97 struct mock_phc *phc; member in struct:netdevsim

Completed in 184 milliseconds