Lines Matching refs:sysfsbuf
742 struct device_attribute *attr, char *sysfsbuf) in applesmc_light_show() argument
776 return snprintf(sysfsbuf, PAGE_SIZE, "(%d,%d)\n", left, right); in applesmc_light_show()
781 struct device_attribute *devattr, char *sysfsbuf) in applesmc_show_sensor_label() argument
785 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", key); in applesmc_show_sensor_label()
790 struct device_attribute *devattr, char *sysfsbuf) in applesmc_show_temperature() argument
803 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", temp); in applesmc_show_temperature()
807 struct device_attribute *attr, char *sysfsbuf) in applesmc_show_fan_speed() argument
822 return snprintf(sysfsbuf, PAGE_SIZE, "%u\n", speed); in applesmc_show_fan_speed()
827 const char *sysfsbuf, size_t count) in applesmc_store_fan_speed() argument
834 if (kstrtoul(sysfsbuf, 10, &speed) < 0 || speed >= 0x4000) in applesmc_store_fan_speed()
850 struct device_attribute *attr, char *sysfsbuf) in applesmc_show_fan_manual() argument
862 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", manual); in applesmc_show_fan_manual()
867 const char *sysfsbuf, size_t count) in applesmc_store_fan_manual() argument
874 if (kstrtoul(sysfsbuf, 10, &input) < 0) in applesmc_store_fan_manual()
900 struct device_attribute *attr, char *sysfsbuf) in applesmc_show_fan_position() argument
914 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", buffer+4); in applesmc_show_fan_position()
918 struct device_attribute *attr, char *sysfsbuf) in applesmc_calibrate_show() argument
920 return snprintf(sysfsbuf, PAGE_SIZE, "(%d,%d)\n", rest_x, rest_y); in applesmc_calibrate_show()
924 struct device_attribute *attr, const char *sysfsbuf, size_t count) in applesmc_calibrate_store() argument
950 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_count_show() argument
963 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", count); in applesmc_key_count_show()
967 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_read_show() argument
975 ret = applesmc_read_entry(entry, sysfsbuf, entry->len); in applesmc_key_at_index_read_show()
983 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_data_length_show() argument
991 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", entry->len); in applesmc_key_at_index_data_length_show()
995 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_type_show() argument
1003 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", entry->type); in applesmc_key_at_index_type_show()
1007 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_name_show() argument
1015 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", entry->key); in applesmc_key_at_index_name_show()
1019 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_show() argument
1021 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", key_at_index); in applesmc_key_at_index_show()
1025 struct device_attribute *attr, const char *sysfsbuf, size_t count) in applesmc_key_at_index_store() argument
1029 if (kstrtoul(sysfsbuf, 10, &newkey) < 0 in applesmc_key_at_index_store()