Lines Matching refs:df

100 	struct msm_gpu_devfreq *df = &gpu->devfreq;  in msm_devfreq_init()  local
117 df->devfreq = devm_devfreq_add_device(&gpu->pdev->dev, in msm_devfreq_init()
121 if (IS_ERR(df->devfreq)) { in msm_devfreq_init()
123 df->devfreq = NULL; in msm_devfreq_init()
127 devfreq_suspend_device(df->devfreq); in msm_devfreq_init()
129 gpu->cooling = of_devfreq_cooling_register(gpu->pdev->dev.of_node, df->devfreq); in msm_devfreq_init()
136 msm_hrtimer_work_init(&df->idle_work, gpu->worker, msm_devfreq_idle_work, in msm_devfreq_init()
160 struct msm_gpu_devfreq *df = &gpu->devfreq; in msm_devfreq_active() local
163 unsigned long target_freq = df->idle_freq; in msm_devfreq_active()
165 if (!df->devfreq) in msm_devfreq_active()
171 hrtimer_cancel(&df->idle_work.timer); in msm_devfreq_active()
177 mutex_lock(&df->devfreq->lock); in msm_devfreq_active()
179 idle_time = ktime_to_ms(ktime_sub(ktime_get(), df->idle_time)); in msm_devfreq_active()
190 df->idle_freq = 0; in msm_devfreq_active()
200 mutex_unlock(&df->devfreq->lock); in msm_devfreq_active()
206 struct msm_gpu_devfreq *df = container_of(work, in msm_devfreq_idle_work() local
208 struct msm_gpu *gpu = container_of(df, struct msm_gpu, devfreq); in msm_devfreq_idle_work()
215 mutex_lock(&df->devfreq->lock); in msm_devfreq_idle_work()
222 df->idle_time = ktime_get(); in msm_devfreq_idle_work()
223 df->idle_freq = idle_freq; in msm_devfreq_idle_work()
225 mutex_unlock(&df->devfreq->lock); in msm_devfreq_idle_work()
230 struct msm_gpu_devfreq *df = &gpu->devfreq; in msm_devfreq_idle() local
232 if (!df->devfreq) in msm_devfreq_idle()
235 msm_hrtimer_queue_work(&df->idle_work, ms_to_ktime(1), in msm_devfreq_idle()