Lines Matching refs:ret
78 int ret = -ENOMEM; in extra_show() local
83 ret = HYPERVISOR_xen_version(XENVER_extraversion, extra); in extra_show()
84 if (!ret) in extra_show()
85 ret = sprintf(buffer, "%s\n", extra); in extra_show()
89 return ret; in extra_show()
121 int ret; in uuid_show_fallback() local
134 ret = sprintf(buffer, "%s\n", val); in uuid_show_fallback()
136 return ret; in uuid_show_fallback()
142 int ret; in uuid_show() local
143 ret = HYPERVISOR_xen_version(XENVER_guest_handle, uuid); in uuid_show()
144 if (ret) in uuid_show()
146 ret = sprintf(buffer, "%pU\n", uuid); in uuid_show()
147 return ret; in uuid_show()
166 int ret = -ENOMEM; in compiler_show() local
171 ret = HYPERVISOR_xen_version(XENVER_compile_info, info); in compiler_show()
172 if (!ret) in compiler_show()
173 ret = sprintf(buffer, "%s\n", info->compiler); in compiler_show()
177 return ret; in compiler_show()
184 int ret = -ENOMEM; in compiled_by_show() local
189 ret = HYPERVISOR_xen_version(XENVER_compile_info, info); in compiled_by_show()
190 if (!ret) in compiled_by_show()
191 ret = sprintf(buffer, "%s\n", info->compile_by); in compiled_by_show()
195 return ret; in compiled_by_show()
202 int ret = -ENOMEM; in compile_date_show() local
207 ret = HYPERVISOR_xen_version(XENVER_compile_info, info); in compile_date_show()
208 if (!ret) in compile_date_show()
209 ret = sprintf(buffer, "%s\n", info->compile_date); in compile_date_show()
213 return ret; in compile_date_show()
244 int ret = -ENOMEM; in capabilities_show() local
249 ret = HYPERVISOR_xen_version(XENVER_capabilities, caps); in capabilities_show()
250 if (!ret) in capabilities_show()
251 ret = sprintf(buffer, "%s\n", caps); in capabilities_show()
255 return ret; in capabilities_show()
262 int ret = -ENOMEM; in changeset_show() local
267 ret = HYPERVISOR_xen_version(XENVER_changeset, cset); in changeset_show()
268 if (!ret) in changeset_show()
269 ret = sprintf(buffer, "%s\n", cset); in changeset_show()
273 return ret; in changeset_show()
280 int ret = -ENOMEM; in virtual_start_show() local
285 ret = HYPERVISOR_xen_version(XENVER_platform_parameters, in virtual_start_show()
287 if (!ret) in virtual_start_show()
288 ret = sprintf(buffer, "%"PRI_xen_ulong"\n", in virtual_start_show()
293 return ret; in virtual_start_show()
300 int ret; in pagesize_show() local
302 ret = HYPERVISOR_xen_version(XENVER_pagesize, NULL); in pagesize_show()
303 if (ret > 0) in pagesize_show()
304 ret = sprintf(buffer, "%x\n", ret); in pagesize_show()
306 return ret; in pagesize_show()
313 ssize_t ret; in xen_feature_show() local
317 ret = HYPERVISOR_xen_version(XENVER_get_features, &info); in xen_feature_show()
318 if (!ret) in xen_feature_show()
319 ret = sprintf(buffer, "%08x", info.submap); in xen_feature_show()
321 return ret; in xen_feature_show()
331 int ret = xen_feature_show(i, buffer + len); in features_show() local
332 if (ret < 0) { in features_show()
334 len = ret; in features_show()
337 len += ret; in features_show()
373 int ret; in hyper_sysfs_init() local
378 ret = xen_sysfs_type_init(); in hyper_sysfs_init()
379 if (ret) in hyper_sysfs_init()
381 ret = xen_sysfs_version_init(); in hyper_sysfs_init()
382 if (ret) in hyper_sysfs_init()
384 ret = xen_compilation_init(); in hyper_sysfs_init()
385 if (ret) in hyper_sysfs_init()
387 ret = xen_sysfs_uuid_init(); in hyper_sysfs_init()
388 if (ret) in hyper_sysfs_init()
390 ret = xen_properties_init(); in hyper_sysfs_init()
391 if (ret) in hyper_sysfs_init()
405 return ret; in hyper_sysfs_init()