Searched refs:is_power_of_2 (Results 1 - 25 of 308) sorted by relevance

1234567891011>>

/linux-master/include/linux/
H A Diommu-helper.h23 BUG_ON(!is_power_of_2(boundary_size));
H A Drandom.h79 if (likely(is_power_of_2(ceil) || (u8)mult >= (1U << 8) % ceil))
83 if (likely(is_power_of_2(ceil) || (u16)mult >= (1U << 16) % ceil))
87 if (likely(is_power_of_2(ceil) || (u32)mult >= -ceil % ceil))
H A Dlog2.h37 * is_power_of_2() - check if a value is a power of two
45 bool is_power_of_2(unsigned long n) function
230 if (is_power_of_2(n))
H A Dgeneric-radix-tree.h111 if (!is_power_of_2(obj_size)) {
222 if (!is_power_of_2(obj_size) &&
/linux-master/include/crypto/
H A Dctr.h31 if (WARN_ON_ONCE(!is_power_of_2(blocksize)))
/linux-master/mm/
H A Dhugetlb_vmemmap.h41 if (!is_power_of_2(sizeof(struct page)))
/linux-master/fs/verity/
H A Dhash_algs.c244 BUG_ON(!is_power_of_2(alg->digest_size));
245 BUG_ON(!is_power_of_2(alg->block_size));
/linux-master/drivers/scsi/bnx2i/
H A Dbnx2i_sysfs.c77 (is_power_of_2(val)))
/linux-master/drivers/gpu/drm/i915/
H A Di915_ioctl.c57 GEM_BUG_ON(!is_power_of_2(entry->size));
/linux-master/arch/x86/include/asm/
H A Ddiv64.h26 if (__builtin_constant_p(__base) && is_power_of_2(__base)) { \
/linux-master/tools/testing/selftests/riscv/hwprobe/
H A Dcbo.c79 static bool is_power_of_2(__u64 n) function
97 is_power_of_2(block_size), "Zicboz block size\n");
104 if (illegal_insn || !is_power_of_2(block_size)) {
/linux-master/tools/perf/util/bpf_skel/
H A Daugmented_raw_syscalls.bpf.c14 * is_power_of_2() - check if a value is a power of two
21 #define is_power_of_2(n) (n != 0 && ((n & (n - 1)) == 0)) macro
152 _Static_assert(is_power_of_2(sizeof(augmented_arg->value)), "sizeof(augmented_arg->value) needs to be a power of two");
190 _Static_assert(is_power_of_2(sizeof(augmented_args->saddr)), "sizeof(augmented_args->saddr) needs to be a power of two");
/linux-master/drivers/media/rc/img-ir/
H A Dimg-ir-sony.c75 if (!is_power_of_2(protocols)) {
H A Dimg-ir-nec.c69 if (!is_power_of_2(protocols)) {
/linux-master/tools/include/linux/
H A Dlog2.h38 bool is_power_of_2(unsigned long n) function
/linux-master/drivers/gpu/drm/i915/gt/
H A Dintel_ring.h138 GEM_BUG_ON(!is_power_of_2(size));
/linux-master/drivers/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_doorbell.c58 if (!is_power_of_2(num))
/linux-master/drivers/net/ipa/
H A Dreg.h85 if (WARN_ON(!is_power_of_2(fmask)))
/linux-master/arch/powerpc/mm/
H A Dinit-common.c132 * moment, gcc doesn't seem to recognize is_power_of_2 as a
134 BUG_ON(!is_power_of_2(minalign));
/linux-master/scripts/dtc/
H A Ddtc.c26 static int is_power_of_2(int x) function
210 if (!is_power_of_2(alignsize))
/linux-master/arch/x86/kvm/
H A Dkvm_cache_regs.h163 BUILD_BUG_ON(!is_power_of_2(cr0_bit));
185 BUILD_BUG_ON(!is_power_of_2(cr4_bit));
/linux-master/fs/xfs/
H A Dxfs_linux.h204 return is_power_of_2(b) ? ilog2(b) : -1;
210 return is_power_of_2(b) ? b - 1 : 0;
/linux-master/include/asm-generic/
H A Ddiv64.h224 is_power_of_2(__base)) { \
/linux-master/tools/perf/arch/arm64/util/
H A Dhisi-ptt.c86 if (sz < min_sz || !is_power_of_2(sz)) {
/linux-master/drivers/md/
H A Ddm-exception-store.c166 if (!is_power_of_2(chunk_size)) {

Completed in 212 milliseconds

1234567891011>>