/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | alloc.c | 156 int highbit = 1; in getbucketnum() local 163 highbit += 32, size >>= 32; in getbucketnum() 166 highbit += 16, size >>= 16; in getbucketnum() 168 highbit += 8, size >>= 8; in getbucketnum() 170 highbit += 4, size >>= 4; in getbucketnum() 172 highbit += 2, size >>= 2; in getbucketnum() 174 highbit += 1; in getbucketnum() 176 ASSERT(highbit > MINSHIFT); in getbucketnum() 177 return (highbit - MINSHIFT); in getbucketnum()
|
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | misc.h | 59 int highbit(ulong_t); 61 #pragma no_side_effect(highbit, lowbit)
|
H A D | vmem.c | 306 vprev = (vmem_seg_t *)&vmp->vm_freelist[highbit(VS_SIZE(vsp)) - 1]; in vmem_freelist_insert() 523 ASSERT(highbit(vs_size) == highbit(vs_size - realsize)); in vmem_seg_alloc() 741 ASSERT(highbit(vs_size) == highbit(vs_size - realsize)); in vmem_nextfit_alloc() 884 hb = highbit(size); in vmem_xalloc() 1105 else if ((hb = highbit(size)) < VMEM_FREELISTS) in vmem_alloc() 1465 vmp->vm_qshift = highbit(quantum) - 1; in vmem_create() 1480 vmp->vm_hash_shift = highbit(vmp->vm_hash_mask); in vmem_create() 1599 new_size = MAX(VMEM_HASH_INITIAL, 1 << (highbit(3 * nseg + 4) - 2)); in vmem_hash_rescale() 1618 vmp->vm_hash_shift = highbit(vmp->vm_hash_mask); in vmem_hash_rescale()
|
H A D | misc.c | 104 highbit(ulong_t i) in highbit() function
|
/illumos-gate/usr/src/uts/sun4/vm/ |
H A D | sfmmu.c | 774 ktsb_szcode = highbit(npages - 1); in calc_tsb_sizes() 787 ktsb4m_szcode = highbit((2 * npages) / TTEPAGES(TTE4M) - 1); in calc_tsb_sizes() 873 uint_t align = 1 << (highbit(uhmehash_num - 1) - 1); in calc_hmehash_sz() 876 uhmehash_num = 1 << highbit(uhmehash_num - 1); in calc_hmehash_sz() 880 khmehash_num = 1 << highbit(khmehash_num - 1); in calc_hmehash_sz() 935 kpmp_shift = highbit(sizeof (kpm_page_t)) - 1; in ndata_alloc_kpm() 936 kpmp_table_sz = 1 << highbit(kpm_npages / 16); in ndata_alloc_kpm() 953 kpmp_shift = highbit(sizeof (kpm_shlk_t)) + 1; in ndata_alloc_kpm() 954 kpmp_stable_sz = 1 << highbit(kpm_npages / 8192); in ndata_alloc_kpm()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | vmem.c | 438 vprev = (vmem_seg_t *)&vmp->vm_freelist[highbit(VS_SIZE(vsp)) - 1]; in vmem_freelist_insert() 632 ASSERT(highbit(vs_size) == highbit(vs_size - realsize)); in vmem_seg_alloc() 847 ASSERT(highbit(vs_size) == highbit(vs_size - realsize)); in vmem_nextfit_alloc() 928 else if ((hb = highbit(size)) < VMEM_FREELISTS) in vmem_canalloc() 1004 hb = highbit(size); in vmem_xalloc() 1303 else if ((hb = highbit(size)) < VMEM_FREELISTS) in vmem_alloc() 1489 vmp->vm_qshift = highbit(quantum) - 1; in vmem_create_common() 1504 vmp->vm_hash_shift = highbit(vmp->vm_hash_mask); in vmem_create_common() 1678 new_size = MAX(VMEM_HASH_INITIAL, 1 << (highbit(3 * nseg + 4) - 2)); in vmem_hash_rescale() 1698 vmp->vm_hash_shift = highbit(vmp->vm_hash_mask); in vmem_hash_rescale()
|
H A D | bitmap.c | 104 return (wx << BT_ULSHIFT | (highbit(word) - 1)); in bt_gethighbit()
|
H A D | pid.c | 529 pid_hashsz = 1 << highbit(v.v_proc / pid_hashlen); in pid_init() 680 upc_hashsize = (1 << highbit(physmem >> (20 - PAGESHIFT))); in upcount_init()
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | intrq.c | 103 size = 1 << highbit(size); in cpu_intrq_setup() 213 cpu_list_size = 1 << highbit(cpu_list_size); in cpu_intrq_cleanup()
|
/illumos-gate/usr/src/uts/common/sys/ib/adapters/tavor/ |
H A D | tavor_qp.h | 176 highbit((qp_size)) - 1 : highbit((qp_size))))
|
/illumos-gate/usr/src/uts/intel/asm/ |
H A D | bitmap.h | 49 highbit(ulong_t i) in highbit() function
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor_qp.c | 287 log_qp_sq_size = highbit(attr_p->qp_sizes.cs_sq); in tavor_qp_alloc() 291 log_qp_rq_size = highbit(attr_p->qp_sizes.cs_rq); in tavor_qp_alloc() 742 log_qp_sq_size = highbit(attr_p->qp_sizes.cs_sq); in tavor_special_qp_alloc() 746 log_qp_rq_size = highbit(attr_p->qp_sizes.cs_rq); in tavor_special_qp_alloc() 1836 log2 = highbit(max_size); in tavor_qp_sgl_to_logwqesz() 1853 log2 = highbit(max_size); in tavor_qp_sgl_to_logwqesz() 1873 log2 = highbit(max_size); in tavor_qp_sgl_to_logwqesz() 1895 log2 = highbit(max_size); in tavor_qp_sgl_to_logwqesz()
|
H A D | tavor_srq.c | 164 log_srq_size = highbit(sizes->srq_wr_sz); in tavor_srq_alloc() 639 log_srq_size = highbit(size); in tavor_srq_modify() 1026 log2 = highbit(max_size); in tavor_srq_sgl_to_logwqesz()
|
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | bitmap_arch.c | 75 highbit(ulong_t i) in highbit() function
|
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | kmisc.c | 123 highbit(ulong_t i) in highbit() function
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon_qp.c | 405 log_qp_sq_size = highbit(attr_p->qp_sizes.cs_sq + qp->qp_sq_hdrmwqes); in hermon_qp_alloc() 411 log_qp_rq_size = highbit(attr_p->qp_sizes.cs_rq); in hermon_qp_alloc() 922 log_qp_sq_size = highbit(attr_p->qp_sizes.cs_sq); in hermon_special_qp_alloc() 926 log_qp_rq_size = highbit(attr_p->qp_sizes.cs_rq); in hermon_special_qp_alloc() 1521 log_qp_sq_size = highbit(attr_p->qp_sizes.cs_sq + qp->qp_sq_hdrmwqes); in hermon_qp_alloc_range() 1527 log_qp_rq_size = highbit(attr_p->qp_sizes.cs_rq); in hermon_qp_alloc_range() 2831 log2 = highbit(max_size); in hermon_qp_sgl_to_logwqesz() 2851 log2 = highbit(max_size); in hermon_qp_sgl_to_logwqesz() 2868 log2 = highbit(max_size); in hermon_qp_sgl_to_logwqesz() 2888 log2 = highbit(max_size); in hermon_qp_sgl_to_logwqesz() [all …]
|
H A D | hermon_cfg.c | 320 cp->cp_num_qp_per_mcg = (1 << highbit(cp->cp_num_qp_per_mcg + 7)) - 8; in hermon_cfg_profile_init_phase2() 440 log2 = highbit(max_size); in hermon_cfg_wqe_sizes()
|
H A D | hermon_srq.c | 177 log_srq_size = highbit(srq_wr_sz); in hermon_srq_alloc() 626 log_srq_size = highbit(size); in hermon_srq_modify() 977 log2 = highbit(max_size); in hermon_srq_sgl_to_logwqesz()
|
H A D | hermon_qpmod.c | 870 qpc->log_sq_size = highbit(qp->qp_sq_bufsz) - 1; in hermon_qp_reset2init() 871 qpc->log_rq_size = highbit(qp->qp_rq_bufsz) - 1; in hermon_qp_reset2init() 3229 qpc->log_sq_size = highbit(qp->qp_sq_bufsz) - 1; in hermon_qp_reset2err() 3230 qpc->log_rq_size = highbit(qp->qp_rq_bufsz) - 1; in hermon_qp_reset2err() 3381 *rra_max = highbit(rdma_ra_in) - 1; in hermon_qp_validate_resp_rsrc() 3383 *rra_max = highbit(rdma_ra_in); in hermon_qp_validate_resp_rsrc() 3417 *sra_max = highbit(rdma_ra_out) - 1; in hermon_qp_validate_init_depth() 3419 *sra_max = highbit(rdma_ra_out); in hermon_qp_validate_init_depth()
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_fmt.c | 499 int i = 0, highbit; in fmt_jazzed() local 507 highbit = b; in fmt_jazzed() 541 buf, b, b < 10 && highbit >= 10 ? " " : "", in fmt_jazzed() 542 (highbit / 4) + 1, 1ULL << b); in fmt_jazzed()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | vmem_impl.h | 87 MAX(1 << highbit(3 * (max)), 64)
|
H A D | bitmap.h | 158 extern int highbit(ulong_t);
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | suntpi.c | 76 tpi_hashshift = highbit(sizeof (tpi_provinfo_t)); in tpi_init()
|
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/oce/ |
H A D | oce_utils.h | 69 #define OCE_LOG2(x) (highbit((x)) - 1)
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | page_lock.c | 179 size += (1 << (highbit(size) - 1)) - 1; in size_pse_array() 180 return (highbit(size) - 1); in size_pse_array()
|