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