Home
last modified time | relevance | path

Searched refs:ptp_data (Results 1 – 16 of 16) sorted by relevance

/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dptp.c28 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 …]
H A Dmvm.h805 struct ptp_data { struct
1157 struct ptp_data ptp_data; member
H A Dfw.c1708 if (!mvm->ptp_data.ptp_clock) in iwl_mvm_up()
/openbmc/linux/drivers/net/dsa/sja1105/
H A Dsja1105_ptp.c59 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 …]
H A Dsja1105_tas.c633 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()
H A Dsja1105.h282 struct sja1105_ptp_data ptp_data; member
H A Dsja1105_main.c2321 mutex_lock(&priv->ptp_data.lock); in sja1105_static_config_reload()
2325 mutex_unlock(&priv->ptp_data.lock); in sja1105_static_config_reload()
2332 mutex_unlock(&priv->ptp_data.lock); in sja1105_static_config_reload()
2338 mutex_unlock(&priv->ptp_data.lock); in sja1105_static_config_reload()
2355 mutex_unlock(&priv->ptp_data.lock); in sja1105_static_config_reload()
3380 mutex_init(&priv->ptp_data.lock); in sja1105_probe()
/openbmc/linux/drivers/net/dsa/microchip/
H A Dksz_ptp.c20 #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 …]
H A Dksz_common.h171 struct ksz_ptp_data ptp_data; member
/openbmc/linux/drivers/net/ethernet/sfc/
H A Dptp.c398 if (!efx->ptp_data) in efx_ptp_describe_stats()
412 if (!efx->ptp_data) in efx_ptp_update_stats()
419 stats[i] = *(unsigned int *)((char *)efx->ptp_data + in efx_ptp_update_stats()
522 return efx->ptp_data ? efx->ptp_data->channel : NULL; in efx_ptp_channel()
527 if (efx->ptp_data) in efx_ptp_update_channel()
528 efx->ptp_data->channel = channel; in efx_ptp_update_channel()
599 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_nic_to_kernel_time()
620 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_get_attributes()
726 efx->ptp_data->ts_corrections.ptp_tx = MCDI_DWORD(outbuf, in efx_ptp_get_timestamp_corrections()
728 efx->ptp_data->ts_corrections.ptp_rx = MCDI_DWORD(outbuf, in efx_ptp_get_timestamp_corrections()
[all …]
H A Defx_channels.c848 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()
H A Dtx.c525 ((efx_ptp_use_mac_tx_timestamps(efx) && efx->ptp_data) || in efx_hard_start_xmit()
H A Dnet_driver.h1139 struct efx_ptp_data *ptp_data; member
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A Dptp.c398 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 …]
H A Dtx.c317 ((efx_siena_ptp_use_mac_tx_timestamps(efx) && efx->ptp_data) || in efx_siena_hard_start_xmit()
H A Dnet_driver.h1105 struct efx_ptp_data *ptp_data; member