Lines Matching refs:ptdev
65 struct panthor_device *ptdev = dev_get_drvdata(dev); in panthor_devfreq_target() local
76 ptdev->current_frequency = *freq; in panthor_devfreq_target()
91 struct panthor_device *ptdev = dev_get_drvdata(dev); in panthor_devfreq_get_dev_status() local
92 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_get_dev_status()
95 status->current_frequency = clk_get_rate(ptdev->clks.core); in panthor_devfreq_get_dev_status()
110 drm_dbg(&ptdev->base, "busy %lu total %lu %lu %% freq %lu MHz\n", in panthor_devfreq_get_dev_status()
125 int panthor_devfreq_init(struct panthor_device *ptdev) in panthor_devfreq_init() argument
135 struct device *dev = ptdev->base.dev; in panthor_devfreq_init()
142 pdevfreq = drmm_kzalloc(&ptdev->base, sizeof(*ptdev->devfreq), GFP_KERNEL); in panthor_devfreq_init()
146 ptdev->devfreq = pdevfreq; in panthor_devfreq_init()
164 cur_freq = clk_get_rate(ptdev->clks.core); in panthor_devfreq_init()
201 ptdev->current_frequency = cur_freq; in panthor_devfreq_init()
218 ptdev->fast_rate = freq; in panthor_devfreq_init()
246 void panthor_devfreq_resume(struct panthor_device *ptdev) in panthor_devfreq_resume() argument
248 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_resume()
255 drm_WARN_ON(&ptdev->base, devfreq_resume_device(pdevfreq->devfreq)); in panthor_devfreq_resume()
258 void panthor_devfreq_suspend(struct panthor_device *ptdev) in panthor_devfreq_suspend() argument
260 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_suspend()
265 drm_WARN_ON(&ptdev->base, devfreq_suspend_device(pdevfreq->devfreq)); in panthor_devfreq_suspend()
268 void panthor_devfreq_record_busy(struct panthor_device *ptdev) in panthor_devfreq_record_busy() argument
270 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_record_busy()
284 void panthor_devfreq_record_idle(struct panthor_device *ptdev) in panthor_devfreq_record_idle() argument
286 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_record_idle()