Lines Matching refs:trips
74 struct thermal_trip *trips; member
169 return data->trips; in of_thermal_get_trip_points()
281 *type = data->trips[trip].type; in of_thermal_get_trip_type()
294 *temp = data->trips[trip].temperature; in of_thermal_get_trip_temp()
316 data->trips[trip].temperature = temp; in of_thermal_set_trip_temp()
329 *hyst = data->trips[trip].hysteresis; in of_thermal_get_trip_hyst()
343 data->trips[trip].hysteresis = hyst; in of_thermal_set_trip_hyst()
355 if (data->trips[i].type == THERMAL_TRIP_CRITICAL) { in of_thermal_get_crit_temp()
356 *temp = data->trips[i].temperature; in of_thermal_get_crit_temp()
678 struct thermal_trip *trips, in thermal_of_populate_bind_params() argument
701 if (trip == trips[i].np) { in thermal_of_populate_bind_params()
911 tz->trips = kcalloc(tz->ntrips, sizeof(*tz->trips), GFP_KERNEL); in thermal_of_build_thermal_zone()
912 if (!tz->trips) { in thermal_of_build_thermal_zone()
919 ret = thermal_of_populate_trip(gchild, &tz->trips[i++]); in thermal_of_build_thermal_zone()
946 tz->trips, tz->ntrips); in thermal_of_build_thermal_zone()
970 of_node_put(tz->trips[i].np); in thermal_of_build_thermal_zone()
971 kfree(tz->trips); in thermal_of_build_thermal_zone()
996 of_node_put(tz->trips[i].np); in of_thermal_free_zone()
997 kfree(tz->trips); in of_thermal_free_zone()