/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | log2.h | 37 roundup_pow_of_two(unsigned long x) in roundup_pow_of_two() function 45 return (n == roundup_pow_of_two(n)); in is_power_of_2() 54 #define order_base_2(x) ilog2(roundup_pow_of_two(x))
|
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_mem.c | 81 m = min_t(unsigned long, ilog2(roundup_pow_of_two(i)), m); in mlx5_ib_cont_pages() 84 *order = ilog2(roundup_pow_of_two(i) >> m); in mlx5_ib_cont_pages()
|
H A D | mlx5_ib_srq.c | 260 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); in mlx5_ib_create_srq() 268 desc_size = roundup_pow_of_two(desc_size); in mlx5_ib_create_srq()
|
H A D | mlx5_ib_cq.c | 941 entries = roundup_pow_of_two(entries + 1); in mlx5_ib_create_cq() 1266 entries = roundup_pow_of_two(entries + 1); in mlx5_ib_resize_cq()
|
/freebsd/sys/dev/mana/ |
H A D | gdma_util.h | 174 roundup_pow_of_two(unsigned long x) in roundup_pow_of_two() function 182 return (n == roundup_pow_of_two(n)); in is_power_of_2()
|
H A D | hw_channel.c | 410 eq_size = roundup_pow_of_two(GDMA_EQE_SIZE * q_depth); in mana_hwc_create_cq() 414 cq_size = roundup_pow_of_two(GDMA_CQE_SIZE * q_depth); in mana_hwc_create_cq() 555 queue_size = roundup_pow_of_two(GDMA_MAX_RQE_SIZE * q_depth); in mana_hwc_create_wq() 557 queue_size = roundup_pow_of_two(GDMA_MAX_SQE_SIZE * q_depth); in mana_hwc_create_wq()
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_qp.c | 611 roundup_pow_of_two(MLX4_BF_QP_SKIP_MASK)) || in mlx4_create_zones() 668 err = mlx4_bitmap_init(*bitmap + k, roundup_pow_of_two(size), in mlx4_create_zones() 669 roundup_pow_of_two(size) - 1, 0, in mlx4_create_zones() 670 roundup_pow_of_two(size) - size); in mlx4_create_zones() 771 roundup_pow_of_two(fixed_reserved_from_bot_rv + 1); in mlx4_init_qp_table()
|
H A D | mlx4_profile.c | 118 profile[i].num = roundup_pow_of_two(profile[i].num); in mlx4_make_profile() 200 dev->caps.num_eqs = roundup_pow_of_two( in mlx4_make_profile()
|
H A D | mlx4_eq.c | 968 eq->nent = roundup_pow_of_two(max(nent, 2)); in mlx4_create_eq() 1168 roundup_pow_of_two(dev->caps.num_eqs), in mlx4_init_eq_table() 1171 roundup_pow_of_two(dev->caps.num_eqs) - in mlx4_init_eq_table()
|
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_srq.c | 96 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); in mlx4_ib_create_srq() 100 roundup_pow_of_two(sizeof (struct mlx4_wqe_srq_next_seg) + in mlx4_ib_create_srq()
|
H A D | mlx4_ib_cq.c | 193 entries = roundup_pow_of_two(entries + 1); in mlx4_ib_create_cq() 382 entries = roundup_pow_of_two(entries + 1); in mlx4_ib_resize_cq()
|
H A D | mlx4_ib_qp.c | 404 qp->rq.wqe_cnt = roundup_pow_of_two(max(1U, cap->max_recv_wr)); in set_rq_size() 405 qp->rq.max_gs = roundup_pow_of_two(max(1U, cap->max_recv_sge)); in set_rq_size() 491 qp->sq.wqe_shift = ilog2(roundup_pow_of_two(s)); in set_kernel_sq_size() 501 qp->sq.wqe_cnt = roundup_pow_of_two(cap->max_send_wr * in set_kernel_sq_size() 547 ilog2(roundup_pow_of_two(dev->dev->caps.max_sq_desc_sz)) || in set_user_sq_size()
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | bcm_osal.h | 106 roundup_pow_of_two(unsigned long x) in roundup_pow_of_two() function 114 return (n == roundup_pow_of_two(n)); in is_power_of_2() 403 #define OSAL_ROUNDUP_POW_OF_TWO(val) roundup_pow_of_two((val))
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | ce.c | 1364 nentries = roundup_pow_of_two(attr->src_nentries); in ath10k_ce_init_src_ring() 1405 nentries = roundup_pow_of_two(attr->dest_nentries); in ath10k_ce_init_dest_ring() 1459 nentries = roundup_pow_of_two(nentries); in ath10k_ce_alloc_src_ring() 1517 nentries = roundup_pow_of_two(nentries); in ath10k_ce_alloc_src_ring_64() 1573 nentries = roundup_pow_of_two(attr->dest_nentries); in ath10k_ce_alloc_dest_ring() 1617 nentries = roundup_pow_of_two(attr->dest_nentries); in ath10k_ce_alloc_dest_ring_64()
|
/freebsd/sys/dev/mthca/ |
H A D | mthca_srq.c | 218 srq->max = roundup_pow_of_two(srq->max + 1); in mthca_alloc_srq() 223 roundup_pow_of_two(sizeof (struct mthca_next_seg) + in mthca_alloc_srq()
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_skbuff.c | 109 len = roundup_pow_of_two(len); in linuxkpi_alloc_skb()
|
/freebsd/sys/ofed/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_main.c | 622 switch (roundup_pow_of_two(if_getmtu(dev) + IPOIB_ENCAP_LEN)) { in path_rec_start() 1391 ipoib_recvq_size = roundup_pow_of_two(ipoib_recvq_size); in ipoib_init_module() 1395 ipoib_sendq_size = roundup_pow_of_two(ipoib_sendq_size); in ipoib_init_module()
|
/freebsd/sys/dev/bnxt/bnxt_re/ |
H A D | qplib_res.c | 240 depth = roundup_pow_of_two(hwq_attr->depth); in bnxt_qplib_alloc_init_hwq() 241 stride = roundup_pow_of_two(hwq_attr->stride); in bnxt_qplib_alloc_init_hwq() 244 aux_size = roundup_pow_of_two(hwq_attr->aux_stride); in bnxt_qplib_alloc_init_hwq()
|
H A D | ib_verbs.h | 494 ent : roundup_pow_of_two(ent) : ent; in bnxt_re_init_depth()
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | ce.c | 592 nentries = roundup_pow_of_two(attr->src_nentries); in ath12k_ce_alloc_pipe() 602 nentries = roundup_pow_of_two(attr->dest_nentries); in ath12k_ce_alloc_pipe()
|
/freebsd/sys/dev/mlx5/mlx5_fpga/ |
H A D | mlx5fpga_conn.c | 438 cq_size = roundup_pow_of_two(cq_size); in mlx5_fpga_conn_create_cq() 538 conn->qp.rq.size = roundup_pow_of_two(rx_size); in mlx5_fpga_conn_create_qp() 541 conn->qp.sq.size = roundup_pow_of_two(tx_size); in mlx5_fpga_conn_create_qp()
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | ce.c | 662 nentries = roundup_pow_of_two(attr->src_nentries); in ath11k_ce_alloc_pipe() 672 nentries = roundup_pow_of_two(attr->dest_nentries); in ath11k_ce_alloc_pipe()
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mt76x02_mmio.c | 177 fifo_size = roundup_pow_of_two(32 * sizeof(struct mt76x02_tx_status)); in mt76x02_dma_init()
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_eq.c | 435 eq->nent = roundup_pow_of_two(nent + MLX5_NUM_SPARE_EQE); in mlx5_create_map_eq()
|
/freebsd/sys/dev/drm2/ |
H A D | drm_os_freebsd.h | 238 roundup_pow_of_two(unsigned long x) in roundup_pow_of_two() function
|