Lines Matching refs:sysfsbuf

732 				struct device_attribute *attr, char *sysfsbuf)  in applesmc_light_show()  argument
766 return snprintf(sysfsbuf, PAGE_SIZE, "(%d,%d)\n", left, right); in applesmc_light_show()
771 struct device_attribute *devattr, char *sysfsbuf) in applesmc_show_sensor_label() argument
775 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", key); in applesmc_show_sensor_label()
780 struct device_attribute *devattr, char *sysfsbuf) in applesmc_show_temperature() argument
793 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", temp); in applesmc_show_temperature()
797 struct device_attribute *attr, char *sysfsbuf) in applesmc_show_fan_speed() argument
813 return snprintf(sysfsbuf, PAGE_SIZE, "%u\n", speed); in applesmc_show_fan_speed()
818 const char *sysfsbuf, size_t count) in applesmc_store_fan_speed() argument
825 if (kstrtoul(sysfsbuf, 10, &speed) < 0 || speed >= 0x4000) in applesmc_store_fan_speed()
842 struct device_attribute *attr, char *sysfsbuf) in applesmc_show_fan_manual() argument
854 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", manual); in applesmc_show_fan_manual()
859 const char *sysfsbuf, size_t count) in applesmc_store_fan_manual() argument
866 if (kstrtoul(sysfsbuf, 10, &input) < 0) in applesmc_store_fan_manual()
892 struct device_attribute *attr, char *sysfsbuf) in applesmc_show_fan_position() argument
906 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", buffer+4); in applesmc_show_fan_position()
910 struct device_attribute *attr, char *sysfsbuf) in applesmc_calibrate_show() argument
912 return snprintf(sysfsbuf, PAGE_SIZE, "(%d,%d)\n", rest_x, rest_y); in applesmc_calibrate_show()
916 struct device_attribute *attr, const char *sysfsbuf, size_t count) in applesmc_calibrate_store() argument
942 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_count_show() argument
955 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", count); in applesmc_key_count_show()
959 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_read_show() argument
967 ret = applesmc_read_entry(entry, sysfsbuf, entry->len); in applesmc_key_at_index_read_show()
975 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_data_length_show() argument
983 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", entry->len); in applesmc_key_at_index_data_length_show()
987 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_type_show() argument
995 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", entry->type); in applesmc_key_at_index_type_show()
999 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_name_show() argument
1007 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", entry->key); in applesmc_key_at_index_name_show()
1011 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_show() argument
1013 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", key_at_index); in applesmc_key_at_index_show()
1017 struct device_attribute *attr, const char *sysfsbuf, size_t count) in applesmc_key_at_index_store() argument
1021 if (kstrtoul(sysfsbuf, 10, &newkey) < 0 in applesmc_key_at_index_store()