Lines Matching defs:temp
132 * @temp: temperature to convert
136 int temp, bool low)
141 if (temp < AVS_TMON_TEMP_MIN)
144 if (temp >= offset)
148 return (u32)(DIV_ROUND_UP(offset - temp, mult));
150 return (u32)((offset - temp) / mult);
153 static int brcmstb_get_temp(void *data, int *temp)
170 *temp = 0;
172 *temp = t;
207 int temp)
212 dev_dbg(priv->dev, "set temp %d to %d\n", type, temp);
214 /* round toward low temp for the low interrupt */
215 val = avs_tmon_temp_to_code(priv, temp,
247 /* Disable high-temp until next threshold shift */
250 /* Disable low-temp until next threshold shift */
270 * Disable low-temp if "low" is too small. As per thermal framework
280 /* Disable high-temp if "high" is too big. */