Searched refs:DIV_TO_REG (Results 1 – 9 of 9) sorted by relevance
209 #define DIV_TO_REG(val) ((val) >= 8 ? 3 : (val) >= 4 ? 2 : (val) >= 2 ? 1 : 0) macro922 new_div = DIV_TO_REG(val); in set_fan_div()930 (DIV_TO_REG(data->fan_div[0]) << 0) | in set_fan_div()931 (DIV_TO_REG(data->fan_div[1]) << 2) | in set_fan_div()932 (DIV_TO_REG(data->fan_div[2]) << 4) | in set_fan_div()933 (DIV_TO_REG(data->fan_div[3]) << 6)); in set_fan_div()936 (DIV_TO_REG(data->fan_div[4]) << 0) | in set_fan_div()937 (DIV_TO_REG(data->fan_div[5]) << 2) | in set_fan_div()938 (DIV_TO_REG(data->fan_div[6]) << 4) | in set_fan_div()939 (DIV_TO_REG(data->fan_div[7]) << 6)); in set_fan_div()
110 DIV_TO_REG(long val) in DIV_TO_REG() function301 data->fan_div[nr] = DIV_TO_REG(simple_strtoul(buf, NULL, 10)); in store_fan_div()
293 #define DIV_TO_REG(val) ((val)==8?3:(val)==4?2:(val)==1?0:1) macro514 data->fan_div[nr] = DIV_TO_REG(val); in set_fan_div()
172 static u8 DIV_TO_REG(long val) in DIV_TO_REG() function345 data->fan_div[nr] = DIV_TO_REG(val); in set_fan_div()
158 static inline u8 DIV_TO_REG(int val) in DIV_TO_REG() function
259 DIV_TO_REG(long val) in DIV_TO_REG() function464 data->fan_div[nr] = DIV_TO_REG(simple_strtoul(buf, NULL, 10)); in store_fan_div()
336 static inline u8 DIV_TO_REG(long val) in DIV_TO_REG() function895 data->fan_div[nr] = DIV_TO_REG(val); in store_fan_div()
193 DIV_TO_REG(long val, enum chips type) in DIV_TO_REG() function644 data->fan_div[nr] = DIV_TO_REG(val, data->type); in store_fan_div()
344 static int DIV_TO_REG(int val) in DIV_TO_REG() function763 data->fan_div[nr] = DIV_TO_REG(val); in set_fan_div()