/Linux-v4.19/drivers/infiniband/hw/mlx5/ |
D | mem.c | 65 *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/ |
D | rxe_queue.c | 106 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/ |
D | profile.c | 106 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()
|
D | qp.c | 633 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/ |
D | hns_roce_qp.c | 315 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/ |
D | uniphier_wdt.c | 129 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/ |
D | pcie-sh7786.c | 364 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()
|
D | pci-sh7780.c | 304 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/ |
D | log2.h | 155 #define roundup_pow_of_two(n) \ macro
|
/Linux-v4.19/drivers/irqchip/ |
D | irq-gic-v3-its-fsl-mc-msi.c | 50 nvec = max_t(int, 32, roundup_pow_of_two(nvec)); in its_fsl_mc_msi_prepare()
|
D | irq-gic-v3-its-platform-msi.c | 77 nvec = max_t(int, 32, roundup_pow_of_two(nvec)); in its_pmsi_prepare()
|
D | irq-gic-v3-its-pci-msi.c | 99 nvec = max_t(int, minnvec, roundup_pow_of_two(nvec)); in its_pci_msi_prepare()
|
/Linux-v4.19/tools/perf/arch/s390/util/ |
D | auxtrace.c | 66 opts->auxtrace_mmap_pages = roundup_pow_of_two(pages); in cpumsf_recording_options()
|
/Linux-v4.19/tools/perf/util/ |
D | print_binary.c | 16 bytes_per_line = roundup_pow_of_two(bytes_per_line); in binary__fprintf()
|
/Linux-v4.19/mm/ |
D | percpu-km.c | 112 alloc_pages = roundup_pow_of_two(nr_pages); in pcpu_verify_alloc_info()
|
/Linux-v4.19/include/linux/ |
D | log2.h | 177 #define roundup_pow_of_two(n) \ macro
|
/Linux-v4.19/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_qp.c | 137 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/ |
D | cs.c | 44 if (size != roundup_pow_of_two(size)) in bcm63xx_set_cs_base()
|
/Linux-v4.19/drivers/infiniband/hw/cxgb3/ |
D | iwch_provider.c | 157 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/ |
D | srq.c | 97 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/ |
D | sysctl_net_core.c | 66 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/ |
D | test_rhashtable.c | 462 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()
|
D | rhashtable.c | 387 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/ |
D | kfifo_buf.c | 34 if (roundup_pow_of_two(length) > UINT_MAX / bytes_per_datum) in __iio_allocate_kfifo()
|
/Linux-v4.19/drivers/infiniband/hw/bnxt_re/ |
D | qplib_res.c | 172 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()
|