Lines Matching refs:tsf_time
355 static void ath_chanctx_setup_timer(struct ath_softc *sc, u32 tsf_time) in ath_chanctx_setup_timer() argument
360 ath9k_hw_gen_timer_start(ah, sc->p2p_ps_timer, tsf_time, 1000000); in ath_chanctx_setup_timer()
361 tsf_time -= ath9k_hw_gettsf32(ah); in ath_chanctx_setup_timer()
362 tsf_time = msecs_to_jiffies(tsf_time / 1000) + 1; in ath_chanctx_setup_timer()
363 mod_timer(&sc->sched.timer, jiffies + tsf_time); in ath_chanctx_setup_timer()
366 "Setup chanctx timer with timeout: %d ms\n", jiffies_to_msecs(tsf_time)); in ath_chanctx_setup_timer()
397 u32 tsf_time) in ath_chanctx_offchannel_noa() argument
402 avp->offchannel_start = tsf_time; in ath_chanctx_offchannel_noa()
423 u32 tsf_time, in ath_chanctx_set_periodic_noa() argument
429 avp->noa_start = tsf_time; in ath_chanctx_set_periodic_noa()
455 u32 tsf_time, in ath_chanctx_set_oneshot_noa() argument
461 avp->noa_start = tsf_time; in ath_chanctx_set_oneshot_noa()
482 u32 tsf_time; in ath_chanctx_event() local
567 tsf_time = sc->sched.next_tbtt + beacon_int / 4; in ath_chanctx_event()
568 sc->sched.switch_start_time = tsf_time; in ath_chanctx_event()
577 ath_chanctx_offchannel_noa(sc, ctx, avp, tsf_time); in ath_chanctx_event()
590 ath_chanctx_set_oneshot_noa(sc, avp, tsf_time, in ath_chanctx_event()
596 if (avp->noa_duration && tsf_time - avp->noa_start > BIT(30)) in ath_chanctx_event()
607 tsf_time, beacon_int); in ath_chanctx_event()
671 tsf_time = sc->sched.switch_start_time; in ath_chanctx_event()
672 tsf_time -= (u32) sc->cur_chan->tsf_val + in ath_chanctx_event()
674 tsf_time += ath9k_hw_gettsf32(ah); in ath_chanctx_event()
677 ath_chanctx_setup_timer(sc, tsf_time); in ath_chanctx_event()
708 tsf_time = TU_TO_USEC(cur_conf->beacon_interval) / 2; in ath_chanctx_event()
712 tsf_time *= 3; in ath_chanctx_event()
715 tsf_time -= sc->sched.channel_switch_time; in ath_chanctx_event()
716 tsf_time += ath9k_hw_gettsf32(sc->sc_ah); in ath_chanctx_event()
717 sc->sched.switch_start_time = tsf_time; in ath_chanctx_event()
719 ath_chanctx_setup_timer(sc, tsf_time); in ath_chanctx_event()