Lines Matching refs:buf
958 char *buf) in disk_show() argument
961 char *start = buf; in disk_show()
964 return sprintf(buf, "[disabled]\n"); in disk_show()
984 buf += sprintf(buf, "[%s] ", hibernation_modes[i]); in disk_show()
986 buf += sprintf(buf, "%s ", hibernation_modes[i]); in disk_show()
988 buf += sprintf(buf, "\n"); in disk_show()
989 return buf-start; in disk_show()
993 const char *buf, size_t n) in disk_store() argument
1004 p = memchr(buf, '\n', n); in disk_store()
1005 len = p ? p - buf : n; in disk_store()
1010 && !strncmp(buf, hibernation_modes[i], len)) { in disk_store()
1044 char *buf) in resume_show() argument
1046 return sprintf(buf,"%d:%d\n", MAJOR(swsusp_resume_device), in resume_show()
1051 const char *buf, size_t n) in resume_store() argument
1057 if (len && buf[len-1] == '\n') in resume_store()
1059 name = kstrndup(buf, len, GFP_KERNEL); in resume_store()
1080 struct kobj_attribute *attr, char *buf) in resume_offset_show() argument
1082 return sprintf(buf, "%llu\n", (unsigned long long)swsusp_resume_block); in resume_offset_show()
1086 struct kobj_attribute *attr, const char *buf, in resume_offset_store() argument
1092 rc = kstrtoull(buf, 0, &offset); in resume_offset_store()
1103 char *buf) in image_size_show() argument
1105 return sprintf(buf, "%lu\n", image_size); in image_size_show()
1109 const char *buf, size_t n) in image_size_store() argument
1113 if (sscanf(buf, "%lu", &size) == 1) { in image_size_store()
1124 struct kobj_attribute *attr, char *buf) in reserved_size_show() argument
1126 return sprintf(buf, "%lu\n", reserved_size); in reserved_size_show()
1131 const char *buf, size_t n) in reserved_size_store() argument
1135 if (sscanf(buf, "%lu", &size) == 1) { in reserved_size_store()