Lines Matching refs:rps

264 	struct intel_rps *rps = &i915->gt.rps;  in gt_act_freq_mhz_show()  local
267 intel_rps_read_actual_frequency(rps)); in gt_act_freq_mhz_show()
274 struct intel_rps *rps = &i915->gt.rps; in gt_cur_freq_mhz_show() local
277 intel_gpu_freq(rps, rps->cur_freq)); in gt_cur_freq_mhz_show()
283 struct intel_rps *rps = &i915->gt.rps; in gt_boost_freq_mhz_show() local
286 intel_gpu_freq(rps, rps->boost_freq)); in gt_boost_freq_mhz_show()
294 struct intel_rps *rps = &dev_priv->gt.rps; in gt_boost_freq_mhz_store() local
304 val = intel_freq_opcode(rps, val); in gt_boost_freq_mhz_store()
305 if (val < rps->min_freq || val > rps->max_freq) in gt_boost_freq_mhz_store()
308 mutex_lock(&rps->lock); in gt_boost_freq_mhz_store()
309 if (val != rps->boost_freq) { in gt_boost_freq_mhz_store()
310 rps->boost_freq = val; in gt_boost_freq_mhz_store()
311 boost = atomic_read(&rps->num_waiters); in gt_boost_freq_mhz_store()
313 mutex_unlock(&rps->lock); in gt_boost_freq_mhz_store()
315 schedule_work(&rps->work); in gt_boost_freq_mhz_store()
324 struct intel_rps *rps = &dev_priv->gt.rps; in vlv_rpe_freq_mhz_show() local
327 intel_gpu_freq(rps, rps->efficient_freq)); in vlv_rpe_freq_mhz_show()
333 struct intel_rps *rps = &dev_priv->gt.rps; in gt_max_freq_mhz_show() local
336 intel_gpu_freq(rps, rps->max_freq_softlimit)); in gt_max_freq_mhz_show()
344 struct intel_rps *rps = &dev_priv->gt.rps; in gt_max_freq_mhz_store() local
352 mutex_lock(&rps->lock); in gt_max_freq_mhz_store()
354 val = intel_freq_opcode(rps, val); in gt_max_freq_mhz_store()
355 if (val < rps->min_freq || in gt_max_freq_mhz_store()
356 val > rps->max_freq || in gt_max_freq_mhz_store()
357 val < rps->min_freq_softlimit) { in gt_max_freq_mhz_store()
362 if (val > rps->rp0_freq) in gt_max_freq_mhz_store()
364 intel_gpu_freq(rps, val)); in gt_max_freq_mhz_store()
366 rps->max_freq_softlimit = val; in gt_max_freq_mhz_store()
368 val = clamp_t(int, rps->cur_freq, in gt_max_freq_mhz_store()
369 rps->min_freq_softlimit, in gt_max_freq_mhz_store()
370 rps->max_freq_softlimit); in gt_max_freq_mhz_store()
377 intel_rps_set(rps, val); in gt_max_freq_mhz_store()
380 mutex_unlock(&rps->lock); in gt_max_freq_mhz_store()
388 struct intel_rps *rps = &dev_priv->gt.rps; in gt_min_freq_mhz_show() local
391 intel_gpu_freq(rps, rps->min_freq_softlimit)); in gt_min_freq_mhz_show()
399 struct intel_rps *rps = &dev_priv->gt.rps; in gt_min_freq_mhz_store() local
407 mutex_lock(&rps->lock); in gt_min_freq_mhz_store()
409 val = intel_freq_opcode(rps, val); in gt_min_freq_mhz_store()
410 if (val < rps->min_freq || in gt_min_freq_mhz_store()
411 val > rps->max_freq || in gt_min_freq_mhz_store()
412 val > rps->max_freq_softlimit) { in gt_min_freq_mhz_store()
417 rps->min_freq_softlimit = val; in gt_min_freq_mhz_store()
419 val = clamp_t(int, rps->cur_freq, in gt_min_freq_mhz_store()
420 rps->min_freq_softlimit, in gt_min_freq_mhz_store()
421 rps->max_freq_softlimit); in gt_min_freq_mhz_store()
428 intel_rps_set(rps, val); in gt_min_freq_mhz_store()
431 mutex_unlock(&rps->lock); in gt_min_freq_mhz_store()
453 struct intel_rps *rps = &dev_priv->gt.rps; in gt_rp_mhz_show() local
457 val = intel_gpu_freq(rps, rps->rp0_freq); in gt_rp_mhz_show()
459 val = intel_gpu_freq(rps, rps->rp1_freq); in gt_rp_mhz_show()
461 val = intel_gpu_freq(rps, rps->min_freq); in gt_rp_mhz_show()