Lines Matching full:trips

70 	return tz->trips;  in of_thermal_get_trip_points()
80 *type = tz->trips[trip].type; in of_thermal_get_trip_type()
91 *temp = tz->trips[trip].temperature; in of_thermal_get_trip_temp()
102 *hyst = tz->trips[trip].hysteresis; in of_thermal_get_trip_hyst()
114 tz->trips[trip].hysteresis = hyst; in of_thermal_set_trip_hyst()
125 if (tz->trips[i].type == THERMAL_TRIP_CRITICAL) { in of_thermal_get_crit_temp()
126 *temp = tz->trips[i].temperature; in of_thermal_get_crit_temp()
137 struct device_node *trips; in of_find_trip_id() local
141 trips = of_get_child_by_name(np, "trips"); in of_find_trip_id()
142 if (!trips) { in of_find_trip_id()
143 pr_err("Failed to find 'trips' node\n"); in of_find_trip_id()
150 for_each_child_of_node(trips, t) { in of_find_trip_id()
159 of_node_put(trips); in of_find_trip_id()
236 struct device_node *trips, *trip; in thermal_of_trips_init() local
239 trips = of_get_child_by_name(np, "trips"); in thermal_of_trips_init()
240 if (!trips) { in thermal_of_trips_init()
241 pr_err("Failed to find 'trips' node\n"); in thermal_of_trips_init()
245 count = of_get_child_count(trips); in thermal_of_trips_init()
261 for_each_child_of_node(trips, trip) { in thermal_of_trips_init()
267 of_node_put(trips); in thermal_of_trips_init()
275 of_node_put(trips); in thermal_of_trips_init()
555 struct thermal_trip *trips = tz->trips; in thermal_of_zone_unregister() local
561 kfree(trips); in thermal_of_zone_unregister()
591 struct thermal_trip *trips; in thermal_of_zone_register() local
610 trips = thermal_of_trips_init(np, &ntrips); in thermal_of_zone_register()
611 if (IS_ERR(trips)) { in thermal_of_zone_register()
613 return ERR_CAST(trips); in thermal_of_zone_register()
639 tz = thermal_zone_device_register_with_trips(np->name, trips, ntrips, in thermal_of_zone_register()
661 kfree(trips); in thermal_of_zone_register()