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

12

/freebsd-10.0-release/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.c178 "%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, "
479 (unsigned long long) rs->rs_tstamp, rstamp, tsf, txtime,
483 le64toh(ni->ni_tstamp.tsf),
484 le64toh(ni->ni_tstamp.tsf));
513 t.beacon_tsf = htobe64(le64toh(ni->ni_tstamp.tsf));
514 t.tsf64 = htobe64(tsf);
574 uint64_t tsf; local
[all...]
H A Dif_ath_rx.h60 HAL_STATUS status, uint64_t tsf, int nf, HAL_RX_QUEUE qtype,
H A Dif_ath_rx.c333 * Resync beacon timers using the tsf of the beacon
343 uint64_t tsf = ath_extend_tsf(sc, rstamp, local
346 * Handle ibss merge as needed; check the tsf on the
350 * is determined by the tsf. Note that hardware
355 if (le64toh(ni->ni_tstamp.tsf) >= tsf) {
357 "ibss merge, rstamp %u tsf %ju "
358 "tstamp %ju\n", rstamp, (uintmax_t)tsf,
359 (uintmax_t)ni->ni_tstamp.tsf);
370 const struct ath_rx_status *rs, u_int64_t tsf, int16_
369 ath_rx_tap_vendor(struct ifnet *ifp, struct mbuf *m, const struct ath_rx_status *rs, u_int64_t tsf, int16_t nf) argument
435 ath_rx_tap(struct ifnet *ifp, struct mbuf *m, const struct ath_rx_status *rs, u_int64_t tsf, int16_t nf) argument
517 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
900 u_int64_t tsf; local
[all...]
H A Dif_ath_beacon.c918 u_int64_t tsf; local
980 tsf = ath_hal_gettsf64(ah);
981 tsftu = TSF_TO_TU(tsf>>32, tsf) + FUDGE;
1036 "%s: tsf %ju tsf:tu %u intval %u nexttbtt %u dtim %u nextdtim %u bmiss %u sleep %u cfp:period %u maxdur %u next %u timoffset %u\n"
1038 , tsf, tsftu
1074 tsf = ath_hal_gettsf64(ah);
1075 tsftu = TSF_TO_TU(tsf>>32, tsf)
[all...]
H A Dif_ath_rx_edma.c341 uint64_t tsf; local
345 tsf = ath_hal_gettsf64(ah);
474 uint64_t tsf; local
489 tsf = ath_hal_gettsf64(sc->sc_ah);
508 if (ath_rx_pkt(sc, rs, bf->bf_rxstatus, tsf, nf, qtype, bf, m))
513 sc->sc_lastrx = tsf;
/freebsd-10.0-release/contrib/ntp/libntp/
H A Dtsftomsu.c9 u_long tsf,
22 val_uf = tsf;
8 tsftomsu( u_long tsf, int round ) argument
/freebsd-10.0-release/contrib/ntp/include/
H A Dntp_unixtime.h63 #define TVUTOTSF(tvu, tsf) \
64 (tsf) = ustotslo[(tvu) & 0xff] \
110 #define TSFTOTVU(tsf, tvu) \
111 (tvu) = (tstoushi[((tsf) >> 24) & 0xff] \
112 + tstousmid[((tsf) >> 16) & 0xff] \
113 + tstouslo[((tsf) >> 9) & 0x7f] \
137 #define MSUTOTSF(msu, tsf) \
138 (tsf) = msutotsfhi[((msu) >> 5) & 0x1f] + msutotsflo[(msu) & 0x1f]
/freebsd-10.0-release/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.h28 uint64_t tsf, struct ath_rx_status *rxs);
H A Dar9300_recv_ds.c174 u_int32_t pa, struct ath_desc *nds, u_int64_t tsf,
173 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-10.0-release/contrib/wpa/wpa_supplicant/
H A Dbss.h85 u64 tsf; member in struct:wpa_bss
/freebsd-10.0-release/sys/net80211/
H A Dieee80211_tdma.c372 * Record tsf of last beacon. NB: this must be
570 * Slave tsf synchronization to station
583 uint32_t rstamp = (uint32_t) le64toh(rs->tsf);
603 le64toh(ni->ni_tstamp.tsf) > vap->iv_bss->ni_tstamp.tsf) {
611 "slot %u collision rxtsf %llu tsf %llu\n",
613 (unsigned long long) le64toh(ni->ni_tstamp.tsf),
614 vap->iv_bss->ni_tstamp.tsf);
H A Dieee80211_scan.h235 u_int64_t tsf; member in union:ieee80211_scan_entry::__anon10134
H A Dieee80211_node.h183 u_int64_t tsf; member in union:ieee80211_node::__anon10126
/freebsd-10.0-release/sys/dev/ath/ath_dfs/null/
H A Ddfs_null.c176 uint64_t tsf, struct ath_rx_status *rxstat)
175 ath_dfs_process_phy_err(struct ath_softc *sc, struct mbuf *m, uint64_t tsf, struct ath_rx_status *rxstat) argument
/freebsd-10.0-release/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-10.0-release/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-10.0-release/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-10.0-release/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.c91 uint64_t tsf = 0; local
169 tsf = ar5416GetTsf64(ah);
180 if (tsf)
181 ar5416SetTsf64(ah, tsf);
214 if (AR_SREV_HOWL(ah) && (ar5416GetTsf64(ah) < tsf)) {
215 tsf += 1500;
216 ar5416SetTsf64(ah, tsf);
/freebsd-10.0-release/sys/dev/usb/wlan/
H A Dif_urtwn.c1301 uint64_t tsf; local
1311 memcpy(&tsf, ni->ni_tstamp.data, 8);
1312 tsf = le64toh(tsf);
1313 tsf = tsf - (tsf % (vap->iv_bss->ni_intval * IEEE80211_DUR_TU));
1314 tsf -= IEEE80211_DUR_TU;
1315 urtwn_write_4(sc, R92C_TSFTR + 0, tsf);
1316 urtwn_write_4(sc, R92C_TSFTR + 4, tsf >> 3
[all...]
/freebsd-10.0-release/sys/dev/wpi/
H A Dif_wpi.c2338 struct wpi_cmd_tsf tsf; local
2341 memset(&tsf, 0, sizeof tsf);
2342 memcpy(&tsf.tstamp, ni->ni_tstamp.data, 8);
2343 tsf.bintval = htole16(ni->ni_intval);
2344 tsf.lintval = htole16(10);
2348 mod = le64toh(tsf.tstamp) % val;
2349 tsf.binitval = htole32((uint32_t)(val - mod));
2351 if (wpi_cmd(sc, WPI_CMD_TSF, &tsf, sizeof tsf,
[all...]

Completed in 170 milliseconds

12