Home
last modified time | relevance | path

Searched refs:DIV_TO_REG (Results 1 – 9 of 9) sorted by relevance

/drivers/hwmon/
Dw83l786ng.c111 DIV_TO_REG(long val) in DIV_TO_REG() function
302 data->fan_div[nr] = DIV_TO_REG(simple_strtoul(buf, NULL, 10)); in store_fan_div()
Dvia686a.c291 #define DIV_TO_REG(val) ((val)==8?3:(val)==4?2:(val)==1?0:1) macro
512 data->fan_div[nr] = DIV_TO_REG(val); in set_fan_div()
Dadm1026.c212 #define DIV_TO_REG(val) ((val) >= 8 ? 3 : (val) >= 4 ? 2 : (val) >= 2 ? 1 : 0) macro
925 new_div = DIV_TO_REG(val); in set_fan_div()
936 ((DIV_TO_REG(orig_div) & (~(0x03 << shift))) | in set_fan_div()
941 ((DIV_TO_REG(orig_div) & (~(0x03 << (2 * shift)))) | in set_fan_div()
Dasb100.c173 static u8 DIV_TO_REG(long val) in DIV_TO_REG() function
346 data->fan_div[nr] = DIV_TO_REG(val); in set_fan_div()
Dit87.c221 static int DIV_TO_REG(int val) in DIV_TO_REG() function
628 data->fan_div[nr] = DIV_TO_REG(val); in set_fan_div()
Dw83792d.c260 DIV_TO_REG(long val) in DIV_TO_REG() function
465 data->fan_div[nr] = DIV_TO_REG(simple_strtoul(buf, NULL, 10)); in store_fan_div()
Dsis5595.c156 static inline u8 DIV_TO_REG(int val) in DIV_TO_REG() function
Dw83627hf.c335 static inline u8 DIV_TO_REG(long val) in DIV_TO_REG() function
898 data->fan_div[nr] = DIV_TO_REG(val); in store_fan_div()
Dw83781d.c190 DIV_TO_REG(long val, enum chips type) in DIV_TO_REG() function
641 data->fan_div[nr] = DIV_TO_REG(val, data->type); in store_fan_div()