Lines Matching refs:temps
313 struct trip_temps *temps = arg; in tegra_tsensor_get_trips_cb() local
316 temps->hot_trip = trip->temperature; in tegra_tsensor_get_trips_cb()
318 temps->crit_trip = trip->temperature; in tegra_tsensor_get_trips_cb()
324 struct trip_temps *temps) in tegra_tsensor_get_hw_channel_trips() argument
330 temps->hot_trip = 85000; in tegra_tsensor_get_hw_channel_trips()
331 temps->crit_trip = 90000; in tegra_tsensor_get_hw_channel_trips()
333 thermal_zone_for_each_trip(tzd, tegra_tsensor_get_trips_cb, temps); in tegra_tsensor_get_hw_channel_trips()
336 temps->hot_trip = clamp(temps->hot_trip, 25000, 90000); in tegra_tsensor_get_hw_channel_trips()
345 temps->crit_trip = clamp(temps->crit_trip + 5000, 25000, 90000); in tegra_tsensor_get_hw_channel_trips()
353 struct trip_temps temps = { 0 }; in tegra_tsensor_enable_hw_channel() local
365 tegra_tsensor_get_hw_channel_trips(tzd, &temps); in tegra_tsensor_enable_hw_channel()
368 id, DIV_ROUND_CLOSEST(temps.crit_trip, 1000)); in tegra_tsensor_enable_hw_channel()
370 temps.hot_trip = tegra_tsensor_temp_to_counter(ts, temps.hot_trip); in tegra_tsensor_enable_hw_channel()
371 temps.crit_trip = tegra_tsensor_temp_to_counter(ts, temps.crit_trip); in tegra_tsensor_enable_hw_channel()
376 val |= FIELD_PREP(TSENSOR_SENSOR0_CONFIG1_TH2, temps.hot_trip); in tegra_tsensor_enable_hw_channel()
382 val |= FIELD_PREP(TSENSOR_SENSOR0_CONFIG2_TH3, temps.crit_trip); in tegra_tsensor_enable_hw_channel()