Searched refs:is_power_of_2 (Results 1 – 11 of 11) sorted by relevance
39 static int is_power_of_2(int x) in is_power_of_2() function216 if (!is_power_of_2(alignsize)) in main()
50 bool is_power_of_2(unsigned long n) in is_power_of_2() function
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)) { \
227 if (!is_power_of_2(ap_size) || ap_size < 4096) in cache_init()
709 if (is_power_of_2(mtd->erasesize)) in mtd_blk_probe()714 if (is_power_of_2(mtd->writesize)) in mtd_blk_probe()
450 if (is_power_of_2(mtd->erasesize)) in add_mtd_device()455 if (is_power_of_2(mtd->writesize)) in add_mtd_device()
443 if (!is_power_of_2(size)) { in mvebu_config_mbus_bridge()
699 if (!is_power_of_2(ubi->min_io_size)) { in io_init()716 !is_power_of_2(ubi->max_write_size)) { in io_init()
717 if (!is_power_of_2(c->min_io_size)) { in init_constants_early()728 !is_power_of_2(c->max_write_size)) { in init_constants_early()