Searched refs:gsbm (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/arch/powerpc/kvm/ |
D | test-guest-state-buffer.c | 127 struct kvmppc_gs_bitmap gsbm = { 0 }; in test_gs_bitmap() local 136 kvmppc_gsbm_set(&gsbm, iden); in test_gs_bitmap() 138 KUNIT_EXPECT_TRUE(test, kvmppc_gsbm_test(&gsbm, iden)); in test_gs_bitmap() 139 kvmppc_gsbm_clear(&gsbm, iden); in test_gs_bitmap() 140 KUNIT_EXPECT_FALSE(test, kvmppc_gsbm_test(&gsbm, iden)); in test_gs_bitmap() 146 kvmppc_gsbm_set(&gsbm, iden); in test_gs_bitmap() 148 KUNIT_EXPECT_TRUE(test, kvmppc_gsbm_test(&gsbm, iden)); in test_gs_bitmap() 149 kvmppc_gsbm_clear(&gsbm, iden); in test_gs_bitmap() 150 KUNIT_EXPECT_FALSE(test, kvmppc_gsbm_test(&gsbm, iden)); in test_gs_bitmap() 155 kvmppc_gsbm_set(&gsbm, iden); in test_gs_bitmap() [all …]
|
D | guest-state-buffer.c | 429 void kvmppc_gsbm_set(struct kvmppc_gs_bitmap *gsbm, u16 iden) in kvmppc_gsbm_set() argument 431 set_bit(kvmppc_gse_flatten_iden(iden), gsbm->bitmap); in kvmppc_gsbm_set() 440 void kvmppc_gsbm_clear(struct kvmppc_gs_bitmap *gsbm, u16 iden) in kvmppc_gsbm_clear() argument 442 clear_bit(kvmppc_gse_flatten_iden(iden), gsbm->bitmap); in kvmppc_gsbm_clear() 451 bool kvmppc_gsbm_test(struct kvmppc_gs_bitmap *gsbm, u16 iden) in kvmppc_gsbm_test() argument 453 return test_bit(kvmppc_gse_flatten_iden(iden), gsbm->bitmap); in kvmppc_gsbm_test() 462 u16 kvmppc_gsbm_next(struct kvmppc_gs_bitmap *gsbm, u16 prev) in kvmppc_gsbm_next() argument 467 bit = find_next_bit(gsbm->bitmap, KVMPPC_GSE_IDEN_COUNT, pbit); in kvmppc_gsbm_next()
|
D | book3s_hv_nestedv2.c | 112 struct kvmppc_gs_bitmap gsbm = { 0 }; in gs_msg_ops_vcpu_get_size() local 116 kvmppc_gsbm_fill(&gsbm); in gs_msg_ops_vcpu_get_size() 117 kvmppc_gsbm_for_each(&gsbm, iden) in gs_msg_ops_vcpu_get_size()
|
/linux-6.12.1/arch/powerpc/include/asm/ |
D | guest-state-buffer.h | 784 bool kvmppc_gsbm_test(struct kvmppc_gs_bitmap *gsbm, u16 iden); 785 void kvmppc_gsbm_set(struct kvmppc_gs_bitmap *gsbm, u16 iden); 786 void kvmppc_gsbm_clear(struct kvmppc_gs_bitmap *gsbm, u16 iden); 787 u16 kvmppc_gsbm_next(struct kvmppc_gs_bitmap *gsbm, u16 prev); 793 static inline void kvmppc_gsbm_zero(struct kvmppc_gs_bitmap *gsbm) in kvmppc_gsbm_zero() argument 795 bitmap_zero(gsbm->bitmap, KVMPPC_GSE_IDEN_COUNT); in kvmppc_gsbm_zero() 802 static inline void kvmppc_gsbm_fill(struct kvmppc_gs_bitmap *gsbm) in kvmppc_gsbm_fill() argument 804 bitmap_fill(gsbm->bitmap, KVMPPC_GSE_IDEN_COUNT); in kvmppc_gsbm_fill() 805 clear_bit(0, gsbm->bitmap); in kvmppc_gsbm_fill() 813 #define kvmppc_gsbm_for_each(gsbm, iden) \ argument [all …]
|