Lines Matching refs:pfdev
51 struct panfrost_device *pfdev = dev_get_drvdata(dev); in panfrost_devfreq_get_dev_status() local
52 struct panfrost_devfreq *pfdevfreq = &pfdev->pfdevfreq; in panfrost_devfreq_get_dev_status()
55 status->current_frequency = clk_get_rate(pfdev->clock); in panfrost_devfreq_get_dev_status()
70 dev_dbg(pfdev->dev, "busy %lu total %lu %lu %% freq %lu MHz\n", in panfrost_devfreq_get_dev_status()
85 int panfrost_devfreq_init(struct panfrost_device *pfdev) in panfrost_devfreq_init() argument
90 struct device *dev = &pfdev->pdev->dev; in panfrost_devfreq_init()
93 struct panfrost_devfreq *pfdevfreq = &pfdev->pfdevfreq; in panfrost_devfreq_init()
95 if (pfdev->comp->num_supplies > 1) { in panfrost_devfreq_init()
104 ret = devm_pm_opp_set_regulators(dev, pfdev->comp->supply_names, in panfrost_devfreq_init()
105 pfdev->comp->num_supplies); in panfrost_devfreq_init()
128 cur_freq = clk_get_rate(pfdev->clock); in panfrost_devfreq_init()
162 void panfrost_devfreq_fini(struct panfrost_device *pfdev) in panfrost_devfreq_fini() argument
164 struct panfrost_devfreq *pfdevfreq = &pfdev->pfdevfreq; in panfrost_devfreq_fini()
172 void panfrost_devfreq_resume(struct panfrost_device *pfdev) in panfrost_devfreq_resume() argument
174 struct panfrost_devfreq *pfdevfreq = &pfdev->pfdevfreq; in panfrost_devfreq_resume()
184 void panfrost_devfreq_suspend(struct panfrost_device *pfdev) in panfrost_devfreq_suspend() argument
186 struct panfrost_devfreq *pfdevfreq = &pfdev->pfdevfreq; in panfrost_devfreq_suspend()