Home
last modified time | relevance | path

Searched refs:is_power_of_2 (Results 1 – 19 of 19) sorted by relevance

/external/u-boot/fs/btrfs/
Dsuper.c48 static inline int is_power_of_2(u64 x) in is_power_of_2() function
104 if (!is_power_of_2(sb->sectorsize) || sb->sectorsize < 4096 || in btrfs_check_super()
111 if (!is_power_of_2(sb->nodesize) || sb->nodesize < sb->sectorsize || in btrfs_check_super()
152 if (!is_power_of_2(sb->stripesize)) { in btrfs_check_super()
/external/dtc/
Ddtc.c39 static int is_power_of_2(int x) in is_power_of_2() function
216 if (!is_power_of_2(alignsize)) in main()
/external/u-boot/scripts/dtc/
Ddtc.c39 static int is_power_of_2(int x) in is_power_of_2() function
214 if (!is_power_of_2(alignsize)) in main()
/external/grpc-grpc/src/core/lib/channel/
Dhandshaker.cc135 static bool is_power_of_2(size_t n) { return (n & (n - 1)) == 0; } in is_power_of_2() function
151 } else if (mgr->count >= 2 && is_power_of_2(mgr->count)) { in grpc_handshake_manager_add()
/external/u-boot/include/linux/
Dlog2.h50 bool is_power_of_2(unsigned long n) in is_power_of_2() function
/external/e2fsprogs/lib/ext2fs/
Djfs_compat.h62 #define is_power_of_2(x) ((x) != 0 && (((x) & ((x) - 1)) == 0)) macro
/external/u-boot/arch/arm/mach-uniphier/boot-device/
Dboot-device.c139 BUG_ON(!is_power_of_2(*info->boot_device_count)); in UNIPHIER_DEFINE_SOCDATA_FUNC()
/external/u-boot/lib/
Dhexdump.c67 if (!is_power_of_2(groupsize) || groupsize > 8) in hex_dump_to_buffer()
/external/u-boot/include/
Ddiv64.h209 is_power_of_2(__base)) { \
/external/fsverity-utils/
Dcmd_setup.c50 if (n <= 0 || n >= INT32_MAX || *end || !is_power_of_2(n)) { in parse_blocksize_option()
515 if (params.blocksize <= 0 || !is_power_of_2(params.blocksize)) { in fsverity_cmd_setup()
Dutil.h62 static inline bool is_power_of_2(unsigned long n) in is_power_of_2() function
/external/u-boot/drivers/mmc/
Dbcm2835_sdhost.c651 static inline int is_power_of_2(u64 x) in is_power_of_2() function
663 if (data && !is_power_of_2(data->blocksize)) { in bcm2835_send_cmd()
/external/u-boot/arch/arc/lib/
Dcache.c388 if (!is_power_of_2(ap_size) || ap_size < 4096) in arc_ioc_setup()
/external/u-boot/arch/arm/mach-mvebu/
Dmbus.c442 if (!is_power_of_2(size)) { in mvebu_config_mbus_bridge()
/external/u-boot/drivers/mtd/ubi/
Dbuild.c698 if (!is_power_of_2(ubi->min_io_size)) { in io_init()
715 !is_power_of_2(ubi->max_write_size)) { in io_init()
/external/e2fsprogs/debugfs/
Drevoke.c272 J_ASSERT(is_power_of_2(hash_size)); in journal_init_revoke()
/external/e2fsprogs/e2fsck/
Drevoke.c272 J_ASSERT(is_power_of_2(hash_size)); in journal_init_revoke()
/external/u-boot/drivers/mtd/
Dmtdcore.c433 if (is_power_of_2(mtd->erasesize)) in add_mtd_device()
438 if (is_power_of_2(mtd->writesize)) in add_mtd_device()
/external/u-boot/fs/ubifs/
Dsuper.c716 if (!is_power_of_2(c->min_io_size)) { in init_constants_early()
727 !is_power_of_2(c->max_write_size)) { in init_constants_early()