/linux/drivers/cxl/ |
H A D | acpi.c | 41 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 D | radeon_device.c | 1118 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 D | encodings.c | 730 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 D | super.c | 920 !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 D | drm_suballoc.c | 66 BUILD_BUG_ON(!is_power_of_2(DRM_SUBALLOC_MAX_QUEUES)); in drm_suballoc_manager_init()
|
H A D | drm_mm.c | 539 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 D | bnx2i_init.c | 474 if (sq_size && !is_power_of_2(sq_size)) in bnx2i_mod_init()
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_gt_tlb_invalidation.c | 336 xe_gt_assert(gt, is_power_of_2(length)); in xe_gt_tlb_invalidation_vma()
|
/linux/tools/perf/arch/arm64/util/ |
H A D | arm-spe.c | 214 if (sz < min_sz || !is_power_of_2(sz)) { in arm_spe_recording_options()
|
/linux/fs/bcachefs/ |
H A D | bset.h | 262 EBUG_ON(!is_power_of_2(block_bytes)); in bset_next_set()
|
/linux/arch/s390/kernel/ |
H A D | irq.c | 297 BUILD_BUG_ON(!is_power_of_2(ARRAY_SIZE(ext_int_hash))); in ext_hash()
|
/linux/include/linux/ |
H A D | gfp.h | 376 WARN_ON_ONCE(!is_power_of_2(align)); in page_frag_alloc_align()
|
/linux/drivers/net/ethernet/google/gve/ |
H A D | gve_ethtool.c | 567 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 D | slab_common.c | 623 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 D | memory.c | 969 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 D | i915_request.c | 166 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 D | pci-ioda-tce.c | 306 if (!is_power_of_2(window_size)) in pnv_pci_ioda2_table_alloc_pages()
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_policer.c | 182 if (!is_power_of_2(params->burst)) { in mlxsw_sp_policer_single_rate_params_check()
|
/linux/net/ipv4/ |
H A D | tcp_cdg.c | 411 if (!is_power_of_2(window)) in tcp_cdg_register()
|
/linux/drivers/mtd/spi-nor/ |
H A D | otp.c | 490 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 D | intel-bts.c | 210 if (sz < min_sz || !is_power_of_2(sz)) { in intel_bts_recording_options()
|
/linux/arch/mips/net/ |
H A D | bpf_jit_comp.c | 237 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 D | ice_flow.c | 634 !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 D | btree.c | 97 if (!is_power_of_2(size)) in hfs_btree_open()
|
/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_create.c | 28 GEM_BUG_ON(!is_power_of_2(mr->min_page_size)); in object_max_page_size()
|