Searched refs:DIV_TO_REG (Results 1 - 9 of 9) sorted by path

/linux-master/drivers/hwmon/
H A Dadm1026.c203 #define DIV_TO_REG(val) ((val) >= 8 ? 3 : (val) >= 4 ? 2 : (val) >= 2 ? 1 : 0) macro
754 new_div = DIV_TO_REG(val);
762 (DIV_TO_REG(data->fan_div[0]) << 0) |
763 (DIV_TO_REG(data->fan_div[1]) << 2) |
764 (DIV_TO_REG(data->fan_div[2]) << 4) |
765 (DIV_TO_REG(data->fan_div[3]) << 6));
768 (DIV_TO_REG(data->fan_div[4]) << 0) |
769 (DIV_TO_REG(data->fan_div[5]) << 2) |
770 (DIV_TO_REG(data->fan_div[6]) << 4) |
771 (DIV_TO_REG(dat
[all...]
H A Dasb100.c169 static u8 DIV_TO_REG(long val) function
357 data->fan_div[nr] = DIV_TO_REG(val);
H A Daspeed-g6-pwm-tach.c114 #define DIV_TO_REG(divisor) (ilog2(divisor) >> 1) macro
346 DIV_TO_REG(val) > 0xb)
352 DIV_TO_REG(priv->tach_divisor));
419 DIV_TO_REG(priv->tach_divisor));
H A Dit87.c709 static int DIV_TO_REG(int val) function
1462 data->fan_div[nr] = DIV_TO_REG(val);
H A Dvia686a.c298 #define DIV_TO_REG(val) ((val) == 8 ? 3 : (val) == 4 ? 2 : (val) == 1 ? 0 : 1) macro
621 data->fan_div[nr] = DIV_TO_REG(val);
H A Dw83627hf.c334 static inline u8 DIV_TO_REG(long val) function
1179 data->fan_div[nr] = DIV_TO_REG(val);
H A Dw83781d.c182 DIV_TO_REG(long val, enum chips type) function
656 data->fan_div[nr] = DIV_TO_REG(val, data->type);
H A Dw83792d.c248 DIV_TO_REG(long val) function
468 data->fan_div[nr] = DIV_TO_REG(val);
H A Dw83l786ng.c100 DIV_TO_REG(long val) function
352 data->fan_div[nr] = DIV_TO_REG(val);

Completed in 357 milliseconds