Searched refs:DIV_TO_REG (Results 1 - 9 of 9) sorted by last modified time

/drivers/hwmon/
H A Dadm1026.c215 #define DIV_TO_REG(val) ((val) >= 8 ? 3 : (val) >= 4 ? 2 : (val) >= 2 ? 1 : 0) macro
733 new_div = DIV_TO_REG(val);
741 (DIV_TO_REG(data->fan_div[0]) << 0) |
742 (DIV_TO_REG(data->fan_div[1]) << 2) |
743 (DIV_TO_REG(data->fan_div[2]) << 4) |
744 (DIV_TO_REG(data->fan_div[3]) << 6));
747 (DIV_TO_REG(data->fan_div[4]) << 0) |
748 (DIV_TO_REG(data->fan_div[5]) << 2) |
749 (DIV_TO_REG(data->fan_div[6]) << 4) |
750 (DIV_TO_REG(dat
[all...]
H A Dasb100.c182 static u8 DIV_TO_REG(long val) function
371 data->fan_div[nr] = DIV_TO_REG(val);
H A Dit87.c469 static int DIV_TO_REG(int val) function
877 data->fan_div[nr] = DIV_TO_REG(val);
H A Dsis5595.c172 static inline u8 DIV_TO_REG(int val) function
H A Dvia686a.c310 #define DIV_TO_REG(val) ((val) == 8 ? 3 : (val) == 4 ? 2 : (val) == 1 ? 0 : 1) macro
564 data->fan_div[nr] = DIV_TO_REG(val);
H A Dw83627hf.c341 static inline u8 DIV_TO_REG(long val) function
1028 data->fan_div[nr] = DIV_TO_REG(val);
H A Dw83781d.c195 DIV_TO_REG(long val, enum chips type) function
670 data->fan_div[nr] = DIV_TO_REG(val, data->type);
H A Dw83792d.c261 DIV_TO_REG(long val) function
488 data->fan_div[nr] = DIV_TO_REG(val);
H A Dw83l786ng.c114 DIV_TO_REG(long val) function
366 data->fan_div[nr] = DIV_TO_REG(val);

Completed in 126 milliseconds