Searched refs:tsf (Results 1 - 25 of 46) sorted by relevance

12

/freebsd-11-stable/sys/dev/ath/
H A Dif_ath_tsf.h39 ath_extend_tsf15(u_int32_t rstamp, u_int64_t tsf) argument
41 if ((tsf & 0x7fff) < rstamp)
42 tsf -= 0x8000;
44 return ((tsf &~ 0x7fff) | rstamp);
52 ath_extend_tsf32(u_int32_t rstamp, u_int64_t tsf) argument
54 u_int32_t tsf_low = tsf & 0xffffffff;
55 u_int64_t tsf64 = (tsf & ~0xffffffffULL) | rstamp;
73 ath_extend_tsf(struct ath_softc *sc, u_int32_t rstamp, u_int64_t tsf) argument
76 return ath_extend_tsf32(rstamp, tsf);
78 return ath_extend_tsf15(rstamp, tsf);
[all...]
H A Dif_athdfs.h40 uint64_t tsf, struct ath_rx_status *rxstat);
H A Dif_ath_tdma.c179 "%s: nexttbtt=%u (0x%08x), nexttbtt tsf=%lld (0x%08llx)\n",
364 u_int64_t tsf, rstamp, nextslot, nexttbtt, nexttbtt_full; local
395 tsf = ath_hal_gettsf64(ah);
396 rstamp = ath_extend_tsf(sc, rs->rs_tstamp, tsf);
477 "rs->rstamp %llu rstamp %llu tsf %llu txtime %d, nextslot %llu, "
481 (unsigned long long) tsf, txtime,
486 (unsigned long long) le64toh(ni->ni_tstamp.tsf),
487 (unsigned long long) le64toh(ni->ni_tstamp.tsf));
516 t.beacon_tsf = htobe64(le64toh(ni->ni_tstamp.tsf));
517 t.tsf64 = htobe64(tsf);
577 uint64_t tsf; local
[all...]
H A Dif_ath_rx.h61 HAL_STATUS status, uint64_t tsf, int nf, HAL_RX_QUEUE qtype,
H A Dif_ath_beacon.c924 u_int64_t tsf, tsf_beacon; local
994 tsf = ath_hal_gettsf64(ah);
995 tsftu = TSF_TO_TU(tsf>>32, tsf) + FUDGE;
998 "%s: beacon tsf=%llu, hw tsf=%llu, nexttbtt=%u, tsftu=%u\n",
1001 (unsigned long long) tsf,
1005 "%s: beacon tsf=%llu, hw tsf=%llu, tsf delt
[all...]
H A Dif_ath_rx.c432 DPRINTF(sc, ATH_DEBUG_BEACON, "%s: tsf=%llu, nexttbtt=%llu, delta=%d\n",
447 * Resync beacon timers using the tsf of the beacon
461 uint64_t tsf = ath_extend_tsf(sc, rstamp, local
464 * Handle ibss merge as needed; check the tsf on the
468 * is determined by the tsf. Note that hardware
473 if (le64toh(ni->ni_tstamp.tsf) >= tsf) {
475 "ibss merge, rstamp %u tsf %ju "
476 "tstamp %ju\n", rstamp, (uintmax_t)tsf,
477 (uintmax_t)ni->ni_tstamp.tsf);
487 ath_rx_tap_vendor(struct ath_softc *sc, struct mbuf *m, const struct ath_rx_status *rs, u_int64_t tsf, int16_t nf) argument
552 ath_rx_tap(struct ath_softc *sc, struct mbuf *m, const struct ath_rx_status *rs, u_int64_t tsf, int16_t nf) argument
633 ath_rx_pkt(struct ath_softc *sc, struct ath_rx_status *rs, HAL_STATUS status, uint64_t tsf, int nf, HAL_RX_QUEUE qtype, struct ath_buf *bf, struct mbuf *m) argument
1018 u_int64_t tsf; local
[all...]
H A Dif_ath_rx_edma.c355 * XXX: If we read the tsf/channoise here and then pass it in,
384 uint64_t tsf; local
388 tsf = ath_hal_gettsf64(ah);
516 uint64_t tsf; local
531 tsf = ath_hal_gettsf64(sc->sc_ah);
554 if (ath_rx_pkt(sc, rs, bf->bf_rxstatus, tsf, nf, qtype, bf, m))
559 sc->sc_lastrx = tsf;
612 * XXX: If we read the tsf/channoise here and then pass it in,
/freebsd-11-stable/contrib/ntp/include/
H A Dtimevalops.h35 # define TVUTOTSF(tvu, tsf) \
36 ((tsf) = ustotslo[(tvu) & 0xff] \
40 # define TVUTOTSF(tvu, tsf) \
41 ((tsf) = (u_int32) \
62 # define TSFTOTVU(tsf, tvu) \
63 ((tvu) = (tstoushi[((tsf) >> 24) & 0xff] \
64 + tstousmid[((tsf) >> 16) & 0xff] \
65 + tstouslo[((tsf) >> 9) & 0x7f] \
68 # define TSFTOTVU(tsf, tvu) \
70 (((u_int64)(tsf) * MICROSECOND
[all...]
/freebsd-11-stable/contrib/ntp/libntp/
H A Dtimespecops.c25 # define FTOTVN(tsf) \
27 (((u_int64)(tsf) * NANOSECONDS + 0x80000000) >> 32))
34 # define FTOTVN(tsf) \
35 ((int32)((tsf) / NSECFRAC + 0.5))
/freebsd-11-stable/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) argument
67 if (tsf == HAL_GEN_TIMER_TSF) {
82 if ((tsf == HAL_GEN_TIMER_TSF2) && !ahp->ah_enable_tsf2) {
134 * Starting from Jupiter, each generic timer can select which tsf to
135 * use. But we still follow the old rule, 0 - 7 use tsf and 8 - 15
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,
175 ar9300_proc_rx_desc(struct ath_hal *ah, struct ath_desc *ds, u_int32_t pa, struct ath_desc *nds, u_int64_t tsf, struct ath_rx_status *rxs) argument
H A Dar9300_misc.c304 * Get the current hardware tsf for stamlme
309 u_int64_t tsf; local
312 tsf = OS_REG_READ(ah, AR_TSF_U32);
313 tsf = (tsf << 32) | OS_REG_READ(ah, AR_TSF_L32);
314 return tsf;
318 ar9300_set_tsf64(struct ath_hal *ah, u_int64_t tsf) argument
320 OS_REG_WRITE(ah, AR_TSF_L32, (tsf & 0xffffffff));
321 OS_REG_WRITE(ah, AR_TSF_U32, ((tsf >> 32) & 0xffffffff));
325 * Get the current hardware tsf fo
616 u_int32_t tsf = 0, j, next_start_us = 0; local
[all...]
/freebsd-11-stable/sys/dev/iwm/
H A Dif_iwm_mac_ctxt.c391 "BEACON: tsf: %llu, ni_intval=%d\n",
392 (unsigned long long) le64toh(ni->ni_tstamp.tsf),
397 uint64_t tsf; local
423 tsf = le64toh(ni->ni_tstamp.tsf);
425 ctxt_sta->dtim_tsf = htole64(tsf + dtim_offs);
426 ctxt_sta->dtim_time = htole32(tsf + dtim_offs);
/freebsd-11-stable/sys/net80211/
H A Dieee80211_tdma.c376 * Record tsf of last beacon. NB: this must be
574 * Slave tsf synchronization to station
587 uint32_t rstamp = (uint32_t) le64toh(rs->tsf);
607 le64toh(ni->ni_tstamp.tsf) > vap->iv_bss->ni_tstamp.tsf) {
615 "slot %u collision rxtsf %llu tsf %llu\n",
617 (unsigned long long) le64toh(ni->ni_tstamp.tsf),
618 vap->iv_bss->ni_tstamp.tsf);
H A Dieee80211_scan.h269 u_int64_t tsf; member in union:ieee80211_scan_entry::__anon12373
/freebsd-11-stable/sys/dev/ath/ath_dfs/null/
H A Ddfs_null.c178 uint64_t tsf, struct ath_rx_status *rxstat)
177 ath_dfs_process_phy_err(struct ath_softc *sc, struct mbuf *m, uint64_t tsf, struct ath_rx_status *rxstat) argument
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5211/
H A Dar5211_recv.c208 uint32_t pa, struct ath_desc *nds, uint64_t tsf,
207 ar5211ProcRxDesc(struct ath_hal *ah, struct ath_desc *ds, uint32_t pa, struct ath_desc *nds, uint64_t tsf, struct ath_rx_status *rs) argument
/freebsd-11-stable/contrib/wpa/wpa_supplicant/
H A Dbss.h98 u64 tsf; member in struct:wpa_bss
/freebsd-11-stable/contrib/wpa/src/drivers/
H A Ddriver_nl80211_scan.c771 r->tsf = nla_get_u64(bss[NL80211_BSS_TSF]);
773 u64 tsf = nla_get_u64(bss[NL80211_BSS_BEACON_TSF]); local
774 if (tsf > r->tsf)
775 r->tsf = tsf;
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5210/
H A Dar5210_recv.c214 uint32_t pa, struct ath_desc *nds, uint64_t tsf,
213 ar5210ProcRxDesc(struct ath_hal *ah, struct ath_desc *ds, uint32_t pa, struct ath_desc *nds, uint64_t tsf, struct ath_rx_status *rs) argument
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5212/
H A Dar5212_recv.c247 uint32_t pa, struct ath_desc *nds, uint64_t tsf,
246 ar5212ProcRxDesc(struct ath_hal *ah, struct ath_desc *ds, uint32_t pa, struct ath_desc *nds, uint64_t tsf, struct ath_rx_status *rs) argument
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5416/
H A Dar5416_recv.c170 uint32_t pa, struct ath_desc *nds, uint64_t tsf,
169 ar5416ProcRxDesc(struct ath_hal *ah, struct ath_desc *ds, uint32_t pa, struct ath_desc *nds, uint64_t tsf, struct ath_rx_status *rs) argument
H A Dar5416_reset.c93 uint64_t tsf = 0; local
172 tsf = ar5416GetTsf64(ah);
183 if (tsf)
184 ar5416SetTsf64(ah, tsf);
217 if (AR_SREV_HOWL(ah) && (ar5416GetTsf64(ah) < tsf)) {
218 tsf += 1500;
219 ar5416SetTsf64(ah, tsf);
/freebsd-11-stable/sys/dev/rtwn/
H A Dif_rtwn.c1168 uint64_t tsf; local
1178 memcpy(&tsf, ni->ni_tstamp.data, 8);
1179 tsf = le64toh(tsf);
1180 tsf = tsf - (tsf % (vap->iv_bss->ni_intval * IEEE80211_DUR_TU));
1181 tsf -= IEEE80211_DUR_TU;
1182 rtwn_write_4(sc, R92C_TSFTR + 0, tsf);
1183 rtwn_write_4(sc, R92C_TSFTR + 4, tsf >> 3
[all...]

Completed in 554 milliseconds

12