Lines Matching refs:sysfsbuf
744 struct device_attribute *attr, char *sysfsbuf) in applesmc_light_show() argument
778 return snprintf(sysfsbuf, PAGE_SIZE, "(%d,%d)\n", left, right); in applesmc_light_show()
783 struct device_attribute *devattr, char *sysfsbuf) in applesmc_show_sensor_label() argument
787 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", key); in applesmc_show_sensor_label()
792 struct device_attribute *devattr, char *sysfsbuf) in applesmc_show_temperature() argument
805 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", temp); in applesmc_show_temperature()
809 struct device_attribute *attr, char *sysfsbuf) in applesmc_show_fan_speed() argument
825 return snprintf(sysfsbuf, PAGE_SIZE, "%u\n", speed); in applesmc_show_fan_speed()
830 const char *sysfsbuf, size_t count) in applesmc_store_fan_speed() argument
837 if (kstrtoul(sysfsbuf, 10, &speed) < 0 || speed >= 0x4000) in applesmc_store_fan_speed()
854 struct device_attribute *attr, char *sysfsbuf) in applesmc_show_fan_manual() argument
866 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", manual); in applesmc_show_fan_manual()
871 const char *sysfsbuf, size_t count) in applesmc_store_fan_manual() argument
878 if (kstrtoul(sysfsbuf, 10, &input) < 0) in applesmc_store_fan_manual()
904 struct device_attribute *attr, char *sysfsbuf) in applesmc_show_fan_position() argument
918 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", buffer+4); in applesmc_show_fan_position()
922 struct device_attribute *attr, char *sysfsbuf) in applesmc_calibrate_show() argument
924 return snprintf(sysfsbuf, PAGE_SIZE, "(%d,%d)\n", rest_x, rest_y); in applesmc_calibrate_show()
928 struct device_attribute *attr, const char *sysfsbuf, size_t count) in applesmc_calibrate_store() argument
954 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_count_show() argument
967 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", count); in applesmc_key_count_show()
971 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_read_show() argument
979 ret = applesmc_read_entry(entry, sysfsbuf, entry->len); in applesmc_key_at_index_read_show()
987 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_data_length_show() argument
995 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", entry->len); in applesmc_key_at_index_data_length_show()
999 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_type_show() argument
1007 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", entry->type); in applesmc_key_at_index_type_show()
1011 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_name_show() argument
1019 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", entry->key); in applesmc_key_at_index_name_show()
1023 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_show() argument
1025 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", key_at_index); in applesmc_key_at_index_show()
1029 struct device_attribute *attr, const char *sysfsbuf, size_t count) in applesmc_key_at_index_store() argument
1033 if (kstrtoul(sysfsbuf, 10, &newkey) < 0 in applesmc_key_at_index_store()