Home
last modified time | relevance | path

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

1234

/freebsd/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,
/freebsd/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 …]
/freebsd/sys/contrib/dev/athk/
H A Dspectral_common.h62 __be64 tsf; member
76 __be64 tsf; member
104 __be64 tsf; member
123 __be32 tsf; member
/freebsd/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))
/freebsd/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()
/freebsd/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
/freebsd/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()
/freebsd/sys/dev/wtap/
H A Dif_wtap.c167 uint64_t tsf = wtap_hal_get_tsf(sc->hal); in wtap_recv_mgmt() local
170 * Handle ibss merge as needed; check the tsf on the in wtap_recv_mgmt()
174 * is determined by the tsf. Note that hardware in wtap_recv_mgmt()
179 if (le64toh(ni->ni_tstamp.tsf) >= tsf) in wtap_recv_mgmt()
243 uint64_t tsf; in wtap_beacon_intrp() local
263 tsf = wtap_hal_get_tsf(sc->hal); in wtap_beacon_intrp()
265 memcpy(&wh[1], &tsf, sizeof(tsf)); in wtap_beacon_intrp()
325 ni->ni_tstamp.tsf ! in wtap_newstate()
[all...]
/freebsd/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
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmt792x_core.c163 } tsf; in mt792x_get_tsf() local
171 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0(0)); in mt792x_get_tsf()
172 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1(0)); in mt792x_get_tsf()
176 return tsf.t64; in mt792x_get_tsf()
189 } tsf = { .t64 = timestamp, }; in mt792x_set_tsf() local
195 mt76_wr(dev, MT_LPON_UTTR0(0), tsf.t32[0]); in mt792x_set_tsf()
196 mt76_wr(dev, MT_LPON_UTTR1(0), tsf.t32[1]); in mt792x_set_tsf()
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()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/
H A Dmain.c917 } tsf; in mt7615_get_tsf() local
928 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0); in mt7615_get_tsf()
929 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1); in mt7615_get_tsf()
933 return tsf.t64; in mt7615_get_tsf()
945 } tsf = { .t64 = timestamp, }; in mt7615_set_tsf() local
954 mt76_wr(dev, MT_LPON_UTTR0, tsf.t32[0]); in mt7615_set_tsf()
955 mt76_wr(dev, MT_LPON_UTTR1, tsf.t32[1]); in mt7615_set_tsf()
971 } tsf = { .t64 = timestamp, }; in mt7615_offset_tsf() local
980 mt76_wr(dev, MT_LPON_UTTR0, tsf.t32[0]); in mt7615_offset_tsf()
981 mt76_wr(dev, MT_LPON_UTTR1, tsf.t32[1]); in mt7615_offset_tsf()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/
H A Dmain.c839 } tsf; in __mt7996_get_tsf() local
849 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0(phy->mt76->band_idx)); in __mt7996_get_tsf()
850 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1(phy->mt76->band_idx)); in __mt7996_get_tsf()
852 return tsf.t64; in __mt7996_get_tsf()
879 } tsf = { .t64 = timestamp, }; in mt7996_set_tsf() local
886 mt76_wr(dev, MT_LPON_UTTR0(phy->mt76->band_idx), tsf.t32[0]); in mt7996_set_tsf()
887 mt76_wr(dev, MT_LPON_UTTR1(phy->mt76->band_idx), tsf.t32[1]); in mt7996_set_tsf()
905 } tsf = { .t64 = timestamp, }; in mt7996_offset_tsf() local
912 mt76_wr(dev, MT_LPON_UTTR0(phy->mt76->band_idx), tsf.t32[0]); in mt7996_offset_tsf()
913 mt76_wr(dev, MT_LPON_UTTR1(phy->mt76->band_idx), tsf.t32[1]); in mt7996_offset_tsf()
/freebsd/sys/contrib/dev/iwlwifi/fw/api/
H A Dtx.h827 __le64 tsf;
834 * @tsf: last beacon tsf
840 __le64 tsf;
848 * @tsf: last beacon tsf
854 __le64 tsf;
818 __le64 tsf; global() member
831 __le64 tsf; global() member
845 __le64 tsf; global() member
H A Doffload.h45 * @tsf: TSF on air rise
54 __le64 tsf;
52 __le64 tsf; global() member
/freebsd/sys/net80211/
H A Dieee80211_tdma.c587 uint32_t rstamp = (uint32_t) le64toh(rs->tsf); in tdma_process_params()
607 le64toh(ni->ni_tstamp.tsf) > vap->iv_bss->ni_tstamp.tsf) { in tdma_process_params()
617 (unsigned long long) le64toh(ni->ni_tstamp.tsf), in tdma_process_params()
618 vap->iv_bss->ni_tstamp.tsf); in tdma_process_params()
/freebsd/sys/fs/nfsserver/
H A Dnfs_nfsdport.c1835 struct statfs *tsf; in nfsvno_statfs() local
1838 tsf = NULL; in nfsvno_statfs()
1841 tsf = malloc(sizeof(*tsf), M_TEMP, M_WAITOK | M_ZERO); in nfsvno_statfs()
1842 error = nfsrv_pnfsstatfs(tsf, vp->v_mount); in nfsvno_statfs()
1844 free(tsf, M_TEMP); in nfsvno_statfs()
1845 tsf = NULL; in nfsvno_statfs()
1850 if (tsf != NULL) { in nfsvno_statfs()
1851 sf->f_blocks = tsf->f_blocks; in nfsvno_statfs()
1852 sf->f_bavail = tsf->f_bavail; in nfsvno_statfs()
1853 sf->f_bfree = tsf->f_bfree; in nfsvno_statfs()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dmain.c924 } tsf; in __mt7915_get_tsf() local
938 tsf.t32[0] = mt76_rr(dev, MT_LPON_UTTR0(band)); in __mt7915_get_tsf()
939 tsf.t32[1] = mt76_rr(dev, MT_LPON_UTTR1(band)); in __mt7915_get_tsf()
941 return tsf.t64; in __mt7915_get_tsf()
969 } tsf = { .t64 = timestamp, }; in mt7915_set_tsf() local
976 mt76_wr(dev, MT_LPON_UTTR0(band), tsf.t32[0]); in mt7915_set_tsf()
977 mt76_wr(dev, MT_LPON_UTTR1(band), tsf.t32[1]); in mt7915_set_tsf()
1000 } tsf = { .t64 = timestamp, }; in mt7915_offset_tsf() local
1007 mt76_wr(dev, MT_LPON_UTTR0(band), tsf.t32[0]); in mt7915_offset_tsf()
1008 mt76_wr(dev, MT_LPON_UTTR1(band), tsf.t32[1]); in mt7915_offset_tsf()

1234