Home
last modified time | relevance | path

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

1234567891011

/linux/include/linux/
A Dlog2.h45 bool is_power_of_2(unsigned long n) in is_power_of_2() function
230 if (is_power_of_2(n)) in __bits_per()
A Dgeneric-radix-tree.h107 if (!is_power_of_2(obj_size)) { in __idx_to_offset()
189 if (!is_power_of_2(obj_size) && in __genradix_iter_advance()
A Diommu-helper.h23 BUG_ON(!is_power_of_2(boundary_size)); in iommu_is_span_boundary()
/linux/fs/verity/
A Dhash_algs.c325 BUG_ON(!is_power_of_2(alg->digest_size)); in fsverity_check_hash_algs()
326 BUG_ON(!is_power_of_2(alg->block_size)); in fsverity_check_hash_algs()
/linux/scripts/dtc/
A Ddtc.c26 static int is_power_of_2(int x) in is_power_of_2() function
210 if (!is_power_of_2(alignsize)) in main()
/linux/drivers/iommu/amd/
A Dio_pgtable.c231 BUG_ON(!is_power_of_2(page_size)); in alloc_pte()
467 BUG_ON(!is_power_of_2(size)); in iommu_v1_unmap_page()
485 BUG_ON(unmapped && !is_power_of_2(unmapped)); in iommu_v1_unmap_page()
/linux/include/crypto/
A Dctr.h31 if (WARN_ON_ONCE(!is_power_of_2(blocksize))) in crypto_ctr_encrypt_walk()
/linux/tools/include/linux/
A Dlog2.h38 bool is_power_of_2(unsigned long n) in is_power_of_2() function
/linux/mm/
A Dhugetlb_vmemmap.c190 if ((!is_power_of_2(sizeof(struct page)))) { in early_hugetlb_free_vmemmap_param()
/linux/arch/arm/mm/
A Dcache-uniphier.c348 !is_power_of_2(data->line_size)) { in __uniphier_cache_init()
356 !is_power_of_2(data->nsets)) { in __uniphier_cache_init()
/linux/sound/mips/
A Dsnd-n64.c170 if (is_power_of_2(c->min)) { in hw_rule_period_size()
174 if (is_power_of_2(c->max)) { in hw_rule_period_size()
/linux/arch/x86/include/asm/
A Ddiv64.h26 if (__builtin_constant_p(__base) && is_power_of_2(__base)) { \
/linux/drivers/scsi/bnx2i/
A Dbnx2i_sysfs.c77 (is_power_of_2(val))) in bnx2i_set_sq_info()
/linux/fs/pstore/
A Dram.c748 if (pdata->record_size && !is_power_of_2(pdata->record_size)) in ramoops_probe()
750 if (pdata->console_size && !is_power_of_2(pdata->console_size)) in ramoops_probe()
752 if (pdata->ftrace_size && !is_power_of_2(pdata->ftrace_size)) in ramoops_probe()
754 if (pdata->pmsg_size && !is_power_of_2(pdata->pmsg_size)) in ramoops_probe()
/linux/drivers/net/ethernet/huawei/hinic/
A Dhinic_hw_wq.c516 if (!is_power_of_2(wqebb_size)) { in hinic_wq_allocate()
535 if (!is_power_of_2(num_wqebbs_per_page)) { in hinic_wq_allocate()
613 if (!is_power_of_2(wqebb_size)) { in hinic_wqs_cmdq_alloc()
632 if (!is_power_of_2(num_wqebbs_per_page)) { in hinic_wqs_cmdq_alloc()
/linux/arch/powerpc/mm/
A Dinit-common.c113 BUG_ON(!is_power_of_2(minalign)); in pgtable_cache_add()
/linux/drivers/iio/light/
A Das73211.c450 !is_power_of_2(freq_kHz) || val2) in _as73211_write_raw()
471 if (val < 0 || !is_power_of_2(val) || val2) in _as73211_write_raw()
501 if (time_ms < 0 || !is_power_of_2(time_ms) || time_ms > AS73211_SAMPLE_TIME_MAX_MS) in _as73211_write_raw()
/linux/drivers/infiniband/hw/vmw_pvrdma/
A Dpvrdma_doorbell.c58 if (!is_power_of_2(num)) in pvrdma_uar_table_init()
/linux/drivers/media/rc/img-ir/
A Dimg-ir-sony.c75 if (!is_power_of_2(protocols)) { in img_ir_sony_filter()
A Dimg-ir-nec.c69 if (!is_power_of_2(protocols)) { in img_ir_nec_filter()
/linux/drivers/gpu/drm/i915/gt/
A Dintel_ring.h138 GEM_BUG_ON(!is_power_of_2(size)); in __intel_ring_space()
/linux/drivers/dma/qcom/
A Dhidma_mgmt.c70 if (!is_power_of_2(mgmtdev->max_write_request) || in hidma_mgmt_setup()
78 if (!is_power_of_2(mgmtdev->max_read_request) || in hidma_mgmt_setup()
/linux/drivers/gpu/drm/msm/
A Dmsm_ringbuffer.c57 BUILD_BUG_ON(!is_power_of_2(MSM_GPU_RINGBUFFER_SZ)); in msm_ringbuffer_new()
/linux/drivers/iio/adc/
A Dqcom-vadc-common.c730 if (!is_power_of_2(value) || value > ADC5_AVG_SAMPLES_MAX) in qcom_adc5_avg_samples_from_dt()
752 if (!is_power_of_2(value) || value < VADC_DECIMATION_MIN || in qcom_vadc_decimation_from_dt()
/linux/drivers/net/ethernet/netronome/nfp/abm/
A Dctrl.c395 if (!is_power_of_2(abm->num_bands) || !is_power_of_2(abm->num_prios) || in nfp_abm_ctrl_find_addrs()

Completed in 50 milliseconds

1234567891011