Lines Matching refs:cdev
43 struct thermal_cooling_device *cdev, in thermal_instance_present() argument
50 if (ti->cdev == cdev) in thermal_instance_present()
59 struct thermal_cooling_device *cdev) in thermal_trip_is_bound_to_cdev() argument
62 guard(cooling_dev)(cdev); in thermal_trip_is_bound_to_cdev()
64 return thermal_instance_present(tz, cdev, trip); in thermal_trip_is_bound_to_cdev()
147 static int thermal_cdev_set_cur_state(struct thermal_cooling_device *cdev, int state) in thermal_cdev_set_cur_state() argument
155 ret = cdev->ops->set_cur_state(cdev, state); in thermal_cdev_set_cur_state()
159 thermal_notify_cdev_state_update(cdev, state); in thermal_cdev_set_cur_state()
160 thermal_cooling_device_stats_update(cdev, state); in thermal_cdev_set_cur_state()
161 thermal_debug_cdev_state_update(cdev, state); in thermal_cdev_set_cur_state()
166 void __thermal_cdev_update(struct thermal_cooling_device *cdev) in __thermal_cdev_update() argument
172 list_for_each_entry(instance, &cdev->thermal_instances, cdev_node) { in __thermal_cdev_update()
179 thermal_cdev_set_cur_state(cdev, target); in __thermal_cdev_update()
181 trace_cdev_update(cdev, target); in __thermal_cdev_update()
182 dev_dbg(&cdev->device, "set to state %lu\n", target); in __thermal_cdev_update()
191 void thermal_cdev_update(struct thermal_cooling_device *cdev) in thermal_cdev_update() argument
193 guard(cooling_dev)(cdev); in thermal_cdev_update()
195 if (!cdev->updated) { in thermal_cdev_update()
196 __thermal_cdev_update(cdev); in thermal_cdev_update()
197 cdev->updated = true; in thermal_cdev_update()
205 void thermal_cdev_update_nocheck(struct thermal_cooling_device *cdev) in thermal_cdev_update_nocheck() argument
207 guard(cooling_dev)(cdev); in thermal_cdev_update_nocheck()
209 __thermal_cdev_update(cdev); in thermal_cdev_update_nocheck()