Home
last modified time | relevance | path

Searched defs:FAN_FROM_REG (Results 1 – 25 of 25) sorted by relevance

/openbmc/linux/drivers/hwmon/
H A Dlm80.c73 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : \ macro
H A Dmax6639.c62 #define FAN_FROM_REG(val, rpm_range) ((val) == 0 || (val) == 255 ? \ macro
H A Dgl518sm.c88 #define FAN_FROM_REG(val, div) ((val) == 0 ? 0 : (480000 / ((val) * (div)))) macro
H A Dadm9240.c101 static inline unsigned int FAN_FROM_REG(u8 reg, u8 div) in FAN_FROM_REG() function
H A Dw83l786ng.c79 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : \ macro
H A Dsmsc47m1.c108 #define FAN_FROM_REG(reg, div, preload) ((reg) <= (preload) || (reg) == 255 ? \ macro
H A Dasb100.c123 static int FAN_FROM_REG(u8 val, int div) in FAN_FROM_REG() function
H A Dsis5595.c136 static inline int FAN_FROM_REG(u8 val, int div) in FAN_FROM_REG() function
H A Dvia686a.c167 #define FAN_FROM_REG(val, div) ((val) == 0 ? 0 : (val) == 255 ? 0 : 1350000 / \ macro
H A Dlm78.c88 static inline int FAN_FROM_REG(u8 val, int div) in FAN_FROM_REG() function
H A Dgl520sm.c329 #define FAN_FROM_REG(val, div) ((val) == 0 ? 0 : (480000 / ((val) << (div)))) macro
H A Dvt8231.c141 #define FAN_FROM_REG(val, div) ((val) == 0 ? 0 : 1310720 / ((val) * (div))) macro
H A Dlm87.c119 #define FAN_FROM_REG(reg, div) ((reg) == 255 || (reg) == 0 ? 0 : \ macro
H A Dlm63.c112 #define FAN_FROM_REG(reg) ((reg) == 0xFFFC || (reg) == 0 ? 0 : \ macro
H A Dadm1031.c209 #define FAN_FROM_REG(reg, div) ((reg) ? \ macro
H A Dw83791d.c221 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : \ macro
H A Dw83792d.c229 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : \ macro
H A Dw83781d.c162 FAN_FROM_REG(u8 val, int div) in FAN_FROM_REG() function
H A Dw83793.c170 static inline unsigned long FAN_FROM_REG(u16 val) in FAN_FROM_REG() function
H A Dw83627hf.c280 #define FAN_FROM_REG(val,div) ((val)==0?-1:(val)==255?0:1350000/((val)*(div))) macro
H A Dlm85.c142 #define FAN_FROM_REG(val) ((val) == 0 ? -1 : (val) == 0xffff ? 0 : \ macro
H A Dpc87360.c124 #define FAN_FROM_REG(val, div) ((val) == 0 ? 0 : \ macro
H A Ddme1737.c332 static inline int FAN_FROM_REG(int reg, int tpc) in FAN_FROM_REG() function
H A Dadm1026.c200 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : (val) == 0xff ? 0 : \ macro
H A Dit87.c682 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : (val) == 255 ? 0 : \ macro