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(struct thermal_zone_device *tz, int *temp)
168 *temp = 0;
170 *temp = t;
205 int temp)
210 dev_dbg(priv->dev, "set temp %d to %d\n", type, temp);
212 /* round toward low temp for the low interrupt */
213 val = avs_tmon_temp_to_code(priv, temp,
245 /* Disable high-temp until next threshold shift */
248 /* Disable low-temp until next threshold shift */
268 * Disable low-temp if "low" is too small. As per thermal framework
278 /* Disable high-temp if "high" is too big. */