Lines Matching refs:qdata

195 	struct iwl_time_quota_data *qdata, *last_data;  in iwl_mvm_update_quotas()  local
222 qdata = iwl_mvm_quota_cmd_get_quota(mvm, &cmd, i); in iwl_mvm_update_quotas()
223 qdata->id_and_color = cpu_to_le32(FW_CTXT_INVALID); in iwl_mvm_update_quotas()
272 qdata = iwl_mvm_quota_cmd_get_quota(mvm, &cmd, idx); in iwl_mvm_update_quotas()
274 qdata->id_and_color = in iwl_mvm_update_quotas()
278 qdata->quota = cpu_to_le32(0); in iwl_mvm_update_quotas()
281 qdata->quota = in iwl_mvm_update_quotas()
292 qdata->quota = cpu_to_le32(QUOTA_LOWLAT_MIN); in iwl_mvm_update_quotas()
294 qdata->quota = in iwl_mvm_update_quotas()
297 WARN_ONCE(le32_to_cpu(qdata->quota) > QUOTA_100, in iwl_mvm_update_quotas()
299 idx, le32_to_cpu(qdata->quota), QUOTA_100); in iwl_mvm_update_quotas()
301 qdata->max_duration = cpu_to_le32(0); in iwl_mvm_update_quotas()
308 qdata = iwl_mvm_quota_cmd_get_quota(mvm, &cmd, i); in iwl_mvm_update_quotas()
309 if (le32_to_cpu(qdata->quota) != 0) { in iwl_mvm_update_quotas()
310 le32_add_cpu(&qdata->quota, quota_rem); in iwl_mvm_update_quotas()
322 qdata = iwl_mvm_quota_cmd_get_quota(mvm, &cmd, i); in iwl_mvm_update_quotas()
324 if (qdata->id_and_color != last_data->id_and_color) in iwl_mvm_update_quotas()
326 if (qdata->max_duration != last_data->max_duration) in iwl_mvm_update_quotas()
328 if (abs((int)le32_to_cpu(qdata->quota) - in iwl_mvm_update_quotas()
332 if (qdata->id_and_color == cpu_to_le32(FW_CTXT_INVALID)) in iwl_mvm_update_quotas()
334 WARN_ONCE(qdata->quota == 0, in iwl_mvm_update_quotas()