Lines Matching refs:devfreq
61 status->busy_time = ((u32) (cycles - gpu->devfreq.busy_cycles)) / freq; in msm_devfreq_get_dev_status()
63 gpu->devfreq.busy_cycles = cycles; in msm_devfreq_get_dev_status()
66 status->total_time = ktime_us_delta(time, gpu->devfreq.time); in msm_devfreq_get_dev_status()
67 gpu->devfreq.time = time; in msm_devfreq_get_dev_status()
101 gpu->devfreq.devfreq = devm_devfreq_add_device(&gpu->pdev->dev, in msm_devfreq_init()
104 if (IS_ERR(gpu->devfreq.devfreq)) { in msm_devfreq_init()
106 gpu->devfreq.devfreq = NULL; in msm_devfreq_init()
205 if (gpu->devfreq.devfreq) { in msm_gpu_pm_resume()
206 gpu->devfreq.busy_cycles = 0; in msm_gpu_pm_resume()
207 gpu->devfreq.time = ktime_get(); in msm_gpu_pm_resume()
209 devfreq_resume_device(gpu->devfreq.devfreq); in msm_gpu_pm_resume()
223 if (gpu->devfreq.devfreq) in msm_gpu_pm_suspend()
224 devfreq_suspend_device(gpu->devfreq.devfreq); in msm_gpu_pm_suspend()