Lines Matching defs:instance

100 static bool power_actor_is_valid(struct thermal_instance *instance)
102 return cdev_is_power_actor(instance->cdev);
121 struct thermal_instance *instance;
125 list_for_each_entry(instance, &td->thermal_instances, trip_node) {
126 if (!power_actor_is_valid(instance))
129 cdev = instance->cdev;
130 if (cdev->ops->state2power(cdev, instance->upper, &min_power))
304 * @instance: thermal instance to update
315 struct thermal_instance *instance, u32 power)
324 instance->target = clamp_val(state, instance->lower, instance->upper);
413 struct thermal_instance *instance;
427 list_for_each_entry(instance, &td->thermal_instances, trip_node) {
430 if (!power_actor_is_valid(instance))
433 cdev = instance->cdev;
442 weight = instance->weight;
446 ret = cdev->ops->state2power(cdev, instance->lower,
464 list_for_each_entry(instance, &td->thermal_instances, trip_node) {
467 if (!power_actor_is_valid(instance))
470 power_actor_set_power(instance->cdev, instance,
550 struct thermal_instance *instance;
553 list_for_each_entry(instance, &td->thermal_instances, trip_node) {
554 if (!power_actor_is_valid(instance))
557 cdev = instance->cdev;
559 instance->target = 0;
592 struct thermal_instance *instance;
600 list_for_each_entry(instance, &td->thermal_instances, trip_node) {
601 if (!cdev_is_power_actor(instance->cdev)) {
603 instance->cdev->type);
646 struct thermal_instance *instance;
654 list_for_each_entry(instance, &td->thermal_instances, trip_node)
655 if (power_actor_is_valid(instance))
656 params->total_weight += instance->weight;
664 struct thermal_instance *instance;
675 list_for_each_entry(instance, &td->thermal_instances, trip_node)
676 if (power_actor_is_valid(instance))