Lines Matching refs:mvm
138 static void iwl_mvm_adjust_quota_for_noa(struct iwl_mvm *mvm, in iwl_mvm_adjust_quota_for_noa() argument
145 if (!mvm->noa_duration || !mvm->noa_vif) in iwl_mvm_adjust_quota_for_noa()
148 mvmvif = iwl_mvm_vif_from_mac80211(mvm->noa_vif); in iwl_mvm_adjust_quota_for_noa()
153 beacon_int = mvm->noa_vif->bss_conf.beacon_int; in iwl_mvm_adjust_quota_for_noa()
163 quota *= (beacon_int - mvm->noa_duration); in iwl_mvm_adjust_quota_for_noa()
166 IWL_DEBUG_QUOTA(mvm, "quota: adjust for NoA from %d to %d\n", in iwl_mvm_adjust_quota_for_noa()
174 int iwl_mvm_update_quotas(struct iwl_mvm *mvm, in iwl_mvm_update_quotas() argument
185 struct iwl_time_quota_cmd *last = &mvm->last_quota_cmd; in iwl_mvm_update_quotas()
188 lockdep_assert_held(&mvm->mutex); in iwl_mvm_update_quotas()
191 if (test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status)) in iwl_mvm_update_quotas()
198 mvm->hw, IEEE80211_IFACE_ITER_NORMAL, in iwl_mvm_update_quotas()
233 IWL_DEBUG_QUOTA(mvm, in iwl_mvm_update_quotas()
244 IWL_DEBUG_QUOTA(mvm, in iwl_mvm_update_quotas()
288 IWL_DEBUG_QUOTA(mvm, in iwl_mvm_update_quotas()
295 iwl_mvm_adjust_quota_for_noa(mvm, &cmd); in iwl_mvm_update_quotas()
321 err = iwl_mvm_send_cmd_pdu(mvm, TIME_QUOTA_CMD, 0, sizeof(cmd), &cmd); in iwl_mvm_update_quotas()
324 IWL_ERR(mvm, "Failed to send quota: %d\n", err); in iwl_mvm_update_quotas()
326 mvm->last_quota_cmd = cmd; in iwl_mvm_update_quotas()