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, *trip; in thermal_of_trips_init() local
129 trips = of_get_child_by_name(np, "trips"); in thermal_of_trips_init()
130 if (!trips) { in thermal_of_trips_init()
131 pr_err("Failed to find 'trips' node\n"); in thermal_of_trips_init()
135 count = of_get_child_count(trips); in thermal_of_trips_init()
151 for_each_child_of_node(trips, trip) { in thermal_of_trips_init()
157 of_node_put(trips); in thermal_of_trips_init()
165 of_node_put(trips); in thermal_of_trips_init()
441 struct thermal_trip *trips = tz->trips; in thermal_of_zone_unregister() local
446 kfree(trips); in thermal_of_zone_unregister()
474 struct thermal_trip *trips; in thermal_of_zone_register() local
495 trips = thermal_of_trips_init(np, &ntrips); in thermal_of_zone_register()
496 if (IS_ERR(trips)) { in thermal_of_zone_register()
498 ret = PTR_ERR(trips); in thermal_of_zone_register()
520 tz = thermal_zone_device_register_with_trips(np->name, trips, ntrips, in thermal_of_zone_register()
540 kfree(trips); in thermal_of_zone_register()