/openbmc/u-boot/fs/btrfs/ |
H A D | super.c | 49 static inline int is_power_of_2(u64 x) in is_power_of_2() function 105 if (!is_power_of_2(sb->sectorsize) || sb->sectorsize < 4096 || in btrfs_check_super() 112 if (!is_power_of_2(sb->nodesize) || sb->nodesize < sb->sectorsize || in btrfs_check_super() 153 if (!is_power_of_2(sb->stripesize)) { in btrfs_check_super()
|
/openbmc/linux/include/linux/ |
H A D | random.h | 79 if (likely(is_power_of_2(ceil) || (u8)mult >= (1U << 8) % ceil)) in get_random_u32_below() 83 if (likely(is_power_of_2(ceil) || (u16)mult >= (1U << 16) % ceil)) in get_random_u32_below() 87 if (likely(is_power_of_2(ceil) || (u32)mult >= -ceil % ceil)) in get_random_u32_below()
|
H A D | log2.h | 45 bool is_power_of_2(unsigned long n) in is_power_of_2() function 230 if (is_power_of_2(n)) in __bits_per()
|
H A D | generic-radix-tree.h | 108 if (!is_power_of_2(obj_size)) { in __idx_to_offset() 196 if (!is_power_of_2(obj_size) && in __genradix_iter_advance()
|
H A D | iommu-helper.h | 23 BUG_ON(!is_power_of_2(boundary_size)); in iommu_is_span_boundary()
|
/openbmc/qemu/hw/misc/ |
H A D | msf2-sysreg.c | 132 if ((s->apb0div > 32 || !is_power_of_2(s->apb0div)) in msf2_sysreg_realize() 133 || (s->apb1div > 32 || !is_power_of_2(s->apb1div))) { in msf2_sysreg_realize()
|
/openbmc/qemu/hw/ppc/ |
H A D | pnv_adu.c | 119 if (!is_power_of_2(lpc_size) || lpc_size > sizeof(data)) { in pnv_adu_xscom_write() 144 if (!is_power_of_2(lpc_size) || lpc_size > sizeof(data)) { in pnv_adu_xscom_write()
|
/openbmc/linux/tools/perf/util/bpf_skel/ |
H A D | augmented_raw_syscalls.bpf.c | 21 #define is_power_of_2(n) (n != 0 && ((n & (n - 1)) == 0)) macro 165 …_Static_assert(is_power_of_2(sizeof(augmented_arg->value)), "sizeof(augmented_arg->value) needs to… in augmented_arg__read_str() 203 …_Static_assert(is_power_of_2(sizeof(augmented_args->saddr)), "sizeof(augmented_args->saddr) needs … in sys_enter_connect()
|
/openbmc/linux/fs/verity/ |
H A D | hash_algs.c | 244 BUG_ON(!is_power_of_2(alg->digest_size)); in fsverity_check_hash_algs() 245 BUG_ON(!is_power_of_2(alg->block_size)); in fsverity_check_hash_algs()
|
/openbmc/linux/mm/ |
H A D | hugetlb_vmemmap.h | 36 if (!is_power_of_2(sizeof(struct page))) in hugetlb_vmemmap_optimizable_size()
|
/openbmc/qemu/hw/block/ |
H A D | m25p80_sfdp.c | 17 assert(is_power_of_2(sizeof(sfdp_##model))); \
|
/openbmc/linux/arch/x86/kvm/ |
H A D | kvm_cache_regs.h | 163 BUILD_BUG_ON(!is_power_of_2(cr0_bit)); in kvm_is_cr0_bit_set() 185 BUILD_BUG_ON(!is_power_of_2(cr4_bit)); in kvm_is_cr4_bit_set()
|
/openbmc/u-boot/scripts/dtc/ |
H A D | dtc.c | 39 static int is_power_of_2(int x) in is_power_of_2() function 214 if (!is_power_of_2(alignsize)) in main()
|
/openbmc/linux/scripts/dtc/ |
H A D | dtc.c | 26 static int is_power_of_2(int x) in is_power_of_2() function 210 if (!is_power_of_2(alignsize)) in main()
|
/openbmc/qemu/util/ |
H A D | memalign.c | 39 g_assert(is_power_of_2(alignment)); in qemu_try_memalign()
|
/openbmc/qemu/hw/remote/ |
H A D | message.c | 151 if (!is_power_of_2(bar_access->size) || in process_bar_write() 189 if (!is_power_of_2(bar_access->size) || in process_bar_read()
|
/openbmc/linux/include/crypto/ |
H A D | ctr.h | 31 if (WARN_ON_ONCE(!is_power_of_2(blocksize))) in crypto_ctr_encrypt_walk()
|
/openbmc/hiomapd/ |
H A D | common.h | 98 static inline bool is_power_of_2(unsigned val) in is_power_of_2() function
|
/openbmc/phosphor-mboxd/ |
H A D | common.h | 97 static inline bool is_power_of_2(unsigned val) in is_power_of_2() function
|
/openbmc/linux/tools/include/linux/ |
H A D | log2.h | 38 bool is_power_of_2(unsigned long n) in is_power_of_2() function
|
/openbmc/linux/drivers/scsi/bnx2i/ |
H A D | bnx2i_sysfs.c | 77 (is_power_of_2(val))) in bnx2i_set_sq_info()
|
/openbmc/u-boot/include/linux/ |
H A D | log2.h | 50 bool is_power_of_2(unsigned long n) in is_power_of_2() function
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_ioctl.c | 57 GEM_BUG_ON(!is_power_of_2(entry->size)); in i915_reg_read_ioctl()
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | div64.h | 26 if (__builtin_constant_p(__base) && is_power_of_2(__base)) { \
|
/openbmc/linux/drivers/cxl/ |
H A D | cxl.h | 107 !is_power_of_2(granularity)) in granularity_to_eig() 117 if (is_power_of_2(ways)) { in ways_to_eiw() 124 if (!is_power_of_2(ways)) in ways_to_eiw()
|