• Home
  • Raw
  • Download

Lines Matching refs:attr

229 			       struct device_attribute *attr, char *buf)  in occ_show_temp_1()  argument
236 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_temp_1()
265 struct device_attribute *attr, char *buf) in occ_show_temp_2() argument
272 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_temp_2()
316 struct device_attribute *attr, char *buf) in occ_show_temp_10() argument
323 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_temp_10()
363 struct device_attribute *attr, char *buf) in occ_show_freq_1() argument
370 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_freq_1()
393 struct device_attribute *attr, char *buf) in occ_show_freq_2() argument
400 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_freq_2()
423 struct device_attribute *attr, char *buf) in occ_show_power_1() argument
430 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_power_1()
470 struct device_attribute *attr, char *buf) in occ_show_power_2() argument
477 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_power_2()
509 struct device_attribute *attr, char *buf) in occ_show_power_a0() argument
516 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_power_a0()
589 struct device_attribute *attr, char *buf) in occ_show_caps_1_2() argument
596 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_caps_1_2()
639 struct device_attribute *attr, char *buf) in occ_show_caps_3() argument
646 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_caps_3()
686 struct device_attribute *attr, in occ_store_caps_user() argument
708 struct device_attribute *attr, char *buf) in occ_show_extended() argument
714 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_extended()
755 .attr = { \
782 struct occ_attribute *attr; in occ_setup_sensor_attrs() local
868 attr = occ->attrs; in occ_setup_sensor_attrs()
874 snprintf(attr->name, sizeof(attr->name), "temp%d_label", s); in occ_setup_sensor_attrs()
875 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_temp, NULL, in occ_setup_sensor_attrs()
877 attr++; in occ_setup_sensor_attrs()
881 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
884 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
888 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_temp, NULL, in occ_setup_sensor_attrs()
890 attr++; in occ_setup_sensor_attrs()
893 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
895 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, in occ_setup_sensor_attrs()
897 attr++; in occ_setup_sensor_attrs()
899 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
901 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, in occ_setup_sensor_attrs()
903 attr++; in occ_setup_sensor_attrs()
906 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
908 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, in occ_setup_sensor_attrs()
911 attr++; in occ_setup_sensor_attrs()
919 snprintf(attr->name, sizeof(attr->name), "freq%d_label", s); in occ_setup_sensor_attrs()
920 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_freq, NULL, in occ_setup_sensor_attrs()
922 attr++; in occ_setup_sensor_attrs()
924 snprintf(attr->name, sizeof(attr->name), "freq%d_input", s); in occ_setup_sensor_attrs()
925 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_freq, NULL, in occ_setup_sensor_attrs()
927 attr++; in occ_setup_sensor_attrs()
942 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
944 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, in occ_setup_sensor_attrs()
947 attr++; in occ_setup_sensor_attrs()
949 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
951 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, in occ_setup_sensor_attrs()
954 attr++; in occ_setup_sensor_attrs()
956 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
958 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, in occ_setup_sensor_attrs()
961 attr++; in occ_setup_sensor_attrs()
963 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
965 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, in occ_setup_sensor_attrs()
968 attr++; in occ_setup_sensor_attrs()
979 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
981 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, in occ_setup_sensor_attrs()
983 attr++; in occ_setup_sensor_attrs()
985 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
987 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, in occ_setup_sensor_attrs()
989 attr++; in occ_setup_sensor_attrs()
991 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
993 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, in occ_setup_sensor_attrs()
995 attr++; in occ_setup_sensor_attrs()
997 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
999 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, in occ_setup_sensor_attrs()
1001 attr++; in occ_setup_sensor_attrs()
1008 snprintf(attr->name, sizeof(attr->name), "power%d_label", s); in occ_setup_sensor_attrs()
1009 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL, in occ_setup_sensor_attrs()
1011 attr++; in occ_setup_sensor_attrs()
1013 snprintf(attr->name, sizeof(attr->name), "power%d_cap", s); in occ_setup_sensor_attrs()
1014 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL, in occ_setup_sensor_attrs()
1016 attr++; in occ_setup_sensor_attrs()
1018 snprintf(attr->name, sizeof(attr->name), "power%d_input", s); in occ_setup_sensor_attrs()
1019 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL, in occ_setup_sensor_attrs()
1021 attr++; in occ_setup_sensor_attrs()
1023 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
1025 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL, in occ_setup_sensor_attrs()
1027 attr++; in occ_setup_sensor_attrs()
1029 snprintf(attr->name, sizeof(attr->name), "power%d_cap_max", s); in occ_setup_sensor_attrs()
1030 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL, in occ_setup_sensor_attrs()
1032 attr++; in occ_setup_sensor_attrs()
1034 snprintf(attr->name, sizeof(attr->name), "power%d_cap_min", s); in occ_setup_sensor_attrs()
1035 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, show_caps, NULL, in occ_setup_sensor_attrs()
1037 attr++; in occ_setup_sensor_attrs()
1039 snprintf(attr->name, sizeof(attr->name), "power%d_cap_user", in occ_setup_sensor_attrs()
1041 attr->sensor = OCC_INIT_ATTR(attr->name, 0644, show_caps, in occ_setup_sensor_attrs()
1043 attr++; in occ_setup_sensor_attrs()
1046 snprintf(attr->name, sizeof(attr->name), in occ_setup_sensor_attrs()
1048 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, in occ_setup_sensor_attrs()
1050 attr++; in occ_setup_sensor_attrs()
1057 snprintf(attr->name, sizeof(attr->name), "extn%d_label", s); in occ_setup_sensor_attrs()
1058 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, in occ_setup_sensor_attrs()
1060 attr++; in occ_setup_sensor_attrs()
1062 snprintf(attr->name, sizeof(attr->name), "extn%d_flags", s); in occ_setup_sensor_attrs()
1063 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, in occ_setup_sensor_attrs()
1065 attr++; in occ_setup_sensor_attrs()
1067 snprintf(attr->name, sizeof(attr->name), "extn%d_input", s); in occ_setup_sensor_attrs()
1068 attr->sensor = OCC_INIT_ATTR(attr->name, 0444, in occ_setup_sensor_attrs()
1070 attr++; in occ_setup_sensor_attrs()
1075 sysfs_attr_init(&occ->attrs[i].sensor.dev_attr.attr); in occ_setup_sensor_attrs()
1076 occ->group.attrs[i] = &occ->attrs[i].sensor.dev_attr.attr; in occ_setup_sensor_attrs()