Searched refs:is_power_of_2 (Results 1 – 25 of 44) sorted by relevance
12
21 BUG_ON(!is_power_of_2(boundary_size)); in iommu_is_span_boundary()
49 bool is_power_of_2(unsigned long n) in is_power_of_2() function
79 if (!is_power_of_2(protocols)) { in img_ir_sony_filter()
73 if (!is_power_of_2(protocols)) { in img_ir_nec_filter()
768 if (pdata->record_size && !is_power_of_2(pdata->record_size)) in ramoops_probe()770 if (pdata->console_size && !is_power_of_2(pdata->console_size)) in ramoops_probe()772 if (pdata->ftrace_size && !is_power_of_2(pdata->ftrace_size)) in ramoops_probe()774 if (pdata->pmsg_size && !is_power_of_2(pdata->pmsg_size)) in ramoops_probe()
224 is_power_of_2(__base)) { \
226 if (!is_power_of_2(value) || value < VADC_DECIMATION_MIN || in qcom_vadc_decimation_from_dt()
145 if (!is_power_of_2(groupsize) || groupsize > 8) in hex_dump_to_buffer()
84 if (!is_power_of_2(gs) || gs > 8 || (len % gs != 0)) in test_hexdump_prepare_test()
85 if (!is_power_of_2(size)) in __kfifo_init()
151 if (!is_power_of_2(alg->cra_blocksize)) in crypto_cbc_create()
543 if (!is_power_of_2(stripe_len) || stripe_len != BTRFS_STRIPE_LEN) { in btrfs_check_chunk_valid()559 if (!is_power_of_2(type & BTRFS_BLOCK_GROUP_PROFILE_MASK) && in btrfs_check_chunk_valid()741 if (!is_power_of_2(mode & S_IFMT)) { in check_inode_item()
232 if (!is_power_of_2(size)) in hfs_btree_open()
89 if (t && (!is_power_of_2(t) || t > 0x40000000)) in inode_readahead_blks_store()
266 J_ASSERT(is_power_of_2(hash_size)); in jbd2_journal_init_revoke()
96 if (!is_power_of_2(size)) in hfs_btree_open()
337 if (!is_power_of_2(size)) { in mvebu_mbus_setup_window()509 if (!is_power_of_2(wsize) || in mvebu_devs_debug_show()
343 if (!is_power_of_2(val)) { in ocores_i2c_of_probe()
70 !is_power_of_2(logfile_log_page_size)) { in ntfs_check_restart_page_header()
163 return is_power_of_2(div); in _is_valid_div()
137 return is_power_of_2(div); in _is_valid_div()
271 BUG_ON(!is_power_of_2(chunk_sectors)); in blk_queue_chunk_sectors()
498 if (WARN_ON_ONCE(!is_power_of_2(zone_sectors))) { in part_zone_aligned()
610 if (!is_power_of_2(sz)) in bgpio_init()
649 if (!is_power_of_2(pdata.page_size)) in at24_probe()