Home
last modified time | relevance | path

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

1234

/src/sys/dev/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.c365 u_int64_t tsf, rstamp, nextslot, nexttbtt, nexttbtt_full; in ath_tdma_update() local
396 tsf = ath_hal_gettsf64(ah); in ath_tdma_update()
397 rstamp = ath_extend_tsf(sc, rs->rs_tstamp, tsf); in ath_tdma_update()
483 (unsigned long long) tsf, txtime, in ath_tdma_update()
488 (unsigned long long) le64toh(ni->ni_tstamp.tsf), in ath_tdma_update()
489 (unsigned long long) le64toh(ni->ni_tstamp.tsf)); in ath_tdma_update()
518 t.beacon_tsf = htobe64(le64toh(ni->ni_tstamp.tsf)); in ath_tdma_update()
519 t.tsf64 = htobe64(tsf); in ath_tdma_update()
559 (unsigned long long) tsf, (unsigned long long) nextslot, in ath_tdma_update()
560 (int)(nextslot - tsf), tsfdelta, nextslottu, nexttbtt, tudelta); in ath_tdma_update()
[all …]
H A Dif_ath_beacon.c936 u_int64_t tsf, tsf_beacon; in ath_beacon_config() local
1047 tsf = ath_hal_gettsf64(ah); in ath_beacon_config()
1048 tsftu = TSF_TO_TU(tsf>>32, tsf) + FUDGE; in ath_beacon_config()
1054 (unsigned long long) tsf, in ath_beacon_config()
1061 (unsigned long long) tsf, in ath_beacon_config()
1062 (long long) tsf - in ath_beacon_config()
1104 (long long) ((long long)nexttbtt * 1024LL) - (long long)tsf); in ath_beacon_config()
1156 , tsf in ath_beacon_config()
1193 tsf = ath_hal_gettsf64(ah); in ath_beacon_config()
1194 tsftu = TSF_TO_TU(tsf>>32, tsf) + FUDGE; in ath_beacon_config()
[all …]
H A Dif_ath_rx.c484 uint64_t tsf = ath_extend_tsf(sc, rstamp, in ath_recv_mgmt() local
496 if (le64toh(ni->ni_tstamp.tsf) >= tsf) { in ath_recv_mgmt()
499 "tstamp %ju\n", rstamp, (uintmax_t)tsf, in ath_recv_mgmt()
500 (uintmax_t)ni->ni_tstamp.tsf); in ath_recv_mgmt()
511 const struct ath_rx_status *rs, u_int64_t tsf, int16_t nf) in ath_rx_tap_vendor() argument
576 const struct ath_rx_status *rs, u_int64_t tsf, int16_t nf) in ath_rx_tap() argument
619 sc->sc_rx_th.wr_tsf = htole64(ath_extend_tsf(sc, rs->rs_tstamp, tsf)); in ath_rx_tap()
658 uint64_t tsf, int nf, HAL_RX_QUEUE qtype, struct ath_buf *bf, in ath_rx_pkt() argument
674 rstamp = ath_extend_tsf(sc, rs->rs_tstamp, tsf); in ath_rx_pkt()
1086 u_int64_t tsf; in ath_rx_proc() local
[all …]
H A Dif_ath_rx_edma.c418 uint64_t tsf; in ath_edma_recv_proc_queue() local
422 tsf = ath_hal_gettsf64(ah); in ath_edma_recv_proc_queue()
552 uint64_t tsf; in ath_edma_recv_proc_deferred_queue() local
567 tsf = ath_hal_gettsf64(sc->sc_ah); in ath_edma_recv_proc_deferred_queue()
590 if (ath_rx_pkt(sc, rs, bf->bf_rxstatus, tsf, nf, qtype, bf, m)) in ath_edma_recv_proc_deferred_queue()
595 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,
/src/contrib/ntp/include/
H A Dtimevalops.h35 # define TVUTOTSF(tvu, tsf) \ argument
36 ((tsf) = ustotslo[(tvu) & 0xff] \
40 # define TVUTOTSF(tvu, tsf) \ argument
41 ((tsf) = (u_int32) \
62 # define TSFTOTVU(tsf, tvu) \ argument
63 ((tvu) = (tstoushi[((tsf) >> 24) & 0xff] \
64 + tstousmid[((tsf) >> 16) & 0xff] \
65 + tstouslo[((tsf) >> 9) & 0x7f] \
68 # define TSFTOTVU(tsf, tvu) \ argument
70 (((u_int64)(tsf) * MICROSECONDS + 0x80000000) >> 32))
[all …]
/src/sys/contrib/dev/athk/
H A Dspectral_common.h62 __be64 tsf; member
76 __be64 tsf; member
104 __be64 tsf; member
123 __be32 tsf; member
/src/contrib/ntp/libntp/
H A Dtimespecops.c25 # define FTOTVN(tsf) \ argument
27 (((u_int64)(tsf) * NANOSECONDS + 0x80000000) >> 32))
34 # define FTOTVN(tsf) \ argument
35 ((int32)((tsf) / NSECFRAC + 0.5))
/src/sys/contrib/dev/rtw89/
H A Dps.c520 u64 tsf; in rtw89_p2p_noa_once_recalc() local
526 ret = rtw89_mac_port_get_tsf(rtwdev, rtwvif_link, &tsf); in rtw89_p2p_noa_once_recalc()
553 tmp = (tsf & GENMASK_ULL(63, 32)) + tmp; in rtw89_p2p_noa_once_recalc()
554 if (unlikely(tmp <= tsf)) in rtw89_p2p_noa_once_recalc()
558 tmp = (tsf & GENMASK_ULL(63, 32)) | start_time; in rtw89_p2p_noa_once_recalc()
569 if (noa_once->tsf_end > tsf) { in rtw89_p2p_noa_once_recalc()
574 clr_delay_us = min_t(u64, tsf_end - tsf, UINT_MAX); in rtw89_p2p_noa_once_recalc()
576 if (tsf_begin <= tsf) { in rtw89_p2p_noa_once_recalc()
581 set_delay_us = tsf_begin - tsf; in rtw89_p2p_noa_once_recalc()
/src/sys/dev/iwm/
H A Dif_iwm_mac_ctxt.c395 (unsigned long long) le64toh(ni->ni_tstamp.tsf), in iwm_mac_ctxt_cmd_fill_sta()
400 uint64_t tsf; in iwm_mac_ctxt_cmd_fill_sta() local
426 tsf = le64toh(ni->ni_tstamp.tsf); in iwm_mac_ctxt_cmd_fill_sta()
428 ctxt_sta->dtim_tsf = htole64(tsf + dtim_offs); in iwm_mac_ctxt_cmd_fill_sta()
429 ctxt_sta->dtim_time = htole32(tsf + dtim_offs); in iwm_mac_ctxt_cmd_fill_sta()
/src/sys/contrib/dev/athk/ath10k/
H A Dspectral.h41 size_t bin_len, u64 tsf);
53 size_t bin_len, u64 tsf) in ath10k_spectral_process_fft() argument
/src/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()
/src/sys/dev/wtap/
H A Dif_wtap.c164 uint64_t tsf = wtap_hal_get_tsf(sc->hal); in wtap_recv_mgmt() local
176 if (le64toh(ni->ni_tstamp.tsf) >= tsf) in wtap_recv_mgmt()
240 uint64_t tsf; in wtap_beacon_intrp() local
260 tsf = wtap_hal_get_tsf(sc->hal); in wtap_beacon_intrp()
262 memcpy(&wh[1], &tsf, sizeof(tsf)); in wtap_beacon_intrp()
322 ni->ni_tstamp.tsf != 0) in wtap_newstate()
/src/sys/dev/wtap/wtap_hal/
H A Dhal.c224 hal->hw.tsf += ticks_to_msecs(intval); in wtap_hal_timer_intr()
235 hal->hw.tsf = 0; in wtap_hal_reset_tsf()
245 return (hal->hw.tsf); in wtap_hal_get_tsf()
H A Dhal.h50 uint64_t tsf; member
/src/sys/contrib/dev/mediatek/mt76/
H A Dmt76x02_usb_core.c149 u64 tsf, time; in mt76x02u_restart_pre_tbtt_timer() local
157 tsf = (u64)dw0 << 32 | dw1; in mt76x02u_restart_pre_tbtt_timer()
158 dev_dbg(dev->mt76.dev, "TSF: %llu us TBTT %u us\n", tsf, tbtt); in mt76x02u_restart_pre_tbtt_timer()
H A Dmt792x_core.c253 } tsf; in mt792x_get_tsf() local
261 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0(0)); in mt792x_get_tsf()
262 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1(0)); in mt792x_get_tsf()
266 return tsf.t64; in mt792x_get_tsf()
279 } tsf = { .t64 = timestamp, }; in mt792x_set_tsf() local
285 mt76_wr(dev, MT_LPON_UTTR0(0), tsf.t32[0]); in mt792x_set_tsf()
286 mt76_wr(dev, MT_LPON_UTTR1(0), tsf.t32[1]); in mt792x_set_tsf()
/src/sys/contrib/dev/mediatek/mt76/mt7615/
H A Dmain.c904 } tsf; in mt7615_get_tsf() local
915 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0); in mt7615_get_tsf()
916 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1); in mt7615_get_tsf()
920 return tsf.t64; in mt7615_get_tsf()
932 } tsf = { .t64 = timestamp, }; in mt7615_set_tsf() local
941 mt76_wr(dev, MT_LPON_UTTR0, tsf.t32[0]); in mt7615_set_tsf()
942 mt76_wr(dev, MT_LPON_UTTR1, tsf.t32[1]); in mt7615_set_tsf()
958 } tsf = { .t64 = timestamp, }; in mt7615_offset_tsf() local
967 mt76_wr(dev, MT_LPON_UTTR0, tsf.t32[0]); in mt7615_offset_tsf()
968 mt76_wr(dev, MT_LPON_UTTR1, tsf.t32[1]); in mt7615_offset_tsf()
/src/sys/contrib/dev/iwlwifi/fw/api/
H A Dtx.h838 __le64 tsf; member
851 __le64 tsf; member
865 __le64 tsf; member
H A Doffload.h54 __le64 tsf; member
/src/sys/net80211/
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 vap->iv_bss->ni_tstamp.tsf); in tdma_process_params()
/src/sys/fs/nfsserver/
H A Dnfs_nfsdport.c1926 struct statfs *tsf; in nfsvno_statfs() local
1929 tsf = NULL; in nfsvno_statfs()
1932 tsf = malloc(sizeof(*tsf), M_TEMP, M_WAITOK | M_ZERO); in nfsvno_statfs()
1933 error = nfsrv_pnfsstatfs(tsf, vp->v_mount); in nfsvno_statfs()
1935 free(tsf, M_TEMP); in nfsvno_statfs()
1936 tsf = NULL; in nfsvno_statfs()
1941 if (tsf != NULL) { in nfsvno_statfs()
1942 sf->f_blocks = tsf->f_blocks; in nfsvno_statfs()
1943 sf->f_bavail = tsf->f_bavail; in nfsvno_statfs()
1944 sf->f_bfree = tsf->f_bfree; in nfsvno_statfs()
[all …]
/src/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dmain.c1010 } tsf; in __mt7915_get_tsf() local
1024 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0(band)); in __mt7915_get_tsf()
1025 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1(band)); in __mt7915_get_tsf()
1027 return tsf.t64; in __mt7915_get_tsf()
1055 } tsf = { .t64 = timestamp, }; in mt7915_set_tsf() local
1062 mt76_wr(dev, MT_LPON_UTTR0(band), tsf.t32[0]); in mt7915_set_tsf()
1063 mt76_wr(dev, MT_LPON_UTTR1(band), tsf.t32[1]); in mt7915_set_tsf()
1086 } tsf = { .t64 = timestamp, }; in mt7915_offset_tsf() local
1093 mt76_wr(dev, MT_LPON_UTTR0(band), tsf.t32[0]); in mt7915_offset_tsf()
1094 mt76_wr(dev, MT_LPON_UTTR1(band), tsf.t32[1]); in mt7915_offset_tsf()

1234