Searched refs:roundup_pow_of_two (Results 1 - 25 of 295) sorted by relevance

1234567891011>>

/linux-master/fs/bcachefs/
H A Ddarray.c10 new_size = roundup_pow_of_two(new_size);
H A Dkeylist.c15 newsize = roundup_pow_of_two(newsize);
18 (old_buf && roundup_pow_of_two(oldsize) == newsize))
H A Dfifo.h17 ? roundup_pow_of_two((fifo)->size) * sizeof((fifo)->data[0]) \
25 ? roundup_pow_of_two((fifo)->size) - 1 \
/linux-master/drivers/hwtracing/stm/
H A Dftrace.c68 stm_ftrace.data.nr_chans = roundup_pow_of_two(num_possible_cpus());
/linux-master/arch/arm/include/asm/
H A Defi.h61 #define EFI_PHYS_ALIGN max(UL(SZ_2M), roundup_pow_of_two(TEXT_OFFSET))
/linux-master/tools/perf/util/
H A Dprint_binary.c16 bytes_per_line = roundup_pow_of_two(bytes_per_line);
/linux-master/mm/
H A Dpercpu-km.c118 alloc_pages = roundup_pow_of_two(nr_pages);
/linux-master/tools/perf/arch/s390/util/
H A Dauxtrace.c69 opts->auxtrace_mmap_pages = roundup_pow_of_two(pages);
/linux-master/drivers/gpu/drm/i915/gem/
H A Di915_gem_phys.c45 roundup_pow_of_two(obj->base.size),
92 roundup_pow_of_two(obj->base.size),
135 roundup_pow_of_two(obj->base.size),
/linux-master/drivers/gpu/drm/i915/gt/
H A Dintel_region_lmem.c61 current_size = roundup_pow_of_two(pci_resource_len(pdev, GEN12_LMEM_BAR));
74 rebar_size >= roundup_pow_of_two(lmem_size)) {
84 if (rebar_size != roundup_pow_of_two(lmem_size))
/linux-master/drivers/net/ethernet/mellanox/mlx4/
H A Dprofile.c106 roundup_pow_of_two(max_t(unsigned, request->num_mtt,
138 profile[i].num = roundup_pow_of_two(profile[i].num);
220 dev->caps.num_eqs = roundup_pow_of_two(
/linux-master/arch/mips/bcm63xx/
H A Dcs.c44 if (size != roundup_pow_of_two(size))
/linux-master/tools/include/linux/
H A Dlog2.h144 * roundup_pow_of_two - round the given value up to nearest power of two
151 #define roundup_pow_of_two(n) \ macro
/linux-master/drivers/irqchip/
H A Dirq-gic-v3-its-platform-msi.c66 nvec = max_t(int, 32, roundup_pow_of_two(nvec));
H A Dirq-gic-v3-its-fsl-mc-msi.c64 nvec = max_t(int, 32, roundup_pow_of_two(nvec));
H A Dirq-gic-v3-its-pci-msi.c93 nvec = max_t(int, minnvec, roundup_pow_of_two(nvec));
/linux-master/drivers/pci/controller/
H A Dpcie-rcar.c80 mask = (roundup_pow_of_two(size) / SZ_128) - 1;
/linux-master/block/
H A Dblk-timeout.c95 blk_timeout_mask = roundup_pow_of_two(HZ) - 1;
/linux-master/drivers/watchdog/
H A Dtqmx86_wdt.c49 t = roundup_pow_of_two(t);
H A Duniphier_wdt.c129 tmp_timeout = roundup_pow_of_two(w->timeout);
148 tmp_timeout = roundup_pow_of_two(t);
/linux-master/sound/soc/tegra/
H A Dtegra210_ahub.h51 .mask = xmax ? roundup_pow_of_two(xmax) - 1 : 0 \
/linux-master/drivers/infiniband/sw/rxe/
H A Drxe_queue.c79 elem_size = roundup_pow_of_two(elem_size);
84 num_slots = roundup_pow_of_two(num_slots);
/linux-master/arch/sh/drivers/pci/
H A Dpcie-sh7786.c362 memsize = roundup_pow_of_two(memend - memstart);
370 memsize = roundup_pow_of_two(memend - memstart);
462 mask = (roundup_pow_of_two(size) / SZ_256K) - 1;
/linux-master/drivers/net/ethernet/qlogic/qed/
H A Dqed_rdma.h43 #define QED_RDMA_MAX_XRCDS (roundup_pow_of_two(RDMA_MAX_XRC_SRQS))
/linux-master/include/linux/
H A Dlog2.h167 * roundup_pow_of_two - round the given value up to nearest power of two
174 #define roundup_pow_of_two(n) \ macro

Completed in 233 milliseconds

1234567891011>>