Lines Matching refs:instance
19 struct thermal_instance *instance; in thermal_zone_trip_update() local
36 list_for_each_entry(instance, &tz->thermal_instances, tz_node) { in thermal_zone_trip_update()
37 if (instance->trip != trip) in thermal_zone_trip_update()
41 if (instance->target == THERMAL_NO_TARGET) in thermal_zone_trip_update()
42 instance->target = 0; in thermal_zone_trip_update()
45 if (instance->target != 0 && instance->target != 1) { in thermal_zone_trip_update()
47 instance->name, instance->target); in thermal_zone_trip_update()
48 instance->target = 1; in thermal_zone_trip_update()
55 if (instance->target == 0 && tz->temperature >= trip_temp) in thermal_zone_trip_update()
56 instance->target = 1; in thermal_zone_trip_update()
57 else if (instance->target == 1 && in thermal_zone_trip_update()
59 instance->target = 0; in thermal_zone_trip_update()
61 dev_dbg(&instance->cdev->device, "target=%d\n", in thermal_zone_trip_update()
62 (int)instance->target); in thermal_zone_trip_update()
64 mutex_lock(&instance->cdev->lock); in thermal_zone_trip_update()
65 instance->cdev->updated = false; /* cdev needs update */ in thermal_zone_trip_update()
66 mutex_unlock(&instance->cdev->lock); in thermal_zone_trip_update()
101 struct thermal_instance *instance; in bang_bang_control() local
107 list_for_each_entry(instance, &tz->thermal_instances, tz_node) in bang_bang_control()
108 thermal_cdev_update(instance->cdev); in bang_bang_control()