Home
last modified time | relevance | path

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

12345678

/Linux-v4.19/drivers/infiniband/hw/mlx5/
Dmem.c65 *order = ilog2(roundup_pow_of_two(*ncont)); in mlx5_ib_cont_pages()
96 m = min_t(unsigned long, ilog2(roundup_pow_of_two(i)), m); in mlx5_ib_cont_pages()
99 *order = ilog2(roundup_pow_of_two(i) >> m); in mlx5_ib_cont_pages()
/Linux-v4.19/drivers/infiniband/sw/rxe/
Drxe_queue.c106 elem_size = roundup_pow_of_two(elem_size); in rxe_queue_init()
111 num_slots = roundup_pow_of_two(num_slots); in rxe_queue_init()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Dprofile.c106 roundup_pow_of_two(max_t(unsigned, request->num_mtt, in mlx4_make_profile()
138 profile[i].num = roundup_pow_of_two(profile[i].num); in mlx4_make_profile()
220 dev->caps.num_eqs = roundup_pow_of_two( in mlx4_make_profile()
Dqp.c633 roundup_pow_of_two(MLX4_BF_QP_SKIP_MASK)) || in mlx4_create_zones()
690 err = mlx4_bitmap_init(*bitmap + k, roundup_pow_of_two(size), in mlx4_create_zones()
691 roundup_pow_of_two(size) - 1, 0, in mlx4_create_zones()
692 roundup_pow_of_two(size) - size); in mlx4_create_zones()
793 roundup_pow_of_two(fixed_reserved_from_bot_rv + 1); in mlx4_init_qp_table()
/Linux-v4.19/drivers/infiniband/hw/hns/
Dhns_roce_qp.c315 hr_qp->rq.wqe_cnt = roundup_pow_of_two(max_cnt); in hns_roce_set_rq_size()
323 hr_qp->rq.max_gs = roundup_pow_of_two(max_cnt); in hns_roce_set_rq_size()
344 u32 roundup_sq_stride = roundup_pow_of_two(hr_dev->caps.max_sq_desc_sz); in hns_roce_set_user_sq_size()
368 hr_qp->sq.max_gs = roundup_pow_of_two(max_cnt); in hns_roce_set_user_sq_size()
373 hr_qp->sge.sge_cnt = roundup_pow_of_two(hr_qp->sq.wqe_cnt * in hns_roce_set_user_sq_size()
442 hr_qp->sq.wqe_cnt = roundup_pow_of_two(max_cnt); in hns_roce_set_kernel_sq_size()
451 hr_qp->sq.max_gs = roundup_pow_of_two(max_cnt); in hns_roce_set_kernel_sq_size()
456 hr_qp->sge.sge_cnt = roundup_pow_of_two(hr_qp->sq.wqe_cnt * in hns_roce_set_kernel_sq_size()
463 hr_qp->sge.sge_cnt = roundup_pow_of_two(hr_qp->sq.wqe_cnt * in hns_roce_set_kernel_sq_size()
/Linux-v4.19/drivers/watchdog/
Duniphier_wdt.c129 tmp_timeout = roundup_pow_of_two(w->timeout); in uniphier_watchdog_start()
148 tmp_timeout = roundup_pow_of_two(t); in uniphier_watchdog_set_timeout()
/Linux-v4.19/arch/sh/drivers/pci/
Dpcie-sh7786.c364 memsize = roundup_pow_of_two(memend - memstart); in pcie_init()
372 memsize = roundup_pow_of_two(memend - memstart); in pcie_init()
466 mask = (roundup_pow_of_two(size) / SZ_256K) - 1; in pcie_init()
Dpci-sh7780.c304 memsize = roundup_pow_of_two(memory_end - memory_start); in sh7780_pci_init()
371 __raw_writel(((roundup_pow_of_two(size) / SZ_256K) - 1) << 18, in sh7780_pci_init()
/Linux-v4.19/tools/include/linux/
Dlog2.h155 #define roundup_pow_of_two(n) \ macro
/Linux-v4.19/drivers/irqchip/
Dirq-gic-v3-its-fsl-mc-msi.c50 nvec = max_t(int, 32, roundup_pow_of_two(nvec)); in its_fsl_mc_msi_prepare()
Dirq-gic-v3-its-platform-msi.c77 nvec = max_t(int, 32, roundup_pow_of_two(nvec)); in its_pmsi_prepare()
Dirq-gic-v3-its-pci-msi.c99 nvec = max_t(int, minnvec, roundup_pow_of_two(nvec)); in its_pci_msi_prepare()
/Linux-v4.19/tools/perf/arch/s390/util/
Dauxtrace.c66 opts->auxtrace_mmap_pages = roundup_pow_of_two(pages); in cpumsf_recording_options()
/Linux-v4.19/tools/perf/util/
Dprint_binary.c16 bytes_per_line = roundup_pow_of_two(bytes_per_line); in binary__fprintf()
/Linux-v4.19/mm/
Dpercpu-km.c112 alloc_pages = roundup_pow_of_two(nr_pages); in pcpu_verify_alloc_info()
/Linux-v4.19/include/linux/
Dlog2.h177 #define roundup_pow_of_two(n) \ macro
/Linux-v4.19/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_qp.c137 qp->rq.wqe_cnt = roundup_pow_of_two(max(1U, req_cap->max_recv_wr)); in pvrdma_set_rq_size()
138 qp->rq.max_sg = roundup_pow_of_two(max(1U, req_cap->max_recv_sge)); in pvrdma_set_rq_size()
144 qp->rq.wqe_size = roundup_pow_of_two(sizeof(struct pvrdma_rq_wqe_hdr) + in pvrdma_set_rq_size()
162 qp->sq.wqe_cnt = roundup_pow_of_two(max(1U, req_cap->max_send_wr)); in pvrdma_set_sq_size()
163 qp->sq.max_sg = roundup_pow_of_two(max(1U, req_cap->max_send_sge)); in pvrdma_set_sq_size()
169 qp->sq.wqe_size = roundup_pow_of_two(sizeof(struct pvrdma_sq_wqe_hdr) + in pvrdma_set_sq_size()
/Linux-v4.19/arch/mips/bcm63xx/
Dcs.c44 if (size != roundup_pow_of_two(size)) in bcm63xx_set_cs_base()
/Linux-v4.19/drivers/infiniband/hw/cxgb3/
Diwch_provider.c157 entries = roundup_pow_of_two(entries); in iwch_create_cq()
232 cqe = roundup_pow_of_two(cqe+1); in iwch_resize_cq()
813 rqsize = roundup_pow_of_two(attrs->cap.max_recv_wr); in iwch_create_qp()
815 rqsize = roundup_pow_of_two(attrs->cap.max_recv_wr+1); in iwch_create_qp()
832 sqsize = roundup_pow_of_two(attrs->cap.max_send_wr); in iwch_create_qp()
833 wqsize = roundup_pow_of_two(rqsize + sqsize); in iwch_create_qp()
841 wqsize = roundup_pow_of_two(rqsize + in iwch_create_qp()
842 roundup_pow_of_two(attrs->cap.max_send_wr * 2)); in iwch_create_qp()
/Linux-v4.19/drivers/infiniband/hw/mlx4/
Dsrq.c97 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); in mlx4_ib_create_srq()
101 roundup_pow_of_two(sizeof (struct mlx4_wqe_srq_next_seg) + in mlx4_ib_create_srq()
/Linux-v4.19/net/core/
Dsysctl_net_core.c66 size = roundup_pow_of_two(size); in rps_sock_flow_sysctl()
74 rps_cpu_mask = roundup_pow_of_two(nr_cpu_ids) - 1; in rps_sock_flow_sysctl()
/Linux-v4.19/lib/
Dtest_rhashtable.c462 test_rht_params.max_size = roundup_pow_of_two(entries / 8); in test_rhashtable_max()
708 test_rht_params.max_size = max_size ? : roundup_pow_of_two(entries); in test_rht_init()
769 roundup_pow_of_two(tcount * entries); in test_rht_init()
Drhashtable.c387 size = roundup_pow_of_two(nelems * 3 / 2); in rhashtable_shrink()
958 retsize = max(roundup_pow_of_two(params->nelem_hint * 4 / 3), in rounded_hashtable_size()
1030 ht->p.min_size = roundup_pow_of_two(params->min_size); in rhashtable_init()
1046 ht->p.locks_mul = roundup_pow_of_two(params->locks_mul); in rhashtable_init()
/Linux-v4.19/drivers/iio/buffer/
Dkfifo_buf.c34 if (roundup_pow_of_two(length) > UINT_MAX / bytes_per_datum) in __iio_allocate_kfifo()
/Linux-v4.19/drivers/infiniband/hw/bnxt_re/
Dqplib_res.c172 slots = roundup_pow_of_two(*elements); in bnxt_qplib_alloc_init_hwq()
174 aux_size = roundup_pow_of_two(aux); in bnxt_qplib_alloc_init_hwq()
179 size = roundup_pow_of_two(element_size); in bnxt_qplib_alloc_init_hwq()

12345678