Lines Matching refs:governor

76 	if (tz->governor && tz->governor->bind_to_tz) {  in bind_previous_governor()
77 if (tz->governor->bind_to_tz(tz)) { in bind_previous_governor()
80 failed_gov_name, tz->governor->name, tz->type); in bind_previous_governor()
81 tz->governor = NULL; in bind_previous_governor()
100 if (tz->governor && tz->governor->unbind_from_tz) in thermal_set_governor()
101 tz->governor->unbind_from_tz(tz); in thermal_set_governor()
112 tz->governor = new_gov; in thermal_set_governor()
117 int thermal_register_governor(struct thermal_governor *governor) in thermal_register_governor() argument
123 if (!governor) in thermal_register_governor()
129 if (!__find_governor(governor->name)) { in thermal_register_governor()
133 list_add(&governor->governor_list, &thermal_governor_list); in thermal_register_governor()
134 match_default = !strncmp(governor->name, in thermal_register_governor()
139 def_governor = governor; in thermal_register_governor()
149 if (pos->governor) in thermal_register_governor()
154 if (!strncasecmp(name, governor->name, THERMAL_NAME_LENGTH)) { in thermal_register_governor()
157 ret = thermal_set_governor(pos, governor); in thermal_register_governor()
161 governor->name, pos->type, ret); in thermal_register_governor()
171 void thermal_unregister_governor(struct thermal_governor *governor) in thermal_unregister_governor() argument
175 if (!governor) in thermal_unregister_governor()
180 if (!__find_governor(governor->name)) in thermal_unregister_governor()
186 if (!strncasecmp(pos->governor->name, governor->name, in thermal_unregister_governor()
192 list_del(&governor->governor_list); in thermal_unregister_governor()
243 struct thermal_governor **governor; in thermal_unregister_governors() local
245 for_each_governor_table(governor) in thermal_unregister_governors()
246 thermal_unregister_governor(*governor); in thermal_unregister_governors()
252 struct thermal_governor **governor; in thermal_register_governors() local
254 for_each_governor_table(governor) { in thermal_register_governors()
255 ret = thermal_register_governor(*governor); in thermal_register_governors()
258 (*governor)->name); in thermal_register_governors()
263 (*governor)->name); in thermal_register_governors()
270 if (gov == governor) in thermal_register_governors()
312 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
1219 struct thermal_governor *governor; in thermal_zone_device_register_with_trips() local
1320 governor = __find_governor(tz->tzp->governor_name); in thermal_zone_device_register_with_trips()
1322 governor = def_governor; in thermal_zone_device_register_with_trips()
1324 result = thermal_set_governor(tz, governor); in thermal_zone_device_register_with_trips()