Searched refs:phc (Results 1 – 12 of 12) sorted by relevance
/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 | 853 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()
|
D | ionic_lif.h | 221 struct ionic_phc *phc; member
|
D | ionic_txrx.c | 1316 if (lif->hwstamp_txq && lif->phc->ts_config_tx_mode) in ionic_start_xmit()
|
D | ionic_lif.c | 1460 if (lif->phc) in ionic_set_nic_features()
|
/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_ptp.c | 42 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 …]
|
D | lan966x_ethtool.c | 553 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()
|
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 | 257 struct lan966x_phc phc[LAN966X_PHC_COUNT]; member
|
/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_ptp.c | 81 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 …]
|
D | sparx5_ethtool.c | 1191 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()
|
D | sparx5_main.h | 286 struct sparx5_phc phc[SPARX5_PHC_COUNT]; member
|