Lines Matching refs:xp
476 struct xen_pmu_params xp; in pmu_mode_store() local
481 xp.val = pmu_modes[i].mode; in pmu_mode_store()
489 xp.version.maj = XENPMU_VER_MAJ; in pmu_mode_store()
490 xp.version.min = XENPMU_VER_MIN; in pmu_mode_store()
491 ret = HYPERVISOR_xenpmu_op(XENPMU_mode_set, &xp); in pmu_mode_store()
501 struct xen_pmu_params xp; in pmu_mode_show() local
505 xp.version.maj = XENPMU_VER_MAJ; in pmu_mode_show()
506 xp.version.min = XENPMU_VER_MIN; in pmu_mode_show()
507 ret = HYPERVISOR_xenpmu_op(XENPMU_mode_get, &xp); in pmu_mode_show()
511 mode = (uint32_t)xp.val; in pmu_mode_show()
526 struct xen_pmu_params xp; in pmu_features_store() local
532 xp.val = features; in pmu_features_store()
533 xp.version.maj = XENPMU_VER_MAJ; in pmu_features_store()
534 xp.version.min = XENPMU_VER_MIN; in pmu_features_store()
535 ret = HYPERVISOR_xenpmu_op(XENPMU_feature_set, &xp); in pmu_features_store()
545 struct xen_pmu_params xp; in pmu_features_show() local
547 xp.version.maj = XENPMU_VER_MAJ; in pmu_features_show()
548 xp.version.min = XENPMU_VER_MIN; in pmu_features_show()
549 ret = HYPERVISOR_xenpmu_op(XENPMU_feature_get, &xp); in pmu_features_show()
553 return sprintf(buffer, "0x%x\n", (uint32_t)xp.val); in pmu_features_show()