Lines Matching refs:instance
96 struct thermal_instance *instance; in estimate_sustainable_power() local
99 list_for_each_entry(instance, &tz->thermal_instances, tz_node) { in estimate_sustainable_power()
100 struct thermal_cooling_device *cdev = instance->cdev; in estimate_sustainable_power()
103 if (instance->trip != params->trip_max_desired_temperature) in estimate_sustainable_power()
335 struct thermal_instance *instance; in allocate_power() local
348 list_for_each_entry(instance, &tz->thermal_instances, tz_node) { in allocate_power()
349 if ((instance->trip == trip_max_desired_temperature) && in allocate_power()
350 cdev_is_power_actor(instance->cdev)) { in allocate_power()
352 total_weight += instance->weight; in allocate_power()
388 list_for_each_entry(instance, &tz->thermal_instances, tz_node) { in allocate_power()
390 struct thermal_cooling_device *cdev = instance->cdev; in allocate_power()
392 if (instance->trip != trip_max_desired_temperature) in allocate_power()
404 weight = instance->weight; in allocate_power()
426 list_for_each_entry(instance, &tz->thermal_instances, tz_node) { in allocate_power()
427 if (instance->trip != trip_max_desired_temperature) in allocate_power()
430 if (!cdev_is_power_actor(instance->cdev)) in allocate_power()
433 power_actor_set_power(instance->cdev, instance, in allocate_power()
523 struct thermal_instance *instance; in allow_maximum_power() local
526 list_for_each_entry(instance, &tz->thermal_instances, tz_node) { in allow_maximum_power()
527 if ((instance->trip != params->trip_max_desired_temperature) || in allow_maximum_power()
528 (!cdev_is_power_actor(instance->cdev))) in allow_maximum_power()
531 instance->target = 0; in allow_maximum_power()
532 instance->cdev->updated = false; in allow_maximum_power()
533 thermal_cdev_update(instance->cdev); in allow_maximum_power()