Lines Matching refs:instance
1079 struct thermal_instance *instance, u32 power) in power_actor_set_power() argument
1087 ret = cdev->ops->power2state(cdev, instance->tz, power, &state); in power_actor_set_power()
1091 instance->target = state; in power_actor_set_power()
1179 struct thermal_instance *instance; in thermal_cooling_device_trip_point_show() local
1181 instance = in thermal_cooling_device_trip_point_show()
1184 if (instance->trip == THERMAL_TRIPS_NONE) in thermal_cooling_device_trip_point_show()
1187 return sprintf(buf, "%d\n", instance->trip); in thermal_cooling_device_trip_point_show()
1210 struct thermal_instance *instance; in thermal_cooling_device_weight_show() local
1212 instance = container_of(attr, struct thermal_instance, weight_attr); in thermal_cooling_device_weight_show()
1214 return sprintf(buf, "%d\n", instance->weight); in thermal_cooling_device_weight_show()
1222 struct thermal_instance *instance; in thermal_cooling_device_weight_store() local
1229 instance = container_of(attr, struct thermal_instance, weight_attr); in thermal_cooling_device_weight_store()
1230 instance->weight = weight; in thermal_cooling_device_weight_store()
1619 struct thermal_instance *instance; in thermal_cdev_update() local
1628 list_for_each_entry(instance, &cdev->thermal_instances, cdev_node) { in thermal_cdev_update()
1630 instance->tz->id, instance->target); in thermal_cdev_update()
1631 if (instance->target == THERMAL_NO_TARGET) in thermal_cdev_update()
1633 if (instance->target > target) in thermal_cdev_update()
1634 target = instance->target; in thermal_cdev_update()