Lines Matching refs:ret

81 	int ret = -ENOMEM;  in extra_show()  local
86 ret = HYPERVISOR_xen_version(XENVER_extraversion, extra); in extra_show()
87 if (!ret) in extra_show()
88 ret = sprintf(buffer, "%s\n", extra); in extra_show()
92 return ret; in extra_show()
124 int ret; in uuid_show_fallback() local
137 ret = sprintf(buffer, "%s\n", val); in uuid_show_fallback()
139 return ret; in uuid_show_fallback()
145 int ret; in uuid_show() local
146 ret = HYPERVISOR_xen_version(XENVER_guest_handle, uuid); in uuid_show()
147 if (ret) in uuid_show()
149 ret = sprintf(buffer, "%pU\n", uuid); in uuid_show()
150 return ret; in uuid_show()
169 int ret = -ENOMEM; in compiler_show() local
174 ret = HYPERVISOR_xen_version(XENVER_compile_info, info); in compiler_show()
175 if (!ret) in compiler_show()
176 ret = sprintf(buffer, "%s\n", info->compiler); in compiler_show()
180 return ret; in compiler_show()
187 int ret = -ENOMEM; in compiled_by_show() local
192 ret = HYPERVISOR_xen_version(XENVER_compile_info, info); in compiled_by_show()
193 if (!ret) in compiled_by_show()
194 ret = sprintf(buffer, "%s\n", info->compile_by); in compiled_by_show()
198 return ret; in compiled_by_show()
205 int ret = -ENOMEM; in compile_date_show() local
210 ret = HYPERVISOR_xen_version(XENVER_compile_info, info); in compile_date_show()
211 if (!ret) in compile_date_show()
212 ret = sprintf(buffer, "%s\n", info->compile_date); in compile_date_show()
216 return ret; in compile_date_show()
247 int ret = -ENOMEM; in capabilities_show() local
252 ret = HYPERVISOR_xen_version(XENVER_capabilities, caps); in capabilities_show()
253 if (!ret) in capabilities_show()
254 ret = sprintf(buffer, "%s\n", caps); in capabilities_show()
258 return ret; in capabilities_show()
265 int ret = -ENOMEM; in changeset_show() local
270 ret = HYPERVISOR_xen_version(XENVER_changeset, cset); in changeset_show()
271 if (!ret) in changeset_show()
272 ret = sprintf(buffer, "%s\n", cset); in changeset_show()
276 return ret; in changeset_show()
283 int ret = -ENOMEM; in virtual_start_show() local
288 ret = HYPERVISOR_xen_version(XENVER_platform_parameters, in virtual_start_show()
290 if (!ret) in virtual_start_show()
291 ret = sprintf(buffer, "%"PRI_xen_ulong"\n", in virtual_start_show()
296 return ret; in virtual_start_show()
303 int ret; in pagesize_show() local
305 ret = HYPERVISOR_xen_version(XENVER_pagesize, NULL); in pagesize_show()
306 if (ret > 0) in pagesize_show()
307 ret = sprintf(buffer, "%x\n", ret); in pagesize_show()
309 return ret; in pagesize_show()
316 ssize_t ret; in xen_feature_show() local
320 ret = HYPERVISOR_xen_version(XENVER_get_features, &info); in xen_feature_show()
321 if (!ret) in xen_feature_show()
322 ret = sprintf(buffer, "%08x", info.submap); in xen_feature_show()
324 return ret; in xen_feature_show()
334 int ret = xen_feature_show(i, buffer + len); in features_show() local
335 if (ret < 0) { in features_show()
337 len = ret; in features_show()
340 len += ret; in features_show()
390 int ret; in pmu_mode_store() local
406 ret = HYPERVISOR_xenpmu_op(XENPMU_mode_set, &xp); in pmu_mode_store()
407 if (ret) in pmu_mode_store()
408 return ret; in pmu_mode_store()
415 int ret; in pmu_mode_show() local
422 ret = HYPERVISOR_xenpmu_op(XENPMU_mode_get, &xp); in pmu_mode_show()
423 if (ret) in pmu_mode_show()
424 return ret; in pmu_mode_show()
439 int ret; in pmu_features_store() local
443 ret = kstrtou32(buffer, 0, &features); in pmu_features_store()
444 if (ret) in pmu_features_store()
445 return ret; in pmu_features_store()
450 ret = HYPERVISOR_xenpmu_op(XENPMU_feature_set, &xp); in pmu_features_store()
451 if (ret) in pmu_features_store()
452 return ret; in pmu_features_store()
459 int ret; in pmu_features_show() local
464 ret = HYPERVISOR_xenpmu_op(XENPMU_feature_get, &xp); in pmu_features_show()
465 if (ret) in pmu_features_show()
466 return ret; in pmu_features_show()
496 int ret; in hyper_sysfs_init() local
501 ret = xen_sysfs_type_init(); in hyper_sysfs_init()
502 if (ret) in hyper_sysfs_init()
504 ret = xen_sysfs_version_init(); in hyper_sysfs_init()
505 if (ret) in hyper_sysfs_init()
507 ret = xen_compilation_init(); in hyper_sysfs_init()
508 if (ret) in hyper_sysfs_init()
510 ret = xen_sysfs_uuid_init(); in hyper_sysfs_init()
511 if (ret) in hyper_sysfs_init()
513 ret = xen_properties_init(); in hyper_sysfs_init()
514 if (ret) in hyper_sysfs_init()
518 ret = xen_pmu_init(); in hyper_sysfs_init()
519 if (ret) { in hyper_sysfs_init()
536 return ret; in hyper_sysfs_init()