Searched refs:ptp_data (Results 1 – 16 of 16) sorted by relevance
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | ptp.c | 28 if (gp2 < mvm->ptp_data.last_gp2 && in iwl_mvm_ptp_update_new_read() 29 mvm->ptp_data.last_gp2 - gp2 < IWL_PTP_WRAP_THRESHOLD_USEC) { in iwl_mvm_ptp_update_new_read() 32 gp2, mvm->ptp_data.last_gp2); in iwl_mvm_ptp_update_new_read() 36 if (gp2 < mvm->ptp_data.last_gp2) { in iwl_mvm_ptp_update_new_read() 37 mvm->ptp_data.wrap_counter++; in iwl_mvm_ptp_update_new_read() 40 mvm->ptp_data.wrap_counter); in iwl_mvm_ptp_update_new_read() 43 mvm->ptp_data.last_gp2 = gp2; in iwl_mvm_ptp_update_new_read() 44 schedule_delayed_work(&mvm->ptp_data.dwork, IWL_PTP_WRAP_TIME); in iwl_mvm_ptp_update_new_read() 49 struct ptp_data *data = &mvm->ptp_data; in iwl_mvm_ptp_get_adj_time() 50 u64 last_gp2_ns = mvm->ptp_data.scale_update_gp2 * NSEC_PER_USEC; in iwl_mvm_ptp_get_adj_time() [all …]
|
D | mvm.h | 924 struct ptp_data { struct 1317 struct ptp_data ptp_data; member
|
D | fw.c | 1584 if (!mvm->ptp_data.ptp_clock) in iwl_mvm_up()
|
/linux-6.12.1/drivers/net/dsa/sja1105/ |
D | sja1105_ptp.c | 59 container_of((d), struct sja1105_private, ptp_data) 117 struct sja1105_ptp_data *ptp_data = &priv->ptp_data; in sja1105_get_ts_info() local 120 if (!ptp_data->clock) in sja1105_get_ts_info() 130 info->phc_index = ptp_clock_index(ptp_data->clock); in sja1105_get_ts_info() 314 struct sja1105_ptp_data *ptp_data = &priv->ptp_data; in sja1105_extts_poll() local 326 if (ptpsyncts && ptp_data->ptpsyncts != ptpsyncts) { in sja1105_extts_poll() 330 ptp_clock_event(ptp_data->clock, &event); in sja1105_extts_poll() 332 ptp_data->ptpsyncts = ptpsyncts; in sja1105_extts_poll() 338 struct sja1105_ptp_data *ptp_data = ptp_caps_to_data(ptp); in sja1105_rxtstamp_work() local 339 struct sja1105_private *priv = ptp_data_to_sja1105(ptp_data); in sja1105_rxtstamp_work() [all …]
|
D | sja1105_tas.c | 633 struct sja1105_ptp_cmd *cmd = &priv->ptp_data.cmd; in sja1105_tas_start() 660 struct sja1105_ptp_cmd *cmd = &priv->ptp_data.cmd; in sja1105_tas_stop() 728 struct sja1105_ptp_data *ptp_data = &priv->ptp_data; in sja1105_tas_state_machine() local 735 mutex_lock(&ptp_data->lock); in sja1105_tas_state_machine() 842 mutex_unlock(&ptp_data->lock); in sja1105_tas_state_machine()
|
D | sja1105.h | 282 struct sja1105_ptp_data ptp_data; member
|
D | sja1105_main.c | 2326 mutex_lock(&priv->ptp_data.lock); in sja1105_static_config_reload() 2330 mutex_unlock(&priv->ptp_data.lock); in sja1105_static_config_reload() 2337 mutex_unlock(&priv->ptp_data.lock); in sja1105_static_config_reload() 2343 mutex_unlock(&priv->ptp_data.lock); in sja1105_static_config_reload() 2360 mutex_unlock(&priv->ptp_data.lock); in sja1105_static_config_reload() 3388 mutex_init(&priv->ptp_data.lock); in sja1105_probe()
|
/linux-6.12.1/drivers/net/dsa/microchip/ |
D | ksz_ptp.c | 20 #define ptp_data_to_ksz_dev(d) container_of((d), struct ksz_device, ptp_data) 181 struct ksz_ptp_data *ptp_data = &dev->ptp_data; in ksz_ptp_enable_perout() local 192 if (ptp_data->tou_mode != KSZ_PTP_TOU_PEROUT && in ksz_ptp_enable_perout() 193 ptp_data->tou_mode != KSZ_PTP_TOU_IDLE) in ksz_ptp_enable_perout() 196 pin = ptp_find_pin(ptp_data->clock, PTP_PF_PEROUT, request->index); in ksz_ptp_enable_perout() 212 ptp_data->tou_mode = KSZ_PTP_TOU_IDLE; in ksz_ptp_enable_perout() 216 ptp_data->perout_target_time_first.tv_sec = request->start.sec; in ksz_ptp_enable_perout() 217 ptp_data->perout_target_time_first.tv_nsec = request->start.nsec; in ksz_ptp_enable_perout() 219 ptp_data->perout_period.tv_sec = request->period.sec; in ksz_ptp_enable_perout() 220 ptp_data->perout_period.tv_nsec = request->period.nsec; in ksz_ptp_enable_perout() [all …]
|
D | ksz_common.h | 189 struct ksz_ptp_data ptp_data; member
|
/linux-6.12.1/drivers/net/ethernet/sfc/ |
D | ptp.c | 404 if (!efx->ptp_data) in efx_ptp_describe_stats() 418 if (!efx->ptp_data) in efx_ptp_update_stats() 425 stats[i] = *(unsigned int *)((char *)efx->ptp_data + in efx_ptp_update_stats() 528 return efx->ptp_data ? efx->ptp_data->channel : NULL; in efx_ptp_channel() 533 if (efx->ptp_data) in efx_ptp_update_channel() 534 efx->ptp_data->channel = channel; in efx_ptp_update_channel() 605 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_nic_to_kernel_time() 626 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_get_attributes() 732 efx->ptp_data->ts_corrections.ptp_tx = MCDI_DWORD(outbuf, in efx_ptp_get_timestamp_corrections() 734 efx->ptp_data->ts_corrections.ptp_rx = MCDI_DWORD(outbuf, in efx_ptp_get_timestamp_corrections() [all …]
|
D | efx_channels.c | 848 struct efx_ptp_data *ptp_data = efx->ptp_data; in efx_realloc_channels() local 894 efx->ptp_data = NULL; in efx_realloc_channels() 905 efx->ptp_data = ptp_data; in efx_realloc_channels()
|
D | tx.c | 525 ((efx_ptp_use_mac_tx_timestamps(efx) && efx->ptp_data) || in efx_hard_start_xmit()
|
D | net_driver.h | 1139 struct efx_ptp_data *ptp_data; member
|
/linux-6.12.1/drivers/net/ethernet/sfc/siena/ |
D | ptp.c | 398 if (!efx->ptp_data) in efx_siena_ptp_describe_stats() 412 if (!efx->ptp_data) in efx_siena_ptp_update_stats() 419 stats[i] = *(unsigned int *)((char *)efx->ptp_data + in efx_siena_ptp_update_stats() 541 return efx->ptp_data ? efx->ptp_data->channel : NULL; in efx_siena_ptp_channel() 612 struct efx_ptp_data *ptp = efx->ptp_data; in efx_siena_ptp_nic_to_kernel_time() 633 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_get_attributes() 745 efx->ptp_data->ts_corrections.ptp_tx = MCDI_DWORD(outbuf, in efx_ptp_get_timestamp_corrections() 747 efx->ptp_data->ts_corrections.ptp_rx = MCDI_DWORD(outbuf, in efx_ptp_get_timestamp_corrections() 749 efx->ptp_data->ts_corrections.pps_out = MCDI_DWORD(outbuf, in efx_ptp_get_timestamp_corrections() 751 efx->ptp_data->ts_corrections.pps_in = MCDI_DWORD(outbuf, in efx_ptp_get_timestamp_corrections() [all …]
|
D | tx.c | 317 ((efx_siena_ptp_use_mac_tx_timestamps(efx) && efx->ptp_data) || in efx_siena_hard_start_xmit()
|
D | net_driver.h | 1096 struct efx_ptp_data *ptp_data; member
|