/linux/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_phys.c | 38 roundup_pow_of_two(obj->base.size), in i915_gem_object_get_pages_phys() 88 roundup_pow_of_two(obj->base.size), in i915_gem_object_get_pages_phys() 134 roundup_pow_of_two(obj->base.size), in i915_gem_object_put_pages_phys()
|
/linux/drivers/infiniband/hw/hns/ |
A D | hns_roce_srq.c | 225 srq->wqe_shift = ilog2(roundup_pow_of_two(max(HNS_ROCE_SGE_SIZE, in alloc_srq_wqe_buf() 281 max_sge = roundup_pow_of_two(max_sge + 1); in proc_srq_sge() 306 srq->wqe_cnt = roundup_pow_of_two(attr->max_wr); in set_srq_basic_param() 307 srq->max_gs = roundup_pow_of_two(attr->max_sge + srq->rsv_sge); in set_srq_basic_param()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
A 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()
|
A 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/drivers/infiniband/sw/rxe/ |
A D | rxe_queue.c | 79 elem_size = roundup_pow_of_two(elem_size); in rxe_queue_init() 84 num_slots = roundup_pow_of_two(num_slots); in rxe_queue_init()
|
/linux/drivers/watchdog/ |
A 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()
|
A D | tqmx86_wdt.c | 49 t = roundup_pow_of_two(t); in tqmx86_wdt_set_timeout()
|
/linux/arch/sh/drivers/pci/ |
A D | pcie-sh7786.c | 363 memsize = roundup_pow_of_two(memend - memstart); in pcie_init() 371 memsize = roundup_pow_of_two(memend - memstart); in pcie_init() 463 mask = (roundup_pow_of_two(size) / SZ_256K) - 1; in pcie_init()
|
A D | pci-sh7780.c | 300 memsize = roundup_pow_of_two(memory_end - memory_start); in sh7780_pci_init() 367 __raw_writel(((roundup_pow_of_two(size) / SZ_256K) - 1) << 18, in sh7780_pci_init()
|
/linux/arch/arm/include/asm/ |
A D | efi.h | 70 #define EFI_PHYS_ALIGN max(UL(SZ_2M), roundup_pow_of_two(TEXT_OFFSET))
|
/linux/drivers/infiniband/hw/vmw_pvrdma/ |
A D | pvrdma_qp.c | 140 qp->rq.wqe_cnt = roundup_pow_of_two(max(1U, req_cap->max_recv_wr)); in pvrdma_set_rq_size() 141 qp->rq.max_sg = roundup_pow_of_two(max(1U, req_cap->max_recv_sge)); in pvrdma_set_rq_size() 147 qp->rq.wqe_size = roundup_pow_of_two(sizeof(struct pvrdma_rq_wqe_hdr) + in pvrdma_set_rq_size() 165 qp->sq.wqe_cnt = roundup_pow_of_two(max(1U, req_cap->max_send_wr)); in pvrdma_set_sq_size() 166 qp->sq.max_sg = roundup_pow_of_two(max(1U, req_cap->max_send_sge)); in pvrdma_set_sq_size() 172 qp->sq.wqe_size = roundup_pow_of_two(sizeof(struct pvrdma_sq_wqe_hdr) + in pvrdma_set_sq_size()
|
/linux/drivers/hwtracing/stm/ |
A D | ftrace.c | 68 stm_ftrace.data.nr_chans = roundup_pow_of_two(num_possible_cpus()); in stm_ftrace_init()
|
/linux/tools/include/linux/ |
A D | log2.h | 151 #define roundup_pow_of_two(n) \ macro
|
/linux/tools/perf/arch/s390/util/ |
A D | auxtrace.c | 69 opts->auxtrace_mmap_pages = roundup_pow_of_two(pages); in cpumsf_recording_options()
|
/linux/tools/perf/util/ |
A D | print_binary.c | 16 bytes_per_line = roundup_pow_of_two(bytes_per_line); in binary__fprintf()
|
/linux/mm/ |
A D | percpu-km.c | 118 alloc_pages = roundup_pow_of_two(nr_pages); in pcpu_verify_alloc_info()
|
/linux/drivers/net/ethernet/microsoft/mana/ |
A D | hw_channel.c | 336 eq_size = roundup_pow_of_two(GDMA_EQE_SIZE * q_depth); in mana_hwc_create_cq() 340 cq_size = roundup_pow_of_two(GDMA_CQE_SIZE * q_depth); in mana_hwc_create_cq() 468 queue_size = roundup_pow_of_two(GDMA_MAX_RQE_SIZE * q_depth); in mana_hwc_create_wq() 470 queue_size = roundup_pow_of_two(GDMA_MAX_SQE_SIZE * q_depth); in mana_hwc_create_wq()
|
/linux/include/linux/ |
A D | log2.h | 174 #define roundup_pow_of_two(n) \ macro
|
/linux/arch/mips/bcm63xx/ |
A D | cs.c | 44 if (size != roundup_pow_of_two(size)) in bcm63xx_set_cs_base()
|
/linux/block/ |
A D | blk-timeout.c | 95 blk_timeout_mask = roundup_pow_of_two(HZ) - 1; in blk_timeout_init()
|
/linux/sound/soc/tegra/ |
A D | tegra210_ahub.h | 51 .mask = xmax ? roundup_pow_of_two(xmax) - 1 : 0 \
|
/linux/drivers/irqchip/ |
A D | irq-gic-v3-its-fsl-mc-msi.c | 66 nvec = max_t(int, 32, roundup_pow_of_two(nvec)); in its_fsl_mc_msi_prepare()
|
A D | irq-gic-v3-its-platform-msi.c | 66 nvec = max_t(int, 32, roundup_pow_of_two(nvec)); in its_pmsi_prepare()
|
/linux/drivers/pci/controller/ |
A D | pcie-rcar.c | 80 mask = (roundup_pow_of_two(size) / SZ_128) - 1; in rcar_pcie_set_outbound()
|
/linux/drivers/infiniband/hw/mlx4/ |
A D | srq.c | 100 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); in mlx4_ib_create_srq() 104 roundup_pow_of_two(sizeof (struct mlx4_wqe_srq_next_seg) + in mlx4_ib_create_srq()
|