Lines Matching refs:df
88 struct devfreq *df = dfc->devfreq;
89 struct device *dev = df->dev.parent;
136 static unsigned long get_voltage(struct devfreq *df, unsigned long freq)
138 struct device *dev = df->dev.parent;
182 struct devfreq *df = dfc->devfreq;
189 mutex_lock(&df->lock);
190 status = df->last_status;
191 mutex_unlock(&df->lock);
196 voltage = get_voltage(df, freq);
202 res = dfc->power_ops->get_real_power(df, power, freq, voltage);
264 struct devfreq *df = dfc->devfreq;
270 mutex_lock(&df->lock);
271 status = df->last_status;
272 mutex_unlock(&df->lock);
320 struct devfreq *df = dfc->devfreq;
321 struct device *dev = df->dev.parent;
350 * @df: Pointer to devfreq device.
362 of_devfreq_cooling_register_power(struct device_node *np, struct devfreq *df,
366 struct device *dev = df->dev.parent;
378 dfc->devfreq = df;
456 * @df: Pointer to devfreq device.
459 of_devfreq_cooling_register(struct device_node *np, struct devfreq *df)
461 return of_devfreq_cooling_register_power(np, df, NULL);
467 * @df: Pointer to devfreq device.
469 struct thermal_cooling_device *devfreq_cooling_register(struct devfreq *df)
471 return of_devfreq_cooling_register(NULL, df);
478 * @df: Pointer to devfreq device.
492 devfreq_cooling_em_register(struct devfreq *df,
499 if (IS_ERR_OR_NULL(df))
502 dev = df->dev.parent;
509 cdev = of_devfreq_cooling_register_power(dev->of_node, df, dfc_power);