Home
last modified time | relevance | path

Searched refs:is_power_of_2 (Results 76 – 100 of 312) sorted by relevance

12345678910>>...13

/linux/drivers/cxl/
H A Dacpi.c41 if (!is_power_of_2(iw)) { in cxl_xor_calc_n()
103 if (is_power_of_2(cxld->interleave_ways)) in cxl_parse_cxims()
/linux/drivers/gpu/drm/radeon/
H A Dradeon_device.c1118 if (radeon_vram_limit != 0 && !is_power_of_2(radeon_vram_limit)) { in radeon_check_arguments()
1132 } else if (!is_power_of_2(radeon_gart_size)) { in radeon_check_arguments()
1155 if (!is_power_of_2(radeon_vm_size)) { in radeon_check_arguments()
/linux/drivers/md/dm-vdo/
H A Dencodings.c730 if ((slab_size < 1024) && !is_power_of_2(data_blocks)) in vdo_configure_slab()
1213 result = VDO_ASSERT(is_power_of_2(config->slab_size), in vdo_validate_config()
1286 result = VDO_ASSERT(is_power_of_2(config->recovery_journal_size), in vdo_validate_config()
/linux/fs/ntfs3/
H A Dsuper.c920 !is_power_of_2(boot_sector_size)) { in ntfs_init_from_boot()
928 if ((int)sct_per_clst < 0 || !is_power_of_2(sct_per_clst)) { in ntfs_init_from_boot()
966 if (record_size < SECTOR_SIZE || !is_power_of_2(record_size)) { in ntfs_init_from_boot()
989 if (sbi->index_size < SECTOR_SIZE || !is_power_of_2(sbi->index_size)) { in ntfs_init_from_boot()
/linux/drivers/gpu/drm/
H A Ddrm_suballoc.c66 BUILD_BUG_ON(!is_power_of_2(DRM_SUBALLOC_MAX_QUEUES)); in drm_suballoc_manager_init()
H A Ddrm_mm.c539 remainder_mask = is_power_of_2(alignment) ? alignment - 1 : 0; in drm_mm_insert_node_in_range()
756 scan->remainder_mask = is_power_of_2(alignment) ? alignment - 1 : 0; in drm_mm_scan_init_with_range()
/linux/drivers/scsi/bnx2i/
H A Dbnx2i_init.c474 if (sq_size && !is_power_of_2(sq_size)) in bnx2i_mod_init()
/linux/drivers/gpu/drm/xe/
H A Dxe_gt_tlb_invalidation.c336 xe_gt_assert(gt, is_power_of_2(length)); in xe_gt_tlb_invalidation_vma()
/linux/tools/perf/arch/arm64/util/
H A Darm-spe.c214 if (sz < min_sz || !is_power_of_2(sz)) { in arm_spe_recording_options()
/linux/fs/bcachefs/
H A Dbset.h262 EBUG_ON(!is_power_of_2(block_bytes)); in bset_next_set()
/linux/arch/s390/kernel/
H A Dirq.c297 BUILD_BUG_ON(!is_power_of_2(ARRAY_SIZE(ext_int_hash))); in ext_hash()
/linux/include/linux/
H A Dgfp.h376 WARN_ON_ONCE(!is_power_of_2(align)); in page_frag_alloc_align()
/linux/drivers/net/ethernet/google/gve/
H A Dgve_ethtool.c567 if (!is_power_of_2(new_tx_desc_cnt) || !is_power_of_2(new_rx_desc_cnt)) { in gve_validate_req_ring_size()
/linux/mm/
H A Dslab_common.c623 if (is_power_of_2(size)) in create_boot_cache()
818 !is_power_of_2(KMALLOC_MIN_SIZE)); in setup_kmalloc_cache_index_table()
/linux/drivers/base/
H A Dmemory.c969 if (!is_power_of_2(block_sz) || block_sz < MIN_MEMORY_BLOCK_SIZE) in memory_dev_init()
1155 if (!unit_pages || !is_power_of_2(unit_pages) || in memory_group_register_dynamic()
/linux/drivers/gpu/drm/i915/
H A Di915_request.c166 if (is_power_of_2(rq->execution_mask) && in i915_fence_release()
1489 is_power_of_2(to->execution_mask | READ_ONCE(from->execution_mask))) in i915_request_await_request()
1682 bool pow2 = is_power_of_2(READ_ONCE(prev->engine)->mask | in __i915_request_ensure_ordering()
/linux/arch/powerpc/platforms/powernv/
H A Dpci-ioda-tce.c306 if (!is_power_of_2(window_size)) in pnv_pci_ioda2_table_alloc_pages()
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_policer.c182 if (!is_power_of_2(params->burst)) { in mlxsw_sp_policer_single_rate_params_check()
/linux/net/ipv4/
H A Dtcp_cdg.c411 if (!is_power_of_2(window)) in tcp_cdg_register()
/linux/drivers/mtd/spi-nor/
H A Dotp.c490 if (WARN_ON(!is_power_of_2(spi_nor_otp_region_len(nor)))) in spi_nor_set_mtd_otp_ops()
/linux/tools/perf/arch/x86/util/
H A Dintel-bts.c210 if (sz < min_sz || !is_power_of_2(sz)) { in intel_bts_recording_options()
/linux/arch/mips/net/
H A Dbpf_jit_comp.c237 return imm == 0 || (imm > 0 && is_power_of_2(imm)); in valid_alu_i()
241 return (u32)imm <= 0x10000 && is_power_of_2((u32)imm); in valid_alu_i()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_flow.c634 !is_power_of_2(segs[i].hdrs & ICE_FLOW_SEG_HDRS_L3_MASK)) in ice_flow_val_hdrs()
639 !is_power_of_2(segs[i].hdrs & ICE_FLOW_SEG_HDRS_L4_MASK)) in ice_flow_val_hdrs()
1914 if (val && !is_power_of_2(val)) in ice_flow_set_rss_seg_info()
1918 if (val && !is_power_of_2(val)) in ice_flow_set_rss_seg_info()
/linux/fs/hfs/
H A Dbtree.c97 if (!is_power_of_2(size)) in hfs_btree_open()
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_create.c28 GEM_BUG_ON(!is_power_of_2(mr->min_page_size)); in object_max_page_size()

12345678910>>...13