Lines Matching refs:intval
285 int intval; in ath_beacon_alloc() local
287 intval = cur_conf->beacon_interval ? : ATH_DEFAULT_BINTVAL; in ath_beacon_alloc()
297 tsfadjust = intval * avp->av_bslot / ATH_BCBUF; in ath_beacon_alloc()
302 avp->av_bslot, intval, (unsigned long long)tsfadjust); in ath_beacon_alloc()
360 u16 intval; in ath_beacon_tasklet() local
401 intval = cur_conf->beacon_interval ? : ATH_DEFAULT_BINTVAL; in ath_beacon_tasklet()
405 slot = ((tsftu % intval) * ATH_BCBUF) / intval; in ath_beacon_tasklet()
418 slot, tsf, tsftu, intval, vif); in ath_beacon_tasklet()
484 u32 nexttbtt, intval; in ath_beacon_config_ap() local
487 intval = conf->beacon_interval & ATH9K_BEACON_PERIOD; in ath_beacon_config_ap()
488 intval /= ATH_BCBUF; /* for staggered beacons */ in ath_beacon_config_ap()
489 nexttbtt = intval; in ath_beacon_config_ap()
492 intval |= ATH9K_BEACON_RESET_TSF; in ath_beacon_config_ap()
498 intval |= ATH9K_BEACON_ENA; in ath_beacon_config_ap()
505 ath9k_beacon_init(sc, nexttbtt, intval); in ath_beacon_config_ap()
531 u32 nexttbtt = 0, intval, tsftu; in ath_beacon_config_sta() local
543 intval = conf->beacon_interval & ATH9K_BEACON_PERIOD; in ath_beacon_config_sta()
556 sleepduration = conf->listen_interval * intval; in ath_beacon_config_sta()
565 num_beacons = tsftu / intval + 1; in ath_beacon_config_sta()
566 offset = tsftu % intval; in ath_beacon_config_sta()
569 nexttbtt += intval; in ath_beacon_config_sta()
586 bs.bs_intval = intval; in ath_beacon_config_sta()
588 bs.bs_dtimperiod = dtimperiod*intval; in ath_beacon_config_sta()
589 bs.bs_nextdtim = bs.bs_nexttbtt + dtimcount*intval; in ath_beacon_config_sta()
600 if (sleepduration > intval) { in ath_beacon_config_sta()
604 bs.bs_bmissthreshold = DIV_ROUND_UP(conf->bmiss_timeout, intval); in ath_beacon_config_sta()
647 u32 tsftu, intval, nexttbtt; in ath_beacon_config_adhoc() local
649 intval = conf->beacon_interval & ATH9K_BEACON_PERIOD; in ath_beacon_config_adhoc()
656 nexttbtt = intval; in ath_beacon_config_adhoc()
657 else if (intval) in ath_beacon_config_adhoc()
658 nexttbtt = roundup(nexttbtt, intval); in ath_beacon_config_adhoc()
663 nexttbtt += intval; in ath_beacon_config_adhoc()
668 nexttbtt, intval, conf->beacon_interval); in ath_beacon_config_adhoc()
675 intval |= ATH9K_BEACON_ENA; in ath_beacon_config_adhoc()
683 ath9k_beacon_init(sc, nexttbtt, intval); in ath_beacon_config_adhoc()