Lines Matching refs:buffer

38 static ssize_t type_show(struct hyp_sysfs_attr *attr, char *buffer)  in type_show()  argument
40 return sprintf(buffer, "xen\n"); in type_show()
56 static ssize_t major_show(struct hyp_sysfs_attr *attr, char *buffer) in major_show() argument
60 return sprintf(buffer, "%d\n", version >> 16); in major_show()
66 static ssize_t minor_show(struct hyp_sysfs_attr *attr, char *buffer) in minor_show() argument
70 return sprintf(buffer, "%d\n", version & 0xff); in minor_show()
76 static ssize_t extra_show(struct hyp_sysfs_attr *attr, char *buffer) in extra_show() argument
85 ret = sprintf(buffer, "%s\n", extra); in extra_show()
118 static ssize_t uuid_show_fallback(struct hyp_sysfs_attr *attr, char *buffer) in uuid_show_fallback() argument
134 ret = sprintf(buffer, "%s\n", val); in uuid_show_fallback()
139 static ssize_t uuid_show(struct hyp_sysfs_attr *attr, char *buffer) in uuid_show() argument
145 return uuid_show_fallback(attr, buffer); in uuid_show()
146 ret = sprintf(buffer, "%pU\n", uuid); in uuid_show()
164 static ssize_t compiler_show(struct hyp_sysfs_attr *attr, char *buffer) in compiler_show() argument
173 ret = sprintf(buffer, "%s\n", info->compiler); in compiler_show()
182 static ssize_t compiled_by_show(struct hyp_sysfs_attr *attr, char *buffer) in compiled_by_show() argument
191 ret = sprintf(buffer, "%s\n", info->compile_by); in compiled_by_show()
200 static ssize_t compile_date_show(struct hyp_sysfs_attr *attr, char *buffer) in compile_date_show() argument
209 ret = sprintf(buffer, "%s\n", info->compile_date); in compile_date_show()
242 static ssize_t capabilities_show(struct hyp_sysfs_attr *attr, char *buffer) in capabilities_show() argument
251 ret = sprintf(buffer, "%s\n", caps); in capabilities_show()
260 static ssize_t changeset_show(struct hyp_sysfs_attr *attr, char *buffer) in changeset_show() argument
269 ret = sprintf(buffer, "%s\n", cset); in changeset_show()
278 static ssize_t virtual_start_show(struct hyp_sysfs_attr *attr, char *buffer) in virtual_start_show() argument
288 ret = sprintf(buffer, "%"PRI_xen_ulong"\n", in virtual_start_show()
298 static ssize_t pagesize_show(struct hyp_sysfs_attr *attr, char *buffer) in pagesize_show() argument
304 ret = sprintf(buffer, "%x\n", ret); in pagesize_show()
311 static ssize_t xen_feature_show(int index, char *buffer) in xen_feature_show() argument
319 ret = sprintf(buffer, "%08x", info.submap); in xen_feature_show()
324 static ssize_t features_show(struct hyp_sysfs_attr *attr, char *buffer) in features_show() argument
331 int ret = xen_feature_show(i, buffer + len); in features_show()
340 buffer[len++] = '\n'; in features_show()
422 char *buffer) in hyp_sysfs_show() argument
427 return hyp_attr->show(hyp_attr, buffer); in hyp_sysfs_show()
433 const char *buffer, in hyp_sysfs_store() argument
439 return hyp_attr->store(hyp_attr, buffer, len); in hyp_sysfs_store()