| /freebsd-14.2/sys/dev/ath/ |
| H A D | if_ath_tsf.h | 39 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 D | if_ath_tdma.c | 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() 519 t.tsf64 = htobe64(tsf); in ath_tdma_update() 579 uint64_t tsf; in ath_tdma_update() local 582 tsf = ath_hal_gettsf64(ah); in ath_tdma_update() 583 ath_hal_settsf64(ah, tsf + tsfdelta); in ath_tdma_update() 587 (unsigned long long) tsf, in ath_tdma_update() 596 t.tsf64_old = htobe64(tsf); in ath_tdma_update() 597 t.tsf64_new = htobe64(tsf + tsfdelta); in ath_tdma_update() [all …]
|
| H A D | if_ath_beacon.c | 936 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() 1156 , tsf in ath_beacon_config() 1194 tsftu = TSF_TO_TU(tsf>>32, tsf) + FUDGE; in ath_beacon_config() 1236 tsf = ath_hal_gettsf64(ah); in ath_beacon_config() 1240 (unsigned long long) tsf, in ath_beacon_config() [all …]
|
| H A D | if_ath_rx.c | 484 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 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 1108 tsf = ath_hal_gettsf64(ah); in ath_rx_proc() [all …]
|
| H A D | if_ath_rx_edma.c | 418 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 D | if_athdfs.h | 40 uint64_t tsf, struct ath_rx_status *rxstat);
|
| H A D | if_ath_rx.h | 61 HAL_STATUS status, uint64_t tsf, int nf, HAL_RX_QUEUE qtype,
|
| /freebsd-14.2/contrib/ntp/include/ |
| H A D | timevalops.h | 35 # 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-14.2/sys/contrib/dev/athk/ |
| H A D | spectral_common.h | 62 __be64 tsf; member 76 __be64 tsf; member 104 __be64 tsf; member 123 __be32 tsf; member
|
| /freebsd-14.2/contrib/ntp/libntp/ |
| H A D | timespecops.c | 25 # define FTOTVN(tsf) \ argument 27 (((u_int64)(tsf) * NANOSECONDS + 0x80000000) >> 32)) 34 # define FTOTVN(tsf) \ argument 35 ((int32)((tsf) / NSECFRAC + 0.5))
|
| /freebsd-14.2/sys/dev/iwm/ |
| H A D | if_iwm_mac_ctxt.c | 395 (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-14.2/sys/contrib/dev/athk/ath10k/ |
| H A D | spectral.h | 41 size_t bin_len, u64 tsf); 53 size_t bin_len, u64 tsf) in ath10k_spectral_process_fft() argument
|
| /freebsd-14.2/sys/contrib/dev/ath/ath_hal/ar9300/ |
| H A D | ar9300_timer.c | 61 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-14.2/sys/dev/wtap/ |
| H A D | if_wtap.c | 167 uint64_t tsf = wtap_hal_get_tsf(sc->hal); in wtap_recv_mgmt() local 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 != 0) in wtap_newstate()
|
| /freebsd-14.2/sys/dev/wtap/wtap_hal/ |
| H A D | hal.c | 224 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 D | hal.h | 50 uint64_t tsf; member
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/ |
| H A D | mt76x02_usb_core.c | 149 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 D | mt792x_core.c | 163 } 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()
|
| /freebsd-14.2/sys/contrib/dev/iwlwifi/fw/api/ |
| H A D | tx.h | 818 __le64 tsf; member 831 __le64 tsf; member 845 __le64 tsf; member
|
| H A D | offload.h | 52 __le64 tsf; member
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7615/ |
| H A D | main.c | 917 } 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-14.2/sys/contrib/dev/mediatek/mt76/mt7996/ |
| H A D | main.c | 839 } 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-14.2/sys/net80211/ |
| H A D | ieee80211_tdma.c | 591 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()
|
| /freebsd-14.2/sys/fs/nfsserver/ |
| H A D | nfs_nfsdport.c | 1836 struct statfs *tsf; in nfsvno_statfs() local 1839 tsf = NULL; in nfsvno_statfs() 1842 tsf = malloc(sizeof(*tsf), M_TEMP, M_WAITOK | M_ZERO); in nfsvno_statfs() 1846 tsf = NULL; in nfsvno_statfs() 1851 if (tsf != NULL) { in nfsvno_statfs() 1869 free(tsf, M_TEMP); in nfsvno_statfs() 6544 tsf = malloc(sizeof(*tsf), M_TEMP, M_WAITOK); in nfsrv_pnfsstatfs() 6590 tot = tsf->f_blocks * tsf->f_bsize; in nfsrv_pnfsstatfs() 6597 tot = tsf->f_bfree * tsf->f_bsize; in nfsrv_pnfsstatfs() 6604 tot = tsf->f_bavail * tsf->f_bsize; in nfsrv_pnfsstatfs() [all …]
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7915/ |
| H A D | main.c | 924 } 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()
|