Lines Matching refs:rps
359 dev_priv->rps.pm_iir = 0; in gen6_reset_rps_interrupts()
369 WARN_ON(dev_priv->rps.pm_iir); in gen6_enable_rps_interrupts()
371 dev_priv->rps.interrupts_enabled = true; in gen6_enable_rps_interrupts()
401 dev_priv->rps.interrupts_enabled = false; in gen6_disable_rps_interrupts()
404 cancel_work_sync(&dev_priv->rps.work); in gen6_disable_rps_interrupts()
999 memset(&dev_priv->rps.ei, 0, sizeof(dev_priv->rps.ei)); in gen6_rps_reset_ei()
1004 const struct intel_rps_ei *prev = &dev_priv->rps.ei; in vlv_wa_c0_ei()
1035 if (c0 > time * dev_priv->rps.up_threshold) in vlv_wa_c0_ei()
1037 else if (c0 < time * dev_priv->rps.down_threshold) in vlv_wa_c0_ei()
1041 dev_priv->rps.ei = now; in vlv_wa_c0_ei()
1060 container_of(work, struct drm_i915_private, rps.work); in gen6_pm_rps_work()
1067 if (!dev_priv->rps.interrupts_enabled) { in gen6_pm_rps_work()
1071 pm_iir = dev_priv->rps.pm_iir; in gen6_pm_rps_work()
1072 dev_priv->rps.pm_iir = 0; in gen6_pm_rps_work()
1075 client_boost = dev_priv->rps.client_boost; in gen6_pm_rps_work()
1076 dev_priv->rps.client_boost = false; in gen6_pm_rps_work()
1085 mutex_lock(&dev_priv->rps.hw_lock); in gen6_pm_rps_work()
1089 adj = dev_priv->rps.last_adj; in gen6_pm_rps_work()
1090 new_delay = dev_priv->rps.cur_freq; in gen6_pm_rps_work()
1091 min = dev_priv->rps.min_freq_softlimit; in gen6_pm_rps_work()
1092 max = dev_priv->rps.max_freq_softlimit; in gen6_pm_rps_work()
1095 new_delay = dev_priv->rps.max_freq_softlimit; in gen6_pm_rps_work()
1106 if (new_delay < dev_priv->rps.efficient_freq - adj) { in gen6_pm_rps_work()
1107 new_delay = dev_priv->rps.efficient_freq; in gen6_pm_rps_work()
1113 if (dev_priv->rps.cur_freq > dev_priv->rps.efficient_freq) in gen6_pm_rps_work()
1114 new_delay = dev_priv->rps.efficient_freq; in gen6_pm_rps_work()
1116 new_delay = dev_priv->rps.min_freq_softlimit; in gen6_pm_rps_work()
1127 dev_priv->rps.last_adj = adj; in gen6_pm_rps_work()
1137 mutex_unlock(&dev_priv->rps.hw_lock); in gen6_pm_rps_work()
1576 if (dev_priv->rps.interrupts_enabled) { in gen6_rps_irq_handler()
1577 dev_priv->rps.pm_iir |= pm_iir & dev_priv->pm_rps_events; in gen6_rps_irq_handler()
1578 queue_work(dev_priv->wq, &dev_priv->rps.work); in gen6_rps_irq_handler()
4370 INIT_WORK(&dev_priv->rps.work, gen6_pm_rps_work); in intel_irq_init()