| 126 | } |
| 127 | |
| 128 | static inline void |
| 129 | __rte_bitmap_scan_init(struct rte_bitmap *bmp) |
| 130 | { |
| 131 | bmp->index1 = bmp->array1_size - 1; |
| 132 | bmp->offset1 = RTE_BITMAP_SLAB_BIT_SIZE - 1; |
| 133 | __rte_bitmap_index2_set(bmp); |
| 134 | bmp->index2 += RTE_BITMAP_CL_SLAB_SIZE; |
| 135 | |
| 136 | bmp->go2 = 0; |
| 137 | } |
| 138 | |
| 139 | /** |
| 140 | * Bitmap memory footprint calculation |