| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | common-beacon.c | 22 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 D | common-spectral.c | 129 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 D | htc_drv_beacon.c | 268 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 D | common-spectral.h | 181 struct ath_rx_status *rs, u64 tsf); 199 struct ath_rx_status *rs, u64 tsf) in ath_cmn_process_fft() argument
|
| H A D | channel.c | 1425 u32 tsf, target_tsf; in ath9k_update_p2p_ps_timer() local 1432 tsf = ath9k_hw_gettsf32(sc->sc_ah); in ath9k_update_p2p_ps_timer() 1440 if (target_tsf - tsf < ATH_P2P_PS_STOP_TIME) in ath9k_update_p2p_ps_timer() 1441 target_tsf = tsf + ATH_P2P_PS_STOP_TIME; in ath9k_update_p2p_ps_timer() 1444 __func__, avp->noa.absent, tsf, target_tsf, in ath9k_update_p2p_ps_timer() 1445 (target_tsf - tsf) / 1000); in ath9k_update_p2p_ps_timer() 1453 u32 tsf; in ath9k_update_p2p_ps() local 1466 tsf = ath9k_hw_gettsf32(sc->sc_ah); in ath9k_update_p2p_ps() 1467 ieee80211_parse_p2p_noa(&vif->bss_conf.p2p_noa_attr, &avp->noa, tsf); in ath9k_update_p2p_ps() 1557 u32 tsf; in ath9k_p2p_ps_timer() local [all …]
|
| H A D | beacon.c | 312 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 D | recv.c | 789 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 D | spectral_common.h | 62 __be64 tsf; member 76 __be64 tsf; member 104 __be64 tsf; member 123 __be32 tsf; member
|
| /linux/drivers/net/wireless/broadcom/b43legacy/ |
| H A D | debugfs.c | 68 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() 323 B43legacy_DEBUGFS_FOPS(tsf, tsf_read_file, tsf_write_file, 1); 391 ADD_FILE(tsf, 0600); in b43legacy_debugfs_add_device()
|
| H A D | main.h | 87 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 D | ufs_trace.h | 82 #define show_ufs_cmd_trace_tsf(tsf) \ argument 83 __print_symbolic(tsf, UFS_CMD_TRACE_TSF_TYPES) 351 void *tsf, enum ufs_trace_tsf_t tsf_t), 353 TP_ARGS(hba, str_t, hdr, tsf, tsf_t), 359 __array(unsigned char, tsf, 16) 367 memcpy(__entry->tsf, tsf, sizeof(__entry->tsf)); 376 __print_hex(__entry->tsf, sizeof(__entry->tsf))
|
| /linux/drivers/net/wireless/realtek/rtw89/ |
| H A D | ps.c | 492 u64 tsf; in rtw89_p2p_noa_once_recalc() local 498 ret = rtw89_mac_port_get_tsf(rtwdev, rtwvif_link, &tsf); in rtw89_p2p_noa_once_recalc() 525 tmp = (tsf & GENMASK_ULL(63, 32)) + tmp; in rtw89_p2p_noa_once_recalc() 526 if (unlikely(tmp <= tsf)) in rtw89_p2p_noa_once_recalc() 530 tmp = (tsf & GENMASK_ULL(63, 32)) | start_time; in rtw89_p2p_noa_once_recalc() 541 if (noa_once->tsf_end > tsf) { in rtw89_p2p_noa_once_recalc() 546 clr_delay_us = min_t(u64, tsf_end - tsf, UINT_MAX); in rtw89_p2p_noa_once_recalc() 548 if (tsf_begin <= tsf) { in rtw89_p2p_noa_once_recalc() 553 set_delay_us = tsf_begin - tsf; in rtw89_p2p_noa_once_recalc()
|
| /linux/net/mac80211/ |
| H A D | mesh_sync.c | 55 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 D | debugfs_netdev.c | 657 u64 tsf; in ieee80211_if_fmt_tsf() local 659 tsf = drv_get_tsf(local, (struct ieee80211_sub_if_data *)sdata); in ieee80211_if_fmt_tsf() 661 return scnprintf(buf, buflen, "0x%016llx\n", (unsigned long long) tsf); in ieee80211_if_fmt_tsf() 668 unsigned long long tsf; in ieee80211_if_parse_tsf() local 687 ret = kstrtoull(buf, 10, &tsf); in ieee80211_if_parse_tsf() 691 drv_offset_tsf(local, sdata, tsf_is_delta * tsf); in ieee80211_if_parse_tsf() 694 tsf_is_delta * tsf); in ieee80211_if_parse_tsf() 697 tsf = drv_get_tsf(local, sdata) + in ieee80211_if_parse_tsf() 698 tsf_is_delta * tsf; in ieee80211_if_parse_tsf() 699 drv_set_tsf(local, sdata, tsf); in ieee80211_if_parse_tsf() [all …]
|
| H A D | util.c | 3796 ieee80211_extend_noa_desc(struct ieee80211_noa_data *data, u32 tsf, int i) in ieee80211_extend_noa_desc() argument 3798 s32 end = data->desc[i].start + data->desc[i].duration - (tsf + 1); in ieee80211_extend_noa_desc() 3828 ieee80211_extend_absent_time(struct ieee80211_noa_data *data, u32 tsf, in ieee80211_extend_absent_time() argument 3840 if (ieee80211_extend_noa_desc(data, tsf + *offset, i)) in ieee80211_extend_absent_time() 3843 cur = data->desc[i].start - tsf; in ieee80211_extend_absent_time() 3847 cur = data->desc[i].start + data->desc[i].duration - tsf; in ieee80211_extend_absent_time() 3856 ieee80211_get_noa_absent_time(struct ieee80211_noa_data *data, u32 tsf) in ieee80211_get_noa_absent_time() argument 3866 ieee80211_extend_absent_time(data, tsf, &offset); in ieee80211_get_noa_absent_time() 3868 if (!ieee80211_extend_absent_time(data, tsf, &offset)) in ieee80211_get_noa_absent_time() 3877 void ieee80211_update_p2p_noa(struct ieee80211_noa_data *data, u32 tsf) in ieee80211_update_p2p_noa() argument [all …]
|
| H A D | ibss.c | 40 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() 215 const u16 capability, u64 tsf, in __ieee80211_sta_join_ibss() argument 308 capability, tsf, &chanreq.oper, in __ieee80211_sta_join_ibss() 394 u64 tsf; in ieee80211_sta_join_ibss() local 449 tsf = ies->tsf; in ieee80211_sta_join_ibss() 457 tsf, false); in ieee80211_sta_join_ibss() 469 u64 tsf; in ieee80211_ibss_csa_beacon() local 486 tsf = ies->tsf; in ieee80211_ibss_csa_beacon() 495 capability, tsf, &ifibss->chandef, in ieee80211_ibss_csa_beacon()
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | spectral.h | 41 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 D | main.h | 63 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 D | scan.c | 347 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 D | mt76x02_usb_core.c | 149 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 D | mt792x_core.c | 250 } tsf; in mt792x_get_tsf() local 258 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0(0)); in mt792x_get_tsf() 259 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1(0)); in mt792x_get_tsf() 263 return tsf.t64; in mt792x_get_tsf() 276 } tsf = { .t64 = timestamp, }; in mt792x_set_tsf() local 282 mt76_wr(dev, MT_LPON_UTTR0(0), tsf.t32[0]); in mt792x_set_tsf() 283 mt76_wr(dev, MT_LPON_UTTR1(0), tsf.t32[1]); in mt792x_set_tsf()
|
| /linux/drivers/net/wireless/ath/carl9170/ |
| H A D | fwcmd.h | 300 __le32 tsf[2]; member 327 struct carl9170_tsf_rsp tsf; member
|
| /linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
| H A D | tx.h | 838 __le64 tsf; member 851 __le64 tsf; member 865 __le64 tsf; member
|
| H A D | offload.h | 54 __le64 tsf; member
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
| H A D | main.c | 904 } 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()
|