Lines Matching full:trips
25 struct device_node *trips; in of_find_trip_id() local
29 trips = of_get_child_by_name(np, "trips"); in of_find_trip_id()
30 if (!trips) { in of_find_trip_id()
31 pr_err("Failed to find 'trips' node\n"); in of_find_trip_id()
38 for_each_child_of_node(trips, t) { in of_find_trip_id()
49 of_node_put(trips); in of_find_trip_id()
126 struct device_node *trips; in thermal_of_trips_init() local
131 trips = of_get_child_by_name(np, "trips"); in thermal_of_trips_init()
132 if (!trips) in thermal_of_trips_init()
135 count = of_get_child_count(trips); in thermal_of_trips_init()
148 for_each_child_of_node_scoped(trips, trip) { in thermal_of_trips_init()
154 of_node_put(trips); in thermal_of_trips_init()
161 of_node_put(trips); in thermal_of_trips_init()
443 struct thermal_trip *trips = tz->trips; in thermal_of_zone_unregister() local
448 kfree(trips); in thermal_of_zone_unregister()
476 struct thermal_trip *trips; in thermal_of_zone_register() local
496 trips = thermal_of_trips_init(np, &ntrips); in thermal_of_zone_register()
497 if (IS_ERR(trips)) { in thermal_of_zone_register()
499 ret = PTR_ERR(trips); in thermal_of_zone_register()
503 if (!trips) in thermal_of_zone_register()
519 tz = thermal_zone_device_register_with_trips(np->name, trips, ntrips, in thermal_of_zone_register()
539 kfree(trips); in thermal_of_zone_register()