Lines Matching defs:pos

212  * @param pos
217 uint32_t pos)
220 uint32_t index = pos / RTE_BITMAP_SLAB_BIT_SIZE;
221 uint32_t offset = pos & RTE_BITMAP_SLAB_BIT_MASK;
320 * @param pos
324 rte_bitmap_prefetch0(struct rte_bitmap *bmp, uint32_t pos)
329 index2 = pos >> RTE_BITMAP_SLAB_BIT_SIZE_LOG2;
339 * @param pos
345 rte_bitmap_get(struct rte_bitmap *bmp, uint32_t pos)
350 index2 = pos >> RTE_BITMAP_SLAB_BIT_SIZE_LOG2;
351 offset2 = pos & RTE_BITMAP_SLAB_BIT_MASK;
361 * @param pos
365 rte_bitmap_set(struct rte_bitmap *bmp, uint32_t pos)
371 index2 = pos >> RTE_BITMAP_SLAB_BIT_SIZE_LOG2;
372 offset2 = pos & RTE_BITMAP_SLAB_BIT_MASK;
373 index1 = pos >> (RTE_BITMAP_SLAB_BIT_SIZE_LOG2 + RTE_BITMAP_CL_BIT_SIZE_LOG2);
374 offset1 = (pos >> RTE_BITMAP_CL_BIT_SIZE_LOG2) & RTE_BITMAP_SLAB_BIT_MASK;
387 * @param pos
393 rte_bitmap_set_slab(struct rte_bitmap *bmp, uint32_t pos, uint64_t slab)
399 index2 = pos >> RTE_BITMAP_SLAB_BIT_SIZE_LOG2;
400 index1 = pos >> (RTE_BITMAP_SLAB_BIT_SIZE_LOG2 + RTE_BITMAP_CL_BIT_SIZE_LOG2);
401 offset1 = (pos >> RTE_BITMAP_CL_BIT_SIZE_LOG2) & RTE_BITMAP_SLAB_BIT_MASK;
454 * @param pos
458 rte_bitmap_clear(struct rte_bitmap *bmp, uint32_t pos)
464 index2 = pos >> RTE_BITMAP_SLAB_BIT_SIZE_LOG2;
465 offset2 = pos & RTE_BITMAP_SLAB_BIT_MASK;
482 index1 = pos >> (RTE_BITMAP_SLAB_BIT_SIZE_LOG2 + RTE_BITMAP_CL_BIT_SIZE_LOG2);
483 offset1 = (pos >> RTE_BITMAP_CL_BIT_SIZE_LOG2) & RTE_BITMAP_SLAB_BIT_MASK;
526 __rte_bitmap_scan_read(struct rte_bitmap *bmp, uint32_t *pos, uint64_t *slab)
533 *pos = bmp->index2 << RTE_BITMAP_SLAB_BIT_SIZE_LOG2;
551 * @param pos
552 * When function call returns 1, pos contains the position of the next set
556 * slab where the bit indicated by pos is located. Slabs are always 64-bit
558 * necessarily set) is pos / 64. Once a slab has been returned by the bitmap
567 rte_bitmap_scan(struct rte_bitmap *bmp, uint32_t *pos, uint64_t *slab)
570 if (__rte_bitmap_scan_read(bmp, pos, slab)) {
577 __rte_bitmap_scan_read(bmp, pos, slab);