Home
last modified time | relevance | path

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

/drivers/net/ethernet/pensando/ionic/
Dionic_phc.c79 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 …]
Dionic_ethtool.c853 if (!lif->phc || !lif->phc->ptp) in ionic_get_ts_info()
856 info->phc_index = ptp_clock_index(lif->phc->ptp); in ionic_get_ts_info()
Dionic_lif.h221 struct ionic_phc *phc; member
Dionic_txrx.c1316 if (lif->hwstamp_txq && lif->phc->ts_config_tx_mode) in ionic_start_xmit()
Dionic_lif.c1460 if (lif->phc) in ionic_set_nic_features()
/drivers/net/ethernet/microchip/lan966x/
Dlan966x_ptp.c42 struct lan966x_phc *phc; in lan966x_ptp_hwtstamp_set() local
93 phc = &lan966x->phc[LAN966X_PHC_PORT]; in lan966x_ptp_hwtstamp_set()
94 memcpy(&phc->hwtstamp_config, &cfg, sizeof(cfg)); in lan966x_ptp_hwtstamp_set()
103 struct lan966x_phc *phc; in lan966x_ptp_hwtstamp_get() local
105 phc = &lan966x->phc[LAN966X_PHC_PORT]; in lan966x_ptp_hwtstamp_get()
106 return copy_to_user(ifr->ifr_data, &phc->hwtstamp_config, in lan966x_ptp_hwtstamp_get()
107 sizeof(phc->hwtstamp_config)) ? -EFAULT : 0; in lan966x_ptp_hwtstamp_get()
327 struct lan966x_phc *phc; in lan966x_ptp_ext_irq_handler() local
341 phc = &lan966x->phc[i]; in lan966x_ptp_ext_irq_handler()
342 pin = ptp_find_pin_unlocked(phc->clock, PTP_PF_EXTTS, 0); in lan966x_ptp_ext_irq_handler()
[all …]
Dlan966x_ethtool.c553 struct lan966x_phc *phc; in lan966x_get_ts_info() local
558 phc = &lan966x->phc[LAN966X_PHC_PORT]; in lan966x_get_ts_info()
560 info->phc_index = phc->clock ? ptp_clock_index(phc->clock) : -1; in lan966x_get_ts_info()
Dlan966x_taprio.c381 lan966x_ptp_gettime64(&lan966x->phc[LAN966X_PHC_PORT].info, &ts); in lan966x_taprio_new_base_time()
Dlan966x_main.h257 struct lan966x_phc phc[LAN966X_PHC_COUNT]; member
/drivers/net/ethernet/microchip/sparx5/
Dsparx5_ptp.c81 struct sparx5_phc *phc; in sparx5_ptp_hwtstamp_set() local
133 phc = &sparx5->phc[SPARX5_PHC_PORT]; in sparx5_ptp_hwtstamp_set()
134 memcpy(&phc->hwtstamp_config, &cfg, sizeof(cfg)); in sparx5_ptp_hwtstamp_set()
143 struct sparx5_phc *phc; in sparx5_ptp_hwtstamp_get() local
145 phc = &sparx5->phc[SPARX5_PHC_PORT]; in sparx5_ptp_hwtstamp_get()
146 return copy_to_user(ifr->ifr_data, &phc->hwtstamp_config, in sparx5_ptp_hwtstamp_get()
147 sizeof(phc->hwtstamp_config)) ? -EFAULT : 0; in sparx5_ptp_hwtstamp_get()
395 struct sparx5_phc *phc = container_of(ptp, struct sparx5_phc, info); in sparx5_ptp_adjfine() local
396 struct sparx5 *sparx5 = phc->sparx5; in sparx5_ptp_adjfine()
422 spx5_rmw(PTP_PTP_DOM_CFG_PTP_CLKCFG_DIS_SET(1 << BIT(phc->index)), in sparx5_ptp_adjfine()
[all …]
Dsparx5_ethtool.c1191 struct sparx5_phc *phc; in sparx5_get_ts_info() local
1196 phc = &sparx5->phc[SPARX5_PHC_PORT]; in sparx5_get_ts_info()
1198 info->phc_index = phc->clock ? ptp_clock_index(phc->clock) : -1; in sparx5_get_ts_info()
Dsparx5_main.h286 struct sparx5_phc phc[SPARX5_PHC_COUNT]; member