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

1234567891011>>

/linux-master/arch/mips/bcm63xx/
H A Dcs.c44 if (size != roundup_pow_of_two(size))
/linux-master/drivers/infiniband/hw/mthca/
H A Dmthca_srq.c224 srq->max = roundup_pow_of_two(srq->max + 1);
229 roundup_pow_of_two(sizeof (struct mthca_next_seg) +
/linux-master/drivers/irqchip/
H A Dirq-gic-v3-its-platform-msi.c66 nvec = max_t(int, 32, roundup_pow_of_two(nvec));
/linux-master/drivers/net/ethernet/mellanox/mlx4/
H A Dalloc.c177 if (num != roundup_pow_of_two(num))
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/drivers/net/ethernet/netronome/nfp/abm/
H A Dctrl.c319 size = roundup_pow_of_two(order_base_2(abm->num_bands));
/linux-master/drivers/net/wireless/ath/ath5k/
H A Dqcu.c126 cw_req = (u16) roundup_pow_of_two(cw_req) - 1;
/linux-master/drivers/watchdog/
H A Duniphier_wdt.c129 tmp_timeout = roundup_pow_of_two(w->timeout);
148 tmp_timeout = roundup_pow_of_two(t);
/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/arch/alpha/kernel/
H A Dpci_iommu.c54 max = roundup_pow_of_two(mem);
/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/arch/powerpc/kvm/
H A Dbook3s_hv.c3525 return n_subcores * roundup_pow_of_two(n_threads) <= MAX_SMT_THREADS;
H A Dguest-state-buffer.c35 size = roundup_pow_of_two(size);
H A Dtest-guest-state-buffer.c19 KUNIT_EXPECT_EQ(test, gsb->capacity, roundup_pow_of_two(size));
/linux-master/arch/powerpc/mm/book3s32/
H A Dmmu.c164 size = roundup_pow_of_two((unsigned long)_einittext - PAGE_OFFSET);
/linux-master/arch/powerpc/platforms/powernv/
H A Dpci-ioda.c1078 window_size = roundup_pow_of_two(memory_hotplug_max() + (1ULL << 32));
1325 top = roundup_pow_of_two(top);
/linux-master/arch/powerpc/platforms/ps3/
H A Dmm.c664 roundup_pow_of_two(r->len), r->page_size, r->region_type,
/linux-master/arch/powerpc/platforms/pseries/
H A Dmsi.c369 int m = roundup_pow_of_two(nvec);
H A Dplpks.c142 password = kzalloc(roundup_pow_of_two(maxpwsize), GFP_KERNEL);
180 auth = kzalloc(roundup_pow_of_two(struct_size(auth, password, maxpwsize)), GFP_KERNEL);
218 label = kzalloc(roundup_pow_of_two(sizeof(*label)), GFP_KERNEL);
H A Drtas-work-area.c37 RTAS_WORK_AREA_MIN_ALLOC_SZ = roundup_pow_of_two(80),
/linux-master/arch/riscv/kernel/
H A Dmodule.c749 unsigned long hashtable_size = roundup_pow_of_two(num_relocations);
/linux-master/arch/sh/drivers/pci/
H A Dpci-sh7780.c300 memsize = roundup_pow_of_two(memory_end - memory_start);
367 __raw_writel(((roundup_pow_of_two(size) / SZ_256K) - 1) << 18,
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/arch/sparc/kernel/
H A Dpci_sun4v.c849 dma_mask = (roundup_pow_of_two(atu->size) - 1UL);
884 dma_mask = (roundup_pow_of_two(vdma[1]) - 1UL);
/linux-master/arch/sparc/mm/
H A Dinit_64.c224 ((1UL<<ilog2(roundup_pow_of_two(NR_CPUS)))-1UL)
2317 ilog2(roundup_pow_of_two(NR_CPUS)) > 32);

Completed in 858 milliseconds

1234567891011>>