Home
last modified time | relevance | path

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

/drivers/hwmon/
A Damc6821.c160 temps[0] = regvals[1]; in amc6821_get_auto_point_temps()
166 temps[2] = temps[1] + DIV_ROUND_CLOSEST(255 - regvals[0], slope); in amc6821_get_auto_point_temps()
168 temps[2] = 255; in amc6821_get_auto_point_temps()
508 u8 temps[3]; in temp_auto_point_temp_show() local
566 dt = temps[2] - temps[1]; in set_slope_register()
586 u8 temps[3], otemps[3]; in temp_auto_point_temp_store() local
620 val = temps[1] / 4; in temp_auto_point_temp_store()
622 temps[2] = clamp_val(temps[2], temps[1] + 1, 255); in temp_auto_point_temp_store()
628 temps[2] = DIV_ROUND_CLOSEST(val, 1000); in temp_auto_point_temp_store()
659 u8 temps[3]; in pwm1_auto_point_pwm_store() local
[all …]
A Dad7414.c43 s8 temps[ARRAY_SIZE(AD7414_REG_LIMIT)]; member
94 data->temps[i] = value; in ad7414_update_device()
119 return sprintf(buf, "%d\n", data->temps[index] * 1000); in max_min_show()
140 data->temps[index] = temp; in max_min_store()
A Dthmc50.c87 int temps = data->has_temp3 ? 3 : 2; in thmc50_update_device() local
93 for (i = 0; i < temps; i++) { in thmc50_update_device()
A Dnct7904.c393 s8 temps; in nct7904_read_temp() local
499 temps = ret; in nct7904_read_temp()
500 *val = temps * 1000; in nct7904_read_temp()
/drivers/thermal/tegra/
A Dtegra30-tsensor.c313 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()
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
370 temps.hot_trip = tegra_tsensor_temp_to_counter(ts, temps.hot_trip); in tegra_tsensor_enable_hw_channel()
[all …]
/drivers/macintosh/
A Dtherm_adt746x.c77 u8 temps[3]; member
205 th->temps[i] = read_reg(th, TEMP_REG[i]); in read_sensors()
211 if (th->temps[0] != th->cached_temp[0] in display_stats()
212 || th->temps[1] != th->cached_temp[1] in display_stats()
213 || th->temps[2] != th->cached_temp[2]) { in display_stats()
218 th->temps[0], th->temps[1], th->temps[2], in display_stats()
222 th->cached_temp[0] = th->temps[0]; in display_stats()
223 th->cached_temp[1] = th->temps[1]; in display_stats()
224 th->cached_temp[2] = th->temps[2]; in display_stats()
237 int var = th->temps[i] - th->limits[i]; in update_fans_speed()
A Dwindfarm_pid.c103 st->temps[0] = st->temps[1] = new_temp; in wf_cpu_pid_run()
111 st->temps[st->tindex] = new_temp; in wf_cpu_pid_run()
125 deriv = st->temps[st->tindex] - in wf_cpu_pid_run()
126 st->temps[(st->tindex + 2 - 1) % 2]; in wf_cpu_pid_run()
A Dwindfarm_pid.h80 s32 temps[2]; /* temp. history buffer */ member
/drivers/platform/x86/dell/
A Ddell-wmi-ddv.c139 struct dell_wmi_ddv_sensors temps; member
350 &data->temps, sizeof(*entry)); in dell_wmi_ddv_temp_read_channel()
354 if (channel >= data->temps.entries) in dell_wmi_ddv_temp_read_channel()
388 mutex_lock(&data->temps.lock); in dell_wmi_ddv_read()
390 mutex_unlock(&data->temps.lock); in dell_wmi_ddv_read()
438 &data->temps, sizeof(*entry)); in dell_wmi_ddv_temp_read_string()
442 if (channel >= data->temps.entries) in dell_wmi_ddv_temp_read_string()
509 mutex_lock(&data->temps.lock); in dell_wmi_ddv_read_string()
511 mutex_unlock(&data->temps.lock); in dell_wmi_ddv_read_string()
638 info = dell_wmi_ddv_channel_init(wdev, DELL_DDV_THERMAL_SENSOR_INFORMATION, &data->temps, in dell_wmi_ddv_hwmon_add()
[all …]
/drivers/sbus/char/
A Dbbc_i2c.h64 struct list_head temps; member
A Dbbc_envctrl.c468 list_add(&tp->bp_list, &bp->temps); in attach_one_temp()
542 list_for_each_entry_safe(tp, tpos, &bp->temps, bp_list) { in destroy_all_temps()
A Dbbc_i2c.c305 INIT_LIST_HEAD(&bp->temps); in attach_one_i2c()
/drivers/platform/x86/
A Dasus-wmi.c241 u8 temps[FAN_CURVE_POINTS]; member
3249 data->temps[i] = buf[i]; in fan_curve_copy_from_buf()
3347 value = data->temps[index]; in fan_curve_show()
3360 u8 *temps = data->temps; in fan_curve_write() local
3367 arg1 += (temps[i]) << shift; in fan_curve_write()
3368 arg2 += (temps[i + 4]) << shift; in fan_curve_write()
3401 data->temps[index] = value; in fan_curve_store()

Completed in 91 milliseconds