Searched refs:arena_bitmap (Results 1 – 4 of 4) sorted by relevance
| /linux/tools/testing/selftests/bpf/libarena/include/libarena/ |
| H A D | bitmap.h | 11 struct arena_bitmap { struct 15 struct arena_bitmap __arena *bmp_alloc(size_t bits); argument 16 void bmp_free(struct arena_bitmap __arena *bmp); 18 void __bmp_set_bit(u32 bit, struct arena_bitmap __arena *bmp); 19 void __bmp_clear_bit(u32 bit, struct arena_bitmap __arena *bmp); 20 void bmp_set_bit(u32 bit, struct arena_bitmap __arena *bmp); 21 void bmp_clear_bit(u32 bit, struct arena_bitmap __arena *bmp); 22 bool bmp_test_bit(u32 bit, struct arena_bitmap __arena *bmp); 23 bool bmp_test_and_clear_bit(u32 bit, struct arena_bitmap __arena *bmp); 24 bool bmp_test_and_set_bit(u32 bit, struct arena_bitmap __arena *bmp); [all …]
|
| /linux/tools/testing/selftests/bpf/libarena/src/ |
| H A D | bitmap.bpf.c | 13 struct arena_bitmap __arena *bmp_alloc(size_t bits) in bmp_alloc() 15 struct arena_bitmap __arena *bmp; in bmp_alloc() 22 bmp = (struct arena_bitmap __arena *)arena_malloc(size); in bmp_alloc() 32 void bmp_free(struct arena_bitmap __arena *bmp) in bmp_free() 38 void __bmp_set_bit(u32 bit, struct arena_bitmap __arena *bmp) in __bmp_set_bit() 44 void __bmp_clear_bit(u32 bit, struct arena_bitmap __arena *bmp) in __bmp_clear_bit() 50 bool bmp_test_bit(u32 bit, struct arena_bitmap __arena *bmp) in bmp_test_bit() 56 bool bmp_test_and_clear_bit(u32 bit, struct arena_bitmap __arena *bmp) in bmp_test_and_clear_bit() 80 bool bmp_test_and_set_bit(u32 bit, struct arena_bitmap __arena *bmp) in bmp_test_and_set_bit() 104 void bmp_clear_bit(u32 bit, struct arena_bitmap __arena *bmp) in bmp_clear_bit() [all …]
|
| /linux/tools/testing/selftests/bpf/libarena/selftests/ |
| H A D | test_bitmap.bpf.c | 11 static void test_bmp_setall(struct arena_bitmap __arena *bmp) in test_bmp_setall() 22 struct arena_bitmap __arena *bmp; in test_bitmap_alloc_free() 50 struct arena_bitmap __arena *bmp; in test_bitmap_bit_ops() 100 static bool test_bitmap_test_and_clear_single(struct arena_bitmap __arena *bmp, size_t ind) in test_bitmap_test_and_clear_single() 119 static bool test_bitmap_test_and_set_single(struct arena_bitmap __arena *bmp, size_t ind) in test_bitmap_test_and_set_single() 141 struct arena_bitmap __arena *bmp; in test_bitmap_test_and_clear_bit() 170 struct arena_bitmap __arena *bmp; in test_bitmap_test_and_set_bit() 197 struct arena_bitmap __arena *src1 = NULL, *src2 = NULL, *dst = NULL; in test_bitmap_and() 243 struct arena_bitmap __arena *src1 = NULL, *src2 = NULL, *dst = NULL; in test_bitmap_or() 288 struct arena_bitmap __arena *big = NULL, *small = NULL; in test_bitmap_subset() [all …]
|
| H A D | test_parallel_bitmap.bpf.c | 15 static struct arena_bitmap __arena *bitmap;
|