• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/hwmon/

Lines Matching refs:offset

296 #define fan_auto_channel_offset(offset)						\
297 static ssize_t show_fan_auto_channel_##offset (struct device *dev, struct device_attribute *attr, char *buf) \
299 return show_fan_auto_channel(dev, buf, offset - 1); \
301 static ssize_t set_fan_auto_channel_##offset (struct device *dev, struct device_attribute *attr, \
304 return set_fan_auto_channel(dev, buf, count, offset - 1); \
306 static DEVICE_ATTR(auto_fan##offset##_channel, S_IRUGO | S_IWUSR, \
307 show_fan_auto_channel_##offset, \
308 set_fan_auto_channel_##offset)
361 #define auto_temp_reg(offset) \
362 static ssize_t show_auto_temp_##offset##_off (struct device *dev, struct device_attribute *attr, char *buf) \
364 return show_auto_temp_off(dev, buf, offset - 1); \
366 static ssize_t show_auto_temp_##offset##_min (struct device *dev, struct device_attribute *attr, char *buf) \
368 return show_auto_temp_min(dev, buf, offset - 1); \
370 static ssize_t show_auto_temp_##offset##_max (struct device *dev, struct device_attribute *attr, char *buf) \
372 return show_auto_temp_max(dev, buf, offset - 1); \
374 static ssize_t set_auto_temp_##offset##_min (struct device *dev, struct device_attribute *attr, \
377 return set_auto_temp_min(dev, buf, count, offset - 1); \
379 static ssize_t set_auto_temp_##offset##_max (struct device *dev, struct device_attribute *attr, \
382 return set_auto_temp_max(dev, buf, count, offset - 1); \
384 static DEVICE_ATTR(auto_temp##offset##_off, S_IRUGO, \
385 show_auto_temp_##offset##_off, NULL); \
386 static DEVICE_ATTR(auto_temp##offset##_min, S_IRUGO | S_IWUSR, \
387 show_auto_temp_##offset##_min, set_auto_temp_##offset##_min);\
388 static DEVICE_ATTR(auto_temp##offset##_max, S_IRUGO | S_IWUSR, \
389 show_auto_temp_##offset##_max, set_auto_temp_##offset##_max)
425 #define pwm_reg(offset) \
426 static ssize_t show_pwm_##offset (struct device *dev, struct device_attribute *attr, char *buf) \
428 return show_pwm(dev, buf, offset - 1); \
430 static ssize_t set_pwm_##offset (struct device *dev, struct device_attribute *attr, \
433 return set_pwm(dev, buf, count, offset - 1); \
435 static DEVICE_ATTR(pwm##offset, S_IRUGO | S_IWUSR, \
436 show_pwm_##offset, set_pwm_##offset)
561 #define fan_offset(offset) \
562 static ssize_t show_fan_##offset (struct device *dev, struct device_attribute *attr, char *buf) \
564 return show_fan(dev, buf, offset - 1); \
566 static ssize_t show_fan_##offset##_min (struct device *dev, struct device_attribute *attr, char *buf) \
568 return show_fan_min(dev, buf, offset - 1); \
570 static ssize_t show_fan_##offset##_div (struct device *dev, struct device_attribute *attr, char *buf) \
572 return show_fan_div(dev, buf, offset - 1); \
574 static ssize_t set_fan_##offset##_min (struct device *dev, struct device_attribute *attr, \
577 return set_fan_min(dev, buf, count, offset - 1); \
579 static ssize_t set_fan_##offset##_div (struct device *dev, struct device_attribute *attr, \
582 return set_fan_div(dev, buf, count, offset - 1); \
584 static DEVICE_ATTR(fan##offset##_input, S_IRUGO, show_fan_##offset, \
586 static DEVICE_ATTR(fan##offset##_min, S_IRUGO | S_IWUSR, \
587 show_fan_##offset##_min, set_fan_##offset##_min); \
588 static DEVICE_ATTR(fan##offset##_div, S_IRUGO | S_IWUSR, \
589 show_fan_##offset##_div, set_fan_##offset##_div); \
590 static DEVICE_ATTR(auto_fan##offset##_min_pwm, S_IRUGO | S_IWUSR, \
591 show_pwm_##offset, set_pwm_##offset)
671 #define temp_reg(offset) \
672 static ssize_t show_temp_##offset (struct device *dev, struct device_attribute *attr, char *buf) \
674 return show_temp(dev, buf, offset - 1); \
676 static ssize_t show_temp_##offset##_min (struct device *dev, struct device_attribute *attr, char *buf) \
678 return show_temp_min(dev, buf, offset - 1); \
680 static ssize_t show_temp_##offset##_max (struct device *dev, struct device_attribute *attr, char *buf) \
682 return show_temp_max(dev, buf, offset - 1); \
684 static ssize_t show_temp_##offset##_crit (struct device *dev, struct device_attribute *attr, char *buf) \
686 return show_temp_crit(dev, buf, offset - 1); \
688 static ssize_t set_temp_##offset##_min (struct device *dev, struct device_attribute *attr, \
691 return set_temp_min(dev, buf, count, offset - 1); \
693 static ssize_t set_temp_##offset##_max (struct device *dev, struct device_attribute *attr, \
696 return set_temp_max(dev, buf, count, offset - 1); \
698 static ssize_t set_temp_##offset##_crit (struct device *dev, struct device_attribute *attr, \
701 return set_temp_crit(dev, buf, count, offset - 1); \
703 static DEVICE_ATTR(temp##offset##_input, S_IRUGO, show_temp_##offset, \
705 static DEVICE_ATTR(temp##offset##_min, S_IRUGO | S_IWUSR, \
706 show_temp_##offset##_min, set_temp_##offset##_min); \
707 static DEVICE_ATTR(temp##offset##_max, S_IRUGO | S_IWUSR, \
708 show_temp_##offset##_max, set_temp_##offset##_max); \
709 static DEVICE_ATTR(temp##offset##_crit, S_IRUGO | S_IWUSR, \
710 show_temp_##offset##_crit, set_temp_##offset##_crit)