Lines Matching refs:buf
1081 char *buf) in disk_show() argument
1084 char *start = buf; in disk_show()
1087 return sprintf(buf, "[disabled]\n"); in disk_show()
1107 buf += sprintf(buf, "[%s] ", hibernation_modes[i]); in disk_show()
1109 buf += sprintf(buf, "%s ", hibernation_modes[i]); in disk_show()
1111 buf += sprintf(buf, "\n"); in disk_show()
1112 return buf-start; in disk_show()
1116 const char *buf, size_t n) in disk_store() argument
1128 p = memchr(buf, '\n', n); in disk_store()
1129 len = p ? p - buf : n; in disk_store()
1134 && !strncmp(buf, hibernation_modes[i], len)) { in disk_store()
1168 char *buf) in resume_show() argument
1170 return sprintf(buf, "%d:%d\n", MAJOR(swsusp_resume_device), in resume_show()
1175 const char *buf, size_t n) in resume_store() argument
1182 if (len && buf[len-1] == '\n') in resume_store()
1184 name = kstrndup(buf, len, GFP_KERNEL); in resume_store()
1207 struct kobj_attribute *attr, char *buf) in resume_offset_show() argument
1209 return sprintf(buf, "%llu\n", (unsigned long long)swsusp_resume_block); in resume_offset_show()
1213 struct kobj_attribute *attr, const char *buf, in resume_offset_store() argument
1219 rc = kstrtoull(buf, 0, &offset); in resume_offset_store()
1230 char *buf) in image_size_show() argument
1232 return sprintf(buf, "%lu\n", image_size); in image_size_show()
1236 const char *buf, size_t n) in image_size_store() argument
1240 if (sscanf(buf, "%lu", &size) == 1) { in image_size_store()
1251 struct kobj_attribute *attr, char *buf) in reserved_size_show() argument
1253 return sprintf(buf, "%lu\n", reserved_size); in reserved_size_show()
1258 const char *buf, size_t n) in reserved_size_store() argument
1262 if (sscanf(buf, "%lu", &size) == 1) { in reserved_size_store()