Home
last modified time | relevance | path

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

/linux/drivers/hwmon/
H A Dsmsc47m192.c75 static inline s8 TEMP_TO_REG(long val) in TEMP_TO_REG() function
309 data->temp_min[nr] = TEMP_TO_REG(val); in temp_min_store()
332 data->temp_max[nr] = TEMP_TO_REG(val); in temp_max_store()
365 data->temp_offset[nr] = TEMP_TO_REG(val); in temp_offset_store()
H A Dadm1025.c87 #define TEMP_TO_REG(val) ((val) <= -127500 ? -128 : \ macro
290 data->temp_min[index] = TEMP_TO_REG(val); in temp_min_store()
312 data->temp_max[index] = TEMP_TO_REG(val); in temp_max_store()
H A Dadm1031.c198 #define TEMP_TO_REG(val) (((val) < 0 ? ((val - 500) / 1000) : \ macro
205 #define TEMP_OFFSET_TO_REG(val) (TEMP_TO_REG(val) & 0x8f)
743 data->temp_min[nr] = TEMP_TO_REG(val); in temp_min_store()
765 data->temp_max[nr] = TEMP_TO_REG(val); in temp_max_store()
787 data->temp_crit[nr] = TEMP_TO_REG(val); in temp_crit_store()
H A Dlm85.c146 #define TEMP_TO_REG(val) \ macro
970 data->temp_min[nr] = TEMP_TO_REG(val); in temp_min_store()
1002 data->temp_max[nr] = TEMP_TO_REG(val); in temp_max_store()
1193 data->zone[nr].limit = TEMP_TO_REG(val); in temp_auto_temp_min_store()
1236 data->zone[nr].max_desired = TEMP_TO_REG(val); in temp_auto_temp_max_store()
1270 data->zone[nr].critical = TEMP_TO_REG(val); in temp_auto_temp_crit_store()
H A Dw83793.c199 static inline s8 TEMP_TO_REG(long val, s8 min, s8 max) in TEMP_TO_REG() function
596 data->temp[index][nr] = TEMP_TO_REG(tmp, -128, 127); in store_temp()
746 data->temp_critical |= TEMP_TO_REG(val, 0, 0x7f); in store_sf_setup()
850 data->temp_cruise[index] |= TEMP_TO_REG(val, 0, 0x7f); in store_sf_ctrl()
861 data->tolerance[i] |= TEMP_TO_REG(val, 0, 0x0f) << shift; in store_sf_ctrl()
939 val = TEMP_TO_REG(val, 0, 0x7f); in store_sf2_temp()
H A Dgl520sm.c499 #define TEMP_TO_REG(val) (DIV_ROUND_CLOSEST(TEMP_CLAMP(val), 1000) + 130) macro
543 data->temp_max[n] = TEMP_TO_REG(v); in temp_max_store()
564 data->temp_max_hyst[n] = TEMP_TO_REG(v); in temp_max_hyst_store()
H A Df75375s.c548 #define TEMP_TO_REG(val) ((val) / 1000) macro
588 val = clamp_val(TEMP_TO_REG(val), 0, 127); in set_temp_max()
609 val = clamp_val(TEMP_TO_REG(val), 0, 127); in set_temp_max_hyst()
H A Dlm80.c77 #define TEMP_TO_REG(temp) (DIV_ROUND_CLOSEST(clamp_val((temp), \ macro
425 data->temp[nr] = TEMP_TO_REG(val); in temp_store()
H A Dpc87360.c179 #define TEMP_TO_REG(val) ((val) < -55000 ? -55 : \ macro
931 data->temp_min[attr->index] = TEMP_TO_REG(val); in temp_min_store()
966 data->temp_max[attr->index] = TEMP_TO_REG(val); in temp_max_store()
1002 data->temp_crit[attr->index] = TEMP_TO_REG(val); in temp_crit_store()
H A Dasb100.c136 static u8 TEMP_TO_REG(long temp) in TEMP_TO_REG() function
446 data->reg[nr] = TEMP_TO_REG(val); \
H A Dgl518sm.c77 #define TEMP_TO_REG(val) (DIV_ROUND_CLOSEST(TEMP_CLAMP(val), 1000) + 119) macro
H A Dit87.c700 #define TEMP_TO_REG(val) (clamp_val(((val) < 0 ? (((val) - 500) / 1000) : \ macro
1147 data->temp[nr][index] = TEMP_TO_REG(val); in set_temp()
1880 reg = data->auto_temp[nr][1] - TEMP_TO_REG(val); in set_auto_temp()
1885 reg = TEMP_TO_REG(val); in set_auto_temp()