Searched refs:DIV_FROM_REG (Results 1 - 18 of 18) sorted by relevance

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/hwmon/
H A Dmax6650.c104 #define DIV_FROM_REG(reg) (1 << (reg & 7)) macro
160 rpm = ((data->tach[attr->index] * 120) / DIV_FROM_REG(data->count));
219 kscale = DIV_FROM_REG(data->config);
244 kscale = DIV_FROM_REG(data->config);
373 return sprintf(buf, "%d\n", DIV_FROM_REG(data->count));
H A Dasb100.c171 #define DIV_FROM_REG(val) (1 << (val)) macro
306 DIV_FROM_REG(data->fan_div[nr])));
313 DIV_FROM_REG(data->fan_div[nr])));
319 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]));
330 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
352 DIV_FROM_REG(data->fan_div[nr]));
376 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dlm78.c117 #define DIV_FROM_REG(val) (1 << (val)) macro
321 DIV_FROM_REG(data->fan_div[nr])) );
331 DIV_FROM_REG(data->fan_div[nr])) );
343 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
354 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index]));
373 DIV_FROM_REG(data->fan_div[nr]));
399 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dsis5595.c163 #define DIV_FROM_REG(val) (1 << (val)) macro
351 DIV_FROM_REG(data->fan_div[nr])) );
358 DIV_FROM_REG(data->fan_div[nr])) );
369 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
378 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]) );
396 DIV_FROM_REG(data->fan_div[nr]));
421 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dvt8231.c121 #define DIV_FROM_REG(val) (1 << (val)) macro
462 DIV_FROM_REG(data->fan_div[nr])));
472 DIV_FROM_REG(data->fan_div[nr])));
481 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]));
494 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
510 DIV_FROM_REG(data->fan_div[nr]));
526 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dadm1029.c89 #define DIV_FROM_REG(val) ( 1 << (((val) >> 6) - 1)) macro
178 val = 1880 * 120 / DIV_FROM_REG(data->fan_div[attr->index])
190 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index]));
H A Dlm80.c103 #define DIV_FROM_REG(val) (1 << (val)) macro
221 DIV_FROM_REG(data->div))); \
232 return sprintf(buf, "%d\n", DIV_FROM_REG(data->value)); \
246 data->value = FAN_TO_REG(val, DIV_FROM_REG(data->div)); \
269 DIV_FROM_REG(data->fan_div[nr]));
288 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dsmsc47m1.c110 #define DIV_FROM_REG(reg) (1 << (reg)) macro
173 DIV_FROM_REG(data->fan_div[nr]),
185 DIV_FROM_REG(data->fan_div[nr]));
194 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index]));
229 rpmdiv = val * DIV_FROM_REG(data->fan_div[nr]);
255 u8 old_div = DIV_FROM_REG(data->fan_div[nr]);
H A Dvia686a.c292 #define DIV_FROM_REG(val) (1 << (val)) macro
495 DIV_FROM_REG(data->fan_div[nr])) );
500 FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])) );
504 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]) );
513 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
H A Dw83791d.c230 #define DIV_FROM_REG(val) (1 << (val)) macro
396 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \
412 data->fan_min[nr] = fan_to_reg(val, DIV_FROM_REG(data->fan_div[nr]));
425 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr]));
447 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr]));
494 data->fan_min[nr] = fan_to_reg(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dgl518sm.c78 #define DIV_FROM_REG(val) (1 << (val)) macro
144 DIV_FROM_REG(data->fan_div[index]))); \
237 DIV_FROM_REG(data->fan_div[0]));
263 DIV_FROM_REG(data->fan_div[1]));
H A Dit87.c203 #define DIV_FROM_REG(val) (1 << (val)) macro
492 DIV_FROM_REG(data->fan_div[nr])));
502 FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])));
511 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]));
558 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
579 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr]));
600 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dw83627hf.c275 #define DIV_FROM_REG(val) (1 << (val)) macro
519 (long)DIV_FROM_REG(data->fan_div[nr-1]))); \
534 FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr - 1]));
742 (long) DIV_FROM_REG(data->fan_div[nr - 1]));
761 DIV_FROM_REG(data->fan_div[nr]));
776 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dw83781d.c191 #define DIV_FROM_REG(val) (1 << (val)) macro
352 DIV_FROM_REG(data->fan_div[attr->index]))); \
370 FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
555 (long) DIV_FROM_REG(data->fan_div[attr->index]));
577 DIV_FROM_REG(data->fan_div[nr]));
595 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dw83792d.c253 #define DIV_FROM_REG(val) (1 << (val)) macro
393 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \
411 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
426 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr - 1]));
449 DIV_FROM_REG(data->fan_div[nr]));
461 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dvt1211.c170 #define DIV_FROM_REG(reg) (1 << (reg)) macro
173 1310720 / (reg) / DIV_FROM_REG(div))
176 DIV_FROM_REG(div)), 1, 254))
492 res = DIV_FROM_REG(data->fan_div[ix]);
H A Dadm1026.c208 #define DIV_FROM_REG(val) (1<<(val)) macro
448 data->fan_div[i] = DIV_FROM_REG(value & 0x03);
630 data->fan_div[i] = DIV_FROM_REG(value & 0x03);
930 data->fan_div[nr] = DIV_FROM_REG(new_div);
H A Dgl520sm.c323 #define DIV_FROM_REG(val) (1 << (val)) macro
339 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[n - 1]));

Completed in 157 milliseconds