| /drivers/net/ethernet/pensando/ionic/ |
| A D | ionic_phc.c | 79 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_set_ts_config() 191 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_set() 215 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_replay() 229 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_recreate_queues() 253 if (!lif->phc || !lif->phc->ptp) in ionic_lif_hwstamp_get() 396 timecounter_init(&phc->tc, &phc->cc, ns); in ionic_phc_settime64() 512 if (!lif->phc || !lif->phc->ptp) in ionic_lif_unregister_phc() 557 phc->cc.mask, phc->cc.mult, phc->cc.shift); in ionic_lif_alloc_phc() 613 phc->cc.mask, phc->cc.mult, phc->cc.shift); in ionic_lif_alloc_phc() 616 phc->init_cc_mult = phc->cc.mult; in ionic_lif_alloc_phc() [all …]
|
| A D | ionic_ethtool.c | 1024 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()
|
| A D | ionic_lif.h | 242 struct ionic_phc *phc; member
|
| A D | ionic_txrx.c | 1817 if (lif->hwstamp_txq && lif->phc->ts_config_tx_mode) in ionic_start_xmit()
|
| A D | ionic_lif.c | 1499 if (lif->phc) in ionic_set_nic_features()
|
| /drivers/ptp/ |
| A D | ptp_mock.c | 57 spin_lock(&phc->lock); in mock_phc_adjfine() 69 spin_lock(&phc->lock); in mock_phc_adjtime() 83 timecounter_init(&phc->tc, &phc->cc, ns); in mock_phc_settime64() 120 struct mock_phc *phc; in mock_phc_create() local 123 phc = kzalloc(sizeof(*phc), GFP_KERNEL); in mock_phc_create() 124 if (!phc) { in mock_phc_create() 148 timecounter_init(&phc->tc, &phc->cc, 0); in mock_phc_create() 150 phc->clock = ptp_clock_register(&phc->info, dev); in mock_phc_create() 158 return phc; in mock_phc_create() 161 kfree(phc); in mock_phc_create() [all …]
|
| /drivers/net/ethernet/microchip/lan966x/ |
| A 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() 319 struct lan966x_phc *phc; in lan966x_ptp_hwtstamp_get() local 321 phc = &lan966x->phc[LAN966X_PHC_PORT]; in lan966x_ptp_hwtstamp_get() 579 phc = &lan966x->phc[i]; in lan966x_ptp_ext_irq_handler() 1004 struct lan966x_phc *phc = &lan966x->phc[index]; in lan966x_ptp_phc_init() local 1009 p = &phc->pins[i]; in lan966x_ptp_phc_init() 1017 phc->info.pin_config = &phc->pins[0]; in lan966x_ptp_phc_init() 1018 phc->clock = ptp_clock_register(&phc->info, lan966x->dev); in lan966x_ptp_phc_init() 1022 phc->index = index; in lan966x_ptp_phc_init() [all …]
|
| A 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()
|
| A D | lan966x_taprio.c | 381 lan966x_ptp_gettime64(&lan966x->phc[LAN966X_PHC_PORT].info, &ts); in lan966x_taprio_new_base_time()
|
| A D | lan966x_main.h | 321 struct lan966x_phc phc[LAN966X_PHC_COUNT]; member
|
| /drivers/net/ethernet/microchip/sparx5/ |
| A D | sparx5_ptp.c | 86 struct sparx5_phc *phc; in sparx5_ptp_hwtstamp_set() local 135 phc = &sparx5->phc[SPARX5_PHC_PORT]; in sparx5_ptp_hwtstamp_set() 146 struct sparx5_phc *phc; in sparx5_ptp_hwtstamp_get() local 148 phc = &sparx5->phc[SPARX5_PHC_PORT]; in sparx5_ptp_hwtstamp_get() 590 struct sparx5_phc *phc = &sparx5->phc[index]; in sparx5_ptp_phc_init() local 593 phc->clock = ptp_clock_register(&phc->info, sparx5->dev); in sparx5_ptp_phc_init() 594 if (IS_ERR(phc->clock)) in sparx5_ptp_phc_init() 597 phc->index = index; in sparx5_ptp_phc_init() 598 phc->sparx5 = sparx5; in sparx5_ptp_phc_init() 679 struct sparx5_phc *phc; in sparx5_ptp_rxtstamp() local [all …]
|
| A 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()
|
| A D | sparx5_qos.c | 35 sparx5_ptp_gettime64(&sparx5->phc[SPARX5_PHC_PORT].info, &ts); in sparx5_new_base_time()
|
| A D | sparx5_main.h | 423 struct sparx5_phc phc[SPARX5_PHC_COUNT]; member
|
| /drivers/net/ethernet/amazon/ena/ |
| A D | ena_debugfs.c | 22 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()
|
| A D | ena_com.c | 1657 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() 1679 struct ena_com_phc_info *phc = &ena_dev->phc; in ena_com_phc_config() local 1708 phc->doorbell_offset = get_feat_resp.u.phc.doorbell_offset; in ena_com_phc_config() 1725 if (phc->expire_timeout_usec > phc->block_timeout_usec) in ena_com_phc_config() 1726 phc->expire_timeout_usec = phc->block_timeout_usec; in ena_com_phc_config() 1732 set_feat_cmd.u.phc.output_length = sizeof(*phc->virt_addr); in ena_com_phc_config() 1765 struct ena_com_phc_info *phc = &ena_dev->phc; in ena_com_phc_destroy() local 1787 struct ena_com_phc_info *phc = &ena_dev->phc; in ena_com_phc_get_timestamp() local 1850 phc->req_id++; in ena_com_phc_get_timestamp() [all …]
|
| A D | ena_admin_defs.h | 1104 struct ena_admin_feature_phc_desc phc; member 1140 struct ena_admin_feature_phc_desc phc; member
|
| A D | ena_com.h | 369 struct ena_com_phc_info phc; member
|
| /drivers/net/ethernet/intel/iavf/ |
| A D | iavf_ptp.c | 411 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()
|
| /drivers/net/netdevsim/ |
| A D | netdev.c | 1005 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()
|
| A D | ethtool.c | 180 info->phc_index = mock_phc_index(ns->phc); in nsim_get_ts_info()
|
| A D | netdevsim.h | 106 struct mock_phc *phc; member
|