Lines Matching refs:elapsed
720 u8 iwl_mvm_tcm_load_percentage(u32 airtime, u32 elapsed) in iwl_mvm_tcm_load_percentage() argument
722 if (!elapsed) in iwl_mvm_tcm_load_percentage()
725 return (100 * airtime / elapsed) / USEC_PER_MSEC; in iwl_mvm_tcm_load_percentage()
729 iwl_mvm_tcm_load(struct iwl_mvm *mvm, u32 airtime, unsigned long elapsed) in iwl_mvm_tcm_load() argument
731 u8 load = iwl_mvm_tcm_load_percentage(airtime, elapsed); in iwl_mvm_tcm_load()
833 unsigned int elapsed, in iwl_mvm_check_uapsd_agg_expected_tpt() argument
849 do_div(tpt, elapsed); in iwl_mvm_check_uapsd_agg_expected_tpt()
863 do_div(tpt, elapsed * 100); in iwl_mvm_check_uapsd_agg_expected_tpt()
891 unsigned int elapsed = jiffies_to_msecs(ts - mvm->tcm.ts); in iwl_mvm_calc_tcm_stats() local
907 mvm->tcm.result.elapsed = elapsed; in iwl_mvm_calc_tcm_stats()
922 load = iwl_mvm_tcm_load(mvm, airtime, elapsed); in iwl_mvm_calc_tcm_stats()
954 load = iwl_mvm_tcm_load(mvm, total_airtime, elapsed); in iwl_mvm_calc_tcm_stats()
958 band_load = iwl_mvm_tcm_load(mvm, band_airtime[i], elapsed); in iwl_mvm_calc_tcm_stats()