• Home
  • Raw
  • Download

Lines Matching refs:attr

72 static ssize_t show_temp_type(struct device *dev, struct device_attribute *attr,  in show_temp_type()  argument
76 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in show_temp_type()
88 struct device_attribute *attr, in store_temp_type() argument
92 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in store_temp_type()
108 static ssize_t show_pwm_mode(struct device *dev, struct device_attribute *attr, in show_pwm_mode() argument
111 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in show_pwm_mode()
129 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_pwm() local
134 if (!attr->index) in show_pwm()
137 ret = regmap_read(data->regmap, attr->index, &val); in show_pwm()
147 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in store_pwm() local
156 err = regmap_write(data->regmap, attr->index, val); in store_pwm()
161 struct device_attribute *attr, char *buf) in show_pwm_enable() argument
164 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in show_pwm_enable()
176 struct device_attribute *attr, in store_pwm_enable() argument
180 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in store_pwm_enable()
348 static ssize_t show_in(struct device *dev, struct device_attribute *attr, in show_in() argument
351 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in show_in()
362 static ssize_t store_in(struct device *dev, struct device_attribute *attr, in store_in() argument
365 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in store_in()
380 static ssize_t show_temp(struct device *dev, struct device_attribute *attr, in show_temp() argument
384 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in show_temp()
394 static ssize_t store_temp(struct device *dev, struct device_attribute *attr, in store_temp() argument
397 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in store_temp()
413 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() argument
416 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in show_fan()
427 static ssize_t show_fan_min(struct device *dev, struct device_attribute *attr, in show_fan_min() argument
430 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in show_fan_min()
441 static ssize_t store_fan_min(struct device *dev, struct device_attribute *attr, in store_fan_min() argument
444 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in store_fan_min()
457 static ssize_t show_alarm(struct device *dev, struct device_attribute *attr, in show_alarm() argument
461 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in show_alarm()
474 show_beep(struct device *dev, struct device_attribute *attr, char *buf) in show_beep() argument
476 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in show_beep()
489 store_beep(struct device *dev, struct device_attribute *attr, const char *buf, in store_beep() argument
492 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in store_beep()
612 &sensor_dev_attr_temp1_type.dev_attr.attr,
613 &sensor_dev_attr_temp1_input.dev_attr.attr,
614 &sensor_dev_attr_temp1_min.dev_attr.attr,
615 &sensor_dev_attr_temp1_max.dev_attr.attr,
616 &sensor_dev_attr_temp1_crit.dev_attr.attr,
617 &sensor_dev_attr_temp1_min_alarm.dev_attr.attr,
618 &sensor_dev_attr_temp1_max_alarm.dev_attr.attr,
619 &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr,
620 &sensor_dev_attr_temp1_fault.dev_attr.attr,
621 &sensor_dev_attr_temp1_beep.dev_attr.attr,
623 &sensor_dev_attr_temp2_type.dev_attr.attr, /* 10 */
624 &sensor_dev_attr_temp2_input.dev_attr.attr,
625 &sensor_dev_attr_temp2_min.dev_attr.attr,
626 &sensor_dev_attr_temp2_max.dev_attr.attr,
627 &sensor_dev_attr_temp2_crit.dev_attr.attr,
628 &sensor_dev_attr_temp2_min_alarm.dev_attr.attr,
629 &sensor_dev_attr_temp2_max_alarm.dev_attr.attr,
630 &sensor_dev_attr_temp2_crit_alarm.dev_attr.attr,
631 &sensor_dev_attr_temp2_fault.dev_attr.attr,
632 &sensor_dev_attr_temp2_beep.dev_attr.attr,
634 &sensor_dev_attr_temp3_type.dev_attr.attr, /* 20 */
635 &sensor_dev_attr_temp3_input.dev_attr.attr,
636 &sensor_dev_attr_temp3_min.dev_attr.attr,
637 &sensor_dev_attr_temp3_max.dev_attr.attr,
638 &sensor_dev_attr_temp3_crit.dev_attr.attr,
639 &sensor_dev_attr_temp3_min_alarm.dev_attr.attr,
640 &sensor_dev_attr_temp3_max_alarm.dev_attr.attr,
641 &sensor_dev_attr_temp3_crit_alarm.dev_attr.attr,
642 &sensor_dev_attr_temp3_fault.dev_attr.attr,
643 &sensor_dev_attr_temp3_beep.dev_attr.attr,
645 &sensor_dev_attr_temp4_input.dev_attr.attr, /* 30 */
646 &sensor_dev_attr_temp4_min.dev_attr.attr,
647 &sensor_dev_attr_temp4_max.dev_attr.attr,
648 &sensor_dev_attr_temp4_crit.dev_attr.attr,
649 &sensor_dev_attr_temp4_min_alarm.dev_attr.attr,
650 &sensor_dev_attr_temp4_max_alarm.dev_attr.attr,
651 &sensor_dev_attr_temp4_crit_alarm.dev_attr.attr,
652 &sensor_dev_attr_temp4_beep.dev_attr.attr,
654 &sensor_dev_attr_temp5_input.dev_attr.attr, /* 38 */
655 &sensor_dev_attr_temp5_min.dev_attr.attr,
656 &sensor_dev_attr_temp5_max.dev_attr.attr,
657 &sensor_dev_attr_temp5_crit.dev_attr.attr,
658 &sensor_dev_attr_temp5_min_alarm.dev_attr.attr,
659 &sensor_dev_attr_temp5_max_alarm.dev_attr.attr,
660 &sensor_dev_attr_temp5_crit_alarm.dev_attr.attr,
661 &sensor_dev_attr_temp5_beep.dev_attr.attr,
663 &sensor_dev_attr_temp6_input.dev_attr.attr, /* 46 */
664 &sensor_dev_attr_temp6_beep.dev_attr.attr,
670 struct attribute *attr, int index) in nct7802_temp_is_visible() argument
692 return attr->mode; in nct7802_temp_is_visible()
704 return attr->mode; in nct7802_temp_is_visible()
751 &sensor_dev_attr_in0_input.dev_attr.attr,
752 &sensor_dev_attr_in0_min.dev_attr.attr,
753 &sensor_dev_attr_in0_max.dev_attr.attr,
754 &sensor_dev_attr_in0_alarm.dev_attr.attr,
755 &sensor_dev_attr_in0_beep.dev_attr.attr,
757 &sensor_dev_attr_in1_input.dev_attr.attr, /* 5 */
759 &sensor_dev_attr_in2_input.dev_attr.attr, /* 6 */
760 &sensor_dev_attr_in2_min.dev_attr.attr,
761 &sensor_dev_attr_in2_max.dev_attr.attr,
762 &sensor_dev_attr_in2_alarm.dev_attr.attr,
763 &sensor_dev_attr_in2_beep.dev_attr.attr,
765 &sensor_dev_attr_in3_input.dev_attr.attr, /* 11 */
766 &sensor_dev_attr_in3_min.dev_attr.attr,
767 &sensor_dev_attr_in3_max.dev_attr.attr,
768 &sensor_dev_attr_in3_alarm.dev_attr.attr,
769 &sensor_dev_attr_in3_beep.dev_attr.attr,
771 &sensor_dev_attr_in4_input.dev_attr.attr, /* 17 */
772 &sensor_dev_attr_in4_min.dev_attr.attr,
773 &sensor_dev_attr_in4_max.dev_attr.attr,
774 &sensor_dev_attr_in4_alarm.dev_attr.attr,
775 &sensor_dev_attr_in4_beep.dev_attr.attr,
781 struct attribute *attr, int index) in nct7802_in_is_visible() argument
789 return attr->mode; in nct7802_in_is_visible()
802 return attr->mode; in nct7802_in_is_visible()
851 &sensor_dev_attr_fan1_input.dev_attr.attr,
852 &sensor_dev_attr_fan1_min.dev_attr.attr,
853 &sensor_dev_attr_fan1_alarm.dev_attr.attr,
854 &sensor_dev_attr_fan1_beep.dev_attr.attr,
855 &sensor_dev_attr_fan2_input.dev_attr.attr,
856 &sensor_dev_attr_fan2_min.dev_attr.attr,
857 &sensor_dev_attr_fan2_alarm.dev_attr.attr,
858 &sensor_dev_attr_fan2_beep.dev_attr.attr,
859 &sensor_dev_attr_fan3_input.dev_attr.attr,
860 &sensor_dev_attr_fan3_min.dev_attr.attr,
861 &sensor_dev_attr_fan3_alarm.dev_attr.attr,
862 &sensor_dev_attr_fan3_beep.dev_attr.attr,
868 struct attribute *attr, int index) in nct7802_fan_is_visible() argument
880 return attr->mode; in nct7802_fan_is_visible()
889 &sensor_dev_attr_pwm1_enable.dev_attr.attr,
890 &sensor_dev_attr_pwm1_mode.dev_attr.attr,
891 &sensor_dev_attr_pwm1.dev_attr.attr,
892 &sensor_dev_attr_pwm2_enable.dev_attr.attr,
893 &sensor_dev_attr_pwm2_mode.dev_attr.attr,
894 &sensor_dev_attr_pwm2.dev_attr.attr,
895 &sensor_dev_attr_pwm3_enable.dev_attr.attr,
896 &sensor_dev_attr_pwm3_mode.dev_attr.attr,
897 &sensor_dev_attr_pwm3.dev_attr.attr,
975 &sensor_dev_attr_pwm1_auto_point1_temp.dev_attr.attr,
976 &sensor_dev_attr_pwm1_auto_point2_temp.dev_attr.attr,
977 &sensor_dev_attr_pwm1_auto_point3_temp.dev_attr.attr,
978 &sensor_dev_attr_pwm1_auto_point4_temp.dev_attr.attr,
979 &sensor_dev_attr_pwm1_auto_point5_temp.dev_attr.attr,
981 &sensor_dev_attr_pwm1_auto_point1_pwm.dev_attr.attr,
982 &sensor_dev_attr_pwm1_auto_point2_pwm.dev_attr.attr,
983 &sensor_dev_attr_pwm1_auto_point3_pwm.dev_attr.attr,
984 &sensor_dev_attr_pwm1_auto_point4_pwm.dev_attr.attr,
985 &sensor_dev_attr_pwm1_auto_point5_pwm.dev_attr.attr,
987 &sensor_dev_attr_pwm2_auto_point1_temp.dev_attr.attr,
988 &sensor_dev_attr_pwm2_auto_point2_temp.dev_attr.attr,
989 &sensor_dev_attr_pwm2_auto_point3_temp.dev_attr.attr,
990 &sensor_dev_attr_pwm2_auto_point4_temp.dev_attr.attr,
991 &sensor_dev_attr_pwm2_auto_point5_temp.dev_attr.attr,
993 &sensor_dev_attr_pwm2_auto_point1_pwm.dev_attr.attr,
994 &sensor_dev_attr_pwm2_auto_point2_pwm.dev_attr.attr,
995 &sensor_dev_attr_pwm2_auto_point3_pwm.dev_attr.attr,
996 &sensor_dev_attr_pwm2_auto_point4_pwm.dev_attr.attr,
997 &sensor_dev_attr_pwm2_auto_point5_pwm.dev_attr.attr,
999 &sensor_dev_attr_pwm3_auto_point1_temp.dev_attr.attr,
1000 &sensor_dev_attr_pwm3_auto_point2_temp.dev_attr.attr,
1001 &sensor_dev_attr_pwm3_auto_point3_temp.dev_attr.attr,
1002 &sensor_dev_attr_pwm3_auto_point4_temp.dev_attr.attr,
1003 &sensor_dev_attr_pwm3_auto_point5_temp.dev_attr.attr,
1005 &sensor_dev_attr_pwm3_auto_point1_pwm.dev_attr.attr,
1006 &sensor_dev_attr_pwm3_auto_point2_pwm.dev_attr.attr,
1007 &sensor_dev_attr_pwm3_auto_point3_pwm.dev_attr.attr,
1008 &sensor_dev_attr_pwm3_auto_point4_pwm.dev_attr.attr,
1009 &sensor_dev_attr_pwm3_auto_point5_pwm.dev_attr.attr,