Lines Matching refs:buf
39 nouveau_hwmon_show_temp(struct device *d, struct device_attribute *a, char *buf) in nouveau_hwmon_show_temp() argument
49 return snprintf(buf, PAGE_SIZE, "%d\n", temp * 1000); in nouveau_hwmon_show_temp()
56 struct device_attribute *a, char *buf) in nouveau_hwmon_show_temp1_auto_point1_pwm() argument
58 return snprintf(buf, PAGE_SIZE, "%d\n", 100); in nouveau_hwmon_show_temp1_auto_point1_pwm()
65 struct device_attribute *a, char *buf) in nouveau_hwmon_temp1_auto_point1_temp() argument
71 return snprintf(buf, PAGE_SIZE, "%d\n", in nouveau_hwmon_temp1_auto_point1_temp()
77 const char *buf, size_t count) in nouveau_hwmon_set_temp1_auto_point1_temp() argument
84 if (kstrtol(buf, 10, &value) == -EINVAL) in nouveau_hwmon_set_temp1_auto_point1_temp()
98 struct device_attribute *a, char *buf) in nouveau_hwmon_temp1_auto_point1_temp_hyst() argument
104 return snprintf(buf, PAGE_SIZE, "%d\n", in nouveau_hwmon_temp1_auto_point1_temp_hyst()
110 const char *buf, size_t count) in nouveau_hwmon_set_temp1_auto_point1_temp_hyst() argument
117 if (kstrtol(buf, 10, &value) == -EINVAL) in nouveau_hwmon_set_temp1_auto_point1_temp_hyst()
130 nouveau_hwmon_max_temp(struct device *d, struct device_attribute *a, char *buf) in nouveau_hwmon_max_temp() argument
136 return snprintf(buf, PAGE_SIZE, "%d\n", in nouveau_hwmon_max_temp()
141 const char *buf, size_t count) in nouveau_hwmon_set_max_temp() argument
148 if (kstrtol(buf, 10, &value) == -EINVAL) in nouveau_hwmon_set_max_temp()
161 char *buf) in nouveau_hwmon_max_temp_hyst() argument
167 return snprintf(buf, PAGE_SIZE, "%d\n", in nouveau_hwmon_max_temp_hyst()
172 const char *buf, size_t count) in nouveau_hwmon_set_max_temp_hyst() argument
179 if (kstrtol(buf, 10, &value) == -EINVAL) in nouveau_hwmon_set_max_temp_hyst()
193 char *buf) in nouveau_hwmon_critical_temp() argument
199 return snprintf(buf, PAGE_SIZE, "%d\n", in nouveau_hwmon_critical_temp()
204 const char *buf, in nouveau_hwmon_set_critical_temp() argument
212 if (kstrtol(buf, 10, &value) == -EINVAL) in nouveau_hwmon_set_critical_temp()
226 char *buf) in nouveau_hwmon_critical_temp_hyst() argument
232 return snprintf(buf, PAGE_SIZE, "%d\n", in nouveau_hwmon_critical_temp_hyst()
238 const char *buf, in nouveau_hwmon_set_critical_temp_hyst() argument
246 if (kstrtol(buf, 10, &value) == -EINVAL) in nouveau_hwmon_set_critical_temp_hyst()
259 char *buf) in nouveau_hwmon_emergency_temp() argument
265 return snprintf(buf, PAGE_SIZE, "%d\n", in nouveau_hwmon_emergency_temp()
270 const char *buf, in nouveau_hwmon_set_emergency_temp() argument
278 if (kstrtol(buf, 10, &value) == -EINVAL) in nouveau_hwmon_set_emergency_temp()
292 char *buf) in nouveau_hwmon_emergency_temp_hyst() argument
298 return snprintf(buf, PAGE_SIZE, "%d\n", in nouveau_hwmon_emergency_temp_hyst()
304 const char *buf, in nouveau_hwmon_set_emergency_temp_hyst() argument
312 if (kstrtol(buf, 10, &value) == -EINVAL) in nouveau_hwmon_set_emergency_temp_hyst()
327 char *buf) in nouveau_hwmon_show_name() argument
329 return sprintf(buf, "nouveau\n"); in nouveau_hwmon_show_name()
335 char *buf) in nouveau_hwmon_show_update_rate() argument
337 return sprintf(buf, "1000\n"); in nouveau_hwmon_show_update_rate()
345 char *buf) in nouveau_hwmon_show_fan1_input() argument
351 return snprintf(buf, PAGE_SIZE, "%d\n", nvkm_therm_fan_sense(therm)); in nouveau_hwmon_show_fan1_input()
358 struct device_attribute *a, char *buf) in nouveau_hwmon_get_pwm1_enable() argument
369 return sprintf(buf, "%i\n", ret); in nouveau_hwmon_get_pwm1_enable()
374 const char *buf, size_t count) in nouveau_hwmon_set_pwm1_enable() argument
382 ret = kstrtol(buf, 10, &value); in nouveau_hwmon_set_pwm1_enable()
397 nouveau_hwmon_get_pwm1(struct device *d, struct device_attribute *a, char *buf) in nouveau_hwmon_get_pwm1() argument
408 return sprintf(buf, "%i\n", ret); in nouveau_hwmon_get_pwm1()
413 const char *buf, size_t count) in nouveau_hwmon_set_pwm1() argument
421 if (kstrtol(buf, 10, &value) == -EINVAL) in nouveau_hwmon_set_pwm1()
437 struct device_attribute *a, char *buf) in nouveau_hwmon_get_pwm1_min() argument
448 return sprintf(buf, "%i\n", ret); in nouveau_hwmon_get_pwm1_min()
453 const char *buf, size_t count) in nouveau_hwmon_set_pwm1_min() argument
461 if (kstrtol(buf, 10, &value) == -EINVAL) in nouveau_hwmon_set_pwm1_min()
477 struct device_attribute *a, char *buf) in nouveau_hwmon_get_pwm1_max() argument
488 return sprintf(buf, "%i\n", ret); in nouveau_hwmon_get_pwm1_max()
493 const char *buf, size_t count) in nouveau_hwmon_set_pwm1_max() argument
501 if (kstrtol(buf, 10, &value) == -EINVAL) in nouveau_hwmon_set_pwm1_max()