Home
last modified time | relevance | path

Searched refs:roundup_pow_of_two (Results 1 – 25 of 46) sorted by relevance

12

/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dlog2.h37 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 Dmlx5_ib_mem.c81 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 Dmlx5_ib_srq.c260 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 Dmlx5_ib_cq.c941 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 Dgdma_util.h174 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 Dhw_channel.c410 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 Dmlx4_qp.c611 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 Dmlx4_profile.c118 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 Dmlx4_eq.c968 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 Dmlx4_ib_srq.c96 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 Dmlx4_ib_cq.c193 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 Dmlx4_ib_qp.c404 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 Dbcm_osal.h106 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 Dce.c1364 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 Dmthca_srq.c218 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 Dlinux_skbuff.c109 len = roundup_pow_of_two(len); in linuxkpi_alloc_skb()
/freebsd/sys/ofed/drivers/infiniband/ulp/ipoib/
H A Dipoib_main.c622 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 Dqplib_res.c240 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 Dib_verbs.h494 ent : roundup_pow_of_two(ent) : ent; in bnxt_re_init_depth()
/freebsd/sys/contrib/dev/athk/ath12k/
H A Dce.c592 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 Dmlx5fpga_conn.c438 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 Dce.c662 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 Dmt76x02_mmio.c177 fifo_size = roundup_pow_of_two(32 * sizeof(struct mt76x02_tx_status)); in mt76x02_dma_init()
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_eq.c435 eq->nent = roundup_pow_of_two(nent + MLX5_NUM_SPARE_EQE); in mlx5_create_map_eq()
/freebsd/sys/dev/drm2/
H A Ddrm_os_freebsd.h238 roundup_pow_of_two(unsigned long x) in roundup_pow_of_two() function

12