Home
last modified time | relevance | path

Searched full:tsf (Results 1 – 25 of 175) sorted by relevance

1234567

/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()
36 * received beacon and the current TSF, configures PCF and DTIM
48 u64 tsf; in ath9k_cmn_beacon_config_sta() local
68 * TSF and calculate dtim state for the result. in ath9k_cmn_beacon_config_sta()
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()
[all …]
H A Dchannel.c351 /* Adjust the TSF time of the AP chanctx to keep its beacons in ath_chanctx_adjust_tbtt_delta()
364 /* Configure the TSF based hardware timer for a channel switch.
684 /* TSF time might have been updated by the incoming beacon, in ath_chanctx_event()
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()
1443 ath_dbg(common, CHAN_CTX, "%s absent %d tsf 0x%08X next_tsf 0x%08X (%dms)\n", 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()
[all …]
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
/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)
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/ath5k/
H A Dpcu.c46 * - Maintaining TSF
50 * - Updating beacon data (with TSF etc)
556 * ath5k_hw_get_tsf64() - Get the full 64bit TSF
559 * Returns the current TSF
572 * While reading TSF upper and then lower part, the clock is still in ath5k_hw_get_tsf64()
602 * ath5k_hw_set_tsf64() - Set a new 64bit TSF
604 * @tsf64: The new 64bit TSF
606 * Sets the new TSF
616 * ath5k_hw_reset_tsf() - Force a TSF reset
619 * Forces a TSF reset on PCU
[all …]
H A Dbase.c202 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
1295 * have updated the local TSF. We have to work around various in ath5k_check_ibss_tsf()
1298 tsf = ath5k_hw_get_tsf64(ah); in ath5k_check_ibss_tsf()
1300 hw_tu = TSF_TO_TU(tsf); in ath5k_check_ibss_tsf()
1303 "beacon %llx mactime %llx (diff %lld) tsf now %llx\n", in ath5k_check_ibss_tsf()
1307 (unsigned long long)tsf); in ath5k_check_ibss_tsf()
[all …]
/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/intel/iwlwifi/mvm/
H A Dmac-ctxt.c67 * The TSF is a hardware/firmware resource, there are 4 and in iwl_mvm_mac_tsf_id_iter()
69 * there are cases where 2 MACs should share the same TSF ID in iwl_mvm_mac_tsf_id_iter()
87 * divisor of the beacon interval of the client, the same TSF in iwl_mvm_mac_tsf_id_iter()
115 * client or use the same TSF as an existing GO. There's no in iwl_mvm_mac_tsf_id_iter()
143 * their TSF (like P2P Device), but we won't be able in iwl_mvm_mac_tsf_id_iter()
144 * to share the TSF resource. in iwl_mvm_mac_tsf_id_iter()
150 * Unless we exited above, we can't share the TSF resource in iwl_mvm_mac_tsf_id_iter()
225 * Allocate a MAC ID and a TSF for this MAC, along with the queues in iwl_mvm_mac_ctxt_init()
233 * virtual interfaces, and all TSF IDs are cleared that can't be used in iwl_mvm_mac_ctxt_init()
236 * At the same time, we check if there's a preferred TSF in the case in iwl_mvm_mac_ctxt_init()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dmain.c904 } tsf; in mt7615_get_tsf() local
913 /* TSF read */ in mt7615_get_tsf()
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()
943 /* TSF software overwrite */ in mt7615_set_tsf()
958 } tsf in mt7615_offset_tsf() local
[all...]
/linux/drivers/net/wireless/intel/iwlwifi/fw/api/
H A Drx.h33 * @timestamp: TSF at on air rise
279 /* TSF overload low dword */
296 /* TSF overload low dword */
333 /* TSF overload high dword */
336 * check this first - if TSF overload is set,
345 /* TSF overload high dword For HE rates*/
362 /* TSF overload high dword For EHT-MU/TB rates*/
518 * TSF value on air rise (INA), only valid if
615 * TSF value on air rise (INA), only valid if
H A Dtx.h30 * @TX_CMD_FLG_TSF: FW should calculate and insert TSF in the frame
838 __le64 tsf; member
845 * @tsf: last beacon tsf
851 __le64 tsf; member
859 * @tsf: last beacon tsf
865 __le64 tsf; member
H A Dscan.h411 * @tsf_low: TSF timer (lower half) in usecs
412 * @tsf_high: TSF timer (higher half) in usecs
836 * @scan_start_mac_id: report the scan start TSF time according to this mac TSF
1034 * @scan_start_mac_or_link_id: report the scan start TSF time according to this
1035 * mac (up to verion 11) or link (starting with version 12) TSF
1280 * @start_tsf: TSF timer in usecs of the scan start time for the mac specified
/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/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()
215 const u16 capability, u64 tsf, in __ieee80211_sta_join_ibss() argument
233 /* Reset own TSF to allow time synchronization work. */ in __ieee80211_sta_join_ibss()
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
[all...]
/linux/drivers/staging/rtl8723bs/include/
H A Dhal_pwr_seq.h154 …PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT4, 0}, /*. 0x08[4] = 0 switch TSF to 40M*/\
155 …PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC, PWR_CMD_POLLING, BIT7, 0}, /*Polling 0x109[7]= 0 TSF in 40M*/\
175 …R_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT5, BIT5},/*reset dual TSF*/ \
184 …FAB_ALL_MSK, PWR_INTF_SDIO_MSK, PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT4, BIT4},/*switch TSF to 32K*/\
185 …AB_ALL_MSK, PWR_INTF_SDIO_MSK, PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT7, BIT7},/*polling TSF stable*/\
193 …WR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT4, 0},/*switch TSF to 32K*/\
194 …R_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT7, 0},/*polling TSF stable*/\
/linux/drivers/net/wireless/broadcom/b43legacy/
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
390 /* We need to be careful. As we read the TSF from multiple in b43legacy_tsf_read()
392 * In theory, the whole tsf read process should be atomic. in b43legacy_tsf_read()
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()
[all …]
/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/mt7915/
H A Dmain.c1010 } tsf; in __mt7915_get_tsf() local
1017 /* TSF software read */ in __mt7915_get_tsf()
1024 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0(band)); in __mt7915_get_tsf()
1025 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1(band)); in __mt7915_get_tsf()
1027 return tsf.t64; in __mt7915_get_tsf()
1055 } tsf = { .t64 = timestamp, }; in mt7915_set_tsf() local
1062 mt76_wr(dev, MT_LPON_UTTR0(band), tsf.t32[0]); in mt7915_set_tsf()
1063 mt76_wr(dev, MT_LPON_UTTR1(band), tsf.t32[1]); in mt7915_set_tsf()
1064 /* TSF software overwrite */ in mt7915_set_tsf()
1086 } tsf in mt7915_offset_tsf() local
[all...]
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmain.c1497 } tsf; in __mt7996_get_tsf()
1507 /* TSF software read */ in __mt7996_get_tsf()
1510 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0(phy->mt76->band_idx));
1511 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1(phy->mt76->band_idx));
1513 return tsf.t64; in mt7996_get_tsf()
1541 } tsf = { .t64 = timestamp, }; in mt7996_set_tsf()
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()
1558 /* TSF software overwrite */ in mt7996_set_tsf()
1577 } tsf in mt7996_offset_tsf()
1492 } tsf; __mt7996_get_tsf() local
1536 } tsf = { .t64 = timestamp, }; mt7996_set_tsf() local
1572 } tsf = { .t64 = timestamp, }; mt7996_offset_tsf() local
[all...]
/linux/drivers/net/wireless/ti/wl1251/
H A Drx.c46 * The rx status timestamp is a 32 bits value while the TSF is a in wl1251_rx_status()
48 * For IBSS merging, TSF is mandatory, so we have to get it in wl1251_rx_status()
/linux/drivers/net/wireless/marvell/mwifiex/
H A Djoin.c76 * Append TSF tracking info from the scan table for the target AP.
80 * The TSF table TSF sent to the firmware contains two TSF values:
81 * - The TSF of the target AP from its previous beacon/probe response
82 * - The TSF timestamp of our local MAC at the time we observed the
85 * The firmware uses the timestamp values to set an initial TSF value
109 /* TSF at the time when beacon/probe_response was received */ in mwifiex_cmd_append_tsf_tlv()
117 "info: %s: TSF offset calc: %016llx - %016llx\n", in mwifiex_cmd_append_tsf_tlv()
369 * - TSF TLV
/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2400pci.h189 * TSF_COUNT: Enable tsf auto counting.
190 * TSF_SYNC: Tsf sync, 0: disable, 1: infra, 2: ad-hoc/master mode.
220 * CSR16: TSF timer register 0.
226 * CSR17: TSF timer register 1.
304 * TSF_OFFSET: Insert tsf offset.

1234567