Lines Matching refs:temp
120 static int cpu_check_overtemp(s32 temp) in cpu_check_overtemp() argument
127 if (temp >= (cpu_all_tmax + LOW_OVER_IMMEDIATE)) { in cpu_check_overtemp()
133 if (temp >= (cpu_all_tmax + HIGH_OVER_IMMEDIATE)) { in cpu_check_overtemp()
149 cpu_thist[i] = temp; in cpu_check_overtemp()
150 cpu_thist_total += temp; in cpu_check_overtemp()
160 cpu_thist[cpu_thist_pt] = temp; in cpu_check_overtemp()
163 cpu_thist_total += temp; in cpu_check_overtemp()
167 FIX32TOPRINT(t_avg), FIX32TOPRINT(t_old), FIX32TOPRINT(temp)); in cpu_check_overtemp()
195 (temp < (cpu_all_tmax + LOW_OVER_CLEAR))) { in cpu_check_overtemp()
203 static int read_one_cpu_vals(int cpu, s32 *temp, s32 *power) in read_one_cpu_vals() argument
215 *temp = dtemp; in read_one_cpu_vals()
249 s32 speed, temp, power, t_max = 0; in cpu_fans_tick() local
259 err = read_one_cpu_vals(cpu, &temp, &power); in cpu_fans_tick()
267 t_max = max(t_max, temp); in cpu_fans_tick()
274 wf_cpu_pid_run(sp, power, temp); in cpu_fans_tick()
368 s32 temp, dtemp; in backside_fan_tick() local
385 err = wf_sensor_get(backside_temp, &temp); in backside_fan_tick()
393 speed = wf_pid_run(&backside_pid, temp); in backside_fan_tick()
396 FIX32TOPRINT(temp), speed); in backside_fan_tick()
455 s32 temp; in slots_fan_tick() local
467 err = wf_sensor_get(slots_temp, &temp); in slots_fan_tick()
474 speed = wf_pid_run(&slots_pid, temp); in slots_fan_tick()
477 FIX32TOPRINT(temp), speed); in slots_fan_tick()