Lines Matching defs: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>
31 * @cooling_ops: devfreq callbacks to thermal cooling device ops
32 * @devfreq: Pointer to associated devfreq device.
47 * of the devfreq device.
53 struct devfreq *devfreq;
88 struct devfreq *df = dfc->devfreq;
136 static unsigned long get_voltage(struct devfreq *df, unsigned long freq)
182 struct devfreq *df = dfc->devfreq;
264 struct devfreq *df = dfc->devfreq;
308 * @dfc: Pointer to devfreq cooling device.
320 struct devfreq *df = dfc->devfreq;
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,
378 dfc->devfreq = df;
422 name = kasprintf(GFP_KERNEL, "devfreq-%s", dev_name(dev));
432 "Failed to register devfreq cooling device (%d)\n",
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)
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)
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,
506 dev_dbg(dev, "Unable to register EM for devfreq cooling device (%d)\n",
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;