Lines Matching full:devfreq

4  *                  devfreq
9 * - If OPPs are added or removed after devfreq cooling has
10 * registered, the devfreq cooling won't react to it.
13 #include <linux/devfreq.h>
28 * struct devfreq_cooling_device - Devfreq cooling device
31 * @cooling_ops: devfreq callbacks to thermal cooling device ops
32 * @devfreq: Pointer to associated devfreq device.
47 * of the devfreq device.
48 * @em_pd: Energy Model for the associated Devfreq device
53 struct devfreq *devfreq; member
88 struct devfreq *df = dfc->devfreq; in devfreq_cooling_set_cur_state()
136 static unsigned long get_voltage(struct devfreq *df, unsigned long freq) in get_voltage()
182 struct devfreq *df = dfc->devfreq; in devfreq_cooling_get_requested_power()
264 struct devfreq *df = dfc->devfreq; in devfreq_cooling_power2state()
308 * @dfc: Pointer to devfreq cooling device.
320 struct devfreq *df = dfc->devfreq; in devfreq_cooling_gen_tables()
347 * of_devfreq_cooling_register_power() - Register devfreq cooling device,
350 * @df: Pointer to devfreq device.
353 * Register a devfreq cooling device. The available OPPs must be
358 * devfreq should use the simple_ondemand governor, other governors
362 of_devfreq_cooling_register_power(struct device_node *np, struct devfreq *df, in of_devfreq_cooling_register_power()
378 dfc->devfreq = df; in of_devfreq_cooling_register_power()
422 name = kasprintf(GFP_KERNEL, "devfreq-%s", dev_name(dev)); in of_devfreq_cooling_register_power()
432 "Failed to register devfreq cooling device (%d)\n", in of_devfreq_cooling_register_power()
453 * of_devfreq_cooling_register() - Register devfreq cooling device,
456 * @df: Pointer to devfreq device.
459 of_devfreq_cooling_register(struct device_node *np, struct devfreq *df) in of_devfreq_cooling_register()
466 * devfreq_cooling_register() - Register devfreq cooling device.
467 * @df: Pointer to devfreq device.
469 struct thermal_cooling_device *devfreq_cooling_register(struct devfreq *df) in devfreq_cooling_register()
476 * devfreq_cooling_em_register() - Register devfreq cooling device with
478 * @df: Pointer to devfreq device.
481 * Register a devfreq cooling device and automatically register EM. The
492 devfreq_cooling_em_register(struct devfreq *df, in devfreq_cooling_em_register()
506 dev_dbg(dev, "Unable to register EM for devfreq cooling device (%d)\n", in devfreq_cooling_em_register()
519 * devfreq_cooling_unregister() - Unregister devfreq cooling device.
520 * @cdev: Pointer to devfreq cooling device to unregister.
522 * Unregisters devfreq cooling device and related Energy Model if it was
534 dev = dfc->devfreq->dev.parent; in devfreq_cooling_unregister()