/linux-master/include/linux/ |
H A D | ptp_mock.h | 17 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 D | ptp_mock.c | 51 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 D | ionic_phc.c | 79 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 D | ionic_ethtool.c | 977 if (!lif->phc || !lif->phc->ptp) 980 info->phc_index = ptp_clock_index(lif->phc->ptp);
|
H A D | ionic_lif.h | 242 struct ionic_phc *phc; member in struct:ionic_lif
|
H A D | ionic_txrx.c | 1793 if (lif->hwstamp_txq && lif->phc->ts_config_tx_mode)
|
H A D | ionic_lif.c | 1451 if (lif->phc)
|
/linux-master/tools/testing/selftests/ptp/ |
H A D | Makefile | 5 TEST_PROGS = phc.sh
|
/linux-master/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_ptp.c | 82 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 D | sparx5_ethtool.c | 1190 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 D | sparx5_qos.c | 35 sparx5_ptp_gettime64(&sparx5->phc[SPARX5_PHC_PORT].info, &ts);
|
H A D | sparx5_main.h | 288 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 D | lan966x_ptp.c | 265 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 D | lan966x_ethtool.c | 553 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 D | lan966x_taprio.c | 381 lan966x_ptp_gettime64(&lan966x->phc[LAN966X_PHC_PORT].info, &ts);
|
H A D | lan966x_main.h | 368 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 D | netdev.c | 354 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 D | ethtool.c | 148 info->phc_index = mock_phc_index(ns->phc);
|
H A D | netdevsim.h | 97 struct mock_phc *phc; member in struct:netdevsim
|