Lines Matching full:devfreq

10 #include <linux/devfreq.h>
23 struct msm_gpu_devfreq *df = &gpu->devfreq; in msm_devfreq_target()
60 struct msm_gpu_devfreq *df = &gpu->devfreq; in get_raw_dev_status()
95 struct msm_gpu_devfreq *df = &gpu->devfreq; in update_average_dev_status()
96 const u32 polling_ms = df->devfreq->profile->polling_ms; in update_average_dev_status()
154 *status = gpu->devfreq.average_status; in msm_devfreq_get_dev_status()
179 struct msm_gpu_devfreq *df = &gpu->devfreq; in has_devfreq()
180 return !!df->devfreq; in has_devfreq()
185 struct msm_gpu_devfreq *df = &gpu->devfreq; in msm_devfreq_init()
187 /* We need target support to do devfreq */ in msm_devfreq_init()
202 * Don't set the freq_table or max_state and let devfreq build the table in msm_devfreq_init()
205 * so set them back to zero before creating the devfreq device in msm_devfreq_init()
210 df->devfreq = devm_devfreq_add_device(&gpu->pdev->dev, in msm_devfreq_init()
214 if (IS_ERR(df->devfreq)) { in msm_devfreq_init()
215 DRM_DEV_ERROR(&gpu->pdev->dev, "Couldn't initialize GPU devfreq\n"); in msm_devfreq_init()
218 df->devfreq = NULL; in msm_devfreq_init()
222 devfreq_suspend_device(df->devfreq); in msm_devfreq_init()
224 gpu->cooling = of_devfreq_cooling_register(gpu->pdev->dev.of_node, df->devfreq); in msm_devfreq_init()
251 struct msm_gpu_devfreq *df = &gpu->devfreq; in msm_devfreq_cleanup()
263 struct msm_gpu_devfreq *df = &gpu->devfreq; in msm_devfreq_resume()
275 devfreq_resume_device(df->devfreq); in msm_devfreq_resume()
280 struct msm_gpu_devfreq *df = &gpu->devfreq; in msm_devfreq_suspend()
289 devfreq_suspend_device(df->devfreq); in msm_devfreq_suspend()
305 struct msm_gpu_devfreq *df = &gpu->devfreq; in msm_devfreq_boost()
316 * while devfreq operates in terms of Hz: in msm_devfreq_boost()
329 struct msm_gpu_devfreq *df = &gpu->devfreq; in msm_devfreq_active()
360 struct msm_gpu *gpu = container_of(df, struct msm_gpu, devfreq); in msm_devfreq_idle_work()
370 struct msm_gpu_devfreq *df = &gpu->devfreq; in msm_devfreq_idle()