Lines Matching refs:df
86 struct devfreq *df = dfc->devfreq; in devfreq_cooling_set_cur_state() local
87 struct device *dev = df->dev.parent; in devfreq_cooling_set_cur_state()
134 static unsigned long get_voltage(struct devfreq *df, unsigned long freq) in get_voltage() argument
136 struct device *dev = df->dev.parent; in get_voltage()
180 struct devfreq *df = dfc->devfreq; in devfreq_cooling_get_requested_power() local
187 mutex_lock(&df->lock); in devfreq_cooling_get_requested_power()
188 status = df->last_status; in devfreq_cooling_get_requested_power()
189 mutex_unlock(&df->lock); in devfreq_cooling_get_requested_power()
194 voltage = get_voltage(df, freq); in devfreq_cooling_get_requested_power()
200 res = dfc->power_ops->get_real_power(df, power, freq, voltage); in devfreq_cooling_get_requested_power()
255 struct devfreq *df = dfc->devfreq; in devfreq_cooling_power2state() local
261 mutex_lock(&df->lock); in devfreq_cooling_power2state()
262 status = df->last_status; in devfreq_cooling_power2state()
263 mutex_unlock(&df->lock); in devfreq_cooling_power2state()
313 struct devfreq *df = dfc->devfreq; in devfreq_cooling_gen_tables() local
314 struct device *dev = df->dev.parent; in devfreq_cooling_gen_tables()
355 of_devfreq_cooling_register_power(struct device_node *np, struct devfreq *df, in of_devfreq_cooling_register_power() argument
359 struct device *dev = df->dev.parent; in of_devfreq_cooling_register_power()
368 dfc->devfreq = df; in of_devfreq_cooling_register_power()
444 of_devfreq_cooling_register(struct device_node *np, struct devfreq *df) in of_devfreq_cooling_register() argument
446 return of_devfreq_cooling_register_power(np, df, NULL); in of_devfreq_cooling_register()
454 struct thermal_cooling_device *devfreq_cooling_register(struct devfreq *df) in devfreq_cooling_register() argument
456 return of_devfreq_cooling_register(NULL, df); in devfreq_cooling_register()
477 devfreq_cooling_em_register(struct devfreq *df, in devfreq_cooling_em_register() argument
484 if (IS_ERR_OR_NULL(df)) in devfreq_cooling_em_register()
487 dev = df->dev.parent; in devfreq_cooling_em_register()
494 cdev = of_devfreq_cooling_register_power(dev->of_node, df, dfc_power); in devfreq_cooling_em_register()