Lines Matching refs:attr

83 			      struct device_attribute *attr, char *buf)  in temp_type_show()  argument
86 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in temp_type_show()
98 struct device_attribute *attr, const char *buf, in temp_type_store() argument
102 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in temp_type_store()
119 struct device_attribute *attr, char *buf) in pwm_mode_show() argument
121 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in pwm_mode_show()
139 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in pwm_show() local
144 if (!attr->index) in pwm_show()
147 ret = regmap_read(data->regmap, attr->index, &val); in pwm_show()
157 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in pwm_store() local
166 err = regmap_write(data->regmap, attr->index, val); in pwm_store()
171 struct device_attribute *attr, char *buf) in pwm_enable_show() argument
174 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in pwm_enable_show()
186 struct device_attribute *attr, in pwm_enable_store() argument
190 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in pwm_enable_store()
342 static ssize_t in_show(struct device *dev, struct device_attribute *attr, in in_show() argument
345 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in in_show()
356 static ssize_t in_store(struct device *dev, struct device_attribute *attr, in in_store() argument
359 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in in_store()
374 static ssize_t in_alarm_show(struct device *dev, struct device_attribute *attr, in in_alarm_show() argument
377 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in in_alarm_show()
434 static ssize_t temp_show(struct device *dev, struct device_attribute *attr, in temp_show() argument
438 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in temp_show()
448 static ssize_t temp_store(struct device *dev, struct device_attribute *attr, in temp_store() argument
451 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in temp_store()
467 static ssize_t fan_show(struct device *dev, struct device_attribute *attr, in fan_show() argument
470 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in fan_show()
481 static ssize_t fan_min_show(struct device *dev, struct device_attribute *attr, in fan_min_show() argument
484 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in fan_min_show()
496 struct device_attribute *attr, const char *buf, in fan_min_store() argument
499 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in fan_min_store()
512 static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, in alarm_show() argument
516 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in alarm_show()
529 beep_show(struct device *dev, struct device_attribute *attr, char *buf) in beep_show() argument
531 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in beep_show()
544 beep_store(struct device *dev, struct device_attribute *attr, const char *buf, in beep_store() argument
547 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in beep_store()
623 &sensor_dev_attr_temp1_type.dev_attr.attr,
624 &sensor_dev_attr_temp1_input.dev_attr.attr,
625 &sensor_dev_attr_temp1_min.dev_attr.attr,
626 &sensor_dev_attr_temp1_max.dev_attr.attr,
627 &sensor_dev_attr_temp1_crit.dev_attr.attr,
628 &sensor_dev_attr_temp1_min_alarm.dev_attr.attr,
629 &sensor_dev_attr_temp1_max_alarm.dev_attr.attr,
630 &sensor_dev_attr_temp1_crit_alarm.dev_attr.attr,
631 &sensor_dev_attr_temp1_fault.dev_attr.attr,
632 &sensor_dev_attr_temp1_beep.dev_attr.attr,
634 &sensor_dev_attr_temp2_type.dev_attr.attr, /* 10 */
635 &sensor_dev_attr_temp2_input.dev_attr.attr,
636 &sensor_dev_attr_temp2_min.dev_attr.attr,
637 &sensor_dev_attr_temp2_max.dev_attr.attr,
638 &sensor_dev_attr_temp2_crit.dev_attr.attr,
639 &sensor_dev_attr_temp2_min_alarm.dev_attr.attr,
640 &sensor_dev_attr_temp2_max_alarm.dev_attr.attr,
641 &sensor_dev_attr_temp2_crit_alarm.dev_attr.attr,
642 &sensor_dev_attr_temp2_fault.dev_attr.attr,
643 &sensor_dev_attr_temp2_beep.dev_attr.attr,
645 &sensor_dev_attr_temp3_type.dev_attr.attr, /* 20 */
646 &sensor_dev_attr_temp3_input.dev_attr.attr,
647 &sensor_dev_attr_temp3_min.dev_attr.attr,
648 &sensor_dev_attr_temp3_max.dev_attr.attr,
649 &sensor_dev_attr_temp3_crit.dev_attr.attr,
650 &sensor_dev_attr_temp3_min_alarm.dev_attr.attr,
651 &sensor_dev_attr_temp3_max_alarm.dev_attr.attr,
652 &sensor_dev_attr_temp3_crit_alarm.dev_attr.attr,
653 &sensor_dev_attr_temp3_fault.dev_attr.attr,
654 &sensor_dev_attr_temp3_beep.dev_attr.attr,
656 &sensor_dev_attr_temp4_input.dev_attr.attr, /* 30 */
657 &sensor_dev_attr_temp4_min.dev_attr.attr,
658 &sensor_dev_attr_temp4_max.dev_attr.attr,
659 &sensor_dev_attr_temp4_crit.dev_attr.attr,
660 &sensor_dev_attr_temp4_min_alarm.dev_attr.attr,
661 &sensor_dev_attr_temp4_max_alarm.dev_attr.attr,
662 &sensor_dev_attr_temp4_crit_alarm.dev_attr.attr,
663 &sensor_dev_attr_temp4_beep.dev_attr.attr,
665 &sensor_dev_attr_temp5_input.dev_attr.attr, /* 38 */
666 &sensor_dev_attr_temp5_min.dev_attr.attr,
667 &sensor_dev_attr_temp5_max.dev_attr.attr,
668 &sensor_dev_attr_temp5_crit.dev_attr.attr,
669 &sensor_dev_attr_temp5_min_alarm.dev_attr.attr,
670 &sensor_dev_attr_temp5_max_alarm.dev_attr.attr,
671 &sensor_dev_attr_temp5_crit_alarm.dev_attr.attr,
672 &sensor_dev_attr_temp5_beep.dev_attr.attr,
674 &sensor_dev_attr_temp6_input.dev_attr.attr, /* 46 */
675 &sensor_dev_attr_temp6_beep.dev_attr.attr,
681 struct attribute *attr, int index) in nct7802_temp_is_visible() argument
703 return attr->mode; in nct7802_temp_is_visible()
715 return attr->mode; in nct7802_temp_is_visible()
750 &sensor_dev_attr_in0_input.dev_attr.attr,
751 &sensor_dev_attr_in0_min.dev_attr.attr,
752 &sensor_dev_attr_in0_max.dev_attr.attr,
753 &sensor_dev_attr_in0_alarm.dev_attr.attr,
754 &sensor_dev_attr_in0_beep.dev_attr.attr,
756 &sensor_dev_attr_in1_input.dev_attr.attr, /* 5 */
758 &sensor_dev_attr_in2_input.dev_attr.attr, /* 6 */
759 &sensor_dev_attr_in2_min.dev_attr.attr,
760 &sensor_dev_attr_in2_max.dev_attr.attr,
761 &sensor_dev_attr_in2_alarm.dev_attr.attr,
762 &sensor_dev_attr_in2_beep.dev_attr.attr,
764 &sensor_dev_attr_in3_input.dev_attr.attr, /* 11 */
765 &sensor_dev_attr_in3_min.dev_attr.attr,
766 &sensor_dev_attr_in3_max.dev_attr.attr,
767 &sensor_dev_attr_in3_alarm.dev_attr.attr,
768 &sensor_dev_attr_in3_beep.dev_attr.attr,
770 &sensor_dev_attr_in4_input.dev_attr.attr, /* 16 */
771 &sensor_dev_attr_in4_min.dev_attr.attr,
772 &sensor_dev_attr_in4_max.dev_attr.attr,
773 &sensor_dev_attr_in4_alarm.dev_attr.attr,
774 &sensor_dev_attr_in4_beep.dev_attr.attr,
780 struct attribute *attr, int index) in nct7802_in_is_visible() argument
788 return attr->mode; in nct7802_in_is_visible()
801 return attr->mode; in nct7802_in_is_visible()
838 &sensor_dev_attr_fan1_input.dev_attr.attr,
839 &sensor_dev_attr_fan1_min.dev_attr.attr,
840 &sensor_dev_attr_fan1_alarm.dev_attr.attr,
841 &sensor_dev_attr_fan1_beep.dev_attr.attr,
842 &sensor_dev_attr_fan2_input.dev_attr.attr,
843 &sensor_dev_attr_fan2_min.dev_attr.attr,
844 &sensor_dev_attr_fan2_alarm.dev_attr.attr,
845 &sensor_dev_attr_fan2_beep.dev_attr.attr,
846 &sensor_dev_attr_fan3_input.dev_attr.attr,
847 &sensor_dev_attr_fan3_min.dev_attr.attr,
848 &sensor_dev_attr_fan3_alarm.dev_attr.attr,
849 &sensor_dev_attr_fan3_beep.dev_attr.attr,
855 struct attribute *attr, int index) in nct7802_fan_is_visible() argument
867 return attr->mode; in nct7802_fan_is_visible()
876 &sensor_dev_attr_pwm1_enable.dev_attr.attr,
877 &sensor_dev_attr_pwm1_mode.dev_attr.attr,
878 &sensor_dev_attr_pwm1.dev_attr.attr,
879 &sensor_dev_attr_pwm2_enable.dev_attr.attr,
880 &sensor_dev_attr_pwm2_mode.dev_attr.attr,
881 &sensor_dev_attr_pwm2.dev_attr.attr,
882 &sensor_dev_attr_pwm3_enable.dev_attr.attr,
883 &sensor_dev_attr_pwm3_mode.dev_attr.attr,
884 &sensor_dev_attr_pwm3.dev_attr.attr,
935 &sensor_dev_attr_pwm1_auto_point1_temp.dev_attr.attr,
936 &sensor_dev_attr_pwm1_auto_point2_temp.dev_attr.attr,
937 &sensor_dev_attr_pwm1_auto_point3_temp.dev_attr.attr,
938 &sensor_dev_attr_pwm1_auto_point4_temp.dev_attr.attr,
939 &sensor_dev_attr_pwm1_auto_point5_temp.dev_attr.attr,
941 &sensor_dev_attr_pwm1_auto_point1_pwm.dev_attr.attr,
942 &sensor_dev_attr_pwm1_auto_point2_pwm.dev_attr.attr,
943 &sensor_dev_attr_pwm1_auto_point3_pwm.dev_attr.attr,
944 &sensor_dev_attr_pwm1_auto_point4_pwm.dev_attr.attr,
945 &sensor_dev_attr_pwm1_auto_point5_pwm.dev_attr.attr,
947 &sensor_dev_attr_pwm2_auto_point1_temp.dev_attr.attr,
948 &sensor_dev_attr_pwm2_auto_point2_temp.dev_attr.attr,
949 &sensor_dev_attr_pwm2_auto_point3_temp.dev_attr.attr,
950 &sensor_dev_attr_pwm2_auto_point4_temp.dev_attr.attr,
951 &sensor_dev_attr_pwm2_auto_point5_temp.dev_attr.attr,
953 &sensor_dev_attr_pwm2_auto_point1_pwm.dev_attr.attr,
954 &sensor_dev_attr_pwm2_auto_point2_pwm.dev_attr.attr,
955 &sensor_dev_attr_pwm2_auto_point3_pwm.dev_attr.attr,
956 &sensor_dev_attr_pwm2_auto_point4_pwm.dev_attr.attr,
957 &sensor_dev_attr_pwm2_auto_point5_pwm.dev_attr.attr,
959 &sensor_dev_attr_pwm3_auto_point1_temp.dev_attr.attr,
960 &sensor_dev_attr_pwm3_auto_point2_temp.dev_attr.attr,
961 &sensor_dev_attr_pwm3_auto_point3_temp.dev_attr.attr,
962 &sensor_dev_attr_pwm3_auto_point4_temp.dev_attr.attr,
963 &sensor_dev_attr_pwm3_auto_point5_temp.dev_attr.attr,
965 &sensor_dev_attr_pwm3_auto_point1_pwm.dev_attr.attr,
966 &sensor_dev_attr_pwm3_auto_point2_pwm.dev_attr.attr,
967 &sensor_dev_attr_pwm3_auto_point3_pwm.dev_attr.attr,
968 &sensor_dev_attr_pwm3_auto_point4_pwm.dev_attr.attr,
969 &sensor_dev_attr_pwm3_auto_point5_pwm.dev_attr.attr,