Lines Matching refs:tz_np
271 struct device_node *np, *tz_np;
277 tz_np = of_get_child_by_name(np, tz->type);
281 if (!tz_np)
284 return tz_np;
353 static int thermal_of_for_each_cooling_device(struct device_node *tz_np, struct device_node *map_np,
365 trip_id = of_find_trip_id(tz_np, tr_np);
391 struct device_node *tz_np, *cm_np, *child;
394 tz_np = thermal_of_zone_get_by_name(tz);
395 if (IS_ERR(tz_np)) {
397 return PTR_ERR(tz_np);
400 cm_np = of_get_child_by_name(tz_np, "cooling-maps");
405 ret = thermal_of_for_each_cooling_device(tz_np, child, tz, cdev, action);
414 of_node_put(tz_np);