Lines Matching refs:tsf_time

373 static void ath_chanctx_setup_timer(struct ath_softc *sc, u32 tsf_time)  in ath_chanctx_setup_timer()  argument
379 ath9k_hw_gen_timer_start(ah, sc->p2p_ps_timer, tsf_time, 1000000); in ath_chanctx_setup_timer()
380 tsf_time -= ath9k_hw_gettsf32(ah); in ath_chanctx_setup_timer()
381 timeout = msecs_to_jiffies(tsf_time / 1000) + 1; in ath_chanctx_setup_timer()
386 tsf_time / 1000, jiffies_to_msecs(timeout)); in ath_chanctx_setup_timer()
417 u32 tsf_time) in ath_chanctx_offchannel_noa() argument
422 avp->offchannel_start = tsf_time; in ath_chanctx_offchannel_noa()
443 u32 tsf_time, in ath_chanctx_set_periodic_noa() argument
449 avp->noa_start = tsf_time; in ath_chanctx_set_periodic_noa()
475 u32 tsf_time, in ath_chanctx_set_oneshot_noa() argument
481 avp->noa_start = tsf_time; in ath_chanctx_set_oneshot_noa()
502 u32 tsf_time; in ath_chanctx_event() local
588 tsf_time = sc->sched.next_tbtt + beacon_int / 4; in ath_chanctx_event()
589 sc->sched.switch_start_time = tsf_time; in ath_chanctx_event()
598 ath_chanctx_offchannel_noa(sc, ctx, avp, tsf_time); in ath_chanctx_event()
611 ath_chanctx_set_oneshot_noa(sc, avp, tsf_time, in ath_chanctx_event()
617 if (avp->noa_duration && tsf_time - avp->noa_start > BIT(30)) in ath_chanctx_event()
628 tsf_time, beacon_int); in ath_chanctx_event()
692 tsf_time = sc->sched.switch_start_time; in ath_chanctx_event()
693 tsf_time -= (u32) sc->cur_chan->tsf_val + in ath_chanctx_event()
695 tsf_time += ath9k_hw_gettsf32(ah); in ath_chanctx_event()
698 ath_chanctx_setup_timer(sc, tsf_time); in ath_chanctx_event()
729 tsf_time = TU_TO_USEC(cur_conf->beacon_interval) / 2; in ath_chanctx_event()
733 tsf_time *= 3; in ath_chanctx_event()
736 tsf_time -= sc->sched.channel_switch_time; in ath_chanctx_event()
737 tsf_time += ath9k_hw_gettsf32(sc->sc_ah); in ath_chanctx_event()
738 sc->sched.switch_start_time = tsf_time; in ath_chanctx_event()
740 ath_chanctx_setup_timer(sc, tsf_time); in ath_chanctx_event()