Home
last modified time | relevance | path

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

123

/drivers/staging/vt6656/
Dcard.c606 u64 vnt_get_next_tbtt(u64 tsf, u16 beacon_interval) in vnt_get_next_tbtt() argument
616 do_div(tsf, beacon_int); in vnt_get_next_tbtt()
617 tsf += 1; in vnt_get_next_tbtt()
618 tsf *= beacon_int; in vnt_get_next_tbtt()
621 return tsf; in vnt_get_next_tbtt()
675 void vnt_update_next_tbtt(struct vnt_private *priv, u64 tsf, in vnt_update_next_tbtt() argument
680 tsf = vnt_get_next_tbtt(tsf, beacon_interval); in vnt_update_next_tbtt()
682 data[0] = (u8)tsf; in vnt_update_next_tbtt()
683 data[1] = (u8)(tsf >> 8); in vnt_update_next_tbtt()
684 data[2] = (u8)(tsf >> 16); in vnt_update_next_tbtt()
[all …]
Dint.h44 __le64 tsf; member
Dint.c161 priv->current_tsf = le64_to_cpu(int_data->tsf); in vnt_int_process_data()
/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.c140 u8 *sample_buf, u64 tsf, u16 freq, int chan_type);
146 u64 tsf, u16 freq, int chan_type) in ath_cmn_process_ht20_fft() argument
182 fft_sample_20.tsf = __cpu_to_be64(tsf); in ath_cmn_process_ht20_fft()
250 u64 tsf, u16 freq, int chan_type) in ath_cmn_process_ht20_40_fft() argument
322 fft_sample_40.tsf = __cpu_to_be64(tsf); in ath_cmn_process_ht20_40_fft()
497 struct ath_rx_status *rs, u64 tsf) in ath_cmn_process_fft() argument
651 tsf, freq, chan_type); in ath_cmn_process_fft()
664 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.c1427 u32 tsf, target_tsf; in ath9k_update_p2p_ps_timer() local
1434 tsf = ath9k_hw_gettsf32(sc->sc_ah); in ath9k_update_p2p_ps_timer()
1442 if (target_tsf - tsf < ATH_P2P_PS_STOP_TIME) in ath9k_update_p2p_ps_timer()
1443 target_tsf = tsf + ATH_P2P_PS_STOP_TIME; in ath9k_update_p2p_ps_timer()
1446 __func__, avp->noa.absent, tsf, target_tsf, in ath9k_update_p2p_ps_timer()
1447 (target_tsf - tsf) / 1000); in ath9k_update_p2p_ps_timer()
1455 u32 tsf; in ath9k_update_p2p_ps() local
1468 tsf = ath9k_hw_gettsf32(sc->sc_ah); in ath9k_update_p2p_ps()
1469 ieee80211_parse_p2p_noa(&vif->bss_conf.p2p_noa_attr, &avp->noa, tsf); in ath9k_update_p2p_ps()
1561 u32 tsf; in ath9k_p2p_ps_timer() local
[all …]
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.c788 u64 tsf) in ath9k_process_tsf() argument
790 u32 tsf_lower = tsf & 0xffffffff; in ath9k_process_tsf()
792 rxs->mactime = (tsf & ~0xffffffffULL) | rs->rs_tstamp; in ath9k_process_tsf()
811 bool *decrypt_error, u64 tsf) in ath9k_rx_skb_preprocess() argument
862 ath9k_process_tsf(rx_stats, rx_status, tsf); in ath9k_rx_skb_preprocess()
1007 u64 tsf = 0; in ath_rx_tasklet() local
1020 tsf = ath9k_hw_gettsf64(ah); in ath_rx_tasklet()
1051 &decrypt_error, tsf); in ath_rx_tasklet()
Dcommon-spectral.h163 struct ath_rx_status *rs, u64 tsf);
Dmain.c1838 u64 tsf; in ath9k_get_tsf() local
1844 tsf = ath9k_hw_gettsf64(sc->sc_ah); in ath9k_get_tsf()
1846 tsf = sc->cur_chan->tsf_val + in ath9k_get_tsf()
1849 tsf += le64_to_cpu(avp->tsf_adjust); in ath9k_get_tsf()
1853 return tsf; in ath9k_get_tsf()
1858 u64 tsf) in ath9k_set_tsf() argument
1865 tsf -= le64_to_cpu(avp->tsf_adjust); in ath9k_set_tsf()
1868 ath9k_hw_settsf64(sc->sc_ah, tsf); in ath9k_set_tsf()
1869 avp->chanctx->tsf_val = tsf; in ath9k_set_tsf()
Dwmi.h40 __be64 tsf; member
/drivers/net/wireless/broadcom/b43legacy/
Ddebugfs.c82 u64 tsf; in tsf_read_file() local
84 b43legacy_tsf_read(dev, &tsf); in tsf_read_file()
86 (unsigned int)((tsf & 0xFFFFFFFF00000000ULL) >> 32), in tsf_read_file()
87 (unsigned int)(tsf & 0xFFFFFFFFULL)); in tsf_read_file()
95 u64 tsf; in tsf_write_file() local
97 if (sscanf(buf, "%llu", (unsigned long long *)(&tsf)) != 1) in tsf_write_file()
99 b43legacy_tsf_write(dev, tsf); in tsf_write_file()
340 B43legacy_DEBUGFS_FOPS(tsf, tsf_read_file, tsf_write_file, 1);
437 ADD_FILE(tsf, 0600); in b43legacy_debugfs_add_device()
Dmain.h100 void b43legacy_tsf_read(struct b43legacy_wldev *dev, u64 *tsf);
101 void b43legacy_tsf_write(struct b43legacy_wldev *dev, u64 tsf);
Dmain.c409 void b43legacy_tsf_read(struct b43legacy_wldev *dev, u64 *tsf) in b43legacy_tsf_read() argument
431 *tsf = high; in b43legacy_tsf_read()
432 *tsf <<= 32; in b43legacy_tsf_read()
433 *tsf |= low; in b43legacy_tsf_read()
455 *tsf = v3; in b43legacy_tsf_read()
456 *tsf <<= 48; in b43legacy_tsf_read()
459 *tsf |= tmp; in b43legacy_tsf_read()
462 *tsf |= tmp; in b43legacy_tsf_read()
463 *tsf |= v0; in b43legacy_tsf_read()
486 static void b43legacy_tsf_write_locked(struct b43legacy_wldev *dev, u64 tsf) in b43legacy_tsf_write_locked() argument
[all …]
/drivers/net/wireless/ath/
Dspectral_common.h61 __be64 tsf; member
75 __be64 tsf; member
103 __be64 tsf; member
/drivers/net/wireless/ath/ath10k/
Dspectral.h52 size_t bin_len, u64 tsf);
64 size_t bin_len, u64 tsf) in ath10k_spectral_process_fft() argument
Dspectral.c62 size_t bin_len, u64 tsf) in ath10k_spectral_process_fft() argument
142 fft_sample->tsf = __cpu_to_be64(tsf); in ath10k_spectral_process_fft()
/drivers/net/wireless/broadcom/b43/
Dmain.h76 void b43_tsf_read(struct b43_wldev *dev, u64 * tsf);
77 void b43_tsf_write(struct b43_wldev *dev, u64 tsf);
/drivers/media/pci/ngene/
Dngene-cards.c625 .tsf = {3, 3},
639 .tsf = {3, 3},
654 .tsf = {3, 3},
669 .tsf = {3, 3},
685 .tsf = {3, 3},
704 .tsf = { 4, 4 },
/drivers/net/wireless/ath/ath5k/
Dbase.c203 u64 tsf = ath5k_hw_get_tsf64(ah); in ath5k_extend_tsf() local
205 if ((tsf & 0x7fff) < rstamp) in ath5k_extend_tsf()
206 tsf -= 0x8000; in ath5k_extend_tsf()
208 return (tsf & ~0x7fff) | rstamp; in ath5k_extend_tsf()
1244 u64 tsf, bc_tstamp; in ath5k_check_ibss_tsf() local
1254 tsf = ath5k_hw_get_tsf64(ah); in ath5k_check_ibss_tsf()
1256 hw_tu = TSF_TO_TU(tsf); in ath5k_check_ibss_tsf()
1263 (unsigned long long)tsf); in ath5k_check_ibss_tsf()
1280 (unsigned long long)tsf); in ath5k_check_ibss_tsf()
1281 rxs->mactime = tsf; in ath5k_check_ibss_tsf()
[all …]
/drivers/net/wireless/ath/carl9170/
Dfwcmd.h300 __le32 tsf[2]; member
327 struct carl9170_tsf_rsp tsf; member
/drivers/net/wireless/intel/iwlwifi/mvm/
Dfw-api-tx.h697 __le64 tsf; member
710 __le64 tsf; member
/drivers/net/wireless/ralink/rt2x00/
Drt2400pci.c1224 u64 tsf; in rt2400pci_fill_rxdone() local
1247 tsf = rt2x00dev->ops->hw->get_tsf(rt2x00dev->hw, NULL); in rt2400pci_fill_rxdone()
1249 rx_high = upper_32_bits(tsf); in rt2400pci_fill_rxdone()
1251 if ((u32)tsf <= rx_low) in rt2400pci_fill_rxdone()
1695 u64 tsf; in rt2400pci_get_tsf() local
1699 tsf = (u64) rt2x00_get_field32(reg, CSR17_HIGH_TSFTIMER) << 32; in rt2400pci_get_tsf()
1701 tsf |= rt2x00_get_field32(reg, CSR16_LOW_TSFTIMER); in rt2400pci_get_tsf()
1703 return tsf; in rt2400pci_get_tsf()
/drivers/net/wireless/zydas/zd1211rw/
Dzd_chip.c1547 u64 tsf; in zd_chip_get_tsf() local
1556 tsf = values[1]; in zd_chip_get_tsf()
1557 tsf = (tsf << 32) | values[0]; in zd_chip_get_tsf()
1559 return tsf; in zd_chip_get_tsf()

123