Home
last modified time | relevance | path

Searched refs:highbit (Results 1 – 25 of 88) sorted by relevance

1234

/titanic_41/usr/src/lib/libc/port/threads/
H A Dalloc.c155 int highbit = 1; in getbucketnum() local
162 highbit += 32, size >>= 32; in getbucketnum()
165 highbit += 16, size >>= 16; in getbucketnum()
167 highbit += 8, size >>= 8; in getbucketnum()
169 highbit += 4, size >>= 4; in getbucketnum()
171 highbit += 2, size >>= 2; in getbucketnum()
173 highbit += 1; in getbucketnum()
175 ASSERT(highbit > MINSHIFT); in getbucketnum()
176 return (highbit - MINSHIFT); in getbucketnum()
/titanic_41/usr/src/uts/common/avs/ns/sdbc/
H A Dsd_conf.c712 int highbit = -1; local
716 if (highbit >= 0) next_high = 1;
717 highbit = lowbit;
718 newblk &= ~(1 << highbit);
721 if (highbit <= 0) {
727 if (next_high) highbit++;
729 return (highbit);
/titanic_41/usr/src/lib/libumem/common/
H A Dmisc.h68 int highbit(ulong_t);
70 #pragma no_side_effect(highbit, lowbit)
H A Dvmem.c305 vprev = (vmem_seg_t *)&vmp->vm_freelist[highbit(VS_SIZE(vsp)) - 1]; in vmem_freelist_insert()
522 ASSERT(highbit(vs_size) == highbit(vs_size - realsize)); in vmem_seg_alloc()
739 ASSERT(highbit(vs_size) == highbit(vs_size - realsize)); in vmem_nextfit_alloc()
882 hb = highbit(size); in vmem_xalloc()
1100 else if ((hb = highbit(size)) < VMEM_FREELISTS) in vmem_alloc()
1460 vmp->vm_qshift = highbit(quantum) - 1; in vmem_create()
1475 vmp->vm_hash_shift = highbit(vmp->vm_hash_mask); in vmem_create()
1594 new_size = MAX(VMEM_HASH_INITIAL, 1 << (highbit(3 * nseg + 4) - 2)); in vmem_hash_rescale()
1613 vmp->vm_hash_shift = highbit(vmp->vm_hash_mask); in vmem_hash_rescale()
H A Dmisc.c106 highbit(ulong_t i) in highbit() function
/titanic_41/usr/src/uts/sun4/vm/
H A Dsfmmu.c774 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()
/titanic_41/usr/src/uts/common/os/
H A Dvmem.c435 vprev = (vmem_seg_t *)&vmp->vm_freelist[highbit(VS_SIZE(vsp)) - 1]; in vmem_freelist_insert()
629 ASSERT(highbit(vs_size) == highbit(vs_size - realsize)); in vmem_seg_alloc()
844 ASSERT(highbit(vs_size) == highbit(vs_size - realsize)); in vmem_nextfit_alloc()
925 else if ((hb = highbit(size)) < VMEM_FREELISTS) in vmem_canalloc()
999 hb = highbit(size); in vmem_xalloc()
1294 else if ((hb = highbit(size)) < VMEM_FREELISTS) in vmem_alloc()
1480 vmp->vm_qshift = highbit(quantum) - 1; in vmem_create_common()
1495 vmp->vm_hash_shift = highbit(vmp->vm_hash_mask); in vmem_create_common()
1661 new_size = MAX(VMEM_HASH_INITIAL, 1 << (highbit(3 * nseg + 4) - 2)); in vmem_hash_rescale()
1680 vmp->vm_hash_shift = highbit(vmp->vm_hash_mask); in vmem_hash_rescale()
H A Dbitmap.c105 return (wx << BT_ULSHIFT | (highbit(word) - 1)); in bt_gethighbit()
H A Dpid.c530 pid_hashsz = 1 << highbit(v.v_proc / pid_hashlen); in pid_init()
681 upc_hashsize = (1 << highbit(physmem >> (20 - PAGESHIFT))); in upcount_init()
/titanic_41/usr/src/uts/sun4v/os/
H A Dintrq.c103 size = 1 << highbit(size); in cpu_intrq_setup()
213 cpu_list_size = 1 << highbit(cpu_list_size); in cpu_intrq_cleanup()
/titanic_41/usr/src/uts/intel/asm/
H A Dbitmap.h49 highbit(ulong_t i) in highbit() function
/titanic_41/usr/src/uts/common/sys/ib/adapters/tavor/
H A Dtavor_qp.h176 highbit((qp_size)) - 1 : highbit((qp_size))))
/titanic_41/usr/src/uts/sparc/os/
H A Dbitmap_arch.c75 highbit(ulong_t i) in highbit() function
/titanic_41/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_qp.c319 log_qp_sq_size = highbit(attr_p->qp_sizes.cs_sq); in tavor_qp_alloc()
323 log_qp_rq_size = highbit(attr_p->qp_sizes.cs_rq); in tavor_qp_alloc()
805 log_qp_sq_size = highbit(attr_p->qp_sizes.cs_sq); in tavor_special_qp_alloc()
809 log_qp_rq_size = highbit(attr_p->qp_sizes.cs_rq); in tavor_special_qp_alloc()
1993 log2 = highbit(max_size); in tavor_qp_sgl_to_logwqesz()
2010 log2 = highbit(max_size); in tavor_qp_sgl_to_logwqesz()
2030 log2 = highbit(max_size); in tavor_qp_sgl_to_logwqesz()
2052 log2 = highbit(max_size); in tavor_qp_sgl_to_logwqesz()
H A Dtavor_srq.c175 log_srq_size = highbit(sizes->srq_wr_sz); in tavor_srq_alloc()
689 log_srq_size = highbit(size); in tavor_srq_modify()
1102 log2 = highbit(max_size); in tavor_srq_sgl_to_logwqesz()
/titanic_41/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_qp.c405 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 Dhermon_cfg.c320 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 Dhermon_srq.c177 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 Dhermon_qpmod.c869 qpc->log_sq_size = highbit(qp->qp_sq_bufsz) - 1; in hermon_qp_reset2init()
870 qpc->log_rq_size = highbit(qp->qp_rq_bufsz) - 1; in hermon_qp_reset2init()
3228 qpc->log_sq_size = highbit(qp->qp_sq_bufsz) - 1; in hermon_qp_reset2err()
3229 qpc->log_rq_size = highbit(qp->qp_rq_bufsz) - 1; in hermon_qp_reset2err()
3380 *rra_max = highbit(rdma_ra_in) - 1; in hermon_qp_validate_resp_rsrc()
3382 *rra_max = highbit(rdma_ra_in); in hermon_qp_validate_resp_rsrc()
3416 *sra_max = highbit(rdma_ra_out) - 1; in hermon_qp_validate_init_depth()
3418 *sra_max = highbit(rdma_ra_out); in hermon_qp_validate_init_depth()
/titanic_41/usr/src/uts/common/sys/
H A Dvmem_impl.h89 MAX(1 << highbit(3 * (max)), 64)
H A Dbitmap.h156 extern int highbit(ulong_t);
/titanic_41/usr/src/uts/common/io/
H A Dsuntpi.c78 tpi_hashshift = highbit(sizeof (tpi_provinfo_t)); in tpi_init()
/titanic_41/usr/src/uts/common/sys/fibre-channel/fca/oce/
H A Doce_utils.h69 #define OCE_LOG2(x) (highbit((x)) - 1)
/titanic_41/usr/src/uts/common/fs/nfs/
H A Dnfs4_acache.c225 acache4size = 1 << highbit(nacache / acache4_hashlen); in nfs4_acache_init()
/titanic_41/usr/src/uts/common/vm/
H A Dpage_lock.c179 size += (1 << (highbit(size) - 1)) - 1; in size_pse_array()
180 return (highbit(size) - 1); in size_pse_array()

1234