| /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 | 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 | 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 | wmi.h | 40 __be64 tsf; member
|
| H A D | main.c | 1949 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 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);
|
| H A D | main.c | 388 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 D | ufs_trace.h | 81 #define show_ufs_cmd_trace_tsf(tsf) \ argument 82 __print_symbolic(tsf, UFS_CMD_TRACE_TSF_TYPES) 350 void *tsf, enum ufs_trace_tsf_t tsf_t), 352 TP_ARGS(hba, str_t, hdr, tsf, tsf_t), 358 __array(unsigned char, tsf, 16) 366 memcpy(__entry->tsf, tsf, sizeof(__entry->tsf)); 375 __print_hex(__entry->tsf, sizeof(__entry->tsf))
|
| /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
|
| H A D | spectral.c | 66 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 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/ath/carl9170/ |
| H A D | fwcmd.h | 300 __le32 tsf[2]; member 327 struct carl9170_tsf_rsp tsf; member
|
| /linux/net/mac80211/ |
| H A D | util.c | 3854 ieee80211_extend_noa_desc(struct ieee80211_noa_data *data, u32 tsf, int i) in ieee80211_extend_noa_desc() argument 3856 s32 end = data->desc[i].start + data->desc[i].duration - (tsf + 1); in ieee80211_extend_noa_desc() 3886 ieee80211_extend_absent_time(struct ieee80211_noa_data *data, u32 tsf, in ieee80211_extend_absent_time() argument 3898 if (ieee80211_extend_noa_desc(data, tsf + *offset, i)) in ieee80211_extend_absent_time() 3901 cur = data->desc[i].start - tsf; in ieee80211_extend_absent_time() 3905 cur = data->desc[i].start + data->desc[i].duration - tsf; in ieee80211_extend_absent_time() 3914 ieee80211_get_noa_absent_time(struct ieee80211_noa_data *data, u32 tsf) in ieee80211_get_noa_absent_time() argument 3924 ieee80211_extend_absent_time(data, tsf, &offset); in ieee80211_get_noa_absent_time() 3926 if (!ieee80211_extend_absent_time(data, tsf, &offset)) in ieee80211_get_noa_absent_time() 3935 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 in ieee80211_ibss_csa_beacon() [all...] |
| H A D | driver-ops.c | 267 u64 tsf) in drv_set_tsf() argument 275 trace_drv_set_tsf(local, sdata, tsf); in drv_set_tsf() 277 local->ops->set_tsf(&local->hw, &sdata->vif, tsf); in drv_set_tsf()
|
| /linux/drivers/net/wireless/ath/ath5k/ |
| H A D | base.c | 202 u64 tsf = ath5k_hw_get_tsf64(ah); in ath5k_extend_tsf() local 204 if ((tsf & 0x7fff) < rstamp) in ath5k_extend_tsf() 205 tsf -= 0x8000; in ath5k_extend_tsf() 207 return (tsf & ~0x7fff) | rstamp; in ath5k_extend_tsf() 1288 u64 tsf, bc_tstamp; in ath5k_check_ibss_tsf() local 1298 tsf = ath5k_hw_get_tsf64(ah); in ath5k_check_ibss_tsf() 1300 hw_tu = TSF_TO_TU(tsf); in ath5k_check_ibss_tsf() 1307 (unsigned long long)tsf); in ath5k_check_ibss_tsf() 1324 (unsigned long long)tsf); in ath5k_check_ibss_tsf() 1325 rxs->mactime = tsf; in ath5k_check_ibss_tsf() [all …]
|
| /linux/drivers/media/pci/ngene/ |
| H A D | ngene-cards.c | 1034 .tsf = {3, 3}, 1048 .tsf = {3, 3}, 1063 .tsf = {3, 3}, 1078 .tsf = {3, 3}, 1094 .tsf = {3, 3}, 1113 .tsf = { 4, 4 },
|
| /linux/drivers/net/wireless/ralink/rt2x00/ |
| H A D | rt2400pci.c | 1216 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 D | scan.c | 1840 if (new->tsf - old->tsf < USEC_PER_SEC) in cfg80211_check_stuck_ecsa() 2197 u64 tsf; member 2348 ies->tsf = data->tsf; in cfg80211_inform_single_bss_data() 2480 .tsf = tx_data->tsf, in cfg80211_parse_mbssid_data() 3043 data.tsf = tx_data->tsf + in cfg80211_parse_ml_elem_sta_data() 3205 const u8 *bssid, u64 tsf, u16 capability, in cfg80211_inform_bss_data() argument 3212 .tsf = tsf, in cfg80211_inform_bss_data() 3256 u64 tsf; in cfg80211_inform_bss_frame_data() local 3308 tsf = le64_to_cpu(mgmt->u.probe_resp.timestamp); in cfg80211_inform_bss_frame_data() 3318 bssid, tsf, capability, in cfg80211_inform_bss_frame_data() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
| H A D | main.c | 1497 } tsf; in __mt7996_get_tsf() local 1510 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0(phy->mt76->band_idx)); in __mt7996_get_tsf() 1511 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1(phy->mt76->band_idx)); in __mt7996_get_tsf() 1513 return tsf.t64; in __mt7996_get_tsf() 1541 } tsf = { .t64 = timestamp, }; in mt7996_set_tsf() local 1556 mt76_wr(dev, MT_LPON_UTTR0(phy->mt76->band_idx), tsf.t32[0]); in mt7996_set_tsf() 1557 mt76_wr(dev, MT_LPON_UTTR1(phy->mt76->band_idx), tsf.t32[1]); in mt7996_set_tsf() 1577 } tsf = { .t64 = timestamp, }; in mt7996_offset_tsf() local 1592 mt76_wr(dev, MT_LPON_UTTR0(phy->mt76->band_idx), tsf.t32[0]); in mt7996_offset_tsf() 1593 mt76_wr(dev, MT_LPON_UTTR1(phy->mt76->band_idx), tsf.t32[1]); in mt7996_offset_tsf()
|
| /linux/drivers/staging/rtl8723bs/core/ |
| H A D | rtw_wlan_util.c | 1665 u64 tsf = 0; in adaptive_early_32k() local 1674 tsf = le32_to_cpu(*(pbuf + 1)); in adaptive_early_32k() 1675 tsf = tsf << 32; in adaptive_early_32k() 1676 tsf |= le32_to_cpu(*pbuf); in adaptive_early_32k() 1680 delay_ms = do_div(tsf, (pmlmeinfo->bcn_interval * 1024)); in adaptive_early_32k()
|