Home
last modified time | relevance | path

Searched refs:BLOCK_ITEMS (Results 1 – 2 of 2) sorted by last modified time

/freebsd/sys/netpfil/ipfw/
H A Dip_fw_sockopt.c101 #define BLOCK_ITEMS (8 * sizeof(u_long)) /* Number of items for ffsl() */ macro
4258 KASSERT((items % BLOCK_ITEMS) == 0, in ipfw_objhash_bitmap_alloc()
4260 BLOCK_ITEMS)); in ipfw_objhash_bitmap_alloc()
4262 max_blocks = items / BLOCK_ITEMS; in ipfw_objhash_bitmap_alloc()
4653 i = idx / BLOCK_ITEMS; in ipfw_objhash_free_idx()
4654 v = idx % BLOCK_ITEMS; in ipfw_objhash_free_idx()
4699 v = BLOCK_ITEMS * i + v - 1; in ipfw_objhash_alloc_idx()
/freebsd/sys/net/route/
H A Dnhop_utils.c41 #define BLOCK_ITEMS (8 * sizeof(u_long)) /* Number of items for ffsl() */ macro
44 #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()