Searched refs:FAN_DIV_FROM_REG (Results 1 - 3 of 3) sorted by relevance

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/hwmon/
H A Dadm1031.c144 #define FAN_DIV_FROM_REG(reg) (1<<(((reg)&0xc0)>>6)) macro
492 FAN_DIV_FROM_REG(data->fan_div[nr])) : 0;
499 return sprintf(buf, "%d\n", FAN_DIV_FROM_REG(data->fan_div[nr]));
506 FAN_DIV_FROM_REG(data->fan_div[nr])));
518 FAN_TO_REG(val, FAN_DIV_FROM_REG(data->fan_div[nr]));
545 old_div = FAN_DIV_FROM_REG(data->fan_div[nr]);
548 FAN_DIV_FROM_REG(data->fan_div[nr]);
551 FAN_DIV_FROM_REG(data->fan_div[nr]);
H A Dlm87.c136 #define FAN_DIV_FROM_REG(reg) (1 << (reg)) macro
391 FAN_DIV_FROM_REG(data->fan_div[offset-1]))); \
397 FAN_DIV_FROM_REG(data->fan_div[offset-1]))); \
402 return sprintf(buf, "%d\n", FAN_DIV_FROM_REG(data->fan_div[offset-1])); \
417 FAN_DIV_FROM_REG(data->fan_div[nr]));
437 FAN_DIV_FROM_REG(data->fan_div[nr]));
H A Dpc87360.c124 #define FAN_DIV_FROM_REG(val) (1 << ((val >> 5) & 0x03)) macro
257 FAN_DIV_FROM_REG(data->fan_status[attr->index])));
264 FAN_DIV_FROM_REG(data->fan_status[attr->index])));
271 FAN_DIV_FROM_REG(data->fan_status[attr->index]));
289 fan_min = FAN_TO_REG(fan_min, FAN_DIV_FROM_REG(data->fan_status[attr->index]));
1285 FAN_DIV_FROM_REG(data->fan_status[nr]), nr+1);
1297 FAN_DIV_FROM_REG(data->fan_status[nr]),

Completed in 105 milliseconds