Searched refs:bmap (Results 1 – 4 of 4) sorted by relevance
| /xnu-12377.1.9/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_owner.c | 377 bitmap_t *bmap; in flow_owner_alloc() local 379 bmap = skmem_cache_alloc(sk_fab_cache, SKMEM_SLEEP); in flow_owner_alloc() 380 if (bmap == NULL) { in flow_owner_alloc() 385 bzero(bmap, sk_fab_size); in flow_owner_alloc() 386 fo->fo_flowadv_bmap = bmap; in flow_owner_alloc() 456 bitmap_t *bmap = fo->fo_flowadv_bmap; in flow_owner_flowadv_index_alloc() local 466 j = ffsll(bmap[i]); in flow_owner_flowadv_index_alloc() 473 bit_clear(bmap[i], j); in flow_owner_flowadv_index_alloc() 498 bitmap_t *bmap = fo->fo_flowadv_bmap; in flow_owner_flowadv_index_free() local 506 ASSERT(!bit_test(bmap[chunk_idx], bit_pos)); in flow_owner_flowadv_index_free() [all …]
|
| /xnu-12377.1.9/bsd/skywalk/nexus/ |
| H A D | nexus.c | 2530 bitmap_t *bmap; in nx_port_find() local 2549 bmap = &nx->nx_ports_bmap[i]; in nx_port_find() 2552 j = (nexus_port_size_t)ffsll((*bmap) & mask); in nx_port_find() 2591 bitmap_t *bmap; in nx_port_grow() local 2595 static_assert((sizeof(*bmap) * 8) == NX_PORT_CHUNK); in nx_port_grow() 2608 if ((bmap = sk_realloc_data(nx->nx_ports_bmap, in nx_port_grow() 2609 (old_num_ports / NX_PORT_CHUNK) * sizeof(*bmap), in nx_port_grow() 2610 (num_ports / NX_PORT_CHUNK) * sizeof(*bmap), in nx_port_grow() 2615 nx->nx_ports_bmap = bmap; in nx_port_grow() 2616 nx->nx_ports_bmap_size = (num_ports / NX_PORT_CHUNK) * sizeof(*bmap); in nx_port_grow() [all …]
|
| /xnu-12377.1.9/bsd/skywalk/mem/ |
| H A D | skmem_region.c | 979 bitmap_t *__indexable bmap = skr->skr_seg_bmap; in skmem_region_destroy() local 980 sk_free_data(bmap, skr->skr_seg_bmap_size); in skmem_region_destroy() 1593 bitmap_t *bmap; in sksegment_create() local 1602 bmap = &skr->skr_seg_bmap[i / BMAPSZ]; in sksegment_create() 1603 ASSERT(bit_test(*bmap, i % BMAPSZ)); in sksegment_create() 1613 bit_clear(*bmap, i % BMAPSZ); in sksegment_create() 1631 bitmap_t *bmap; in sksegment_destroy() local 1641 bmap = &skr->skr_seg_bmap[i / BMAPSZ]; in sksegment_destroy() 1642 ASSERT(!bit_test(*bmap, i % BMAPSZ)); in sksegment_destroy() 1656 bit_set(*bmap, i % BMAPSZ); in sksegment_destroy() [all …]
|
| /xnu-12377.1.9/bsd/kern/ |
| H A D | uipc_mbuf_mcache.c | 2957 int m, bmap = 0; local 3022 bmap |= (1 << m); 3029 if (bmap != 0) { 3035 if ((bmap & (1 << m)) &&
|