Lines Matching refs:bmp

17 test_bitmap_scan_operations(struct rte_bitmap *bmp)  in test_bitmap_scan_operations()  argument
24 rte_bitmap_reset(bmp); in test_bitmap_scan_operations()
26 rte_bitmap_set_slab(bmp, pos, slab1_magic); in test_bitmap_scan_operations()
27 rte_bitmap_set_slab(bmp, pos + RTE_BITMAP_SLAB_BIT_SIZE, slab2_magic); in test_bitmap_scan_operations()
29 if (!rte_bitmap_scan(bmp, &pos, &out_slab)) { in test_bitmap_scan_operations()
39 if (!rte_bitmap_scan(bmp, &pos, &out_slab)) { in test_bitmap_scan_operations()
50 if (!rte_bitmap_scan(bmp, &pos, &out_slab)) { in test_bitmap_scan_operations()
61 __rte_bitmap_scan_init(bmp); in test_bitmap_scan_operations()
63 if (!rte_bitmap_scan(bmp, &pos, &out_slab)) { in test_bitmap_scan_operations()
77 test_bitmap_slab_set_get(struct rte_bitmap *bmp) in test_bitmap_slab_set_get() argument
83 rte_bitmap_reset(bmp); in test_bitmap_slab_set_get()
84 rte_bitmap_set_slab(bmp, pos, slab_magic); in test_bitmap_slab_set_get()
86 if (!rte_bitmap_scan(bmp, &pos, &out_slab)) { in test_bitmap_slab_set_get()
102 test_bitmap_set_get_clear(struct rte_bitmap *bmp) in test_bitmap_set_get_clear() argument
107 rte_bitmap_reset(bmp); in test_bitmap_set_get_clear()
109 rte_bitmap_set(bmp, i); in test_bitmap_set_get_clear()
112 if (!rte_bitmap_get(bmp, i)) { in test_bitmap_set_get_clear()
119 rte_bitmap_clear(bmp, i); in test_bitmap_set_get_clear()
122 if (rte_bitmap_get(bmp, i)) { in test_bitmap_set_get_clear()
128 rte_bitmap_reset(bmp); in test_bitmap_set_get_clear()
133 rte_bitmap_set(bmp, i); in test_bitmap_set_get_clear()
137 val = rte_bitmap_get(bmp, i); in test_bitmap_set_get_clear()
153 struct rte_bitmap *bmp; in test_bitmap_all_clear() local
164 bmp = rte_bitmap_init(MAX_BITS, mem, bmp_size); in test_bitmap_all_clear()
165 if (bmp == NULL) { in test_bitmap_all_clear()
170 if (test_bitmap_set_get_clear(bmp) < 0) in test_bitmap_all_clear()
173 if (test_bitmap_slab_set_get(bmp) < 0) in test_bitmap_all_clear()
176 if (test_bitmap_scan_operations(bmp) < 0) in test_bitmap_all_clear()
179 rte_bitmap_free(bmp); in test_bitmap_all_clear()
193 struct rte_bitmap *bmp; in test_bitmap_all_set() local
204 bmp = rte_bitmap_init_with_all_set(MAX_BITS, mem, bmp_size); in test_bitmap_all_set()
205 if (bmp == NULL) { in test_bitmap_all_set()
212 if (!rte_bitmap_scan(bmp, &pos, &slab)) { in test_bitmap_all_set()
217 rte_bitmap_clear(bmp, pos); in test_bitmap_all_set()
220 if (rte_bitmap_scan(bmp, &pos, &slab)) { in test_bitmap_all_set()
225 rte_bitmap_free(bmp); in test_bitmap_all_set()