Lines Matching refs:ptdev

89 	struct panthor_device *ptdev = dev_get_drvdata(dev);  in panthor_devfreq_get_dev_status()  local
90 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_get_dev_status()
93 status->current_frequency = clk_get_rate(ptdev->clks.core); in panthor_devfreq_get_dev_status()
108 drm_dbg(&ptdev->base, "busy %lu total %lu %lu %% freq %lu MHz\n", in panthor_devfreq_get_dev_status()
118 struct panthor_device *ptdev = dev_get_drvdata(dev); in panthor_devfreq_get_cur_freq() local
120 *freq = clk_get_rate(ptdev->clks.core); in panthor_devfreq_get_cur_freq()
133 int panthor_devfreq_init(struct panthor_device *ptdev) in panthor_devfreq_init() argument
143 struct device *dev = ptdev->base.dev; in panthor_devfreq_init()
151 pdevfreq = drmm_kzalloc(&ptdev->base, sizeof(*ptdev->devfreq), GFP_KERNEL); in panthor_devfreq_init()
155 ptdev->devfreq = pdevfreq; in panthor_devfreq_init()
185 cur_freq = clk_get_rate(ptdev->clks.core); in panthor_devfreq_init()
238 ptdev->fast_rate = freq; in panthor_devfreq_init()
266 void panthor_devfreq_resume(struct panthor_device *ptdev) in panthor_devfreq_resume() argument
268 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_resume()
275 drm_WARN_ON(&ptdev->base, devfreq_resume_device(pdevfreq->devfreq)); in panthor_devfreq_resume()
278 void panthor_devfreq_suspend(struct panthor_device *ptdev) in panthor_devfreq_suspend() argument
280 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_suspend()
285 drm_WARN_ON(&ptdev->base, devfreq_suspend_device(pdevfreq->devfreq)); in panthor_devfreq_suspend()
288 void panthor_devfreq_record_busy(struct panthor_device *ptdev) in panthor_devfreq_record_busy() argument
290 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_record_busy()
304 void panthor_devfreq_record_idle(struct panthor_device *ptdev) in panthor_devfreq_record_idle() argument
306 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_record_idle()
320 unsigned long panthor_devfreq_get_freq(struct panthor_device *ptdev) in panthor_devfreq_get_freq() argument
322 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_get_freq()
329 ret = pdevfreq->devfreq->profile->get_cur_freq(ptdev->base.dev, &freq); in panthor_devfreq_get_freq()