Lines Matching refs:trips
80 struct thermal_trip *trips; member
164 return data->trips; in of_thermal_get_trip_points()
308 *type = data->trips[trip].type; in of_thermal_get_trip_type()
321 *temp = data->trips[trip].temperature; in of_thermal_get_trip_temp()
335 data->trips[trip].temperature = temp; in of_thermal_set_trip_temp()
348 *hyst = data->trips[trip].hysteresis; in of_thermal_get_trip_hyst()
362 data->trips[trip].hysteresis = hyst; in of_thermal_set_trip_hyst()
374 if (data->trips[i].type == THERMAL_TRIP_CRITICAL) { in of_thermal_get_crit_temp()
375 *temp = data->trips[i].temperature; in of_thermal_get_crit_temp()
580 struct thermal_trip *trips, in thermal_of_populate_bind_params() argument
602 if (trip == trips[i].np) { in thermal_of_populate_bind_params()
785 tz->trips = kzalloc(tz->ntrips * sizeof(*tz->trips), GFP_KERNEL); in thermal_of_build_thermal_zone()
786 if (!tz->trips) { in thermal_of_build_thermal_zone()
793 ret = thermal_of_populate_trip(gchild, &tz->trips[i++]); in thermal_of_build_thermal_zone()
820 tz->trips, tz->ntrips); in thermal_of_build_thermal_zone()
837 of_node_put(tz->trips[i].np); in thermal_of_build_thermal_zone()
838 kfree(tz->trips); in thermal_of_build_thermal_zone()
855 of_node_put(tz->trips[i].np); in of_thermal_free_zone()
856 kfree(tz->trips); in of_thermal_free_zone()