Lines Matching full:tz
225 static struct device_node *thermal_of_zone_get_by_name(struct thermal_zone_device *tz) in thermal_of_zone_get_by_name() argument
233 tz_np = of_get_child_by_name(np, tz->type); in thermal_of_zone_get_by_name()
277 static bool thermal_of_should_bind(struct thermal_zone_device *tz, in thermal_of_should_bind() argument
285 tz_np = thermal_of_zone_get_by_name(tz); in thermal_of_should_bind()
287 pr_err("Failed to get node tz by name\n"); in thermal_of_should_bind()
331 * @tz: a pointer to the thermal zone structure
333 static void thermal_of_zone_unregister(struct thermal_zone_device *tz) in thermal_of_zone_unregister() argument
335 thermal_zone_device_disable(tz); in thermal_of_zone_unregister()
336 thermal_zone_device_unregister(tz); in thermal_of_zone_unregister()
363 struct thermal_zone_device *tz; in thermal_of_zone_register() local
404 tz = thermal_zone_device_register_with_trips(np->name, trips, ntrips, in thermal_of_zone_register()
407 if (IS_ERR(tz)) { in thermal_of_zone_register()
408 ret = PTR_ERR(tz); in thermal_of_zone_register()
416 ret = thermal_zone_device_enable(tz); in thermal_of_zone_register()
419 tz->type, tz->id, ret); in thermal_of_zone_register()
420 thermal_of_zone_unregister(tz); in thermal_of_zone_register()
424 return tz; in thermal_of_zone_register()
487 * @tz: a pointer to struct thermal_zone where the sensor is registered.
496 void devm_thermal_of_zone_unregister(struct device *dev, struct thermal_zone_device *tz) in devm_thermal_of_zone_unregister() argument
499 devm_thermal_of_zone_match, tz)); in devm_thermal_of_zone_unregister()