Home
last modified time | relevance | path

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

1234

/drivers/staging/vt6656/
Dcard.c287 u64 vnt_get_next_tbtt(u64 tsf, u16 beacon_interval) in vnt_get_next_tbtt() argument
297 do_div(tsf, beacon_int); in vnt_get_next_tbtt()
298 tsf += 1; in vnt_get_next_tbtt()
299 tsf *= beacon_int; in vnt_get_next_tbtt()
302 return tsf; in vnt_get_next_tbtt()
327 int vnt_update_next_tbtt(struct vnt_private *priv, u64 tsf, in vnt_update_next_tbtt() argument
333 tsf = vnt_get_next_tbtt(tsf, beacon_interval); in vnt_update_next_tbtt()
335 data[0] = (u8)tsf; in vnt_update_next_tbtt()
336 data[1] = (u8)(tsf >> 8); in vnt_update_next_tbtt()
337 data[2] = (u8)(tsf >> 16); in vnt_update_next_tbtt()
[all …]
Dcard.h36 int vnt_update_next_tbtt(struct vnt_private *priv, u64 tsf,
38 u64 vnt_get_next_tbtt(u64 tsf, u16 beacon_interval);
/drivers/net/wireless/ath/ath9k/
Dcommon-beacon.c21 static u32 ath9k_get_next_tbtt(struct ath_hw *ah, u64 tsf, in ath9k_get_next_tbtt() argument
26 tsf += TU_TO_USEC(FUDGE + ah->config.sw_beacon_response_time); in ath9k_get_next_tbtt()
28 div_u64_rem(tsf, divisor, &offset); in ath9k_get_next_tbtt()
30 return (u32) tsf + divisor - offset; in ath9k_get_next_tbtt()
47 u64 tsf; in ath9k_cmn_beacon_config_sta() local
69 tsf = ath9k_hw_gettsf64(ah); in ath9k_cmn_beacon_config_sta()
70 conf->nexttbtt = ath9k_get_next_tbtt(ah, tsf, conf->intval); in ath9k_cmn_beacon_config_sta()
77 bs->bs_nextdtim = ath9k_get_next_tbtt(ah, tsf, dtim_intval); in ath9k_cmn_beacon_config_sta()
Dcommon-spectral.c128 u8 *sample_buf, u64 tsf, u16 freq, int chan_type);
134 u64 tsf, u16 freq, int chan_type) in ath_cmn_process_ht20_fft() argument
169 fft_sample_20.tsf = __cpu_to_be64(tsf); in ath_cmn_process_ht20_fft()
238 u64 tsf, u16 freq, int chan_type) in ath_cmn_process_ht20_40_fft() argument
308 fft_sample_40.tsf = __cpu_to_be64(tsf); in ath_cmn_process_ht20_40_fft()
469 struct ath_rx_status *rs, u64 tsf) in ath_cmn_process_fft() argument
624 tsf, freq, chan_type); in ath_cmn_process_fft()
642 tsf, freq, chan_type); in ath_cmn_process_fft()
Dhtc_drv_beacon.c268 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()
Dchannel.c1430 u32 tsf, target_tsf; in ath9k_update_p2p_ps_timer() local
1437 tsf = ath9k_hw_gettsf32(sc->sc_ah); in ath9k_update_p2p_ps_timer()
1445 if (target_tsf - tsf < ATH_P2P_PS_STOP_TIME) in ath9k_update_p2p_ps_timer()
1446 target_tsf = tsf + ATH_P2P_PS_STOP_TIME; in ath9k_update_p2p_ps_timer()
1449 __func__, avp->noa.absent, tsf, target_tsf, in ath9k_update_p2p_ps_timer()
1450 (target_tsf - tsf) / 1000); in ath9k_update_p2p_ps_timer()
1458 u32 tsf; in ath9k_update_p2p_ps() local
1471 tsf = ath9k_hw_gettsf32(sc->sc_ah); in ath9k_update_p2p_ps()
1472 ieee80211_parse_p2p_noa(&vif->bss_conf.p2p_noa_attr, &avp->noa, tsf); in ath9k_update_p2p_ps()
1562 u32 tsf; in ath9k_p2p_ps_timer() local
[all …]
Dcommon-spectral.h181 struct ath_rx_status *rs, u64 tsf);
199 struct ath_rx_status *rs, u64 tsf) in ath_cmn_process_fft() argument
Dbeacon.c312 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()
Drecv.c789 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()
/drivers/net/wireless/ath/
Dspectral_common.h63 __be64 tsf; member
77 __be64 tsf; member
105 __be64 tsf; member
124 __be32 tsf; member
/drivers/net/wireless/broadcom/b43legacy/
Ddebugfs.c69 u64 tsf; in tsf_read_file() local
71 b43legacy_tsf_read(dev, &tsf); in tsf_read_file()
73 (unsigned int)((tsf & 0xFFFFFFFF00000000ULL) >> 32), in tsf_read_file()
74 (unsigned int)(tsf & 0xFFFFFFFFULL)); in tsf_read_file()
82 u64 tsf; in tsf_write_file() local
84 if (sscanf(buf, "%llu", (unsigned long long *)(&tsf)) != 1) in tsf_write_file()
86 b43legacy_tsf_write(dev, tsf); in tsf_write_file()
327 B43legacy_DEBUGFS_FOPS(tsf, tsf_read_file, tsf_write_file, 1);
395 ADD_FILE(tsf, 0600); in b43legacy_debugfs_add_device()
Dmain.h87 void b43legacy_tsf_read(struct b43legacy_wldev *dev, u64 *tsf);
88 void b43legacy_tsf_write(struct b43legacy_wldev *dev, u64 tsf);
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 …]
/drivers/net/wireless/ath/ath10k/
Dspectral.h41 size_t bin_len, u64 tsf);
53 size_t bin_len, u64 tsf) in ath10k_spectral_process_fft() argument
/drivers/net/wireless/broadcom/b43/
Dmain.h63 void b43_tsf_read(struct b43_wldev *dev, u64 * tsf);
64 void b43_tsf_write(struct b43_wldev *dev, u64 tsf);
/drivers/net/wireless/mediatek/mt76/mt7915/
Dmain.c808 } tsf; in mt7915_get_tsf() local
817 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0(band)); in mt7915_get_tsf()
818 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1(band)); in mt7915_get_tsf()
822 return tsf.t64; in mt7915_get_tsf()
836 } tsf = { .t64 = timestamp, }; in mt7915_set_tsf() local
842 mt76_wr(dev, MT_LPON_UTTR0(band), tsf.t32[0]); in mt7915_set_tsf()
843 mt76_wr(dev, MT_LPON_UTTR1(band), tsf.t32[1]); in mt7915_set_tsf()
862 } tsf = { .t64 = timestamp, }; in mt7915_offset_tsf() local
868 mt76_wr(dev, MT_LPON_UTTR0(band), tsf.t32[0]); in mt7915_offset_tsf()
869 mt76_wr(dev, MT_LPON_UTTR1(band), tsf.t32[1]); in mt7915_offset_tsf()
/drivers/net/wireless/mediatek/mt76/
Dmt76x02_usb_core.c143 u64 tsf, time; in mt76x02u_restart_pre_tbtt_timer() local
151 tsf = (u64)dw0 << 32 | dw1; in mt76x02u_restart_pre_tbtt_timer()
152 dev_dbg(dev->mt76.dev, "TSF: %llu us TBTT %u us\n", tsf, tbtt); in mt76x02u_restart_pre_tbtt_timer()
/drivers/net/wireless/mediatek/mt76/mt7615/
Dmain.c878 } tsf; in mt7615_get_tsf() local
889 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0); in mt7615_get_tsf()
890 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1); in mt7615_get_tsf()
894 return tsf.t64; in mt7615_get_tsf()
906 } tsf = { .t64 = timestamp, }; in mt7615_set_tsf() local
915 mt76_wr(dev, MT_LPON_UTTR0, tsf.t32[0]); in mt7615_set_tsf()
916 mt76_wr(dev, MT_LPON_UTTR1, tsf.t32[1]); in mt7615_set_tsf()
932 } tsf = { .t64 = timestamp, }; in mt7615_offset_tsf() local
941 mt76_wr(dev, MT_LPON_UTTR0, tsf.t32[0]); in mt7615_offset_tsf()
942 mt76_wr(dev, MT_LPON_UTTR1, tsf.t32[1]); in mt7615_offset_tsf()
/drivers/net/wireless/intel/iwlwifi/fw/api/
Dtx.h795 __le64 tsf; member
808 __le64 tsf; member
822 __le64 tsf; member
Doffload.h36 __le64 tsf; member
Dmac-cfg.h129 __le32 tsf; member
/drivers/net/wireless/ath/carl9170/
Dfwcmd.h300 __le32 tsf[2]; member
327 struct carl9170_tsf_rsp tsf; member
/drivers/net/wireless/ath/ath5k/
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()
1242 u64 tsf, bc_tstamp; in ath5k_check_ibss_tsf() local
1252 tsf = ath5k_hw_get_tsf64(ah); in ath5k_check_ibss_tsf()
1254 hw_tu = TSF_TO_TU(tsf); in ath5k_check_ibss_tsf()
1261 (unsigned long long)tsf); in ath5k_check_ibss_tsf()
1278 (unsigned long long)tsf); in ath5k_check_ibss_tsf()
1279 rxs->mactime = tsf; in ath5k_check_ibss_tsf()
[all …]
/drivers/net/wireless/mediatek/mt76/mt7921/
Dmain.c839 } tsf; in mt7921_get_tsf() local
847 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0(0)); in mt7921_get_tsf()
848 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1(0)); in mt7921_get_tsf()
852 return tsf.t64; in mt7921_get_tsf()
865 } tsf = { .t64 = timestamp, }; in mt7921_set_tsf() local
871 mt76_wr(dev, MT_LPON_UTTR0(0), tsf.t32[0]); in mt7921_set_tsf()
872 mt76_wr(dev, MT_LPON_UTTR1(0), tsf.t32[1]); in mt7921_set_tsf()
/drivers/media/pci/ngene/
Dngene-cards.c1034 .tsf = {3, 3},
1048 .tsf = {3, 3},
1063 .tsf = {3, 3},
1078 .tsf = {3, 3},
1094 .tsf = {3, 3},
1113 .tsf = { 4, 4 },

1234