Home
last modified time | relevance | path

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

/linux/drivers/net/wireless/intel/iwlwifi/mld/
H A Dptp.c35 mld->ptp_data.last_gp2, gp2); in iwl_mld_ptp_update_new_read()
40 if (gp2 < mld->ptp_data.last_gp2) { in iwl_mld_ptp_update_new_read()
41 if (mld->ptp_data.last_gp2 - gp2 < in iwl_mld_ptp_update_new_read()
45 gp2, mld->ptp_data.last_gp2); in iwl_mld_ptp_update_new_read()
49 mld->ptp_data.wrap_counter++; in iwl_mld_ptp_update_new_read()
52 mld->ptp_data.wrap_counter); in iwl_mld_ptp_update_new_read()
55 mld->ptp_data.last_gp2 = gp2; in iwl_mld_ptp_update_new_read()
56 schedule_delayed_work(&mld->ptp_data.dwork, IWL_PTP_WRAP_TIME); in iwl_mld_ptp_update_new_read()
61 struct ptp_data *data = &mld->ptp_data; in iwl_mld_ptp_get_adj_time()
62 u64 scale_time_gp2_ns = mld->ptp_data.scale_update_gp2 * NSEC_PER_USEC; in iwl_mld_ptp_get_adj_time()
[all …]
H A Dtime_sync.c174 struct ptp_data *data = &mld->ptp_data; in iwl_mld_handle_time_msmt_notif()
209 struct ptp_data *data = &mld->ptp_data; in iwl_mld_handle_time_sync_confirm_notif()
H A Dptp.h27 struct ptp_data { struct
/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 …]
/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.h200 struct ksz_ptp_data ptp_data; member
/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.h1096 struct efx_ptp_data *ptp_data; member
/linux/drivers/net/ethernet/sfc/
H A Dptp.c404 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 …]
H A Dnet_driver.h1175 struct efx_ptp_data *ptp_data; member
/linux/drivers/net/dsa/sja1105/
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()
840 mutex_unlock(&ptp_data->lock); in sja1105_tas_state_machine()
H A Dsja1105_main.c2312 mutex_lock(&priv->ptp_data.lock); in sja1105_static_config_reload()
2316 mutex_unlock(&priv->ptp_data.lock); in sja1105_static_config_reload()
2323 mutex_unlock(&priv->ptp_data.lock); in sja1105_static_config_reload()
2329 mutex_unlock(&priv->ptp_data.lock); in sja1105_static_config_reload()
2346 mutex_unlock(&priv->ptp_data.lock); in sja1105_static_config_reload()
3376 mutex_init(&priv->ptp_data.lock); in sja1105_probe()