Searched refs:ptp_data (Results 1 – 15 of 15) sorted by relevance
| /linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A 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 …]
|
| H A D | mvm.h | 844 struct ptp_data { struct 1219 struct ptp_data ptp_data; member
|
| H A D | fw.c | 1917 if (!mvm->ptp_data.ptp_clock) in iwl_mvm_up()
|
| /linux/drivers/net/dsa/sja1105/ |
| H A D | sja1105_ptp.c | 59 container_of((d), struct sja1105_private, ptp_data) 121 struct sja1105_ptp_data *ptp_data = &priv->ptp_data; in sja1105_get_ts_info() local 124 if (!ptp_data->clock) in sja1105_get_ts_info() 134 info->phc_index = ptp_clock_index(ptp_data->clock); in sja1105_get_ts_info() 318 struct sja1105_ptp_data *ptp_data = &priv->ptp_data; in sja1105_extts_poll() local 330 if (ptpsyncts && ptp_data->ptpsyncts != ptpsyncts) { in sja1105_extts_poll() 334 ptp_clock_event(ptp_data->clock, &event); in sja1105_extts_poll() 336 ptp_data->ptpsyncts = ptpsyncts; in sja1105_extts_poll() 342 struct sja1105_ptp_data *ptp_data = ptp_caps_to_data(ptp); in sja1105_rxtstamp_work() local 343 struct sja1105_private *priv = ptp_data_to_sja1105(ptp_data); in sja1105_rxtstamp_work() [all …]
|
| H A 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() 840 mutex_unlock(&ptp_data->lock); in sja1105_tas_state_machine()
|
| /linux/drivers/net/dsa/microchip/ |
| H A D | ksz_ptp.c | 20 #define ptp_data_to_ksz_dev(d) container_of((d), struct ksz_device, ptp_data) 190 struct ksz_ptp_data *ptp_data = &dev->ptp_data; in ksz_ptp_enable_perout() local 201 if (ptp_data->tou_mode != KSZ_PTP_TOU_PEROUT && in ksz_ptp_enable_perout() 202 ptp_data->tou_mode != KSZ_PTP_TOU_IDLE) in ksz_ptp_enable_perout() 205 pin = ptp_find_pin(ptp_data->clock, PTP_PF_PEROUT, request->index); in ksz_ptp_enable_perout() 221 ptp_data->tou_mode = KSZ_PTP_TOU_IDLE; in ksz_ptp_enable_perout() 225 ptp_data->perout_target_time_first.tv_sec = request->start.sec; in ksz_ptp_enable_perout() 226 ptp_data->perout_target_time_first.tv_nsec = request->start.nsec; in ksz_ptp_enable_perout() 228 ptp_data->perout_period.tv_sec = request->period.sec; in ksz_ptp_enable_perout() 229 ptp_data->perout_period.tv_nsec = request->period.nsec; in ksz_ptp_enable_perout() [all …]
|
| H A D | ksz_common.h | 246 struct ksz_ptp_data ptp_data; member
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A 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 …]
|
| H A D | tx.c | 317 ((efx_siena_ptp_use_mac_tx_timestamps(efx) && efx->ptp_data) || in efx_siena_hard_start_xmit()
|
| H A D | net_driver.h | 1096 struct efx_ptp_data *ptp_data; member
|
| /linux/drivers/net/ethernet/sfc/ |
| H A 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 …]
|
| H A 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()
|
| H A D | net_driver.h | 1175 struct efx_ptp_data *ptp_data; member
|
| /linux/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | ptp.h | 27 struct ptp_data { struct
|
| H A D | mld.h | 307 struct ptp_data ptp_data; member
|