Lines Matching refs:child
464 struct device_node *np, *child, *sensor_np; in thermal_zone_of_sensor_register() local
478 for_each_child_of_node(np, child) { in thermal_zone_of_sensor_register()
483 if (!of_device_is_available(child)) in thermal_zone_of_sensor_register()
487 ret = of_parse_phandle_with_args(child, "thermal-sensors", in thermal_zone_of_sensor_register()
503 tzd = thermal_zone_of_add_sensor(child, sensor_np, in thermal_zone_of_sensor_register()
509 of_node_put(child); in thermal_zone_of_sensor_register()
732 struct device_node *child = NULL, *gchild; in thermal_of_build_thermal_zone() local
775 child = of_get_child_by_name(np, "trips"); in thermal_of_build_thermal_zone()
778 if (!child) in thermal_of_build_thermal_zone()
781 tz->ntrips = of_get_child_count(child); in thermal_of_build_thermal_zone()
792 for_each_child_of_node(child, gchild) { in thermal_of_build_thermal_zone()
798 of_node_put(child); in thermal_of_build_thermal_zone()
801 child = of_get_child_by_name(np, "cooling-maps"); in thermal_of_build_thermal_zone()
804 if (!child) in thermal_of_build_thermal_zone()
807 tz->num_tbps = of_get_child_count(child); in thermal_of_build_thermal_zone()
818 for_each_child_of_node(child, gchild) { in thermal_of_build_thermal_zone()
826 of_node_put(child); in thermal_of_build_thermal_zone()
842 of_node_put(child); in thermal_of_build_thermal_zone()
874 struct device_node *np, *child; in of_parse_thermal_zones() local
884 for_each_child_of_node(np, child) { in of_parse_thermal_zones()
891 if (!of_device_is_available(child)) in of_parse_thermal_zones()
894 tz = thermal_of_build_thermal_zone(child); in of_parse_thermal_zones()
897 child->name, in of_parse_thermal_zones()
915 if (!of_property_read_u32(child, "sustainable-power", &prop)) in of_parse_thermal_zones()
925 zone = thermal_zone_device_register(child->name, tz->ntrips, in of_parse_thermal_zones()
931 pr_err("Failed to build %s zone %ld\n", child->name, in of_parse_thermal_zones()
944 of_node_put(child); in of_parse_thermal_zones()
963 struct device_node *np, *child; in of_thermal_destroy_zones() local
971 for_each_child_of_node(np, child) { in of_thermal_destroy_zones()
975 if (!of_device_is_available(child)) in of_thermal_destroy_zones()
978 zone = thermal_zone_get_zone_by_name(child->name); in of_thermal_destroy_zones()