Lines Matching refs:trips
76 struct thermal_trip *trips; member
160 return data->trips; in of_thermal_get_trip_points()
303 *type = data->trips[trip].type; in of_thermal_get_trip_type()
316 *temp = data->trips[trip].temperature; in of_thermal_get_trip_temp()
330 data->trips[trip].temperature = temp; in of_thermal_set_trip_temp()
343 *hyst = data->trips[trip].hysteresis; in of_thermal_get_trip_hyst()
357 data->trips[trip].hysteresis = hyst; in of_thermal_set_trip_hyst()
369 if (data->trips[i].type == THERMAL_TRIP_CRITICAL) { in of_thermal_get_crit_temp()
370 *temp = data->trips[i].temperature; in of_thermal_get_crit_temp()
575 struct thermal_trip *trips, in thermal_of_populate_bind_params() argument
597 if (trip == trips[i].np) { in thermal_of_populate_bind_params()
766 tz->trips = kzalloc(tz->ntrips * sizeof(*tz->trips), GFP_KERNEL); in thermal_of_build_thermal_zone()
767 if (!tz->trips) { in thermal_of_build_thermal_zone()
774 ret = thermal_of_populate_trip(gchild, &tz->trips[i++]); in thermal_of_build_thermal_zone()
801 tz->trips, tz->ntrips); in thermal_of_build_thermal_zone()
818 of_node_put(tz->trips[i].np); in thermal_of_build_thermal_zone()
819 kfree(tz->trips); in thermal_of_build_thermal_zone()
836 of_node_put(tz->trips[i].np); in of_thermal_free_zone()
837 kfree(tz->trips); in of_thermal_free_zone()