Lines Matching refs:instance
89 struct thermal_instance *instance;
92 list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
93 struct thermal_cooling_device *cdev = instance->cdev;
96 if (instance->trip != params->trip_max_desired_temperature)
328 struct thermal_instance *instance;
341 list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
342 if ((instance->trip == trip_max_desired_temperature) &&
343 cdev_is_power_actor(instance->cdev)) {
345 total_weight += instance->weight;
381 list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
383 struct thermal_cooling_device *cdev = instance->cdev;
385 if (instance->trip != trip_max_desired_temperature)
397 weight = instance->weight;
419 list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
420 if (instance->trip != trip_max_desired_temperature)
423 if (!cdev_is_power_actor(instance->cdev))
426 power_actor_set_power(instance->cdev, instance,
516 struct thermal_instance *instance;
520 list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
521 if ((instance->trip != params->trip_max_desired_temperature) ||
522 (!cdev_is_power_actor(instance->cdev)))
525 instance->target = 0;
526 mutex_lock(&instance->cdev->lock);
527 instance->cdev->updated = false;
528 mutex_unlock(&instance->cdev->lock);
529 thermal_cdev_update(instance->cdev);