Home
last modified time | relevance | path

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

12

/dragonfly/sys/dev/netif/ath/ath/
H A Dif_ath_tsf.h39 ath_extend_tsf15(u_int32_t rstamp, u_int64_t tsf) in ath_extend_tsf15() argument
41 if ((tsf & 0x7fff) < rstamp) in ath_extend_tsf15()
42 tsf -= 0x8000; in ath_extend_tsf15()
44 return ((tsf &~ 0x7fff) | rstamp); in ath_extend_tsf15()
52 ath_extend_tsf32(u_int32_t rstamp, u_int64_t tsf) in ath_extend_tsf32() argument
54 u_int32_t tsf_low = tsf & 0xffffffff; in ath_extend_tsf32()
55 u_int64_t tsf64 = (tsf & ~0xffffffffULL) | rstamp; in ath_extend_tsf32()
73 ath_extend_tsf(struct ath_softc *sc, u_int32_t rstamp, u_int64_t tsf) in ath_extend_tsf() argument
76 return ath_extend_tsf32(rstamp, tsf); in ath_extend_tsf()
78 return ath_extend_tsf15(rstamp, tsf); in ath_extend_tsf()
H A Dif_ath_tdma.c398 tsf = ath_hal_gettsf64(ah); in ath_tdma_update()
399 rstamp = ath_extend_tsf(sc, rs->rs_tstamp, tsf); in ath_tdma_update()
484 (unsigned long long) tsf, txtime, in ath_tdma_update()
520 t.tsf64 = htobe64(tsf); in ath_tdma_update()
580 uint64_t tsf; in ath_tdma_update() local
583 tsf = ath_hal_gettsf64(ah); in ath_tdma_update()
584 ath_hal_settsf64(ah, tsf + tsfdelta); in ath_tdma_update()
588 (unsigned long long) tsf, in ath_tdma_update()
597 t.tsf64_old = htobe64(tsf); in ath_tdma_update()
598 t.tsf64_new = htobe64(tsf + tsfdelta); in ath_tdma_update()
[all …]
H A Dif_ath_beacon.c947 u_int64_t tsf, tsf_beacon; in ath_beacon_config() local
1017 tsf = ath_hal_gettsf64(ah); in ath_beacon_config()
1018 tsftu = TSF_TO_TU(tsf>>32, tsf) + FUDGE; in ath_beacon_config()
1024 (unsigned long long) tsf, in ath_beacon_config()
1031 (unsigned long long) tsf, in ath_beacon_config()
1032 (long long) tsf - in ath_beacon_config()
1074 (long long) ((long long)nexttbtt * 1024LL) - (long long)tsf); in ath_beacon_config()
1126 , tsf in ath_beacon_config()
1163 tsf = ath_hal_gettsf64(ah); in ath_beacon_config()
1164 tsftu = TSF_TO_TU(tsf>>32, tsf) + FUDGE; in ath_beacon_config()
H A Dif_ath_rx.c474 uint64_t tsf = ath_extend_tsf(sc, rstamp, in ath_recv_mgmt() local
486 if (le64toh(ni->ni_tstamp.tsf) >= tsf) { in ath_recv_mgmt()
489 "tstamp %ju\n", rstamp, (uintmax_t)tsf, in ath_recv_mgmt()
490 (uintmax_t)ni->ni_tstamp.tsf); in ath_recv_mgmt()
501 const struct ath_rx_status *rs, u_int64_t tsf, int16_t nf) in ath_rx_tap_vendor() argument
566 const struct ath_rx_status *rs, u_int64_t tsf, int16_t nf) in ath_rx_tap() argument
647 uint64_t tsf, int nf, HAL_RX_QUEUE qtype, struct ath_buf *bf, in ath_rx_pkt() argument
661 rstamp = ath_extend_tsf(sc, rs->rs_tstamp, tsf); in ath_rx_pkt()
1035 u_int64_t tsf; in ath_rx_proc() local
1057 tsf = ath_hal_gettsf64(ah); in ath_rx_proc()
[all …]
H A Dif_ath_rx_edma.c390 uint64_t tsf; in ath_edma_recv_proc_queue() local
394 tsf = ath_hal_gettsf64(ah); in ath_edma_recv_proc_queue()
522 uint64_t tsf; in ath_edma_recv_proc_deferred_queue() local
537 tsf = ath_hal_gettsf64(sc->sc_ah); in ath_edma_recv_proc_deferred_queue()
560 if (ath_rx_pkt(sc, rs, bf->bf_rxstatus, tsf, nf, qtype, bf, m)) in ath_edma_recv_proc_deferred_queue()
565 sc->sc_lastrx = tsf; in ath_edma_recv_proc_deferred_queue()
H A Dif_athdfs.h40 uint64_t tsf, struct ath_rx_status *rxstat);
H A Dif_ath_rx.h61 HAL_STATUS status, uint64_t tsf, int nf, HAL_RX_QUEUE qtype,
/dragonfly/sys/dev/netif/iwm/
H A Dif_iwm_mac_ctxt.c384 (unsigned long long) le64toh(ni->ni_tstamp.tsf), in iwm_mac_ctxt_cmd_fill_sta()
389 uint64_t tsf; in iwm_mac_ctxt_cmd_fill_sta() local
415 tsf = le64toh(ni->ni_tstamp.tsf); in iwm_mac_ctxt_cmd_fill_sta()
417 ctxt_sta->dtim_tsf = htole64(tsf + dtim_offs); in iwm_mac_ctxt_cmd_fill_sta()
418 ctxt_sta->dtim_time = htole32(tsf + dtim_offs); in iwm_mac_ctxt_cmd_fill_sta()
/dragonfly/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_timer.c61 ar9300_alloc_generic_timer(struct ath_hal *ah, HAL_GEN_TIMER_DOMAIN tsf) in ar9300_alloc_generic_timer() argument
67 if (tsf == HAL_GEN_TIMER_TSF) { in ar9300_alloc_generic_timer()
82 if ((tsf == HAL_GEN_TIMER_TSF2) && !ahp->ah_enable_tsf2) { in ar9300_alloc_generic_timer()
H A Dar9300_misc.c309 u_int64_t tsf; in ar9300_get_tsf64() local
312 tsf = OS_REG_READ(ah, AR_TSF_U32); in ar9300_get_tsf64()
313 tsf = (tsf << 32) | OS_REG_READ(ah, AR_TSF_L32); in ar9300_get_tsf64()
314 return tsf; in ar9300_get_tsf64()
318 ar9300_set_tsf64(struct ath_hal *ah, u_int64_t tsf) in ar9300_set_tsf64() argument
320 OS_REG_WRITE(ah, AR_TSF_L32, (tsf & 0xffffffff)); in ar9300_set_tsf64()
321 OS_REG_WRITE(ah, AR_TSF_U32, ((tsf >> 32) & 0xffffffff)); in ar9300_set_tsf64()
616 u_int32_t tsf = 0, j, next_start_us = 0; in ar9300_set_quiet() local
620 tsf = OS_REG_READ(ah, AR_TSF_L32); in ar9300_set_quiet()
622 next_start_us += tsf; in ar9300_set_quiet()
[all …]
H A Dar9300_freebsd.h29 uint64_t tsf, struct ath_rx_status *rxs);
H A Dar9300_recv_ds.c176 u_int32_t pa, struct ath_desc *nds, u_int64_t tsf, in ar9300_proc_rx_desc() argument
/dragonfly/sys/netproto/802_11/wlan/
H A Dieee80211_tdma.c591 uint32_t rstamp = (uint32_t) le64toh(rs->tsf); in tdma_process_params()
611 le64toh(ni->ni_tstamp.tsf) > vap->iv_bss->ni_tstamp.tsf) { in tdma_process_params()
621 (unsigned long long) le64toh(ni->ni_tstamp.tsf), in tdma_process_params()
622 (unsigned long long) vap->iv_bss->ni_tstamp.tsf); in tdma_process_params()
/dragonfly/contrib/wpa_supplicant/src/drivers/
H A Ddriver_nl80211_scan.c771 r->tsf = nla_get_u64(bss[NL80211_BSS_TSF]); in nl80211_parse_bss_info()
773 u64 tsf = nla_get_u64(bss[NL80211_BSS_BEACON_TSF]); in nl80211_parse_bss_info() local
774 if (tsf > r->tsf) in nl80211_parse_bss_info()
775 r->tsf = tsf; in nl80211_parse_bss_info()
/dragonfly/sys/dev/netif/ath/ath_dfs/null/
H A Ddfs_null.c181 uint64_t tsf, struct ath_rx_status *rxstat) in ath_dfs_process_phy_err() argument
/dragonfly/contrib/wpa_supplicant/wpa_supplicant/
H A Dbss.h98 u64 tsf; member
H A Dbss.c305 dst->tsf = src->tsf; in wpa_bss_copy_res()
/dragonfly/sys/dev/netif/ath/ath_hal/ar5211/
H A Dar5211_recv.c208 uint32_t pa, struct ath_desc *nds, uint64_t tsf, in ar5211ProcRxDesc() argument
/dragonfly/sys/dev/netif/ath/ath_hal/ar5416/
H A Dar5416_reset.c93 uint64_t tsf = 0; in ar5416Reset() local
172 tsf = ar5416GetTsf64(ah); in ar5416Reset()
183 if (tsf) in ar5416Reset()
184 ar5416SetTsf64(ah, tsf); in ar5416Reset()
217 if (AR_SREV_HOWL(ah) && (ar5416GetTsf64(ah) < tsf)) { in ar5416Reset()
218 tsf += 1500; in ar5416Reset()
219 ar5416SetTsf64(ah, tsf); in ar5416Reset()
H A Dar5416_recv.c170 uint32_t pa, struct ath_desc *nds, uint64_t tsf, in ar5416ProcRxDesc() argument
/dragonfly/sys/dev/netif/ath/ath_hal/ar5210/
H A Dar5210_recv.c214 uint32_t pa, struct ath_desc *nds, uint64_t tsf, in ar5210ProcRxDesc() argument
/dragonfly/sys/netproto/802_11/
H A Dieee80211_scan.h269 u_int64_t tsf; member
H A Dieee80211_node.h183 u_int64_t tsf; member
/dragonfly/sys/dev/netif/ath/ath_hal/ar5212/
H A Dar5212_recv.c247 uint32_t pa, struct ath_desc *nds, uint64_t tsf, in ar5212ProcRxDesc() argument
/dragonfly/sys/dev/netif/bwn/bwn/
H A Dif_bwn.c6891 uint64_t tsf; in bwn_rx_radiotap() local
6901 bwn_tsf_read(mac, &tsf); in bwn_rx_radiotap()
6902 low_mactime_now = tsf; in bwn_rx_radiotap()
6903 tsf = tsf & ~0xffffULL; in bwn_rx_radiotap()
6904 tsf += le16toh(rxhdr->mac_time); in bwn_rx_radiotap()
6906 tsf -= 0x10000; in bwn_rx_radiotap()
6908 sc->sc_rx_th.wr_tsf = tsf; in bwn_rx_radiotap()
6915 bwn_tsf_read(struct bwn_mac *mac, uint64_t *tsf) in bwn_tsf_read() argument
6924 *tsf = high; in bwn_tsf_read()
6925 *tsf <<= 32; in bwn_tsf_read()
[all …]

12