Searched refs:DIV_TO_REG (Results 1 – 9 of 9) sorted by relevance
215 #define DIV_TO_REG(val) ((val) >= 8 ? 3 : (val) >= 4 ? 2 : (val) >= 2 ? 1 : 0) macro965 new_div = DIV_TO_REG(val); in set_fan_div()973 (DIV_TO_REG(data->fan_div[0]) << 0) | in set_fan_div()974 (DIV_TO_REG(data->fan_div[1]) << 2) | in set_fan_div()975 (DIV_TO_REG(data->fan_div[2]) << 4) | in set_fan_div()976 (DIV_TO_REG(data->fan_div[3]) << 6)); in set_fan_div()979 (DIV_TO_REG(data->fan_div[4]) << 0) | in set_fan_div()980 (DIV_TO_REG(data->fan_div[5]) << 2) | in set_fan_div()981 (DIV_TO_REG(data->fan_div[6]) << 4) | in set_fan_div()982 (DIV_TO_REG(data->fan_div[7]) << 6)); in set_fan_div()
114 DIV_TO_REG(long val) in DIV_TO_REG() function321 data->fan_div[nr] = DIV_TO_REG(val); in store_fan_div()
313 #define DIV_TO_REG(val) ((val) == 8 ? 3 : (val) == 4 ? 2 : (val) == 1 ? 0 : 1) macro567 data->fan_div[nr] = DIV_TO_REG(val); in set_fan_div()
182 static u8 DIV_TO_REG(long val) in DIV_TO_REG() function371 data->fan_div[nr] = DIV_TO_REG(val); in set_fan_div()
170 static inline u8 DIV_TO_REG(int val) in DIV_TO_REG() function
261 DIV_TO_REG(long val) in DIV_TO_REG() function489 data->fan_div[nr] = DIV_TO_REG(val); in store_fan_div()
195 DIV_TO_REG(long val, enum chips type) in DIV_TO_REG() function671 data->fan_div[nr] = DIV_TO_REG(val, data->type); in store_fan_div()
342 static inline u8 DIV_TO_REG(long val) in DIV_TO_REG() function955 data->fan_div[nr] = DIV_TO_REG(val); in store_fan_div()
377 static int DIV_TO_REG(int val) in DIV_TO_REG() function799 data->fan_div[nr] = DIV_TO_REG(val); in set_fan_div()