Lines Matching full:trips

59  * @trips: an array of trip points (0..ntrips - 1)
74 struct thermal_trip *trips; member
169 return data->trips; in of_thermal_get_trip_points()
278 *type = data->trips[trip].type; in of_thermal_get_trip_type()
291 *temp = data->trips[trip].temperature; in of_thermal_get_trip_temp()
313 data->trips[trip].temperature = temp; in of_thermal_set_trip_temp()
326 *hyst = data->trips[trip].hysteresis; in of_thermal_get_trip_hyst()
340 data->trips[trip].hysteresis = hyst; in of_thermal_set_trip_hyst()
352 if (data->trips[i].type == THERMAL_TRIP_CRITICAL) { in of_thermal_get_crit_temp()
353 *temp = data->trips[i].temperature; in of_thermal_get_crit_temp()
660 * @trips: array of thermal zone trip points
661 * @ntrips: number of trip points inside trips.
672 struct thermal_trip *trips, in thermal_of_populate_bind_params() argument
695 if (trip == trips[i].np) { in thermal_of_populate_bind_params()
891 /* trips */ in thermal_of_build_thermal_zone()
892 child = of_get_child_by_name(np, "trips"); in thermal_of_build_thermal_zone()
894 /* No trips provided */ in thermal_of_build_thermal_zone()
902 tz->trips = kcalloc(tz->ntrips, sizeof(*tz->trips), GFP_KERNEL); in thermal_of_build_thermal_zone()
903 if (!tz->trips) { in thermal_of_build_thermal_zone()
910 ret = thermal_of_populate_trip(gchild, &tz->trips[i++]); in thermal_of_build_thermal_zone()
937 tz->trips, tz->ntrips); in thermal_of_build_thermal_zone()
961 of_node_put(tz->trips[i].np); in thermal_of_build_thermal_zone()
962 kfree(tz->trips); in thermal_of_build_thermal_zone()
987 of_node_put(tz->trips[i].np); in of_thermal_free_zone()
988 kfree(tz->trips); in of_thermal_free_zone()