Searched refs:DIV_TO_REG (Results 1 – 9 of 9) sorted by relevance
111 DIV_TO_REG(long val) in DIV_TO_REG() function302 data->fan_div[nr] = DIV_TO_REG(simple_strtoul(buf, NULL, 10)); in store_fan_div()
291 #define DIV_TO_REG(val) ((val)==8?3:(val)==4?2:(val)==1?0:1) macro512 data->fan_div[nr] = DIV_TO_REG(val); in set_fan_div()
212 #define DIV_TO_REG(val) ((val) >= 8 ? 3 : (val) >= 4 ? 2 : (val) >= 2 ? 1 : 0) macro925 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()
173 static u8 DIV_TO_REG(long val) in DIV_TO_REG() function346 data->fan_div[nr] = DIV_TO_REG(val); in set_fan_div()
221 static int DIV_TO_REG(int val) in DIV_TO_REG() function628 data->fan_div[nr] = DIV_TO_REG(val); in set_fan_div()
260 DIV_TO_REG(long val) in DIV_TO_REG() function465 data->fan_div[nr] = DIV_TO_REG(simple_strtoul(buf, NULL, 10)); in store_fan_div()
156 static inline u8 DIV_TO_REG(int val) in DIV_TO_REG() function
335 static inline u8 DIV_TO_REG(long val) in DIV_TO_REG() function898 data->fan_div[nr] = DIV_TO_REG(val); in store_fan_div()
190 DIV_TO_REG(long val, enum chips type) in DIV_TO_REG() function641 data->fan_div[nr] = DIV_TO_REG(val, data->type); in store_fan_div()