Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ath/if_ath_tdma.c
Show First 20 Lines • Show All 353 Lines • ▼ Show 20 Lines | |||||
ath_tdma_update(struct ieee80211_node *ni, | ath_tdma_update(struct ieee80211_node *ni, | ||||
const struct ieee80211_tdma_param *tdma, int changed) | const struct ieee80211_tdma_param *tdma, int changed) | ||||
{ | { | ||||
#define TSF_TO_TU(_h,_l) \ | #define TSF_TO_TU(_h,_l) \ | ||||
((((u_int32_t)(_h)) << 22) | (((u_int32_t)(_l)) >> 10)) | ((((u_int32_t)(_h)) << 22) | (((u_int32_t)(_l)) >> 10)) | ||||
#define TU_TO_TSF(_tu) (((u_int64_t)(_tu)) << 10) | #define TU_TO_TSF(_tu) (((u_int64_t)(_tu)) << 10) | ||||
struct ieee80211vap *vap = ni->ni_vap; | struct ieee80211vap *vap = ni->ni_vap; | ||||
struct ieee80211com *ic = ni->ni_ic; | struct ieee80211com *ic = ni->ni_ic; | ||||
struct ath_softc *sc = ic->ic_ifp->if_softc; | struct ath_softc *sc = ic->ic_softc; | ||||
struct ath_hal *ah = sc->sc_ah; | struct ath_hal *ah = sc->sc_ah; | ||||
const HAL_RATE_TABLE *rt = sc->sc_currates; | const HAL_RATE_TABLE *rt = sc->sc_currates; | ||||
u_int64_t tsf, rstamp, nextslot, nexttbtt, nexttbtt_full; | u_int64_t tsf, rstamp, nextslot, nexttbtt, nexttbtt_full; | ||||
u_int32_t txtime, nextslottu; | u_int32_t txtime, nextslottu; | ||||
int32_t tudelta, tsfdelta; | int32_t tudelta, tsfdelta; | ||||
const struct ath_rx_status *rs; | const struct ath_rx_status *rs; | ||||
int rix; | int rix; | ||||
▲ Show 20 Lines • Show All 317 Lines • Show Last 20 Lines |