Lines Matching refs:instance
29 struct thermal_instance *instance; in thermal_zone_trip_update() local
40 list_for_each_entry(instance, &tz->thermal_instances, tz_node) { in thermal_zone_trip_update()
41 if (instance->trip != trip) in thermal_zone_trip_update()
45 if (instance->target == THERMAL_NO_TARGET) in thermal_zone_trip_update()
46 instance->target = 0; in thermal_zone_trip_update()
49 if (instance->target != 0 && instance->target != 1) { in thermal_zone_trip_update()
51 instance->name, instance->target); in thermal_zone_trip_update()
52 instance->target = 1; in thermal_zone_trip_update()
59 if (instance->target == 0 && tz->temperature >= trip_temp) in thermal_zone_trip_update()
60 instance->target = 1; in thermal_zone_trip_update()
61 else if (instance->target == 1 && in thermal_zone_trip_update()
63 instance->target = 0; in thermal_zone_trip_update()
65 dev_dbg(&instance->cdev->device, "target=%d\n", in thermal_zone_trip_update()
66 (int)instance->target); in thermal_zone_trip_update()
68 instance->cdev->updated = false; /* cdev needs update */ in thermal_zone_trip_update()
103 struct thermal_instance *instance; in bang_bang_control() local
109 list_for_each_entry(instance, &tz->thermal_instances, tz_node) in bang_bang_control()
110 thermal_cdev_update(instance->cdev); in bang_bang_control()