Searched refs:is_power_of_2 (Results 76 - 100 of 308) sorted by relevance

1234567891011>>

/linux-master/fs/bcachefs/
H A Dbset.h259 EBUG_ON(!is_power_of_2(block_bytes));
/linux-master/drivers/nvme/host/
H A Dzns.c93 if (!is_power_of_2(zi->zone_size)) {
/linux-master/drivers/gpu/drm/xe/
H A Dxe_gt_tlb_invalidation.c295 xe_gt_assert(gt, is_power_of_2(length));
/linux-master/arch/powerpc/sysdev/
H A Dfsl_rmu.c690 desc->dwcnt = is_power_of_2(len) ? len : 1 << get_bitmask_order(len);
727 (entries > RIO_MAX_TX_RING_SIZE) || (!is_power_of_2(entries))) {
859 (entries > RIO_MAX_RX_RING_SIZE) || (!is_power_of_2(entries))) {
/linux-master/drivers/accel/habanalabs/common/
H A Dmemory.c41 if (!is_power_of_2(psize)) {
115 if (is_power_of_2(page_size))
153 if (is_power_of_2(page_size))
605 bool is_align_pow_2 = is_power_of_2(va_range->page_size);
1344 if (!is_userptr && !is_power_of_2(phys_pg_pack->page_size))
2533 if (is_power_of_2(page_size)) {
2843 if (is_power_of_2(prop->dram_page_size))
/linux-master/drivers/gpu/drm/radeon/
H A Dradeon_device.c1118 if (radeon_vram_limit != 0 && !is_power_of_2(radeon_vram_limit)) {
1132 } else if (!is_power_of_2(radeon_gart_size)) {
1155 if (!is_power_of_2(radeon_vm_size)) {
/linux-master/drivers/md/dm-vdo/
H A Dencodings.c730 if ((slab_size < 1024) && !is_power_of_2(data_blocks))
1213 result = VDO_ASSERT(is_power_of_2(config->slab_size),
1286 result = VDO_ASSERT(is_power_of_2(config->recovery_journal_size),
/linux-master/drivers/gpu/drm/i915/
H A Di915_request.c166 if (is_power_of_2(rq->execution_mask) &&
1489 is_power_of_2(to->execution_mask | READ_ONCE(from->execution_mask)))
1682 bool pow2 = is_power_of_2(READ_ONCE(prev->engine)->mask |
/linux-master/arch/powerpc/platforms/powernv/
H A Dpci-ioda-tce.c306 if (!is_power_of_2(window_size))
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_policer.c182 if (!is_power_of_2(params->burst)) {
/linux-master/fs/jbd2/
H A Drevoke.c266 J_ASSERT(is_power_of_2(hash_size));
/linux-master/fs/hfsplus/
H A Dbtree.c232 if (!is_power_of_2(size))
/linux-master/fs/hfs/
H A Dbtree.c97 if (!is_power_of_2(size))
/linux-master/net/ipv4/
H A Dtcp_cdg.c411 if (!is_power_of_2(window))
/linux-master/drivers/net/ethernet/aquantia/atlantic/
H A Daq_main.c392 if (num_tc != 0 && !is_power_of_2(num_tc)) {
/linux-master/drivers/mtd/spi-nor/
H A Dotp.c490 if (WARN_ON(!is_power_of_2(spi_nor_otp_region_len(nor))))
/linux-master/drivers/gpu/drm/i915/gem/
H A Di915_gem_create.c28 GEM_BUG_ON(!is_power_of_2(mr->min_page_size));
/linux-master/arch/s390/kernel/
H A Dirq.c295 BUILD_BUG_ON(!is_power_of_2(ARRAY_SIZE(ext_int_hash)));
/linux-master/drivers/gpu/drm/i915/selftests/
H A Di915_syncmap.c523 if (!is_power_of_2(leaf->bitmap)) {
/linux-master/drivers/pci/controller/dwc/
H A Dpci-meson.c257 if (!is_power_of_2(size) || size < 128 || size > 4096) {
/linux-master/tools/perf/arch/x86/util/
H A Dintel-bts.c210 if (sz < min_sz || !is_power_of_2(sz)) {
/linux-master/drivers/clocksource/
H A Dtimer-cadence-ttc.c263 if (!is_power_of_2(factor))
/linux-master/block/
H A Dblk-zoned.c553 if (!zone_sectors || !is_power_of_2(zone_sectors)) {
/linux-master/drivers/md/
H A Ddm-ebs-target.c57 return bs && is_power_of_2(bs);
/linux-master/arch/powerpc/mm/
H A Dhugetlbpage.c516 if (size <= PAGE_SIZE || !is_power_of_2(size))

Completed in 401 milliseconds

1234567891011>>