Home
last modified time | relevance | path

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

12345678

/Linux-v4.19/include/linux/
Diommu-helper.h21 BUG_ON(!is_power_of_2(boundary_size)); in iommu_is_span_boundary()
Dlog2.h49 bool is_power_of_2(unsigned long n) in is_power_of_2() function
/Linux-v4.19/drivers/gpu/drm/i915/
Di915_gem_fence_reg.c129 GEM_BUG_ON(!is_power_of_2(vma->fence_size)); in i915_write_fence_reg()
136 GEM_BUG_ON(!is_power_of_2(stride)); in i915_write_fence_reg()
167 GEM_BUG_ON(!is_power_of_2(vma->fence_size)); in i830_write_fence_reg()
168 GEM_BUG_ON(!is_power_of_2(stride / 128)); in i830_write_fence_reg()
/Linux-v4.19/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()
/Linux-v4.19/arch/powerpc/mm/
Dinit-common.c73 BUG_ON(!is_power_of_2(minalign)); in pgtable_cache_add()
/Linux-v4.19/arch/x86/include/asm/
Ddiv64.h26 if (__builtin_constant_p(__base) && is_power_of_2(__base)) { \
/Linux-v4.19/tools/include/linux/
Dlog2.h42 bool is_power_of_2(unsigned long n) in is_power_of_2() function
/Linux-v4.19/drivers/gpu/drm/msm/
Dmsm_ringbuffer.c29 BUILD_BUG_ON(!is_power_of_2(MSM_GPU_RINGBUFFER_SZ)); in msm_ringbuffer_new()
/Linux-v4.19/drivers/scsi/bnx2i/
Dbnx2i_sysfs.c75 (is_power_of_2(val))) in bnx2i_set_sq_info()
/Linux-v4.19/arch/arm/mm/
Dcache-uniphier.c357 !is_power_of_2(data->line_size)) { in __uniphier_cache_init()
365 !is_power_of_2(data->nsets)) { in __uniphier_cache_init()
/Linux-v4.19/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_doorbell.c58 if (!is_power_of_2(num)) in pvrdma_uar_table_init()
/Linux-v4.19/drivers/media/rc/img-ir/
Dimg-ir-sony.c79 if (!is_power_of_2(protocols)) { in img_ir_sony_filter()
Dimg-ir-nec.c73 if (!is_power_of_2(protocols)) { in img_ir_nec_filter()
/Linux-v4.19/fs/pstore/
Dram.c756 if (pdata->record_size && !is_power_of_2(pdata->record_size)) in ramoops_probe()
758 if (pdata->console_size && !is_power_of_2(pdata->console_size)) in ramoops_probe()
760 if (pdata->ftrace_size && !is_power_of_2(pdata->ftrace_size)) in ramoops_probe()
762 if (pdata->pmsg_size && !is_power_of_2(pdata->pmsg_size)) in ramoops_probe()
/Linux-v4.19/drivers/dma/qcom/
Dhidma_mgmt.c78 if (!is_power_of_2(mgmtdev->max_write_request) || in hidma_mgmt_setup()
86 if (!is_power_of_2(mgmtdev->max_read_request) || in hidma_mgmt_setup()
/Linux-v4.19/drivers/block/
Dnull_blk_zoned.c19 if (!is_power_of_2(dev->zone_size)) { in null_zone_init()
/Linux-v4.19/arch/ia64/mm/
Dhugetlbpage.c180 if (*str || !is_power_of_2(size) || !(tr_pages & size) || in hugetlb_setup_sz()
/Linux-v4.19/include/asm-generic/
Ddiv64.h224 is_power_of_2(__base)) { \
/Linux-v4.19/arch/microblaze/mm/
Dpgtable.c185 #define is_power_of_2(x) ((x) != 0 && (((x) & ((x) - 1)) == 0)) macro
/Linux-v4.19/drivers/iio/adc/
Dqcom-vadc-common.c226 if (!is_power_of_2(value) || value < VADC_DECIMATION_MIN || in qcom_vadc_decimation_from_dt()
/Linux-v4.19/drivers/md/
Ddm-exception-store.c165 if (!is_power_of_2(chunk_size)) { in dm_exception_store_set_chunk_size()
Draid0.c323 if (is_power_of_2(chunk_sects)) { in map_sector()
454 if (likely(is_power_of_2(chunk_sects))) { in is_io_in_chunk_boundary()
579 (likely(is_power_of_2(chunk_sects)) in raid0_make_request()
/Linux-v4.19/drivers/net/wireless/ath/ath5k/
Dqcu.c117 if (is_power_of_2(cw_req + 1)) in ath5k_cw_validate()
121 if (is_power_of_2(cw_req)) in ath5k_cw_validate()
/Linux-v4.19/crypto/
Dcbc.c152 if (!is_power_of_2(alg->cra_blocksize)) in crypto_cbc_create()
/Linux-v4.19/tools/perf/arch/arm64/util/
Darm-spe.c106 if (sz < min_sz || !is_power_of_2(sz)) { in arm_spe_recording_options()

12345678