Lines Matching refs:instance
30 struct thermal_instance *instance; in thermal_zone_trip_update() local
41 list_for_each_entry(instance, &tz->thermal_instances, tz_node) { in thermal_zone_trip_update()
42 if (instance->trip != trip) in thermal_zone_trip_update()
46 if (instance->target == THERMAL_NO_TARGET) in thermal_zone_trip_update()
47 instance->target = 0; in thermal_zone_trip_update()
50 if (instance->target != 0 && instance->target != 1) { in thermal_zone_trip_update()
52 instance->name, instance->target); in thermal_zone_trip_update()
53 instance->target = 1; in thermal_zone_trip_update()
60 if (instance->target == 0 && tz->temperature >= trip_temp) in thermal_zone_trip_update()
61 instance->target = 1; in thermal_zone_trip_update()
62 else if (instance->target == 1 && in thermal_zone_trip_update()
64 instance->target = 0; in thermal_zone_trip_update()
66 dev_dbg(&instance->cdev->device, "target=%d\n", in thermal_zone_trip_update()
67 (int)instance->target); in thermal_zone_trip_update()
69 instance->cdev->updated = false; /* cdev needs update */ in thermal_zone_trip_update()
104 struct thermal_instance *instance; in bang_bang_control() local
110 list_for_each_entry(instance, &tz->thermal_instances, tz_node) in bang_bang_control()
111 thermal_cdev_update(instance->cdev); in bang_bang_control()