Lines Matching refs:tsf
22 static u32 ath9k_mod_tsf64_tu(u64 tsf, u32 div_tu) in ath9k_mod_tsf64_tu() argument
26 tsf_mod = tsf & (BIT(10) - 1); in ath9k_mod_tsf64_tu()
27 tsf_hi = tsf >> 32; in ath9k_mod_tsf64_tu()
28 tsf_lo = ((u32) tsf) >> 10; in ath9k_mod_tsf64_tu()
36 static u32 ath9k_get_next_tbtt(struct ath_hw *ah, u64 tsf, in ath9k_get_next_tbtt() argument
41 tsf += TU_TO_USEC(FUDGE + ah->config.sw_beacon_response_time); in ath9k_get_next_tbtt()
42 offset = ath9k_mod_tsf64_tu(tsf, interval); in ath9k_get_next_tbtt()
44 return (u32) tsf + TU_TO_USEC(interval) - offset; in ath9k_get_next_tbtt()
61 u64 tsf; in ath9k_cmn_beacon_config_sta() local
83 tsf = ath9k_hw_gettsf64(ah); in ath9k_cmn_beacon_config_sta()
84 conf->nexttbtt = ath9k_get_next_tbtt(ah, tsf, conf->intval); in ath9k_cmn_beacon_config_sta()
91 bs->bs_nextdtim = ath9k_get_next_tbtt(ah, tsf, dtim_intval); in ath9k_cmn_beacon_config_sta()