/linux-6.12.1/drivers/net/ethernet/pensando/ionic/ |
D | ionic_phc.c | 79 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_set_ts_config() 82 mutex_lock(&lif->phc->config_lock); in ionic_lif_hwstamp_set_ts_config() 94 memcpy(config, &lif->phc->ts_config, sizeof(*config)); in ionic_lif_hwstamp_set_ts_config() 95 memset(&lif->phc->ts_config, 0, sizeof(lif->phc->ts_config)); in ionic_lif_hwstamp_set_ts_config() 96 lif->phc->ts_config_tx_mode = 0; in ionic_lif_hwstamp_set_ts_config() 97 lif->phc->ts_config_rx_filt = 0; in ionic_lif_hwstamp_set_ts_config() 137 if (tx_mode != lif->phc->ts_config_tx_mode) { in ionic_lif_hwstamp_set_ts_config() 143 if (rx_filt != lif->phc->ts_config_rx_filt) { in ionic_lif_hwstamp_set_ts_config() 149 if (rx_all != (lif->phc->ts_config.rx_filter == HWTSTAMP_FILTER_ALL)) { in ionic_lif_hwstamp_set_ts_config() 155 memcpy(&lif->phc->ts_config, config, sizeof(*config)); in ionic_lif_hwstamp_set_ts_config() [all …]
|
D | ionic_ethtool.c | 986 if (!lif->phc || !lif->phc->ptp) in ionic_get_ts_info() 989 info->phc_index = ptp_clock_index(lif->phc->ptp); in ionic_get_ts_info()
|
D | ionic_lif.h | 242 struct ionic_phc *phc; member
|
D | ionic_txrx.c | 1817 if (lif->hwstamp_txq && lif->phc->ts_config_tx_mode) in ionic_start_xmit()
|
D | ionic_lif.c | 1499 if (lif->phc) in ionic_set_nic_features()
|
/linux-6.12.1/drivers/ptp/ |
D | ptp_mock.c | 51 struct mock_phc *phc = info_to_phc(info); in mock_phc_adjfine() local 57 spin_lock(&phc->lock); in mock_phc_adjfine() 58 timecounter_read(&phc->tc); in mock_phc_adjfine() 59 phc->cc.mult = MOCK_PHC_CC_MULT + adj; in mock_phc_adjfine() 60 spin_unlock(&phc->lock); in mock_phc_adjfine() 67 struct mock_phc *phc = info_to_phc(info); in mock_phc_adjtime() local 69 spin_lock(&phc->lock); in mock_phc_adjtime() 70 timecounter_adjtime(&phc->tc, delta); in mock_phc_adjtime() 71 spin_unlock(&phc->lock); in mock_phc_adjtime() 79 struct mock_phc *phc = info_to_phc(info); in mock_phc_settime64() local [all …]
|
/linux-6.12.1/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_ptp.c | 82 struct sparx5_phc *phc; in sparx5_ptp_hwtstamp_set() local 131 phc = &sparx5->phc[SPARX5_PHC_PORT]; in sparx5_ptp_hwtstamp_set() 132 phc->hwtstamp_config = *cfg; in sparx5_ptp_hwtstamp_set() 142 struct sparx5_phc *phc; in sparx5_ptp_hwtstamp_get() local 144 phc = &sparx5->phc[SPARX5_PHC_PORT]; in sparx5_ptp_hwtstamp_get() 145 *cfg = phc->hwtstamp_config; in sparx5_ptp_hwtstamp_get() 393 struct sparx5_phc *phc = container_of(ptp, struct sparx5_phc, info); in sparx5_ptp_adjfine() local 394 struct sparx5 *sparx5 = phc->sparx5; in sparx5_ptp_adjfine() 420 spx5_rmw(PTP_PTP_DOM_CFG_PTP_CLKCFG_DIS_SET(1 << BIT(phc->index)), in sparx5_ptp_adjfine() 425 PTP_CLK_PER_CFG(phc->index, 0)); in sparx5_ptp_adjfine() [all …]
|
D | sparx5_ethtool.c | 1190 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()
|
D | sparx5_qos.c | 35 sparx5_ptp_gettime64(&sparx5->phc[SPARX5_PHC_PORT].info, &ts); in sparx5_new_base_time()
|
D | sparx5_main.h | 283 struct sparx5_phc phc[SPARX5_PHC_COUNT]; member
|
/linux-6.12.1/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_ptp.c | 265 struct lan966x_phc *phc; in lan966x_ptp_hwtstamp_set() local 308 phc = &lan966x->phc[LAN966X_PHC_PORT]; in lan966x_ptp_hwtstamp_set() 309 phc->hwtstamp_config = *cfg; 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() 322 *cfg = phc->hwtstamp_config; in lan966x_ptp_hwtstamp_get() 542 struct lan966x_phc *phc; in lan966x_ptp_ext_irq_handler() local 556 phc = &lan966x->phc[i]; in lan966x_ptp_ext_irq_handler() 557 pin = ptp_find_pin_unlocked(phc->clock, PTP_PF_EXTTS, 0); in lan966x_ptp_ext_irq_handler() 590 ptp_clock_event(phc->clock, &ptp_event); in lan966x_ptp_ext_irq_handler() [all …]
|
D | lan966x_ethtool.c | 545 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()
|
D | lan966x_taprio.c | 381 lan966x_ptp_gettime64(&lan966x->phc[LAN966X_PHC_PORT].info, &ts); in lan966x_taprio_new_base_time()
|
D | lan966x_main.h | 316 struct lan966x_phc phc[LAN966X_PHC_COUNT]; member
|
/linux-6.12.1/include/linux/ |
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) in mock_phc_destroy() argument 31 static inline int mock_phc_index(struct mock_phc *phc) in mock_phc_index() argument
|
/linux-6.12.1/drivers/net/netdevsim/ |
D | netdev.c | 663 struct mock_phc *phc; in nsim_init_netdevsim() local 666 phc = mock_phc_create(&ns->nsim_bus_dev->dev); in nsim_init_netdevsim() 667 if (IS_ERR(phc)) in nsim_init_netdevsim() 668 return PTR_ERR(phc); in nsim_init_netdevsim() 670 ns->phc = phc; in nsim_init_netdevsim() 706 mock_phc_destroy(ns->phc); in nsim_init_netdevsim() 724 mock_phc_destroy(ns->phc); in nsim_exit_netdevsim()
|
D | ethtool.c | 155 info->phc_index = mock_phc_index(ns->phc); in nsim_get_ts_info()
|
D | netdevsim.h | 103 struct mock_phc *phc; member
|
/linux-6.12.1/tools/testing/selftests/ptp/ |
D | Makefile | 5 TEST_PROGS = phc.sh
|