| /freebsd-13.1/sys/dev/ath/ |
| H A D | if_ath_tsf.h | 41 ath_extend_tsf15(u_int32_t rstamp, u_int64_t tsf) in ath_extend_tsf15() argument 43 if ((tsf & 0x7fff) < rstamp) in ath_extend_tsf15() 44 tsf -= 0x8000; in ath_extend_tsf15() 46 return ((tsf &~ 0x7fff) | rstamp); in ath_extend_tsf15() 54 ath_extend_tsf32(u_int32_t rstamp, u_int64_t tsf) in ath_extend_tsf32() argument 56 u_int32_t tsf_low = tsf & 0xffffffff; in ath_extend_tsf32() 57 u_int64_t tsf64 = (tsf & ~0xffffffffULL) | rstamp; in ath_extend_tsf32() 75 ath_extend_tsf(struct ath_softc *sc, u_int32_t rstamp, u_int64_t tsf) in ath_extend_tsf() argument 78 return ath_extend_tsf32(rstamp, tsf); in ath_extend_tsf() 80 return ath_extend_tsf15(rstamp, tsf); in ath_extend_tsf()
|
| H A D | if_ath_tdma.c | 398 tsf = ath_hal_gettsf64(ah); in ath_tdma_update() 399 rstamp = ath_extend_tsf(sc, rs->rs_tstamp, tsf); in ath_tdma_update() 485 (unsigned long long) tsf, txtime, in ath_tdma_update() 521 t.tsf64 = htobe64(tsf); in ath_tdma_update() 581 uint64_t tsf; in ath_tdma_update() local 584 tsf = ath_hal_gettsf64(ah); in ath_tdma_update() 585 ath_hal_settsf64(ah, tsf + tsfdelta); in ath_tdma_update() 589 (unsigned long long) tsf, in ath_tdma_update() 598 t.tsf64_old = htobe64(tsf); in ath_tdma_update() 599 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 1030 tsf = ath_hal_gettsf64(ah); in ath_beacon_config() 1031 tsftu = TSF_TO_TU(tsf>>32, tsf) + FUDGE; in ath_beacon_config() 1037 (unsigned long long) tsf, in ath_beacon_config() 1044 (unsigned long long) tsf, in ath_beacon_config() 1045 (long long) tsf - in ath_beacon_config() 1087 (long long) ((long long)nexttbtt * 1024LL) - (long long)tsf); in ath_beacon_config() 1139 , tsf in ath_beacon_config() 1176 tsf = ath_hal_gettsf64(ah); in ath_beacon_config() 1177 tsftu = TSF_TO_TU(tsf>>32, tsf) + FUDGE; in ath_beacon_config()
|
| H A D | if_ath_rx.c | 485 uint64_t tsf = ath_extend_tsf(sc, rstamp, in ath_recv_mgmt() local 497 if (le64toh(ni->ni_tstamp.tsf) >= tsf) { in ath_recv_mgmt() 500 "tstamp %ju\n", rstamp, (uintmax_t)tsf, in ath_recv_mgmt() 501 (uintmax_t)ni->ni_tstamp.tsf); in ath_recv_mgmt() 512 const struct ath_rx_status *rs, u_int64_t tsf, int16_t nf) in ath_rx_tap_vendor() argument 577 const struct ath_rx_status *rs, u_int64_t tsf, int16_t nf) in ath_rx_tap() argument 659 uint64_t tsf, int nf, HAL_RX_QUEUE qtype, struct ath_buf *bf, in ath_rx_pkt() argument 677 rstamp = ath_extend_tsf(sc, rs->rs_tstamp, tsf); in ath_rx_pkt() 1089 u_int64_t tsf; in ath_rx_proc() local 1113 tsf = ath_hal_gettsf64(ah); in ath_rx_proc() [all …]
|
| H A D | if_ath_rx_edma.c | 420 uint64_t tsf; in ath_edma_recv_proc_queue() local 424 tsf = ath_hal_gettsf64(ah); in ath_edma_recv_proc_queue() 554 uint64_t tsf; in ath_edma_recv_proc_deferred_queue() local 570 tsf = ath_hal_gettsf64(sc->sc_ah); in ath_edma_recv_proc_deferred_queue() 595 if (ath_rx_pkt(sc, rs, bf->bf_rxstatus, tsf, nf, qtype, bf, m)) in ath_edma_recv_proc_deferred_queue() 600 sc->sc_lastrx = tsf; in ath_edma_recv_proc_deferred_queue()
|
| H A D | if_athdfs.h | 42 uint64_t tsf, struct ath_rx_status *rxstat);
|
| H A D | if_ath_rx.h | 63 HAL_STATUS status, uint64_t tsf, int nf, HAL_RX_QUEUE qtype,
|
| /freebsd-13.1/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-13.1/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-13.1/sys/dev/iwm/ |
| H A D | if_iwm_mac_ctxt.c | 397 (unsigned long long) le64toh(ni->ni_tstamp.tsf), in iwm_mac_ctxt_cmd_fill_sta() 402 uint64_t tsf; in iwm_mac_ctxt_cmd_fill_sta() local 428 tsf = le64toh(ni->ni_tstamp.tsf); in iwm_mac_ctxt_cmd_fill_sta() 430 ctxt_sta->dtim_tsf = htole64(tsf + dtim_offs); in iwm_mac_ctxt_cmd_fill_sta() 431 ctxt_sta->dtim_time = htole32(tsf + dtim_offs); in iwm_mac_ctxt_cmd_fill_sta()
|
| /freebsd-13.1/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()
|
| H A D | ar9300_misc.c | 311 u_int64_t tsf; in ar9300_get_tsf64() local 314 tsf = OS_REG_READ(ah, AR_TSF_U32); in ar9300_get_tsf64() 315 tsf = (tsf << 32) | OS_REG_READ(ah, AR_TSF_L32); in ar9300_get_tsf64() 316 return tsf; in ar9300_get_tsf64() 320 ar9300_set_tsf64(struct ath_hal *ah, u_int64_t tsf) in ar9300_set_tsf64() argument 322 OS_REG_WRITE(ah, AR_TSF_L32, (tsf & 0xffffffff)); in ar9300_set_tsf64() 323 OS_REG_WRITE(ah, AR_TSF_U32, ((tsf >> 32) & 0xffffffff)); in ar9300_set_tsf64() 618 u_int32_t tsf = 0, j, next_start_us = 0; in ar9300_set_quiet() local 622 tsf = OS_REG_READ(ah, AR_TSF_L32); in ar9300_set_quiet() 624 next_start_us += tsf; in ar9300_set_quiet() [all …]
|
| H A D | ar9300_freebsd.h | 29 uint64_t tsf, struct ath_rx_status *rxs);
|
| H A D | ar9300_recv_ds.c | 200 u_int32_t pa, struct ath_desc *nds, u_int64_t tsf, in ar9300_proc_rx_desc() argument
|
| /freebsd-13.1/sys/contrib/dev/iwlwifi/fw/api/ |
| H A D | offload.h | 36 __le64 tsf; member
|
| H A D | tx.h | 827 __le64 tsf; member 840 __le64 tsf; member 854 __le64 tsf; member
|
| H A D | mac-cfg.h | 163 __le32 tsf; member
|
| /freebsd-13.1/sys/net80211/ |
| H A D | ieee80211_tdma.c | 592 uint32_t rstamp = (uint32_t) le64toh(rs->tsf); in tdma_process_params() 612 le64toh(ni->ni_tstamp.tsf) > vap->iv_bss->ni_tstamp.tsf) { in tdma_process_params() 622 (unsigned long long) le64toh(ni->ni_tstamp.tsf), in tdma_process_params() 623 vap->iv_bss->ni_tstamp.tsf); in tdma_process_params()
|
| H A D | ieee80211_scan.h | 273 u_int64_t tsf; member
|
| /freebsd-13.1/sys/fs/nfsserver/ |
| H A D | nfs_nfsdport.c | 1810 struct statfs *tsf; in nfsvno_statfs() local 1813 tsf = NULL; in nfsvno_statfs() 1816 tsf = malloc(sizeof(*tsf), M_TEMP, M_WAITOK | M_ZERO); in nfsvno_statfs() 1820 tsf = NULL; in nfsvno_statfs() 1825 if (tsf != NULL) { in nfsvno_statfs() 1843 free(tsf, M_TEMP); in nfsvno_statfs() 6256 tsf = malloc(sizeof(*tsf), M_TEMP, M_WAITOK); in nfsrv_pnfsstatfs() 6302 tot = tsf->f_blocks * tsf->f_bsize; in nfsrv_pnfsstatfs() 6309 tot = tsf->f_bfree * tsf->f_bsize; in nfsrv_pnfsstatfs() 6316 tot = tsf->f_bavail * tsf->f_bsize; in nfsrv_pnfsstatfs() [all …]
|
| /freebsd-13.1/contrib/wpa/src/drivers/ |
| H A D | driver_nl80211_scan.c | 774 r->tsf = nla_get_u64(bss[NL80211_BSS_TSF]); in nl80211_parse_bss_info() 776 u64 tsf = nla_get_u64(bss[NL80211_BSS_BEACON_TSF]); in nl80211_parse_bss_info() local 777 if (tsf > r->tsf) in nl80211_parse_bss_info() 778 r->tsf = tsf; in nl80211_parse_bss_info()
|
| /freebsd-13.1/sys/dev/ath/ath_dfs/null/ |
| H A D | dfs_null.c | 180 uint64_t tsf, struct ath_rx_status *rxstat) in ath_dfs_process_phy_err() argument
|
| /freebsd-13.1/contrib/wpa/wpa_supplicant/ |
| H A D | bss.h | 110 u64 tsf; member
|
| /freebsd-13.1/sys/dev/ath/ath_hal/ar5211/ |
| H A D | ar5211_recv.c | 209 uint32_t pa, struct ath_desc *nds, uint64_t tsf, in ar5211ProcRxDesc() argument
|
| /freebsd-13.1/sys/dev/ath/ath_hal/ar5210/ |
| H A D | ar5210_recv.c | 215 uint32_t pa, struct ath_desc *nds, uint64_t tsf, in ar5210ProcRxDesc() argument
|