Searched refs:is_power_of_2 (Results 1 – 19 of 19) sorted by relevance
48 static inline int is_power_of_2(u64 x) in is_power_of_2() function104 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()
39 static int is_power_of_2(int x) in is_power_of_2() function216 if (!is_power_of_2(alignsize)) in main()
39 static int is_power_of_2(int x) in is_power_of_2() function214 if (!is_power_of_2(alignsize)) in main()
135 static bool is_power_of_2(size_t n) { return (n & (n - 1)) == 0; } in is_power_of_2() function151 } else if (mgr->count >= 2 && is_power_of_2(mgr->count)) { in grpc_handshake_manager_add()
50 bool is_power_of_2(unsigned long n) in is_power_of_2() function
62 #define is_power_of_2(x) ((x) != 0 && (((x) & ((x) - 1)) == 0)) macro
139 BUG_ON(!is_power_of_2(*info->boot_device_count)); in UNIPHIER_DEFINE_SOCDATA_FUNC()
67 if (!is_power_of_2(groupsize) || groupsize > 8) in hex_dump_to_buffer()
209 is_power_of_2(__base)) { \
50 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()
62 static inline bool is_power_of_2(unsigned long n) in is_power_of_2() function
651 static inline int is_power_of_2(u64 x) in is_power_of_2() function663 if (data && !is_power_of_2(data->blocksize)) { in bcm2835_send_cmd()
388 if (!is_power_of_2(ap_size) || ap_size < 4096) in arc_ioc_setup()
442 if (!is_power_of_2(size)) { in mvebu_config_mbus_bridge()
698 if (!is_power_of_2(ubi->min_io_size)) { in io_init()715 !is_power_of_2(ubi->max_write_size)) { in io_init()
272 J_ASSERT(is_power_of_2(hash_size)); in journal_init_revoke()
433 if (is_power_of_2(mtd->erasesize)) in add_mtd_device()438 if (is_power_of_2(mtd->writesize)) in add_mtd_device()
716 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()