Home
last modified time | relevance | path

Searched refs:BT_NBIPUL (Results 1 – 15 of 15) sorted by relevance

/illumos-gate/usr/src/uts/common/os/
H A Dbitset.c110 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()
245 elt = ((elt + rotate_bit) % BT_NBIPUL); in bitset_find_in_word()
[all …]
H A Dbitmap.c76 maxbit = wx == maxword ? nbits & BT_ULMASK : BT_NBIPUL - 1; in bt_availbit()
H A Dschedctl.c481 sc_bitmap_words = howmany(sc_bitmap_len, BT_NBIPUL); in schedctl_init()
H A Dcpu.c2826 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()
/illumos-gate/usr/src/uts/common/sys/
H A Dbitmap.h65 #define BT_NBIPUL (1 << BT_ULSHIFT) /* n bits per ulong_t */ macro
66 #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); }
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dlgrp.c67 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()
H A Dbitset.c89 for (i = BT_NBIPUL - 1; i; i--) in bitset_highbit()
/illumos-gate/usr/src/uts/common/io/
H A Dsysevent.c50 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()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_regset.c107 ulong_t maxb = (wx == maxw) ? nbits & BT_ULMASK : BT_NBIPUL - 1; in dt_regset_alloc()
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvlds.c193 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()
/illumos-gate/usr/src/uts/common/disp/
H A Ddisp.c382 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()
/illumos-gate/usr/src/uts/common/syscall/
H A Dpoll.c1203 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()
/illumos-gate/usr/src/cmd/mdb/common/modules/mdb_ks/
H A Dmdb_ks.c626 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()
/illumos-gate/usr/src/uts/i86pc/os/
H A Dpmem.c665 ASSERT(pmem_pgcnt % BT_NBIPUL == 0); in pmem_lpg_alloc()
/illumos-gate/usr/src/uts/common/klm/
H A Dnlm_impl.c106 #define NLM_BMAP_WORDS (NLM_BMAP_NITEMS / BT_NBIPUL)