Home
last modified time | relevance | path

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

1234

/linux/drivers/net/wireless/ath/ath9k/
H A Dcommon-beacon.c22 static u32 ath9k_get_next_tbtt(struct ath_hw *ah, u64 tsf, in ath9k_get_next_tbtt() argument
27 tsf += TU_TO_USEC(FUDGE + ah->config.sw_beacon_response_time); in ath9k_get_next_tbtt()
29 div_u64_rem(tsf, divisor, &offset); in ath9k_get_next_tbtt()
31 return (u32) tsf + divisor - offset; in ath9k_get_next_tbtt()
48 u64 tsf; in ath9k_cmn_beacon_config_sta() local
70 tsf = ath9k_hw_gettsf64(ah); in ath9k_cmn_beacon_config_sta()
71 conf->nexttbtt = ath9k_get_next_tbtt(ah, tsf, conf->intval); in ath9k_cmn_beacon_config_sta()
78 bs->bs_nextdtim = ath9k_get_next_tbtt(ah, tsf, dtim_intval); in ath9k_cmn_beacon_config_sta()
H A Dcommon-spectral.c129 u8 *sample_buf, u64 tsf, u16 freq, int chan_type);
135 u64 tsf, u16 freq, int chan_type) in ath_cmn_process_ht20_fft() argument
170 fft_sample_20.tsf = __cpu_to_be64(tsf); in ath_cmn_process_ht20_fft()
239 u64 tsf, u16 freq, int chan_type) in ath_cmn_process_ht20_40_fft() argument
309 fft_sample_40.tsf = __cpu_to_be64(tsf); in ath_cmn_process_ht20_40_fft()
470 struct ath_rx_status *rs, u64 tsf) in ath_cmn_process_fft() argument
625 tsf, freq, chan_type); in ath_cmn_process_fft()
643 tsf, freq, chan_type); in ath_cmn_process_fft()
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.c1423 u32 tsf, target_tsf; in ath9k_update_p2p_ps_timer() local
1430 tsf = ath9k_hw_gettsf32(sc->sc_ah); in ath9k_update_p2p_ps_timer()
1438 if (target_tsf - tsf < ATH_P2P_PS_STOP_TIME) in ath9k_update_p2p_ps_timer()
1439 target_tsf = tsf + ATH_P2P_PS_STOP_TIME; in ath9k_update_p2p_ps_timer()
1442 __func__, avp->noa.absent, tsf, target_tsf, in ath9k_update_p2p_ps_timer()
1443 (target_tsf - tsf) / 1000); in ath9k_update_p2p_ps_timer()
1451 u32 tsf; in ath9k_update_p2p_ps() local
1464 tsf = ath9k_hw_gettsf32(sc->sc_ah); in ath9k_update_p2p_ps()
1465 ieee80211_parse_p2p_noa(&vif->bss_conf.p2p_noa_attr, &avp->noa, tsf); in ath9k_update_p2p_ps()
1555 u32 tsf; in ath9k_p2p_ps_timer() local
[all …]
H A Dwmi.h40 __be64 tsf; member
H A Dmain.c1949 u64 tsf; in ath9k_get_tsf() local
1955 tsf = ath9k_hw_gettsf64(sc->sc_ah); in ath9k_get_tsf()
1957 tsf = sc->cur_chan->tsf_val + in ath9k_get_tsf()
1960 tsf += le64_to_cpu(avp->tsf_adjust); in ath9k_get_tsf()
1964 return tsf; in ath9k_get_tsf()
1969 u64 tsf) in ath9k_set_tsf() argument
1976 tsf -= le64_to_cpu(avp->tsf_adjust); in ath9k_set_tsf()
1979 ath9k_hw_settsf64(sc->sc_ah, tsf); in ath9k_set_tsf()
1980 avp->chanctx->tsf_val = tsf; in ath9k_set_tsf()
/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.c68 u64 tsf; in tsf_read_file() local
70 b43legacy_tsf_read(dev, &tsf); in tsf_read_file()
72 (unsigned int)((tsf & 0xFFFFFFFF00000000ULL) >> 32), in tsf_read_file()
73 (unsigned int)(tsf & 0xFFFFFFFFULL)); in tsf_read_file()
81 u64 tsf; in tsf_write_file() local
83 if (sscanf(buf, "%llu", (unsigned long long *)(&tsf)) != 1) in tsf_write_file()
85 b43legacy_tsf_write(dev, tsf); in tsf_write_file()
321 B43legacy_DEBUGFS_FOPS(tsf, tsf_read_file, tsf_write_file, 1);
389 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);
H A Dmain.c388 void b43legacy_tsf_read(struct b43legacy_wldev *dev, u64 *tsf) in b43legacy_tsf_read() argument
410 *tsf = high; in b43legacy_tsf_read()
411 *tsf <<= 32; in b43legacy_tsf_read()
412 *tsf |= low; in b43legacy_tsf_read()
434 *tsf = v3; in b43legacy_tsf_read()
435 *tsf <<= 48; in b43legacy_tsf_read()
438 *tsf |= tmp; in b43legacy_tsf_read()
441 *tsf |= tmp; in b43legacy_tsf_read()
442 *tsf |= v0; in b43legacy_tsf_read()
464 static void b43legacy_tsf_write_locked(struct b43legacy_wldev *dev, u64 tsf) in b43legacy_tsf_write_locked() argument
[all …]
/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)
364 void *tsf, enum ufs_trace_tsf_t tsf_t),
366 TP_ARGS(hba, str_t, hdr, tsf, tsf_t),
373 __array(unsigned char, tsf, 16)
382 memcpy(__entry->tsf, tsf, sizeof(__entry->tsf));
391 __print_hex(__entry->tsf, sizeof(__entry->tsf))
/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
H A Dspectral.c66 size_t bin_len, u64 tsf) in ath10k_spectral_process_fft() argument
139 fft_sample->tsf = __cpu_to_be64(tsf); in ath10k_spectral_process_fft()
/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()
573 u64 tsf = 0x1000000000000000ULL; in KUNIT_ARRAY_PARAM_DESC() local
727 CFG80211_BSS_FTYPE_PRESP, bssid, tsf, in KUNIT_ARRAY_PARAM_DESC()
768 KUNIT_EXPECT_EQ(test, ies->tsf, tsf + le64_to_cpu(sta_prof.tsf_offset)); in KUNIT_ARRAY_PARAM_DESC()
/linux/drivers/net/wireless/ath/carl9170/
H A Dfwcmd.h300 __le32 tsf[2]; member
327 struct carl9170_tsf_rsp tsf; member
/linux/net/mac80211/
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()
213 const u16 capability, u64 tsf, in __ieee80211_sta_join_ibss() argument
304 capability, tsf, &chanreq.oper, in __ieee80211_sta_join_ibss()
390 u64 tsf; in ieee80211_sta_join_ibss() local
439 tsf = ies->tsf; in ieee80211_sta_join_ibss()
447 tsf, false); in ieee80211_sta_join_ibss()
459 u64 tsf; in ieee80211_ibss_csa_beacon() local
476 tsf = ies->tsf; in ieee80211_ibss_csa_beacon()
485 capability, tsf, &ifibss->chandef, in ieee80211_ibss_csa_beacon()
H A Dutil.c3969 ieee80211_extend_noa_desc(struct ieee80211_noa_data *data, u32 tsf, int i) in ieee80211_extend_noa_desc() argument
3971 s32 end = data->desc[i].start + data->desc[i].duration - (tsf + 1); in ieee80211_extend_noa_desc()
4001 ieee80211_extend_absent_time(struct ieee80211_noa_data *data, u32 tsf, in ieee80211_extend_absent_time() argument
4013 if (ieee80211_extend_noa_desc(data, tsf + *offset, i)) in ieee80211_extend_absent_time()
4016 cur = data->desc[i].start - tsf; in ieee80211_extend_absent_time()
4020 cur = data->desc[i].start + data->desc[i].duration - tsf; in ieee80211_extend_absent_time()
4029 ieee80211_get_noa_absent_time(struct ieee80211_noa_data *data, u32 tsf) in ieee80211_get_noa_absent_time() argument
4039 ieee80211_extend_absent_time(data, tsf, &offset); in ieee80211_get_noa_absent_time()
4041 if (!ieee80211_extend_absent_time(data, tsf, &offset)) in ieee80211_get_noa_absent_time()
4050 void ieee80211_update_p2p_noa(struct ieee80211_noa_data *data, u32 tsf) in ieee80211_update_p2p_noa() argument
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dmain.c905 } tsf; in mt7615_get_tsf() local
916 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0); in mt7615_get_tsf()
917 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1); in mt7615_get_tsf()
921 return tsf.t64; in mt7615_get_tsf()
933 } tsf = { .t64 = timestamp, }; in mt7615_set_tsf() local
942 mt76_wr(dev, MT_LPON_UTTR0, tsf.t32[0]); in mt7615_set_tsf()
943 mt76_wr(dev, MT_LPON_UTTR1, tsf.t32[1]); in mt7615_set_tsf()
959 } tsf = { .t64 = timestamp, }; in mt7615_offset_tsf() local
968 mt76_wr(dev, MT_LPON_UTTR0, tsf.t32[0]); in mt7615_offset_tsf()
969 mt76_wr(dev, MT_LPON_UTTR1, tsf.t32[1]); in mt7615_offset_tsf()
/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt792x_core.c340 } tsf; in mt792x_get_tsf() local
348 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0(0)); in mt792x_get_tsf()
349 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1(0)); in mt792x_get_tsf()
353 return tsf.t64; in mt792x_get_tsf()
366 } tsf = { .t64 = timestamp, }; in mt792x_set_tsf() local
372 mt76_wr(dev, MT_LPON_UTTR0(0), tsf.t32[0]); in mt792x_set_tsf()
373 mt76_wr(dev, MT_LPON_UTTR1(0), tsf.t32[1]); in mt792x_set_tsf()
/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dmain.c1026 } tsf; in __mt7915_get_tsf() local
1040 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0(band)); in __mt7915_get_tsf()
1041 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1(band)); in __mt7915_get_tsf()
1043 return tsf.t64; in __mt7915_get_tsf()
1071 } tsf = { .t64 = timestamp, }; in mt7915_set_tsf() local
1078 mt76_wr(dev, MT_LPON_UTTR0(band), tsf.t32[0]); in mt7915_set_tsf()
1079 mt76_wr(dev, MT_LPON_UTTR1(band), tsf.t32[1]); in mt7915_set_tsf()
1102 } tsf = { .t64 = timestamp, }; in mt7915_offset_tsf() local
1109 mt76_wr(dev, MT_LPON_UTTR0(band), tsf.t32[0]); in mt7915_offset_tsf()
1110 mt76_wr(dev, MT_LPON_UTTR1(band), tsf.t32[1]); in mt7915_offset_tsf()
/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2400pci.c1216 u64 tsf; in rt2400pci_fill_rxdone() local
1239 tsf = rt2x00dev->ops->hw->get_tsf(rt2x00dev->hw, NULL); in rt2400pci_fill_rxdone()
1241 rx_high = upper_32_bits(tsf); in rt2400pci_fill_rxdone()
1243 if ((u32)tsf <= rx_low) in rt2400pci_fill_rxdone()
1687 u64 tsf; in rt2400pci_get_tsf() local
1691 tsf = (u64) rt2x00_get_field32(reg, CSR17_HIGH_TSFTIMER) << 32; in rt2400pci_get_tsf()
1693 tsf |= rt2x00_get_field32(reg, CSR16_LOW_TSFTIMER); in rt2400pci_get_tsf()
1695 return tsf; in rt2400pci_get_tsf()
/linux/net/wireless/
H A Dscan.c1878 if (new->tsf - old->tsf < USEC_PER_SEC) in cfg80211_check_stuck_ecsa()
2235 u64 tsf; member
2386 ies->tsf = data->tsf; in cfg80211_inform_single_bss_data()
2518 .tsf = tx_data->tsf, in cfg80211_parse_mbssid_data()
3083 data.tsf = tx_data->tsf + in cfg80211_parse_ml_elem_sta_data()
3245 const u8 *bssid, u64 tsf, u16 capability, in cfg80211_inform_bss_data() argument
3252 .tsf = tsf, in cfg80211_inform_bss_data()
3296 u64 tsf; in cfg80211_inform_bss_frame_data() local
3342 tsf = le32_to_cpu(ext->u.s1g_beacon.timestamp); in cfg80211_inform_bss_frame_data()
3343 tsf |= (u64)le32_to_cpu(compat->tsf_completion) << 32; in cfg80211_inform_bss_frame_data()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmain.c1713 } tsf; in __mt7996_get_tsf() local
1726 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0(phy->mt76->band_idx)); in __mt7996_get_tsf()
1727 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1(phy->mt76->band_idx)); in __mt7996_get_tsf()
1729 return tsf.t64; in __mt7996_get_tsf()
1757 } tsf = { .t64 = timestamp, }; in mt7996_set_tsf() local
1772 mt76_wr(dev, MT_LPON_UTTR0(phy->mt76->band_idx), tsf.t32[0]); in mt7996_set_tsf()
1773 mt76_wr(dev, MT_LPON_UTTR1(phy->mt76->band_idx), tsf.t32[1]); in mt7996_set_tsf()
1793 } tsf = { .t64 = timestamp, }; in mt7996_offset_tsf() local
1808 mt76_wr(dev, MT_LPON_UTTR0(phy->mt76->band_idx), tsf.t32[0]); in mt7996_offset_tsf()
1809 mt76_wr(dev, MT_LPON_UTTR1(phy->mt76->band_idx), tsf.t32[1]); in mt7996_offset_tsf()
/linux/drivers/staging/rtl8723bs/core/
H A Drtw_wlan_util.c1656 u64 tsf = 0; in adaptive_early_32k() local
1665 tsf = le32_to_cpu(*(pbuf + 1)); in adaptive_early_32k()
1666 tsf = tsf << 32; in adaptive_early_32k()
1667 tsf |= le32_to_cpu(*pbuf); in adaptive_early_32k()
1671 delay_ms = do_div(tsf, (pmlmeinfo->bcn_interval * 1024)); in adaptive_early_32k()

1234