Lines Matching refs:df
135 struct devfreq *df = dfc->devfreq; in devfreq_cooling_set_cur_state() local
136 struct device *dev = df->dev.parent; in devfreq_cooling_set_cur_state()
177 static unsigned long get_voltage(struct devfreq *df, unsigned long freq) in get_voltage() argument
179 struct device *dev = df->dev.parent; in get_voltage()
218 struct devfreq *df = dfc->devfreq; in get_static_power() local
224 voltage = get_voltage(df, freq); in get_static_power()
229 return dfc->power_ops->get_static_power(df, voltage); in get_static_power()
278 struct devfreq *df = dfc->devfreq; in devfreq_cooling_get_requested_power() local
279 struct devfreq_dev_status *status = &df->last_status; in devfreq_cooling_get_requested_power()
294 voltage = get_voltage(df, freq); in devfreq_cooling_get_requested_power()
300 res = dfc->power_ops->get_real_power(df, power, freq, voltage); in devfreq_cooling_get_requested_power()
357 struct devfreq *df = dfc->devfreq; in devfreq_cooling_power2state() local
358 struct devfreq_dev_status *status = &df->last_status; in devfreq_cooling_power2state()
421 struct devfreq *df = dfc->devfreq; in devfreq_cooling_gen_tables() local
422 struct device *dev = df->dev.parent; in devfreq_cooling_gen_tables()
505 of_devfreq_cooling_register_power(struct device_node *np, struct devfreq *df, in of_devfreq_cooling_register_power() argument
517 dfc->devfreq = df; in of_devfreq_cooling_register_power()
543 dev_err(df->dev.parent, in of_devfreq_cooling_register_power()
572 of_devfreq_cooling_register(struct device_node *np, struct devfreq *df) in of_devfreq_cooling_register() argument
574 return of_devfreq_cooling_register_power(np, df, NULL); in of_devfreq_cooling_register()
582 struct thermal_cooling_device *devfreq_cooling_register(struct devfreq *df) in devfreq_cooling_register() argument
584 return of_devfreq_cooling_register(NULL, df); in devfreq_cooling_register()