Searched refs:BLOCK_ITEMS (Results 1 – 2 of 2) sorted by relevance
42 #define BLOCK_ITEMS (8 * sizeof(u_long)) /* Number of items for ffsl() */ macro45 #define _BLOCKS_TO_ITEMS(_blocks) ((uint32_t)(_blocks) * BLOCK_ITEMS)46 #define _ITEMS_TO_BLOCKS(_items) ((_items) / BLOCK_ITEMS)83 return (items / BLOCK_ITEMS);91 KASSERT((items % BLOCK_ITEMS) == 0, in bitmask_get_size()93 BLOCK_ITEMS)); in bitmask_get_size()95 assert((items % BLOCK_ITEMS) == 0); in bitmask_get_size()172 v = BLOCK_ITEMS * i + v - 1; in bitmask_alloc_idx()195 i = idx / BLOCK_ITEMS; in bitmask_free_idx()196 v = idx % BLOCK_ITEMS; in bitmask_free_idx()
103 #define BLOCK_ITEMS (8 * sizeof(u_long)) /* Number of items for ffsl() */ macro4248 KASSERT((items % BLOCK_ITEMS) == 0, in ipfw_objhash_bitmap_alloc()4250 BLOCK_ITEMS)); in ipfw_objhash_bitmap_alloc()4252 max_blocks = items / BLOCK_ITEMS; in ipfw_objhash_bitmap_alloc()4642 i = idx / BLOCK_ITEMS; in ipfw_objhash_free_idx()4643 v = idx % BLOCK_ITEMS; in ipfw_objhash_free_idx()4688 v = BLOCK_ITEMS * i + v - 1; in ipfw_objhash_alloc_idx()