Lines Matching refs:child

459 	struct device_node *np, *child, *sensor_np;  in thermal_zone_of_sensor_register()  local
473 for_each_child_of_node(np, child) { in thermal_zone_of_sensor_register()
478 if (!of_device_is_available(child)) in thermal_zone_of_sensor_register()
482 ret = of_parse_phandle_with_args(child, "thermal-sensors", in thermal_zone_of_sensor_register()
498 tzd = thermal_zone_of_add_sensor(child, sensor_np, in thermal_zone_of_sensor_register()
504 of_node_put(child); in thermal_zone_of_sensor_register()
727 struct device_node *child = NULL, *gchild; in thermal_of_build_thermal_zone() local
756 child = of_get_child_by_name(np, "trips"); in thermal_of_build_thermal_zone()
759 if (!child) in thermal_of_build_thermal_zone()
762 tz->ntrips = of_get_child_count(child); in thermal_of_build_thermal_zone()
773 for_each_child_of_node(child, gchild) { in thermal_of_build_thermal_zone()
779 of_node_put(child); in thermal_of_build_thermal_zone()
782 child = of_get_child_by_name(np, "cooling-maps"); in thermal_of_build_thermal_zone()
785 if (!child) in thermal_of_build_thermal_zone()
788 tz->num_tbps = of_get_child_count(child); in thermal_of_build_thermal_zone()
799 for_each_child_of_node(child, gchild) { in thermal_of_build_thermal_zone()
807 of_node_put(child); in thermal_of_build_thermal_zone()
823 of_node_put(child); in thermal_of_build_thermal_zone()
855 struct device_node *np, *child; in of_parse_thermal_zones() local
865 for_each_child_of_node(np, child) { in of_parse_thermal_zones()
870 if (!of_device_is_available(child)) in of_parse_thermal_zones()
873 tz = thermal_of_build_thermal_zone(child); in of_parse_thermal_zones()
876 child->name, in of_parse_thermal_zones()
894 zone = thermal_zone_device_register(child->name, tz->ntrips, in of_parse_thermal_zones()
900 pr_err("Failed to build %s zone %ld\n", child->name, in of_parse_thermal_zones()
913 of_node_put(child); in of_parse_thermal_zones()
932 struct device_node *np, *child; in of_thermal_destroy_zones() local
940 for_each_child_of_node(np, child) { in of_thermal_destroy_zones()
944 if (!of_device_is_available(child)) in of_thermal_destroy_zones()
947 zone = thermal_zone_get_zone_by_name(child->name); in of_thermal_destroy_zones()