Lines Matching defs:instance
80 struct thermal_instance *instance;
87 list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
88 if (instance->trip != trip)
91 total_weight += instance->weight;
95 list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
97 struct thermal_cooling_device *cdev = instance->cdev;
99 if (instance->trip != trip)
105 percentage = (instance->weight * 100) / total_weight;
107 instance->target = get_target_state(tz, cdev, percentage,
110 mutex_lock(&instance->cdev->lock);
111 instance->cdev->updated = false;
112 mutex_unlock(&instance->cdev->lock);