Home
last modified time | relevance | path

Searched refs:crit_trip (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/thermal/tegra/
H A Dtegra30-tsensor.c307 int *hot_trip, int *crit_trip) in tegra_tsensor_get_hw_channel_trips() argument
316 *crit_trip = 90000; in tegra_tsensor_get_hw_channel_trips()
328 *crit_trip = trip.temperature; in tegra_tsensor_get_hw_channel_trips()
341 *crit_trip = clamp(*crit_trip + 5000, 25000, 90000); in tegra_tsensor_get_hw_channel_trips()
349 int err, hot_trip = 0, crit_trip = 0; in tegra_tsensor_enable_hw_channel() local
360 tegra_tsensor_get_hw_channel_trips(tzd, &hot_trip, &crit_trip); in tegra_tsensor_enable_hw_channel()
363 id, DIV_ROUND_CLOSEST(crit_trip, 1000)); in tegra_tsensor_enable_hw_channel()
366 crit_trip = tegra_tsensor_temp_to_counter(ts, crit_trip); in tegra_tsensor_enable_hw_channel()
377 val |= FIELD_PREP(TSENSOR_SENSOR0_CONFIG2_TH3, crit_trip); in tegra_tsensor_enable_hw_channel()