/titanic_41/usr/src/uts/common/os/ |
H A D | bitset.c | 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 …]
|
H A D | bitmap.c | 77 maxbit = wx == maxword ? nbits & BT_ULMASK : BT_NBIPUL - 1; in bt_availbit()
|
H A D | schedctl.c | 464 sc_bitmap_words = howmany(sc_bitmap_len, BT_NBIPUL); in schedctl_init()
|
H A D | cpu.c | 2773 cpu += i * BT_NBIPUL; in cpuset_find() 2793 *smallestid = bit + (i * BT_NBIPUL); in cpuset_bounds() 2806 *largestid = bit + (j * BT_NBIPUL); in cpuset_bounds()
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | bitmap.h | 62 #define BT_NBIPUL (1 << BT_ULSHIFT) /* n bits per ulong_t */ macro 63 #define BT_ULMASK (BT_NBIPUL - 1) /* to extract bit index */ 105 (((nbits) + BT_NBIPUL - 1l) / BT_NBIPUL) 180 (bitindex) % BT_NBIPUL); } 183 (bitindex) % BT_NBIPUL); }
|
/titanic_41/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | lgrp.c | 69 for (j = 0, m = 1; j < BT_NBIPUL; j++, m <<= 1) in print_cpuset_range() 72 start = i * BT_NBIPUL + j; in print_cpuset_range() 77 end = i * BT_NBIPUL + j - 1; in print_cpuset_range() 84 end = i * BT_NBIPUL - 1; in print_cpuset_range()
|
H A D | bitset.c | 89 for (i = BT_NBIPUL - 1; i; i--) in bitset_highbit()
|
/titanic_41/usr/src/uts/common/io/ |
H A D | sysevent.c | 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()
|
/titanic_41/usr/src/lib/libdtrace/common/ |
H A D | dt_regset.c | 107 ulong_t maxb = (wx == maxw) ? nbits & BT_ULMASK : BT_NBIPUL - 1; in dt_regset_alloc()
|
/titanic_41/usr/src/cmd/mdb/sun4u/modules/unix/ |
H A D | unix.c | 438 for (j = 0, m = 1; j < BT_NBIPUL; j++, m <<= 1) in print_cpuset_range() 441 start = i * BT_NBIPUL + j; in print_cpuset_range() 446 end = i * BT_NBIPUL + j - 1; in print_cpuset_range() 453 end = i * BT_NBIPUL - 1; in print_cpuset_range() 493 for (j = 0, m = 1; j < BT_NBIPUL; j++, m <<= 1) in cmd_cpuset() 495 mdb_printf("%r\n", i * BT_NBIPUL + j); in cmd_cpuset()
|
/titanic_41/usr/src/uts/sun4v/io/ |
H A D | vlds.c | 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()
|
/titanic_41/usr/src/uts/common/disp/ |
H A D | disp.c | 362 dptr->newdqactmap = kmem_zalloc(((numpris / BT_NBIPUL) + 1) * in disp_dq_alloc() 387 ((dptr->oldnglobpris / BT_NBIPUL) + 1) * in disp_dq_assign() 404 ((dptr->oldnglobpris / BT_NBIPUL) + 1) * sizeof (long)); in disp_dq_free() 435 newdqactmap = kmem_zalloc(((v.v_nglobpris / BT_NBIPUL) + 1) * in disp_cpu_init()
|
/titanic_41/usr/src/uts/common/syscall/ |
H A D | poll.c | 1162 newmap = kmem_zalloc((newsize / BT_NBIPUL) * sizeof (ulong_t), in pcache_grow_map() 1170 (pcp->pc_mapsize / BT_NBIPUL) * sizeof (ulong_t)); in pcache_grow_map() 1172 (pcp->pc_mapsize /BT_NBIPUL) * sizeof (ulong_t)); in pcache_grow_map() 2712 pcp->pc_bitmap = kmem_zalloc((mapsize / BT_NBIPUL) * sizeof (ulong_t), in pcache_create() 2758 sizeof (ulong_t) * (pcp->pc_mapsize/BT_NBIPUL)); in pcache_destroy()
|
/titanic_41/usr/src/cmd/mdb/common/modules/mdb_ks/ |
H A D | mdb_ks.c | 624 for (j = 0, m = 1; j < BT_NBIPUL; j++, m <<= 1) { in mdb_cpuset_find() 626 cpu = i * BT_NBIPUL + j; in mdb_cpuset_find()
|
/titanic_41/usr/src/uts/i86pc/os/ |
H A D | pmem.c | 667 ASSERT(pmem_pgcnt % BT_NBIPUL == 0); in pmem_lpg_alloc()
|
/titanic_41/usr/src/uts/common/klm/ |
H A D | nlm_impl.c | 106 #define NLM_BMAP_WORDS (NLM_BMAP_NITEMS / BT_NBIPUL)
|