Lines Matching refs:vpmu
26 #define vcpu_vpmu(vcpu) (&(vcpu)->arch.vpmu)
27 #define vpmu_vcpu(vpmu) container_of((vpmu), struct vcpu, arch.vpmu) argument
83 static inline void vpmu_set(struct vpmu_struct *vpmu, const u32 mask) in vpmu_set() argument
85 vpmu->flags |= mask; in vpmu_set()
87 static inline void vpmu_reset(struct vpmu_struct *vpmu, const u32 mask) in vpmu_reset() argument
89 vpmu->flags &= ~mask; in vpmu_reset()
91 static inline void vpmu_clear(struct vpmu_struct *vpmu) in vpmu_clear() argument
94 vpmu->flags &= VPMU_AVAILABLE; in vpmu_clear()
96 static inline bool_t vpmu_is_set(const struct vpmu_struct *vpmu, const u32 mask) in vpmu_is_set() argument
98 return !!(vpmu->flags & mask); in vpmu_is_set()
100 static inline bool_t vpmu_are_all_set(const struct vpmu_struct *vpmu, in vpmu_are_all_set() argument
103 return !!((vpmu->flags & mask) == mask); in vpmu_are_all_set()