Searched refs:BLOCK_ITEMS (Results 1 – 2 of 2) sorted by relevance
41 #define BLOCK_ITEMS (8 * sizeof(u_long)) /* Number of items for ffsl() */ macro44 #define _BLOCKS_TO_ITEMS(_blocks) ((uint32_t)(_blocks) * BLOCK_ITEMS)45 #define _ITEMS_TO_BLOCKS(_items) ((_items) / BLOCK_ITEMS)82 return (items / BLOCK_ITEMS);90 KASSERT((items % BLOCK_ITEMS) == 0, in bitmask_get_size()92 BLOCK_ITEMS)); in bitmask_get_size()94 assert((items % BLOCK_ITEMS) == 0); in bitmask_get_size()171 v = BLOCK_ITEMS * i + v - 1; in bitmask_alloc_idx()194 i = idx / BLOCK_ITEMS; in bitmask_free_idx()195 v = idx % BLOCK_ITEMS; in bitmask_free_idx()
104 #define BLOCK_ITEMS (8 * sizeof(u_long)) /* Number of items for ffsl() */ macro3303 KASSERT((items % BLOCK_ITEMS) == 0, in ipfw_objhash_bitmap_alloc()3305 BLOCK_ITEMS)); in ipfw_objhash_bitmap_alloc()3307 max_blocks = items / BLOCK_ITEMS; in ipfw_objhash_bitmap_alloc()3696 i = idx / BLOCK_ITEMS; in ipfw_objhash_free_idx()3697 v = idx % BLOCK_ITEMS; in ipfw_objhash_free_idx()3742 v = BLOCK_ITEMS * i + v - 1; in ipfw_objhash_alloc_idx()