Lines Matching refs:sysfsbuf

771 				struct device_attribute *attr, char *sysfsbuf)  in applesmc_light_show()  argument
808 return snprintf(sysfsbuf, PAGE_SIZE, "(%d,%d)\n", left, right); in applesmc_light_show()
813 struct device_attribute *devattr, char *sysfsbuf) in applesmc_show_sensor_label() argument
817 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", key); in applesmc_show_sensor_label()
822 struct device_attribute *devattr, char *sysfsbuf) in applesmc_show_temperature() argument
835 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", temp); in applesmc_show_temperature()
839 struct device_attribute *attr, char *sysfsbuf) in applesmc_show_fan_speed() argument
854 return snprintf(sysfsbuf, PAGE_SIZE, "%u\n", speed); in applesmc_show_fan_speed()
859 const char *sysfsbuf, size_t count) in applesmc_store_fan_speed() argument
866 if (kstrtoul(sysfsbuf, 10, &speed) < 0 || speed >= 0x4000) in applesmc_store_fan_speed()
883 struct device_attribute *attr, char *sysfsbuf) in applesmc_show_fan_manual() argument
894 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", manual); in applesmc_show_fan_manual()
899 const char *sysfsbuf, size_t count) in applesmc_store_fan_manual() argument
906 if (kstrtoul(sysfsbuf, 10, &input) < 0) in applesmc_store_fan_manual()
933 struct device_attribute *attr, char *sysfsbuf) in applesmc_show_fan_position() argument
947 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", buffer+4); in applesmc_show_fan_position()
951 struct device_attribute *attr, char *sysfsbuf) in applesmc_calibrate_show() argument
953 return snprintf(sysfsbuf, PAGE_SIZE, "(%d,%d)\n", rest_x, rest_y); in applesmc_calibrate_show()
957 struct device_attribute *attr, const char *sysfsbuf, size_t count) in applesmc_calibrate_store() argument
983 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_count_show() argument
995 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", count); in applesmc_key_count_show()
999 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_read_show() argument
1007 ret = applesmc_read_entry(entry, sysfsbuf, entry->len); in applesmc_key_at_index_read_show()
1015 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_data_length_show() argument
1023 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", entry->len); in applesmc_key_at_index_data_length_show()
1027 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_type_show() argument
1035 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", entry->type); in applesmc_key_at_index_type_show()
1039 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_name_show() argument
1047 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", entry->key); in applesmc_key_at_index_name_show()
1051 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_show() argument
1053 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", key_at_index); in applesmc_key_at_index_show()
1057 struct device_attribute *attr, const char *sysfsbuf, size_t count) in applesmc_key_at_index_store() argument
1061 if (kstrtoul(sysfsbuf, 10, &newkey) < 0 in applesmc_key_at_index_store()