Lines Matching refs:tz_np
272 struct device_node *np, *tz_np; in thermal_of_zone_get_by_name() local
278 tz_np = of_get_child_by_name(np, tz->type); in thermal_of_zone_get_by_name()
282 if (!tz_np) in thermal_of_zone_get_by_name()
285 return tz_np; in thermal_of_zone_get_by_name()
354 static int thermal_of_for_each_cooling_device(struct device_node *tz_np, struct device_node *map_np, in thermal_of_for_each_cooling_device() argument
366 trip_id = of_find_trip_id(tz_np, tr_np); in thermal_of_for_each_cooling_device()
392 struct device_node *tz_np, *cm_np, *child; in thermal_of_for_each_cooling_maps() local
395 tz_np = thermal_of_zone_get_by_name(tz); in thermal_of_for_each_cooling_maps()
396 if (IS_ERR(tz_np)) { in thermal_of_for_each_cooling_maps()
398 return PTR_ERR(tz_np); in thermal_of_for_each_cooling_maps()
401 cm_np = of_get_child_by_name(tz_np, "cooling-maps"); in thermal_of_for_each_cooling_maps()
406 ret = thermal_of_for_each_cooling_device(tz_np, child, tz, cdev, action); in thermal_of_for_each_cooling_maps()
415 of_node_put(tz_np); in thermal_of_for_each_cooling_maps()