Home
last modified time | relevance | path

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

/netbsd-src/external/bsd/ntp/dist/include/
H A Dtimevalops.h37 # define TVUTOTSF(tvu, tsf) \ argument
38 ((tsf) = ustotslo[(tvu) & 0xff] \
42 # define TVUTOTSF(tvu, tsf) \ argument
43 ((tsf) = (u_int32) \
64 # define TSFTOTVU(tsf, tvu) \ argument
65 ((tvu) = (tstoushi[((tsf) >> 24) & 0xff] \
66 + tstousmid[((tsf) >> 16) & 0xff] \
67 + tstouslo[((tsf) >> 9) & 0x7f] \
70 # define TSFTOTVU(tsf, tvu) \ argument
72 (((u_int64)(tsf) * MICROSECONDS + 0x80000000) >> 32))
[all …]
/netbsd-src/external/bsd/ntp/dist/tests/libntp/
H A Dtimespecops.c28 static u_int32 my_tsf_to_tick(u_int32 tsf);
201 my_tsf_to_tick(u_int32 tsf) in my_tsf_to_tick() argument
206 return (u_int32)(( ((u_int64)(tsf)) * 1000000000 + 0x80000000) >> 32); in my_tsf_to_tick()
208 return (u_int32)(double(tsf) / 4.294967296 + 0.5); in my_tsf_to_tick()
694 u_int32 tsf; in test_FromLFPbittest() local
695 for (tsf = 0; tsf < ~((u_int32)(1000)); tsf += 1000) { in test_FromLFPbittest()
696 struct timespec E = timespec_init(1, my_tsf_to_tick(tsf)); in test_FromLFPbittest()
697 l_fp a = l_fp_init(1, tsf); in test_FromLFPbittest()
/netbsd-src/external/bsd/ntp/dist/libntp/
H A Dtimespecops.c27 # define FTOTVN(tsf) \ argument
29 (((u_int64)(tsf) * NANOSECONDS + 0x80000000) >> 32))
36 # define FTOTVN(tsf) \ argument
37 ((int32)((tsf) / NSECFRAC + 0.5))
/netbsd-src/sys/dev/ic/
H A Dath.c923 u_int64_t tsf = ath_hal_gettsf64(sc->sc_ah); in ath_bmiss_proc() local
928 __func__, tsf, tsf - lastrx, lastrx, in ath_bmiss_proc()
937 if (tsf - lastrx > ic->ic_bmisstimeout*1024) { in ath_bmiss_proc()
1447 u_int64_t tsf; in ath_start() local
1450 tsf = ath_hal_gettsf64(ah); in ath_start()
1452 tsf += 100; in ath_start()
1454 tstamp[0] = htole32(tsf & 0xffffffff); in ath_start()
1455 tstamp[1] = htole32(tsf >> 32); in ath_start()
2479 u_int64_t tsf; in ath_beacon_config() local
2513 tsf = ath_hal_gettsf64(ah); in ath_beacon_config()
[all …]
H A Darn5008.c729 uint64_t tsf; in ar5008_rx_radiotap() local
735 tsf = AR_READ(sc, AR_TSF_U32); in ar5008_rx_radiotap()
736 tsf = tsf << 32 | AR_READ(sc, AR_TSF_L32); in ar5008_rx_radiotap()
737 if ((tsf & 0x7fff) < tstamp) in ar5008_rx_radiotap()
738 tsf -= 0x8000; in ar5008_rx_radiotap()
739 tsf = (tsf & ~0x7fff) | tstamp; in ar5008_rx_radiotap()
742 tap->wr_tsft = htole64(tsf); in ar5008_rx_radiotap()
H A Darn9003.c880 uint64_t tsf; in ar9003_rx_radiotap() local
886 tsf = AR_READ(sc, AR_TSF_U32); in ar9003_rx_radiotap()
887 tsf = tsf << 32 | AR_READ(sc, AR_TSF_L32); in ar9003_rx_radiotap()
888 if ((tsf & 0x7fff) < tstamp) in ar9003_rx_radiotap()
889 tsf -= 0x8000; in ar9003_rx_radiotap()
890 tsf = (tsf & ~0x7fff) | tstamp; in ar9003_rx_radiotap()
893 tap->wr_tsft = htole64(tsf); in ar9003_rx_radiotap()
H A Dathvar.h551 #define ath_hal_rxprocdesc(_ah, _ds, _dspa, _dsnext, tsf, a5) \
552 ((*(_ah)->ah_procRxDesc)((_ah), (_ds), (_dspa), (_dsnext), (tsf), (a5)))
H A Dbwfm.c2284 uint64_t tsf; in bwfm_scan_node() local
2286 tsf = 0; in bwfm_scan_node()
2310 scan.sp_tstamp = (uint8_t *)&tsf; in bwfm_scan_node()
H A Drtw.c3748 uint64_t tsf = rtw_tsf_extend(&sc->sc_regs, rstamp); in rtw_recv_mgmt() local
3749 if (le64toh(ni->ni_tstamp.tsf) >= tsf) in rtw_recv_mgmt()
H A Datw.c2250 if (le64toh(ni->ni_tstamp.tsf) >= atw_get_tsft(sc)) in atw_recv_mgmt()
2444 tsft = le64toh(ic->ic_bss->ni_tstamp.tsf); in atw_predict_beacon()
/netbsd-src/sys/external/isc/atheros_hal/dist/ar5416/
H A Dar5416_recv.c93 uint32_t pa, struct ath_desc *nds, uint64_t tsf, in ar5416ProcRxDesc() argument
/netbsd-src/sys/dev/pci/
H A Dif_rtwn.c1176 uint64_t tsf; in rtwn_tsf_sync_enable() local
1188 tsf = ni->ni_tstamp.tsf; in rtwn_tsf_sync_enable()
1189 tsf = le64toh(tsf); in rtwn_tsf_sync_enable()
1190 tsf = tsf - (tsf % (ni->ni_intval * IEEE80211_DUR_TU)); in rtwn_tsf_sync_enable()
1191 tsf -= IEEE80211_DUR_TU; in rtwn_tsf_sync_enable()
1192 rtwn_write_4(sc, R92C_TSFTR + 0, (uint32_t)tsf); in rtwn_tsf_sync_enable()
1193 rtwn_write_4(sc, R92C_TSFTR + 4, (uint32_t)(tsf >> 32)); in rtwn_tsf_sync_enable()
H A Dif_wpi.c2521 struct wpi_cmd_tsf tsf; in wpi_enable_tsf() local
2524 memset(&tsf, 0, sizeof tsf); in wpi_enable_tsf()
2525 memcpy(&tsf.tstamp, ni->ni_tstamp.data, sizeof (uint64_t)); in wpi_enable_tsf()
2526 tsf.bintval = htole16(ni->ni_intval); in wpi_enable_tsf()
2527 tsf.lintval = htole16(10); in wpi_enable_tsf()
2531 mod = le64toh(tsf.tstamp) % val; in wpi_enable_tsf()
2532 tsf.binitval = htole32((uint32_t)(val - mod)); in wpi_enable_tsf()
2535 ni->ni_intval, le64toh(tsf.tstamp), (uint32_t)(val - mod))); in wpi_enable_tsf()
2537 if (wpi_cmd(sc, WPI_CMD_TSF, &tsf, sizeof tsf, 1) != 0) in wpi_enable_tsf()
H A Dif_wpireg.h574 uint64_t tsf; member
H A Dif_iwnreg.h1287 uint64_t tsf; member
1448 uint32_t tsf; member
H A Dif_iwm.c5783 uint64_t tsf; in iwm_mac_ctxt_cmd_fill_sta()
5786 tsf = le64toh(ni->ni_tstamp.tsf); in iwm_mac_ctxt_cmd_fill_sta()
5790 sta->dtim_tsf = htole64(tsf + dtim_off); in iwm_mac_ctxt_cmd_fill_sta()
7154 aprint_error_dev(sc->sc_dev, "%08X | tsf low\n", t.tsf_low); in iwm_nic_error()
7155 aprint_error_dev(sc->sc_dev, "%08X | tsf hi\n", t.tsf_hi); in iwm_nic_error()
5782 uint64_t tsf; iwm_mac_ctxt_cmd_fill_sta() local
H A Dif_iwmreg.h4801 uint64_t tsf; member
H A Dif_iwi.c2676 if (ic->ic_opmode == IEEE80211_M_IBSS && ni->ni_tstamp.tsf == 0) in iwi_auth_and_assoc()
/netbsd-src/sys/external/isc/atheros_hal/dist/ar5211/
H A Dar5211_recv.c204 uint32_t pa, struct ath_desc *nds, uint64_t tsf, in ar5211ProcRxDesc() argument
/netbsd-src/sys/external/isc/atheros_hal/dist/ar5210/
H A Dar5210_recv.c210 uint32_t pa, struct ath_desc *nds, uint64_t tsf, in ar5210ProcRxDesc() argument
/netbsd-src/sys/external/isc/atheros_hal/dist/ar5212/
H A Dar5212_recv.c238 uint32_t pa, struct ath_desc *nds, uint64_t tsf, in ar5212ProcRxDesc() argument
/netbsd-src/sys/net80211/
H A Dieee80211_node.h132 u_int64_t tsf; member
H A DCHANGES571 the tsf of the last recv'd beacon frame
/netbsd-src/sys/dev/usb/
H A Dif_urtwn.c1768 uint64_t tsf; in urtwn_tsf_sync_enable() local
1783 tsf = ni->ni_tstamp.tsf; in urtwn_tsf_sync_enable()
1784 tsf = le64toh(tsf); in urtwn_tsf_sync_enable()
1785 tsf = tsf - (tsf % (ni->ni_intval * IEEE80211_DUR_TU)); in urtwn_tsf_sync_enable()
1786 tsf -= IEEE80211_DUR_TU; in urtwn_tsf_sync_enable()
1787 urtwn_write_4(sc, R92C_TSFTR + 0, (uint32_t)tsf); in urtwn_tsf_sync_enable()
[all...]
/netbsd-src/sys/external/isc/atheros_hal/dist/
H A Dah.h766 struct ath_desc *next, uint64_t tsf,