• Home
  • Raw
  • Download

Lines Matching refs:sysfsbuf

743 				struct device_attribute *attr, char *sysfsbuf)  in applesmc_light_show()  argument
777 return snprintf(sysfsbuf, PAGE_SIZE, "(%d,%d)\n", left, right); in applesmc_light_show()
782 struct device_attribute *devattr, char *sysfsbuf) in applesmc_show_sensor_label() argument
786 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", key); in applesmc_show_sensor_label()
791 struct device_attribute *devattr, char *sysfsbuf) in applesmc_show_temperature() argument
804 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", temp); in applesmc_show_temperature()
808 struct device_attribute *attr, char *sysfsbuf) in applesmc_show_fan_speed() argument
823 return snprintf(sysfsbuf, PAGE_SIZE, "%u\n", speed); in applesmc_show_fan_speed()
828 const char *sysfsbuf, size_t count) in applesmc_store_fan_speed() argument
835 if (kstrtoul(sysfsbuf, 10, &speed) < 0 || speed >= 0x4000) in applesmc_store_fan_speed()
851 struct device_attribute *attr, char *sysfsbuf) in applesmc_show_fan_manual() argument
863 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", manual); in applesmc_show_fan_manual()
868 const char *sysfsbuf, size_t count) in applesmc_store_fan_manual() argument
875 if (kstrtoul(sysfsbuf, 10, &input) < 0) in applesmc_store_fan_manual()
901 struct device_attribute *attr, char *sysfsbuf) in applesmc_show_fan_position() argument
915 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", buffer+4); in applesmc_show_fan_position()
919 struct device_attribute *attr, char *sysfsbuf) in applesmc_calibrate_show() argument
921 return snprintf(sysfsbuf, PAGE_SIZE, "(%d,%d)\n", rest_x, rest_y); in applesmc_calibrate_show()
925 struct device_attribute *attr, const char *sysfsbuf, size_t count) in applesmc_calibrate_store() argument
951 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_count_show() argument
964 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", count); in applesmc_key_count_show()
968 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_read_show() argument
976 ret = applesmc_read_entry(entry, sysfsbuf, entry->len); in applesmc_key_at_index_read_show()
984 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_data_length_show() argument
992 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", entry->len); in applesmc_key_at_index_data_length_show()
996 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_type_show() argument
1004 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", entry->type); in applesmc_key_at_index_type_show()
1008 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_name_show() argument
1016 return snprintf(sysfsbuf, PAGE_SIZE, "%s\n", entry->key); in applesmc_key_at_index_name_show()
1020 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_at_index_show() argument
1022 return snprintf(sysfsbuf, PAGE_SIZE, "%d\n", key_at_index); in applesmc_key_at_index_show()
1026 struct device_attribute *attr, const char *sysfsbuf, size_t count) in applesmc_key_at_index_store() argument
1030 if (kstrtoul(sysfsbuf, 10, &newkey) < 0 in applesmc_key_at_index_store()