Lines Matching refs:devfreq
20 struct devfreq *devfreq; member
92 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_get_dev_status()
142 pdevfreq = drmm_kzalloc(&ptdev->base, sizeof(*ptdev->devfreq), GFP_KERNEL); in panthor_devfreq_init()
146 ptdev->devfreq = pdevfreq; in panthor_devfreq_init()
229 pdevfreq->devfreq = devm_devfreq_add_device(dev, &panthor_devfreq_profile, in panthor_devfreq_init()
232 if (IS_ERR(pdevfreq->devfreq)) { in panthor_devfreq_init()
234 ret = PTR_ERR(pdevfreq->devfreq); in panthor_devfreq_init()
235 pdevfreq->devfreq = NULL; in panthor_devfreq_init()
239 cooling = devfreq_cooling_em_register(pdevfreq->devfreq, NULL); in panthor_devfreq_init()
248 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_resume()
250 if (!pdevfreq->devfreq) in panthor_devfreq_resume()
255 drm_WARN_ON(&ptdev->base, devfreq_resume_device(pdevfreq->devfreq)); in panthor_devfreq_resume()
260 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_suspend()
262 if (!pdevfreq->devfreq) in panthor_devfreq_suspend()
265 drm_WARN_ON(&ptdev->base, devfreq_suspend_device(pdevfreq->devfreq)); in panthor_devfreq_suspend()
270 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_record_busy()
273 if (!pdevfreq->devfreq) in panthor_devfreq_record_busy()
286 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_record_idle()
289 if (!pdevfreq->devfreq) in panthor_devfreq_record_idle()