Lines Matching defs:devfreq
5 #include <linux/devfreq.h>
20 /** @devfreq: devfreq device. */
21 struct devfreq *devfreq;
90 struct panthor_devfreq *pdevfreq = ptdev->devfreq;
151 pdevfreq = drmm_kzalloc(&ptdev->base, sizeof(*ptdev->devfreq), GFP_KERNEL);
155 ptdev->devfreq = pdevfreq;
249 pdevfreq->devfreq = devm_devfreq_add_device(dev, &panthor_devfreq_profile,
252 if (IS_ERR(pdevfreq->devfreq)) {
253 DRM_DEV_ERROR(dev, "Couldn't initialize GPU devfreq\n");
254 ret = PTR_ERR(pdevfreq->devfreq);
255 pdevfreq->devfreq = NULL;
259 cooling = devfreq_cooling_em_register(pdevfreq->devfreq, NULL);
268 struct panthor_devfreq *pdevfreq = ptdev->devfreq;
270 if (!pdevfreq->devfreq)
275 drm_WARN_ON(&ptdev->base, devfreq_resume_device(pdevfreq->devfreq));
280 struct panthor_devfreq *pdevfreq = ptdev->devfreq;
282 if (!pdevfreq->devfreq)
285 drm_WARN_ON(&ptdev->base, devfreq_suspend_device(pdevfreq->devfreq));
290 struct panthor_devfreq *pdevfreq = ptdev->devfreq;
293 if (!pdevfreq->devfreq)
306 struct panthor_devfreq *pdevfreq = ptdev->devfreq;
309 if (!pdevfreq->devfreq)
322 struct panthor_devfreq *pdevfreq = ptdev->devfreq;
326 if (!pdevfreq->devfreq)
329 ret = pdevfreq->devfreq->profile->get_cur_freq(ptdev->base.dev, &freq);