Lines Matching refs:instance
16 static void bang_bang_set_instance_target(struct thermal_instance *instance, in bang_bang_set_instance_target() argument
19 if (instance->target != 0 && instance->target != 1 && in bang_bang_set_instance_target()
20 instance->target != THERMAL_NO_TARGET) in bang_bang_set_instance_target()
22 instance->target, instance->name); in bang_bang_set_instance_target()
28 instance->target = target; in bang_bang_set_instance_target()
29 instance->initialized = true; in bang_bang_set_instance_target()
31 dev_dbg(&instance->cdev->device, "target=%ld\n", instance->target); in bang_bang_set_instance_target()
33 mutex_lock(&instance->cdev->lock); in bang_bang_set_instance_target()
34 __thermal_cdev_update(instance->cdev); in bang_bang_set_instance_target()
35 mutex_unlock(&instance->cdev->lock); in bang_bang_set_instance_target()
70 struct thermal_instance *instance; in bang_bang_control() local
78 list_for_each_entry(instance, &tz->thermal_instances, tz_node) { in bang_bang_control()
79 if (instance->trip == trip) in bang_bang_control()
80 bang_bang_set_instance_target(instance, crossed_up); in bang_bang_control()
87 struct thermal_instance *instance; in bang_bang_manage() local
107 list_for_each_entry(instance, &tz->thermal_instances, tz_node) { in bang_bang_manage()
108 if (!instance->initialized && instance->trip == trip) in bang_bang_manage()
109 bang_bang_set_instance_target(instance, turn_on); in bang_bang_manage()