Home
last modified time | relevance | path

Searched refs:tsf (Results 1 – 25 of 119) sorted by relevance

12345

/linux/drivers/staging/vt6656/
H A Dcard.c276 do_div(tsf, beacon_int); in vnt_get_next_tbtt()
277 tsf += 1; in vnt_get_next_tbtt()
278 tsf *= beacon_int; in vnt_get_next_tbtt()
281 return tsf; in vnt_get_next_tbtt()
312 tsf = vnt_get_next_tbtt(tsf, beacon_interval); in vnt_update_next_tbtt()
314 data[0] = (u8)tsf; in vnt_update_next_tbtt()
315 data[1] = (u8)(tsf >> 8); in vnt_update_next_tbtt()
316 data[2] = (u8)(tsf >> 16); in vnt_update_next_tbtt()
317 data[3] = (u8)(tsf >> 24); in vnt_update_next_tbtt()
318 data[4] = (u8)(tsf >> 32); in vnt_update_next_tbtt()
[all …]
H A Dcard.h35 int vnt_update_next_tbtt(struct vnt_private *priv, u64 tsf,
37 u64 vnt_get_next_tbtt(u64 tsf, u16 beacon_interval);
/linux/drivers/net/wireless/ath/ath9k/
H A Dcommon-beacon.c21 static u32 ath9k_get_next_tbtt(struct ath_hw *ah, u64 tsf, in ath9k_get_next_tbtt() argument
26 tsf += TU_TO_USEC(FUDGE + ah->config.sw_beacon_response_time); in ath9k_get_next_tbtt()
28 div_u64_rem(tsf, divisor, &offset); in ath9k_get_next_tbtt()
30 return (u32) tsf + divisor - offset; in ath9k_get_next_tbtt()
47 u64 tsf; in ath9k_cmn_beacon_config_sta() local
69 tsf = ath9k_hw_gettsf64(ah); in ath9k_cmn_beacon_config_sta()
70 conf->nexttbtt = ath9k_get_next_tbtt(ah, tsf, conf->intval); in ath9k_cmn_beacon_config_sta()
77 bs->bs_nextdtim = ath9k_get_next_tbtt(ah, tsf, dtim_intval); in ath9k_cmn_beacon_config_sta()
H A Dcommon-spectral.c128 u8 *sample_buf, u64 tsf, u16 freq, int chan_type);
134 u64 tsf, u16 freq, int chan_type) in ath_cmn_process_ht20_fft() argument
169 fft_sample_20.tsf = __cpu_to_be64(tsf); in ath_cmn_process_ht20_fft()
238 u64 tsf, u16 freq, int chan_type) in ath_cmn_process_ht20_40_fft() argument
308 fft_sample_40.tsf = __cpu_to_be64(tsf); in ath_cmn_process_ht20_40_fft()
469 struct ath_rx_status *rs, u64 tsf) in ath_cmn_process_fft() argument
624 tsf, freq, chan_type); in ath_cmn_process_fft()
642 tsf, freq, chan_type); in ath_cmn_process_fft()
H A Dhtc_drv_beacon.c268 u64 tsf; in ath9k_htc_choose_bslot() local
275 tsf = be64_to_cpu(swba->tsf); in ath9k_htc_choose_bslot()
276 tsftu = TSF_TO_TU(tsf >> 32, tsf); in ath9k_htc_choose_bslot()
282 slot, tsf, tsftu, intval); in ath9k_htc_choose_bslot()
H A Dcommon-spectral.h181 struct ath_rx_status *rs, u64 tsf);
199 struct ath_rx_status *rs, u64 tsf) in ath_cmn_process_fft() argument
H A Dchannel.c1430 u32 tsf, target_tsf; in ath9k_update_p2p_ps_timer() local
1437 tsf = ath9k_hw_gettsf32(sc->sc_ah); in ath9k_update_p2p_ps_timer()
1446 target_tsf = tsf + ATH_P2P_PS_STOP_TIME; in ath9k_update_p2p_ps_timer()
1450 (target_tsf - tsf) / 1000); in ath9k_update_p2p_ps_timer()
1458 u32 tsf; in ath9k_update_p2p_ps() local
1471 tsf = ath9k_hw_gettsf32(sc->sc_ah); in ath9k_update_p2p_ps()
1562 u32 tsf; in ath9k_p2p_ps_timer() local
1571 tsf = ath9k_hw_gettsf32(sc->sc_ah); in ath9k_p2p_ps_timer()
1573 tsf += ATH_P2P_PS_STOP_TIME; in ath9k_p2p_ps_timer()
1575 tsf -= ATH_P2P_PS_STOP_TIME; in ath9k_p2p_ps_timer()
[all …]
H A Dbeacon.c312 u64 tsf; in ath9k_beacon_choose_slot() local
323 tsf = ath9k_hw_gettsf64(sc->sc_ah); in ath9k_beacon_choose_slot()
324 tsf += TU_TO_USEC(sc->sc_ah->config.sw_beacon_response_time); in ath9k_beacon_choose_slot()
325 tsftu = TSF_TO_TU((tsf * ATH_BCBUF) >>32, tsf * ATH_BCBUF); in ath9k_beacon_choose_slot()
329 slot, tsf, tsftu / ATH_BCBUF); in ath9k_beacon_choose_slot()
H A Drecv.c789 u64 tsf) in ath9k_process_tsf() argument
791 u32 tsf_lower = tsf & 0xffffffff; in ath9k_process_tsf()
793 rxs->mactime = (tsf & ~0xffffffffULL) | rs->rs_tstamp; in ath9k_process_tsf()
812 bool *decrypt_error, u64 tsf) in ath9k_rx_skb_preprocess() argument
867 ath9k_process_tsf(rx_stats, rx_status, tsf); in ath9k_rx_skb_preprocess()
1073 u64 tsf = 0; in ath_rx_tasklet() local
1086 tsf = ath9k_hw_gettsf64(ah); in ath_rx_tasklet()
1117 &decrypt_error, tsf); in ath_rx_tasklet()
/linux/drivers/net/wireless/ath/
H A Dspectral_common.h62 __be64 tsf; member
76 __be64 tsf; member
104 __be64 tsf; member
123 __be32 tsf; member
/linux/drivers/net/wireless/broadcom/b43legacy/
H A Ddebugfs.c69 u64 tsf; in tsf_read_file() local
71 b43legacy_tsf_read(dev, &tsf); in tsf_read_file()
73 (unsigned int)((tsf & 0xFFFFFFFF00000000ULL) >> 32), in tsf_read_file()
74 (unsigned int)(tsf & 0xFFFFFFFFULL)); in tsf_read_file()
82 u64 tsf; in tsf_write_file() local
84 if (sscanf(buf, "%llu", (unsigned long long *)(&tsf)) != 1) in tsf_write_file()
86 b43legacy_tsf_write(dev, tsf); in tsf_write_file()
327 B43legacy_DEBUGFS_FOPS(tsf, tsf_read_file, tsf_write_file, 1);
395 ADD_FILE(tsf, 0600); in b43legacy_debugfs_add_device()
H A Dmain.h87 void b43legacy_tsf_read(struct b43legacy_wldev *dev, u64 *tsf);
88 void b43legacy_tsf_write(struct b43legacy_wldev *dev, u64 tsf);
/linux/drivers/ufs/core/
H A Dufs_trace.h81 #define show_ufs_cmd_trace_tsf(tsf) \ argument
82 __print_symbolic(tsf, UFS_CMD_TRACE_TSF_TYPES)
347 void *tsf, enum ufs_trace_tsf_t tsf_t),
349 TP_ARGS(dev_name, str_t, hdr, tsf, tsf_t),
355 __array(unsigned char, tsf, 16)
363 memcpy(__entry->tsf, tsf, sizeof(__entry->tsf));
372 __print_hex(__entry->tsf, sizeof(__entry->tsf))
/linux/net/mac80211/
H A Dmesh_sync.c55 u64 tsf; in mesh_sync_adjust_tsf() local
76 tsf = drv_get_tsf(local, sdata); in mesh_sync_adjust_tsf()
77 if (tsf != -1ULL) in mesh_sync_adjust_tsf()
78 drv_set_tsf(local, sdata, tsf + tsfdelta); in mesh_sync_adjust_tsf()
H A Ddebugfs_netdev.c660 u64 tsf; in ieee80211_if_fmt_tsf() local
671 unsigned long long tsf; in ieee80211_if_parse_tsf() local
690 ret = kstrtoull(buf, 10, &tsf); in ieee80211_if_parse_tsf()
697 tsf_is_delta * tsf); in ieee80211_if_parse_tsf()
700 tsf = drv_get_tsf(local, sdata) + in ieee80211_if_parse_tsf()
701 tsf_is_delta * tsf; in ieee80211_if_parse_tsf()
702 drv_set_tsf(local, sdata, tsf); in ieee80211_if_parse_tsf()
704 "debugfs set TSF to %#018llx\n", tsf); in ieee80211_if_parse_tsf()
711 IEEE80211_IF_FILE_RW(tsf);
872 DEBUGFS_ADD_MODE(tsf, 0600); in add_ibss_files()
[all …]
H A Dibss.c40 const u16 capability, u64 tsf, in ieee80211_ibss_build_presp() argument
82 mgmt->u.beacon.timestamp = cpu_to_le64(tsf); in ieee80211_ibss_build_presp()
218 const u16 capability, u64 tsf, in __ieee80211_sta_join_ibss() argument
310 capability, tsf, &chanreq.oper, in __ieee80211_sta_join_ibss()
396 u64 tsf; in ieee80211_sta_join_ibss() local
456 tsf = ies->tsf; in ieee80211_sta_join_ibss()
464 tsf, false); in ieee80211_sta_join_ibss()
476 u64 tsf; in ieee80211_ibss_csa_beacon() local
493 tsf = ies->tsf; in ieee80211_ibss_csa_beacon()
502 capability, tsf, &ifibss->chandef, in ieee80211_ibss_csa_beacon()
/linux/drivers/net/wireless/ath/ath10k/
H A Dspectral.h41 size_t bin_len, u64 tsf);
53 size_t bin_len, u64 tsf) in ath10k_spectral_process_fft() argument
/linux/drivers/net/wireless/broadcom/b43/
H A Dmain.h63 void b43_tsf_read(struct b43_wldev *dev, u64 * tsf);
64 void b43_tsf_write(struct b43_wldev *dev, u64 tsf);
/linux/net/wireless/tests/
H A Dscan.c347 u64 tsf = 0x1000000000000000ULL; in test_inform_bss_ssid_only() local
364 CFG80211_BSS_FTYPE_PRESP, bssid, tsf, in test_inform_bss_ssid_only()
383 KUNIT_EXPECT_EQ(test, ies->tsf, tsf); in test_inform_bss_ssid_only()
455 u64 tsf = 0x1000000000000000ULL; in KUNIT_ARRAY_PARAM_DESC() local
609 CFG80211_BSS_FTYPE_PRESP, bssid, tsf, in KUNIT_ARRAY_PARAM_DESC()
650 KUNIT_EXPECT_EQ(test, ies->tsf, tsf + le64_to_cpu(sta_prof.tsf_offset)); in KUNIT_ARRAY_PARAM_DESC()
/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_usb_core.c149 u64 tsf, time; in mt76x02u_restart_pre_tbtt_timer() local
157 tsf = (u64)dw0 << 32 | dw1; in mt76x02u_restart_pre_tbtt_timer()
158 dev_dbg(dev->mt76.dev, "TSF: %llu us TBTT %u us\n", tsf, tbtt); in mt76x02u_restart_pre_tbtt_timer()
H A Dmt792x_core.c223 } tsf; in mt792x_get_tsf() local
231 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0(0)); in mt792x_get_tsf()
232 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1(0)); in mt792x_get_tsf()
236 return tsf.t64; in mt792x_get_tsf()
249 } tsf = { .t64 = timestamp, }; in mt792x_set_tsf() local
255 mt76_wr(dev, MT_LPON_UTTR0(0), tsf.t32[0]); in mt792x_set_tsf()
256 mt76_wr(dev, MT_LPON_UTTR1(0), tsf.t32[1]); in mt792x_set_tsf()
/linux/drivers/net/wireless/intel/iwlwifi/fw/api/
H A Doffload.h54 __le64 tsf; member
H A Dtx.h827 __le64 tsf; member
840 __le64 tsf; member
854 __le64 tsf; member
/linux/drivers/net/wireless/ath/carl9170/
H A Dfwcmd.h300 __le32 tsf[2]; member
327 struct carl9170_tsf_rsp tsf; member
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dmain.c904 } tsf; in mt7615_get_tsf() local
915 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0); in mt7615_get_tsf()
916 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1); in mt7615_get_tsf()
920 return tsf.t64; in mt7615_get_tsf()
932 } tsf = { .t64 = timestamp, }; in mt7615_set_tsf() local
941 mt76_wr(dev, MT_LPON_UTTR0, tsf.t32[0]); in mt7615_set_tsf()
942 mt76_wr(dev, MT_LPON_UTTR1, tsf.t32[1]); in mt7615_set_tsf()
958 } tsf = { .t64 = timestamp, }; in mt7615_offset_tsf() local
967 mt76_wr(dev, MT_LPON_UTTR0, tsf.t32[0]); in mt7615_offset_tsf()
968 mt76_wr(dev, MT_LPON_UTTR1, tsf.t32[1]); in mt7615_offset_tsf()

12345