Searched refs:BT_NBIPUL (Results 1 – 15 of 15) sorted by relevance
110 return (b->bs_words * BT_NBIPUL); in bitset_capacity()127 ASSERT(b->bs_words * BT_NBIPUL > pos); in bitset_add()139 ASSERT(b->bs_words * BT_NBIPUL > pos); in bitset_atomic_add()153 ASSERT(b->bs_words * BT_NBIPUL > pos); in bitset_atomic_test_and_add()167 ASSERT(b->bs_words * BT_NBIPUL > pos); in bitset_del()179 ASSERT(b->bs_words * BT_NBIPUL > pos); in bitset_atomic_del()193 ASSERT(b->bs_words * BT_NBIPUL > pos); in bitset_atomic_test_and_del()207 if (pos >= b->bs_words * BT_NBIPUL) in bitset_in_set()241 rotate_bit = seed % BT_NBIPUL; in bitset_find_in_word()242 rotated_word = (w >> rotate_bit) | (w << (BT_NBIPUL - rotate_bit)); in bitset_find_in_word()[all …]
76 maxbit = wx == maxword ? nbits & BT_ULMASK : BT_NBIPUL - 1; in bt_availbit()
481 sc_bitmap_words = howmany(sc_bitmap_len, BT_NBIPUL); in schedctl_init()
2826 cpu += i * BT_NBIPUL; in cpuset_find()2846 *smallestid = bit + (i * BT_NBIPUL); in cpuset_bounds()2859 *largestid = bit + (j * BT_NBIPUL); in cpuset_bounds()
65 #define BT_NBIPUL (1 << BT_ULSHIFT) /* n bits per ulong_t */ macro66 #define BT_ULMASK (BT_NBIPUL - 1) /* to extract bit index */108 (((nbits) + BT_NBIPUL - 1l) / BT_NBIPUL)182 (bitindex) % BT_NBIPUL); }185 (bitindex) % BT_NBIPUL); }
67 for (j = 0, m = 1; j < BT_NBIPUL; j++, m <<= 1) in print_cpuset_range()70 start = i * BT_NBIPUL + j; in print_cpuset_range()75 end = i * BT_NBIPUL + j - 1; in print_cpuset_range()82 end = i * BT_NBIPUL - 1; in print_cpuset_range()
89 for (i = BT_NBIPUL - 1; i; i--) in bitset_highbit()
50 static size_t sysevent_minor_bits = BT_NBIPUL;90 if (sysevent_minor_bits + BT_NBIPUL > SYSEVENT_MINOR_MAX) { in sysevent_minor_alloc()94 BT_SIZEOFMAP(sysevent_minor_bits + BT_NBIPUL), KM_SLEEP); in sysevent_minor_alloc()98 sysevent_minor_bits += BT_NBIPUL; in sysevent_minor_alloc()
107 ulong_t maxb = (wx == maxw) ? nbits & BT_ULMASK : BT_NBIPUL - 1; in dt_regset_alloc()
193 static size_t vlds_minor_bits = BT_NBIPUL;206 if (vlds_minor_bits + BT_NBIPUL > VLDS_MINOR_MAX) { in vlds_minor_alloc()210 BT_SIZEOFMAP(vlds_minor_bits + BT_NBIPUL), KM_SLEEP); in vlds_minor_alloc()214 vlds_minor_bits += BT_NBIPUL; in vlds_minor_alloc()
382 dptr->newdqactmap = kmem_zalloc(((numpris / BT_NBIPUL) + 1) * in disp_dq_alloc()407 ((dptr->oldnglobpris / BT_NBIPUL) + 1) * in disp_dq_assign()424 ((dptr->oldnglobpris / BT_NBIPUL) + 1) * sizeof (long)); in disp_dq_free()455 newdqactmap = kmem_zalloc(((v.v_nglobpris / BT_NBIPUL) + 1) * in disp_cpu_init()
1203 newmap = kmem_zalloc((newsize / BT_NBIPUL) * sizeof (ulong_t), in pcache_grow_map()1211 (pcp->pc_mapsize / BT_NBIPUL) * sizeof (ulong_t)); in pcache_grow_map()1213 (pcp->pc_mapsize /BT_NBIPUL) * sizeof (ulong_t)); in pcache_grow_map()2959 pcp->pc_bitmap = kmem_zalloc((mapsize / BT_NBIPUL) * sizeof (ulong_t), in pcache_create()3005 sizeof (ulong_t) * (pcp->pc_mapsize/BT_NBIPUL)); in pcache_destroy()
626 for (j = 0, m = 1; j < BT_NBIPUL; j++, m <<= 1) { in mdb_cpuset_find()628 cpu = i * BT_NBIPUL + j; in mdb_cpuset_find()
665 ASSERT(pmem_pgcnt % BT_NBIPUL == 0); in pmem_lpg_alloc()
106 #define NLM_BMAP_WORDS (NLM_BMAP_NITEMS / BT_NBIPUL)