• Home
  • Raw
  • Download

Lines Matching refs:trip

140 bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, int trip)  in of_thermal_is_trip_valid()  argument
144 if (!data || trip >= data->ntrips || trip < 0) in of_thermal_is_trip_valid()
195 static int of_thermal_get_trend(struct thermal_zone_device *tz, int trip, in of_thermal_get_trend() argument
203 return data->ops->get_trend(data->sensor_data, trip, trend); in of_thermal_get_trend()
273 static int of_thermal_get_trip_type(struct thermal_zone_device *tz, int trip, in of_thermal_get_trip_type() argument
278 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_type()
281 *type = data->trips[trip].type; in of_thermal_get_trip_type()
286 static int of_thermal_get_trip_temp(struct thermal_zone_device *tz, int trip, in of_thermal_get_trip_temp() argument
291 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_temp()
294 *temp = data->trips[trip].temperature; in of_thermal_get_trip_temp()
299 static int of_thermal_set_trip_temp(struct thermal_zone_device *tz, int trip, in of_thermal_set_trip_temp() argument
304 if (trip >= data->ntrips || trip < 0) in of_thermal_set_trip_temp()
310 ret = data->ops->set_trip_temp(data->sensor_data, trip, temp); in of_thermal_set_trip_temp()
316 data->trips[trip].temperature = temp; in of_thermal_set_trip_temp()
321 static int of_thermal_get_trip_hyst(struct thermal_zone_device *tz, int trip, in of_thermal_get_trip_hyst() argument
326 if (trip >= data->ntrips || trip < 0) in of_thermal_get_trip_hyst()
329 *hyst = data->trips[trip].hysteresis; in of_thermal_get_trip_hyst()
334 static int of_thermal_set_trip_hyst(struct thermal_zone_device *tz, int trip, in of_thermal_set_trip_hyst() argument
339 if (trip >= data->ntrips || trip < 0) in of_thermal_set_trip_hyst()
343 data->trips[trip].hysteresis = hyst; in of_thermal_set_trip_hyst()
683 struct device_node *trip; in thermal_of_populate_bind_params() local
693 trip = of_parse_phandle(np, "trip", 0); in thermal_of_populate_bind_params()
694 if (!trip) { in thermal_of_populate_bind_params()
701 if (trip == trips[i].np) { in thermal_of_populate_bind_params()
753 of_node_put(trip); in thermal_of_populate_bind_params()
809 struct thermal_trip *trip) in thermal_of_populate_trip() argument
819 trip->temperature = prop; in thermal_of_populate_trip()
826 trip->hysteresis = prop; in thermal_of_populate_trip()
828 ret = thermal_of_get_trip_type(np, &trip->type); in thermal_of_populate_trip()
835 trip->np = np; in thermal_of_populate_trip()