Lines Matching refs:nexttbtt

207 static void	ath_tdma_settimers(struct ath_softc *sc, u_int32_t nexttbtt,
2749 u_int32_t nexttbtt, intval, tsftu;
2757 nexttbtt = TSF_TO_TU(LE_READ_4(ni->ni_tstamp.data + 4),
2775 if (nexttbtt == 0) /* e.g. for ap mode */
2776 nexttbtt = intval;
2778 nexttbtt = roundup(nexttbtt, intval);
2779 DPRINTF(sc, ATH_DEBUG_BEACON, "%s: nexttbtt %u intval %u (%u)\n",
2780 __func__, nexttbtt, intval, ni->ni_intval);
2799 * Pull nexttbtt forward to reflect the current
2805 nexttbtt += intval;
2811 } while (nexttbtt < tsftu);
2814 bs.bs_nexttbtt = nexttbtt;
2858 "%s: tsf %ju tsf:tu %u intval %u nexttbtt %u dtim %u nextdtim %u bmiss %u sleep %u cfp:period %u maxdur %u next %u timoffset %u\n"
2878 if (nexttbtt == intval)
2893 * Pull nexttbtt forward to reflect
2899 nexttbtt += intval;
2900 } while (nexttbtt < tsftu);
2913 ath_hal_beaconinit(ah, nexttbtt, intval);
5483 ath_tdma_settimers(struct ath_softc *sc, u_int32_t nexttbtt, u_int32_t bintval)
5489 bt.bt_nexttbtt = nexttbtt;
5490 bt.bt_nextdba = (nexttbtt<<3) - sc->sc_tdmadbaprep;
5491 bt.bt_nextswba = (nexttbtt<<3) - sc->sc_tdmaswbaprep;
5492 bt.bt_nextatim = nexttbtt+1;
5509 * to deal with the granularity of the nexttbtt timer. 11n MAC's
5637 u_int64_t tsf, rstamp, nextslot, nexttbtt;
5692 nexttbtt = ath_hal_getnexttbtt(ah);
5693 tsfdelta = (int32_t)((nextslot % TU_TO_TSF(HAL_BEACON_PERIOD + 1)) - nexttbtt);
5713 tudelta = nextslottu - TSF_TO_TU(nexttbtt >> 32, nexttbtt);
5732 "tsf %llu nextslot %llu (%d, %d) nextslottu %u nexttbtt %llu (%d)\n",
5734 (int)(nextslot - tsf), tsfdelta, nextslottu, nexttbtt, tudelta);