Lines Matching refs:ptdev
85 struct panthor_device *ptdev = dev_get_drvdata(dev); in panthor_devfreq_get_dev_status() local
86 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_get_dev_status()
89 status->current_frequency = clk_get_rate(ptdev->clks.core); in panthor_devfreq_get_dev_status()
104 drm_dbg(&ptdev->base, "busy %lu total %lu %lu %% freq %lu MHz\n", in panthor_devfreq_get_dev_status()
119 int panthor_devfreq_init(struct panthor_device *ptdev) in panthor_devfreq_init() argument
129 struct device *dev = ptdev->base.dev; in panthor_devfreq_init()
135 pdevfreq = drmm_kzalloc(&ptdev->base, sizeof(*ptdev->devfreq), GFP_KERNEL); in panthor_devfreq_init()
139 ptdev->devfreq = pdevfreq; in panthor_devfreq_init()
157 cur_freq = clk_get_rate(ptdev->clks.core); in panthor_devfreq_init()
231 int panthor_devfreq_resume(struct panthor_device *ptdev) in panthor_devfreq_resume() argument
233 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_resume()
243 int panthor_devfreq_suspend(struct panthor_device *ptdev) in panthor_devfreq_suspend() argument
245 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_suspend()
253 void panthor_devfreq_record_busy(struct panthor_device *ptdev) in panthor_devfreq_record_busy() argument
255 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_record_busy()
269 void panthor_devfreq_record_idle(struct panthor_device *ptdev) in panthor_devfreq_record_idle() argument
271 struct panthor_devfreq *pdevfreq = ptdev->devfreq; in panthor_devfreq_record_idle()