Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/pensando/ionic/
H A 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 in ionic_lif_hwstamp_set_ts_config()
295 struct ionic_phc *phc = container_of(cc, struct ionic_phc, cc); ionic_cc_read() local
301 ionic_setphc_cmd(struct ionic_phc * phc,struct ionic_admin_ctx * ctx) ionic_setphc_cmd() argument
319 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); ionic_phc_adjfine() local
356 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); ionic_phc_adjtime() local
382 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); ionic_phc_settime64() local
412 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); ionic_phc_gettimex64() local
436 struct ionic_phc *phc = container_of(info, struct ionic_phc, ptp_info); ionic_phc_aux_work() local
523 struct ionic_phc *phc; ionic_lif_alloc_phc() local
[all...]
H A Dionic_ethtool.c1024 if (!lif->phc || !lif->phc->ptp) in ionic_get_ts_info()
1027 info->phc_index = ptp_clock_index(lif->phc->ptp); in ionic_get_ts_info()
H A Dionic_lif.h242 struct ionic_phc *phc; member
H A Dionic_lif.c1499 if (lif->phc) in ionic_set_nic_features()
/linux/drivers/ptp/
H A Dptp_mock.c51 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 in mock_phc_settime64() local
91 struct mock_phc *phc = info_to_phc(info); mock_phc_gettime64() local
112 mock_phc_index(struct mock_phc * phc) mock_phc_index() argument
120 struct mock_phc *phc; mock_phc_create() local
167 mock_phc_destroy(struct mock_phc * phc) mock_phc_destroy() argument
[all...]
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_ptp.c265 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()
565 struct lan966x_phc *phc; in lan966x_ptp_ext_irq_handler() local
579 phc in lan966x_ptp_ext_irq_handler()
621 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); lan966x_ptp_adjfine() local
669 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); lan966x_ptp_settime64() local
707 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); lan966x_ptp_gettime64() local
744 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); lan966x_ptp_adjtime() local
793 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); lan966x_ptp_verify() local
833 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); lan966x_ptp_perout() local
930 struct lan966x_phc *phc = container_of(ptp, struct lan966x_phc, info); lan966x_ptp_extts() local
1004 struct lan966x_phc *phc = &lan966x->phc[index]; lan966x_ptp_phc_init() local
1104 struct lan966x_phc *phc; lan966x_ptp_rxtstamp() local
[all...]
H A Dlan966x_ethtool.c545 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()
H A Dlan966x_taprio.c381 lan966x_ptp_gettime64(&lan966x->phc[LAN966X_PHC_PORT].info, &ts); in lan966x_taprio_new_base_time()
H A Dlan966x_main.h321 struct lan966x_phc phc[LAN966X_PHC_COUNT]; member
322 spinlock_t ptp_clock_lock; /* lock for phc */
/linux/drivers/net/ethernet/amazon/ena/
H A Dena_debugfs.c22 adapter->ena_dev->phc.stats.phc_cnt); in phc_stats_show()
25 adapter->ena_dev->phc.stats.phc_exp); in phc_stats_show()
28 adapter->ena_dev->phc.stats.phc_skp); in phc_stats_show()
31 adapter->ena_dev->phc.stats.phc_err_dv); in phc_stats_show()
34 adapter->ena_dev->phc.stats.phc_err_ts); in phc_stats_show()
H A Dena_com.c1657 struct ena_com_phc_info *phc = &ena_dev->phc; in ena_com_phc_init() local
1659 memset(phc, 0x0, sizeof(*phc)); in ena_com_phc_init()
1662 phc->virt_addr = dma_alloc_coherent(ena_dev->dmadev, in ena_com_phc_init()
1663 sizeof(*phc->virt_addr), in ena_com_phc_init()
1664 &phc->phys_addr, in ena_com_phc_init()
1666 if (unlikely(!phc->virt_addr)) in ena_com_phc_init()
1669 spin_lock_init(&phc->lock); in ena_com_phc_init()
1671 phc in ena_com_phc_init()
1679 struct ena_com_phc_info *phc = &ena_dev->phc; ena_com_phc_config() local
1765 struct ena_com_phc_info *phc = &ena_dev->phc; ena_com_phc_destroy() local
1787 struct ena_com_phc_info *phc = &ena_dev->phc; ena_com_phc_get_timestamp() local
[all...]
H A Dena_com.h369 struct ena_com_phc_info phc; member
/linux/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) in mock_phc_destroy() argument
31 static inline int mock_phc_index(struct mock_phc *phc) in mock_phc_index() argument
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_ptp.c411 bool phc = iavf_ptp_cap_supported(adapter, VIRTCHNL_1588_PTP_CAP_READ_PHC); in iavf_ptp_process_caps() local
417 if (adapter->ptp.clock && !phc) in iavf_ptp_process_caps()
419 else if (!adapter->ptp.clock && phc) in iavf_ptp_process_caps()
/linux/tools/testing/selftests/ptp/
H A DMakefile5 TEST_PROGS = phc.sh
/linux/drivers/net/netdevsim/
H A Dnetdev.c1005 struct mock_phc *phc; in nsim_init_netdevsim() local
1008 phc = mock_phc_create(&ns->nsim_bus_dev->dev); in nsim_init_netdevsim()
1009 if (IS_ERR(phc)) in nsim_init_netdevsim()
1010 return PTR_ERR(phc); in nsim_init_netdevsim()
1012 ns->phc = phc; in nsim_init_netdevsim()
1058 mock_phc_destroy(ns->phc); in nsim_init_netdevsim()
1076 mock_phc_destroy(ns->phc); in nsim_exit_netdevsim()
H A Dnetdevsim.h106 struct mock_phc *phc; member
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_ethtool.c1190 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()
H A Dsparx5_qos.c35 sparx5_ptp_gettime64(&sparx5->phc[SPARX5_PHC_PORT].info, &ts); in sparx5_new_base_time()