Lines Matching defs:devfreq

9  * DEVFREQ framework and is based on drivers/devfreq/exynos/exynos4_bus.c.
13 #include <linux/devfreq.h>
14 #include <linux/devfreq-event.h>
28 struct devfreq *devfreq;
41 * Control the devfreq-event device to get the current state of bus
90 * devfreq function for both simple-ondemand and passive governor
129 dev_err(dev, "failed to get event from devfreq-event devices\n");
137 dev_dbg(dev, "Usage of devfreq-event : %lu/%lu\n", stat->busy_time,
143 dev_err(dev, "failed to set event to devfreq-event devices\n");
157 dev_warn(dev, "failed to disable the devfreq-event devices\n");
193 * Get the devfreq-event devices to get the current utilization of
194 * buses. This raw data will be used in devfreq ondemand governor.
196 count = devfreq_event_get_edev_count(dev, "devfreq-events");
198 dev_err(dev, "failed to get the count of devfreq-event dev\n");
213 "devfreq-events", i);
222 * When measuring the utilization of each AXI bus with devfreq-event
224 * total cycle of bus during sampling rate. In result, the devfreq
311 /* Add devfreq device to monitor and handle the exynos bus */
312 bus->devfreq = devm_devfreq_add_device(dev, profile,
315 if (IS_ERR(bus->devfreq)) {
316 dev_err(dev, "failed to add devfreq device\n");
317 return PTR_ERR(bus->devfreq);
321 ret = devm_devfreq_register_opp_notifier(dev, bus->devfreq);
328 * Enable devfreq-event to get raw data which is used to determine
333 dev_err(dev, "failed to enable devfreq-event devices\n");
339 dev_err(dev, "failed to set event to devfreq-event devices\n");
347 dev_warn(dev, "failed to disable the devfreq-event devices\n");
357 struct devfreq *parent_devfreq;
363 /* Get the instance of parent devfreq device */
364 parent_devfreq = devfreq_get_devfreq_by_phandle(dev, "devfreq", 0);
374 /* Add devfreq device for exynos bus with passive governor */
375 bus->devfreq = devm_devfreq_add_device(dev, profile, DEVFREQ_GOV_PASSIVE,
377 if (IS_ERR(bus->devfreq)) {
379 "failed to add devfreq dev with passive governor\n");
380 return PTR_ERR(bus->devfreq);
412 node = of_parse_phandle(dev->of_node, "devfreq", 0);
435 max_state = bus->devfreq->profile->max_state;
436 min_freq = (bus->devfreq->profile->freq_table[0] / 1000);
437 max_freq = (bus->devfreq->profile->freq_table[max_state - 1] / 1000);
459 devfreq_suspend_device(bus->devfreq);
470 dev_err(dev, "failed to enable the devfreq-event devices\n");
484 dev_err(dev, "failed to disable the devfreq-event devices\n");