Lines Matching refs:pos
21 uint32_t pos = 0, start_pos; in test_bitmap_scan_operations() local
27 rte_bitmap_set_slab(bmp, pos, slab1_magic); in test_bitmap_scan_operations()
28 rte_bitmap_set_slab(bmp, pos + RTE_BITMAP_SLAB_BIT_SIZE, slab2_magic); in test_bitmap_scan_operations()
30 if (!rte_bitmap_scan(bmp, &pos, &out_slab)) { in test_bitmap_scan_operations()
40 if (!rte_bitmap_scan(bmp, &pos, &out_slab)) { in test_bitmap_scan_operations()
51 if (!rte_bitmap_scan(bmp, &pos, &out_slab)) { in test_bitmap_scan_operations()
64 if (!rte_bitmap_scan(bmp, &pos, &out_slab)) { in test_bitmap_scan_operations()
86 if (rte_bitmap_scan(bmp, &pos, &out_slab) != 1) { in test_bitmap_scan_operations()
91 start_pos = pos; in test_bitmap_scan_operations()
95 if (!rte_bitmap_scan(bmp, &pos, &out_slab)) in test_bitmap_scan_operations()
97 } while (pos != start_pos); in test_bitmap_scan_operations()
111 uint32_t pos = 0; in test_bitmap_slab_set_get() local
116 rte_bitmap_set_slab(bmp, pos, slab_magic); in test_bitmap_slab_set_get()
118 if (!rte_bitmap_scan(bmp, &pos, &out_slab)) { in test_bitmap_slab_set_get()
223 uint32_t pos; in test_bitmap_all_set() local
243 pos = slab = 0; in test_bitmap_all_set()
244 if (!rte_bitmap_scan(bmp, &pos, &slab)) { in test_bitmap_all_set()
248 pos += (slab ? __builtin_ctzll(slab) : 0); in test_bitmap_all_set()
249 rte_bitmap_clear(bmp, pos); in test_bitmap_all_set()
252 if (rte_bitmap_scan(bmp, &pos, &slab)) { in test_bitmap_all_set()