Lines Matching refs:instance
29 struct thermal_instance *instance; in thermal_zone_trip_update() local
46 list_for_each_entry(instance, &tz->thermal_instances, tz_node) { in thermal_zone_trip_update()
47 if (instance->trip != trip) in thermal_zone_trip_update()
51 if (instance->target == THERMAL_NO_TARGET) in thermal_zone_trip_update()
52 instance->target = 0; in thermal_zone_trip_update()
55 if (instance->target != 0 && instance->target != 1) { in thermal_zone_trip_update()
57 instance->name, instance->target); in thermal_zone_trip_update()
58 instance->target = 1; in thermal_zone_trip_update()
65 if (instance->target == 0 && tz->temperature >= trip_temp) in thermal_zone_trip_update()
66 instance->target = 1; in thermal_zone_trip_update()
67 else if (instance->target == 1 && in thermal_zone_trip_update()
69 instance->target = 0; in thermal_zone_trip_update()
71 dev_dbg(&instance->cdev->device, "target=%d\n", in thermal_zone_trip_update()
72 (int)instance->target); in thermal_zone_trip_update()
74 mutex_lock(&instance->cdev->lock); in thermal_zone_trip_update()
75 instance->cdev->updated = false; /* cdev needs update */ in thermal_zone_trip_update()
76 mutex_unlock(&instance->cdev->lock); in thermal_zone_trip_update()
111 struct thermal_instance *instance; in bang_bang_control() local
117 list_for_each_entry(instance, &tz->thermal_instances, tz_node) in bang_bang_control()
118 thermal_cdev_update(instance->cdev); in bang_bang_control()