is_power_of_2 1186 arch/arc/mm/cache.c if (!is_power_of_2(mem_sz) || mem_sz < 4096) is_power_of_2 348 arch/arm/mm/cache-uniphier.c !is_power_of_2(data->line_size)) { is_power_of_2 356 arch/arm/mm/cache-uniphier.c !is_power_of_2(data->nsets)) { is_power_of_2 180 arch/ia64/mm/hugetlbpage.c if (*str || !is_power_of_2(size) || !(tr_pages & size) || is_power_of_2 937 arch/powerpc/kvm/book3s.c if (!is_power_of_2(size) || (size > sizeof(buf))) is_power_of_2 2390 arch/powerpc/kvm/book3s_hv.c if (smt_mode > MAX_SMT_THREADS || !is_power_of_2(smt_mode)) is_power_of_2 764 arch/powerpc/kvm/e500_mmu.c if (!is_power_of_2(params.tlb_ways[0])) is_power_of_2 768 arch/powerpc/kvm/e500_mmu.c if (!is_power_of_2(sets)) is_power_of_2 786 arch/powerpc/kvm/e500_mmu_host.c if (!is_power_of_2(host_tlb_params[0].entries) || is_power_of_2 787 arch/powerpc/kvm/e500_mmu_host.c !is_power_of_2(host_tlb_params[0].ways) || is_power_of_2 568 arch/powerpc/mm/hugetlbpage.c if (size <= PAGE_SIZE || !is_power_of_2(size)) is_power_of_2 112 arch/powerpc/mm/init-common.c BUG_ON(!is_power_of_2(minalign)); is_power_of_2 232 arch/powerpc/platforms/4xx/pci.c if ((plb_addr + size) > 0xffffffffull || !is_power_of_2(size) || is_power_of_2 419 arch/powerpc/platforms/4xx/pci.c if (!is_power_of_2(size) || size < 0x1000 || is_power_of_2 1721 arch/powerpc/platforms/4xx/pci.c if (!is_power_of_2(size) || is_power_of_2 279 arch/powerpc/platforms/powernv/pci-ioda-tce.c if (!is_power_of_2(window_size)) is_power_of_2 2511 arch/powerpc/platforms/powernv/pci-ioda.c !is_power_of_2(window_size)) is_power_of_2 690 arch/powerpc/sysdev/fsl_rmu.c desc->dwcnt = is_power_of_2(len) ? len : 1 << get_bitmask_order(len); is_power_of_2 727 arch/powerpc/sysdev/fsl_rmu.c (entries > RIO_MAX_TX_RING_SIZE) || (!is_power_of_2(entries))) { is_power_of_2 859 arch/powerpc/sysdev/fsl_rmu.c (entries > RIO_MAX_RX_RING_SIZE) || (!is_power_of_2(entries))) { is_power_of_2 232 arch/s390/kernel/irq.c BUILD_BUG_ON(!is_power_of_2(ARRAY_SIZE(ext_int_hash))); is_power_of_2 822 arch/s390/pci/pci.c BUILD_BUG_ON(!is_power_of_2(__alignof__(struct zpci_fmb)) || is_power_of_2 235 arch/sparc/mm/srmmu.c if (!is_power_of_2(size)) { is_power_of_2 26 arch/x86/include/asm/div64.h if (__builtin_constant_p(__base) && is_power_of_2(__base)) { \ is_power_of_2 289 arch/x86/kernel/hw_breakpoint.c if (!is_power_of_2(attr->bp_len)) is_power_of_2 74 arch/xtensa/kernel/hw_breakpoint.c if (hw->len < 1 || hw->len > 64 || !is_power_of_2(hw->len)) is_power_of_2 217 block/blk-settings.c BUG_ON(!is_power_of_2(chunk_sectors)); is_power_of_2 487 block/partition-generic.c if (WARN_ON_ONCE(!is_power_of_2(zone_sectors))) { is_power_of_2 62 crypto/cbc.c if (!is_power_of_2(alg->cra_blocksize)) is_power_of_2 2557 drivers/ata/libata-core.c if (is_power_of_2(max) && is_power_of_2(cnt)) is_power_of_2 793 drivers/base/memory.c if (!is_power_of_2(block_sz) || block_sz < MIN_MEMORY_BLOCK_SIZE) is_power_of_2 778 drivers/base/regmap/regmap.c if (is_power_of_2(map->reg_stride)) is_power_of_2 1556 drivers/block/loop.c if (arg < 512 || arg > PAGE_SIZE || !is_power_of_2(arg)) is_power_of_2 1336 drivers/block/nbd.c if (!blksize || !is_power_of_2(blksize) || blksize < 512 || is_power_of_2 1764 drivers/block/null_blk_main.c if (!is_power_of_2(g_zone_size)) { is_power_of_2 19 drivers/block/null_blk_zoned.c if (!is_power_of_2(dev->zone_size)) { is_power_of_2 912 drivers/block/rbd.c if (!is_power_of_2(intval)) { is_power_of_2 850 drivers/block/rsxx/dma.c if (!is_power_of_2(stripe_size8)) { is_power_of_2 337 drivers/bus/mvebu-mbus.c if (!is_power_of_2(size)) { is_power_of_2 509 drivers/bus/mvebu-mbus.c if (!is_power_of_2(wsize) || is_power_of_2 176 drivers/clk/clk-divider.c return is_power_of_2(div); is_power_of_2 137 drivers/clk/ti/divider.c return is_power_of_2(div); is_power_of_2 250 drivers/clocksource/timer-cadence-ttc.c if (!is_power_of_2(factor)) is_power_of_2 3327 drivers/crypto/talitos.c if (!is_power_of_2(priv->num_channels) || !priv->chfifo_len || is_power_of_2 70 drivers/dma/qcom/hidma_mgmt.c if (!is_power_of_2(mgmtdev->max_write_request) || is_power_of_2 78 drivers/dma/qcom/hidma_mgmt.c if (!is_power_of_2(mgmtdev->max_read_request) || is_power_of_2 2743 drivers/dma/ste_dma40.c !is_power_of_2(src_addr_width) || is_power_of_2 2744 drivers/dma/ste_dma40.c !is_power_of_2(dst_addr_width)) is_power_of_2 545 drivers/dma/stm32-mdma.c if ((!is_power_of_2(src_maxburst) && src_maxburst > 0) || is_power_of_2 546 drivers/dma/stm32-mdma.c (!is_power_of_2(dst_maxburst) && dst_maxburst > 0)) { is_power_of_2 589 drivers/gpio/gpio-mmio.c if (!is_power_of_2(sz)) is_power_of_2 993 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c } else if (!is_power_of_2(amdgpu_sched_jobs)){ is_power_of_2 167 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c if (!is_power_of_2(args->ring_size) && (args->ring_size != 0)) { is_power_of_2 371 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c if (!is_power_of_2(args->ring_size) && (args->ring_size != 0)) { is_power_of_2 566 drivers/gpu/drm/drm_atomic_uapi.c if (!is_power_of_2(val & DRM_MODE_ROTATE_MASK)) { is_power_of_2 267 drivers/gpu/drm/drm_blend.c WARN_ON(!is_power_of_2(rotation & DRM_MODE_ROTATE_MASK)); is_power_of_2 489 drivers/gpu/drm/drm_mm.c remainder_mask = is_power_of_2(alignment) ? alignment - 1 : 0; is_power_of_2 700 drivers/gpu/drm/drm_mm.c scan->remainder_mask = is_power_of_2(alignment) ? alignment - 1 : 0; is_power_of_2 1679 drivers/gpu/drm/drm_modes.c if (!is_power_of_2(rotation & DRM_MODE_ROTATE_MASK)) is_power_of_2 75 drivers/gpu/drm/drm_property.c if (legacy_type && !is_power_of_2(legacy_type)) is_power_of_2 13518 drivers/gpu/drm/i915/display/intel_display.c if (is_power_of_2(state->active_crtcs)) { is_power_of_2 143 drivers/gpu/drm/i915/gem/i915_gem_tiling.c if (!is_power_of_2(stride)) is_power_of_2 329 drivers/gpu/drm/i915/gt/intel_engine.h GEM_BUG_ON(!is_power_of_2(size)); is_power_of_2 481 drivers/gpu/drm/i915/gt/intel_engine_cs.c GEM_BUG_ON(!is_power_of_2(execlists_num_ports(execlists))); is_power_of_2 3773 drivers/gpu/drm/i915/gt/intel_lrc.c GEM_BUG_ON(!is_power_of_2(sibling->mask)); is_power_of_2 1305 drivers/gpu/drm/i915/gt/intel_ringbuffer.c GEM_BUG_ON(!is_power_of_2(size)); is_power_of_2 89 drivers/gpu/drm/i915/gt/intel_workarounds.c GEM_BUG_ON(!is_power_of_2(grow)); is_power_of_2 384 drivers/gpu/drm/i915/gt/intel_workarounds.c if (!is_power_of_2(RUNTIME_INFO(i915)->sseu.subslice_7eu[i])) is_power_of_2 787 drivers/gpu/drm/i915/gt/intel_workarounds.c if (INTEL_GEN(i915) >= 10 && is_power_of_2(sseu->slice_mask)) { is_power_of_2 103 drivers/gpu/drm/i915/i915_buddy.c if (!is_power_of_2(chunk_size)) is_power_of_2 132 drivers/gpu/drm/i915/i915_gem_fence_reg.c GEM_BUG_ON(!is_power_of_2(vma->fence_size)); is_power_of_2 139 drivers/gpu/drm/i915/i915_gem_fence_reg.c GEM_BUG_ON(!is_power_of_2(stride)); is_power_of_2 170 drivers/gpu/drm/i915/i915_gem_fence_reg.c GEM_BUG_ON(!is_power_of_2(vma->fence_size)); is_power_of_2 171 drivers/gpu/drm/i915/i915_gem_fence_reg.c GEM_BUG_ON(!is_power_of_2(stride / 128)); is_power_of_2 3734 drivers/gpu/drm/i915/i915_gem_gtt.c GEM_BUG_ON(alignment && !is_power_of_2(alignment)); is_power_of_2 1154 drivers/gpu/drm/i915/i915_request.c if (is_power_of_2(prev->engine->mask | rq->engine->mask)) is_power_of_2 172 drivers/gpu/drm/i915/i915_vma.c GEM_BUG_ON(!is_power_of_2(vma->fence_alignment)); is_power_of_2 444 drivers/gpu/drm/i915/i915_vma.c GEM_BUG_ON(alignment && !is_power_of_2(alignment)); is_power_of_2 563 drivers/gpu/drm/i915/i915_vma.c GEM_BUG_ON(!is_power_of_2(alignment)); is_power_of_2 950 drivers/gpu/drm/i915/intel_device_info.c if (enabled_mask == 0 || !is_power_of_2(enabled_mask + 1)) is_power_of_2 1831 drivers/gpu/drm/i915/intel_uncore.c GEM_BUG_ON(!is_power_of_2(entry->size)); is_power_of_2 65 drivers/gpu/drm/i915/selftests/i915_buddy.c if (!is_power_of_2(block_size)) { is_power_of_2 523 drivers/gpu/drm/i915/selftests/i915_syncmap.c if (!is_power_of_2(leaf->bitmap)) { is_power_of_2 18 drivers/gpu/drm/msm/msm_ringbuffer.c BUILD_BUG_ON(!is_power_of_2(MSM_GPU_RINGBUFFER_SZ)); is_power_of_2 229 drivers/gpu/drm/nouveau/nouveau_gem.c if (is_power_of_2(nvbo->valid_domains)) is_power_of_2 91 drivers/gpu/drm/udl/udl_fb.c BUG_ON(!is_power_of_2(fb->base.format->cpp[0])); is_power_of_2 1370 drivers/hwmon/adt7462.c if (input < 1 || !is_power_of_2(input)) is_power_of_2 926 drivers/hwmon/adt7470.c if (input < 1 || !is_power_of_2(input)) is_power_of_2 128 drivers/hwtracing/intel_th/pti.c if (!is_power_of_2(val) || val > 8 || !val) is_power_of_2 540 drivers/i2c/busses/i2c-ocores.c if (!is_power_of_2(val)) { is_power_of_2 198 drivers/iio/adc/qcom-spmi-adc5.c if (!is_power_of_2(value) || value > ADC5_AVG_SAMPLES_MAX) is_power_of_2 438 drivers/iio/adc/qcom-spmi-vadc.c if (!is_power_of_2(value) || value > VADC_AVG_SAMPLES_MAX) is_power_of_2 405 drivers/iio/adc/qcom-vadc-common.c if (!is_power_of_2(value) || value < VADC_DECIMATION_MIN || is_power_of_2 811 drivers/iio/chemical/bme680_core.c return (rate > 0 && rate <= 16 && is_power_of_2(rate)); is_power_of_2 1448 drivers/infiniband/hw/hfi1/init.c if (hfi1_cu > 128 || !is_power_of_2(hfi1_cu)) is_power_of_2 1686 drivers/infiniband/hw/hfi1/init.c if (!is_power_of_2(eager_buffer_size)) is_power_of_2 735 drivers/infiniband/hw/hfi1/sdma.c if (!is_power_of_2(count)) is_power_of_2 922 drivers/infiniband/hw/hfi1/tid_rdma.c else if (!is_power_of_2(bufsize)) is_power_of_2 978 drivers/infiniband/hw/hfi1/tid_rdma.c else if (!is_power_of_2(maxpages)) is_power_of_2 632 drivers/infiniband/hw/hfi1/user_exp_rcv.c else if (!is_power_of_2(bufsize)) is_power_of_2 535 drivers/infiniband/hw/mlx5/qp.c if (ucmd->sq_wqe_count && !is_power_of_2(ucmd->sq_wqe_count)) { is_power_of_2 58 drivers/infiniband/hw/vmw_pvrdma/pvrdma_doorbell.c if (!is_power_of_2(num)) is_power_of_2 127 drivers/infiniband/sw/rxe/rxe_mr.c BUILD_BUG_ON(!is_power_of_2(RXE_BUF_PER_MAP)); is_power_of_2 381 drivers/input/keyboard/cap11xx.c if (is_power_of_2(gain32) && gain32 <= 8) is_power_of_2 405 drivers/input/keyboard/pmic8xxx-keypad.c !is_power_of_2(scan_delay_ms)) { is_power_of_2 393 drivers/input/keyboard/qt1050.c if (is_power_of_2(button.samples)) is_power_of_2 403 drivers/input/keyboard/qt1050.c if (is_power_of_2(button.scale)) is_power_of_2 1505 drivers/iommu/amd_iommu.c BUG_ON(!is_power_of_2(page_size)); is_power_of_2 1729 drivers/iommu/amd_iommu.c BUG_ON(!is_power_of_2(page_size)); is_power_of_2 1749 drivers/iommu/amd_iommu.c BUG_ON(unmapped && !is_power_of_2(unmapped)); is_power_of_2 830 drivers/iommu/fsl_pamu_domain.c if (w_count > pamu_get_max_subwin_cnt() || !is_power_of_2(w_count)) { is_power_of_2 38 drivers/iommu/iova.c BUG_ON((granule > PAGE_SIZE) || !is_power_of_2(granule)); is_power_of_2 2413 drivers/irqchip/irq-gic-v3-its.c if (WARN_ON(!is_power_of_2(nvecs))) is_power_of_2 599 drivers/md/bcache/bset.c struct bkey *l = is_power_of_2(j) is_power_of_2 603 drivers/md/bcache/bset.c struct bkey *r = is_power_of_2(j + 1) is_power_of_2 149 drivers/md/bcache/super.c if (!is_power_of_2(sb->block_size) || is_power_of_2 151 drivers/md/bcache/super.c !is_power_of_2(sb->bucket_size) || is_power_of_2 1630 drivers/md/dm-bufio.c if (is_power_of_2(block_size)) is_power_of_2 1659 drivers/md/dm-bufio.c (block_size < PAGE_SIZE || !is_power_of_2(block_size))) { is_power_of_2 1664 drivers/md/dm-clone-target.c if (!is_power_of_2(region_size)) { is_power_of_2 2365 drivers/md/dm-crypt.c !is_power_of_2(cc->tfms_count)) { is_power_of_2 304 drivers/md/dm-dust.c if (!is_power_of_2(blksz)) { is_power_of_2 165 drivers/md/dm-exception-store.c if (!is_power_of_2(chunk_size)) { is_power_of_2 351 drivers/md/dm-log.c if (!is_power_of_2(region_size)) is_power_of_2 970 drivers/md/dm-raid.c if (!is_power_of_2(region_size)) { is_power_of_2 1146 drivers/md/dm-raid.c } else if (!is_power_of_2(value)) { is_power_of_2 1489 drivers/md/dm-table.c if (!zone_sectors || !is_power_of_2(zone_sectors)) is_power_of_2 89 drivers/md/dm-unstripe.c uc->chunk_shift = is_power_of_2(uc->chunk_size) ? fls(uc->chunk_size) - 1 : 0; is_power_of_2 539 drivers/md/md-bitmap.c if (!is_power_of_2(chunksize)) { is_power_of_2 662 drivers/md/md-bitmap.c else if (!is_power_of_2(chunksize)) is_power_of_2 2515 drivers/md/md-bitmap.c !is_power_of_2(csize)) is_power_of_2 335 drivers/md/raid0.c if (is_power_of_2(chunk_sects)) { is_power_of_2 466 drivers/md/raid0.c if (likely(is_power_of_2(chunk_sects))) { is_power_of_2 592 drivers/md/raid0.c (likely(is_power_of_2(chunk_sects)) is_power_of_2 3601 drivers/md/raid10.c !is_power_of_2(chunk)) is_power_of_2 6912 drivers/md/raid5.c !is_power_of_2(mddev->new_chunk_sectors)) { is_power_of_2 8205 drivers/md/raid5.c if (!is_power_of_2(new_chunk)) is_power_of_2 8239 drivers/md/raid5.c if (!is_power_of_2(new_chunk)) is_power_of_2 69 drivers/media/rc/img-ir/img-ir-nec.c if (!is_power_of_2(protocols)) { is_power_of_2 75 drivers/media/rc/img-ir/img-ir-sony.c if (!is_power_of_2(protocols)) { is_power_of_2 267 drivers/memstick/host/tifm_ms.c if (!is_power_of_2(data_len)) is_power_of_2 625 drivers/misc/eeprom/at24.c if (!is_power_of_2(page_size)) is_power_of_2 4991 drivers/misc/habanalabs/goya/goya.c if ((!is_power_of_2(dram_size)) || is_power_of_2 27 drivers/misc/mei/dma-ring.c if (WARN_ON(!is_power_of_2(dscr->size))) is_power_of_2 1506 drivers/mmc/core/core.c if (is_power_of_2(card->erase_size)) is_power_of_2 1815 drivers/mmc/core/core.c if (is_power_of_2(card->erase_size)) { is_power_of_2 1176 drivers/mmc/host/bcm2835.c if (mrq->data && !is_power_of_2(mrq->data->blksz)) { is_power_of_2 668 drivers/mmc/host/meson-gx-mmc.c if (!is_power_of_2(blksz)) is_power_of_2 453 drivers/mmc/host/mmci.c if (!is_power_of_2(data->blksz)) { is_power_of_2 642 drivers/mmc/host/tifm_sd.c if (mrq->data && !is_power_of_2(mrq->data->blksz)) is_power_of_2 642 drivers/mtd/mtdcore.c if (is_power_of_2(mtd->erasesize)) is_power_of_2 647 drivers/mtd/mtdcore.c if (is_power_of_2(mtd->writesize)) is_power_of_2 1123 drivers/mtd/nand/raw/meson_nand.c if (!is_power_of_2(tbers_clocks)) is_power_of_2 162 drivers/mtd/sm_ftl.c if (lba_test && !is_power_of_2(lba_test)) is_power_of_2 290 drivers/mtd/sm_ftl.c if (oob->reserved != 0xFFFFFFFF && !is_power_of_2(~oob->reserved)) is_power_of_2 623 drivers/mtd/ubi/build.c if (!is_power_of_2(ubi->min_io_size)) { is_power_of_2 640 drivers/mtd/ubi/build.c !is_power_of_2(ubi->max_write_size)) { is_power_of_2 433 drivers/net/ethernet/brocade/bna/bnad_ethtool.c !is_power_of_2(ringparam->rx_pending)) { is_power_of_2 439 drivers/net/ethernet/brocade/bna/bnad_ethtool.c !is_power_of_2(ringparam->tx_pending)) { is_power_of_2 2422 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c if (!is_power_of_2(m.rx_pg_sz) || is_power_of_2 2423 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c !is_power_of_2(m.tx_pg_sz)) is_power_of_2 1175 drivers/net/ethernet/faraday/ftgmac100.c !is_power_of_2(ering->rx_pending) || is_power_of_2 1176 drivers/net/ethernet/faraday/ftgmac100.c !is_power_of_2(ering->tx_pending)) is_power_of_2 439 drivers/net/ethernet/freescale/gianfar_ethtool.c if (!is_power_of_2(rvals->rx_pending)) { is_power_of_2 447 drivers/net/ethernet/freescale/gianfar_ethtool.c if (!is_power_of_2(rvals->tx_pending)) { is_power_of_2 515 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c if (!is_power_of_2(wqebb_size)) { is_power_of_2 534 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c if (!is_power_of_2(num_wqebbs_per_page)) { is_power_of_2 612 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c if (!is_power_of_2(wqebb_size)) { is_power_of_2 631 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c if (!is_power_of_2(num_wqebbs_per_page)) { is_power_of_2 1692 drivers/net/ethernet/intel/i40e/i40e_main.c if (!is_power_of_2(num_qps)) is_power_of_2 5703 drivers/net/ethernet/intel/i40e/i40e_main.c (!is_power_of_2(num_queues))) { is_power_of_2 5711 drivers/net/ethernet/intel/i40e/i40e_main.c if (!is_power_of_2(num_queues)) { is_power_of_2 5812 drivers/net/ethernet/intel/i40e/i40e_main.c if (!is_power_of_2(qcount)) is_power_of_2 6163 drivers/net/ethernet/intel/i40e/i40e_main.c if (!is_power_of_2(vsi->tc_config.tc_info[0].qcount)) { is_power_of_2 782 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c !is_power_of_2(req->rss_sz))) is_power_of_2 1283 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (!is_power_of_2(rss_rings)) is_power_of_2 225 drivers/net/ethernet/mellanox/mlx4/main.c if (!is_power_of_2(value)) { is_power_of_2 918 drivers/net/ethernet/mellanox/mlx4/mr.c if (!is_power_of_2(dev->caps.num_mpts)) is_power_of_2 2383 drivers/net/ethernet/myricom/myri10ge/myri10ge.c while (!is_power_of_2(big_pow2)) is_power_of_2 395 drivers/net/ethernet/netronome/nfp/abm/ctrl.c if (!is_power_of_2(abm->num_bands) || !is_power_of_2(abm->num_prios) || is_power_of_2 301 drivers/net/ethernet/pensando/ionic/ionic_dev.c if (desc_size == 0 || !is_power_of_2(num_descs)) is_power_of_2 382 drivers/net/ethernet/pensando/ionic/ionic_dev.c if (desc_size == 0 || !is_power_of_2(num_descs)) is_power_of_2 462 drivers/net/ethernet/pensando/ionic/ionic_ethtool.c if (!is_power_of_2(ring->tx_pending) || is_power_of_2 463 drivers/net/ethernet/pensando/ionic/ionic_ethtool.c !is_power_of_2(ring->rx_pending)) { is_power_of_2 4017 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c if (!is_power_of_2(ring_cnt)) { is_power_of_2 764 drivers/net/wireless/ath/ath10k/htt_rx.c if (!is_power_of_2(htt->rx_ring.size)) { is_power_of_2 57 drivers/net/wireless/ath/ath10k/spectral.c if (!is_power_of_2(bin_len)) is_power_of_2 457 drivers/net/wireless/ath/ath10k/spectral.c if (!is_power_of_2(val)) is_power_of_2 117 drivers/net/wireless/ath/ath5k/qcu.c if (is_power_of_2(cw_req + 1)) is_power_of_2 121 drivers/net/wireless/ath/ath5k/qcu.c if (is_power_of_2(cw_req)) is_power_of_2 2946 drivers/net/wireless/intel/iwlegacy/common.c BUG_ON(!is_power_of_2(slots)); is_power_of_2 143 drivers/net/wireless/intel/iwlwifi/pcie/tx.c if (WARN_ON(!is_power_of_2(slots_num))) is_power_of_2 413 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c if (!is_power_of_2(tx_bd_size) || val > PCIE_HHBM_MAX_SIZE) { is_power_of_2 423 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c if (!priv->rx_bd_num || !is_power_of_2(priv->rx_bd_num)) { is_power_of_2 259 drivers/nvdimm/bus.c if (!clear_err_unit || !is_power_of_2(clear_err_unit)) is_power_of_2 2206 drivers/nvme/host/core.c is_power_of_2(ctrl->max_hw_sectors)) is_power_of_2 332 drivers/pci/controller/dwc/pci-meson.c if (!is_power_of_2(size) || size < 128 || size > 4096) { is_power_of_2 5590 drivers/pci/pci.c if (mmrbc < 512 || mmrbc > 4096 || !is_power_of_2(mmrbc)) is_power_of_2 5650 drivers/pci/pci.c if (rq < 128 || rq > 4096 || !is_power_of_2(rq)) is_power_of_2 5700 drivers/pci/pci.c if (mps < 128 || mps > 4096 || !is_power_of_2(mps)) is_power_of_2 935 drivers/rapidio/devices/tsi721.c if (!is_power_of_2(size) || (size < 0x8000) || (rstart & (size - 1))) is_power_of_2 1133 drivers/rapidio/devices/tsi721.c if (!is_power_of_2(size) || size < 0x1000 || is_power_of_2 1882 drivers/rapidio/devices/tsi721.c (!is_power_of_2(entries)) || mbox >= RIO_MAX_MBOX) { is_power_of_2 2171 drivers/rapidio/devices/tsi721.c (!is_power_of_2(entries)) || mbox >= RIO_MAX_MBOX) { is_power_of_2 156 drivers/rtc/rtc-s3c.c if (!is_power_of_2(freq)) is_power_of_2 721 drivers/s390/block/dasd_int.h if (bsize < 512 || bsize > 4096 || !is_power_of_2(bsize)) is_power_of_2 774 drivers/scsi/bfa/bfad.c is_power_of_2(pcie_max_read_reqsz)) { is_power_of_2 55 drivers/scsi/bnx2i/bnx2i_hwi.c if (!is_power_of_2(hba->max_sqes)) is_power_of_2 58 drivers/scsi/bnx2i/bnx2i_hwi.c if (!is_power_of_2(hba->max_rqes)) is_power_of_2 474 drivers/scsi/bnx2i/bnx2i_init.c if (sq_size && !is_power_of_2(sq_size)) is_power_of_2 75 drivers/scsi/bnx2i/bnx2i_sysfs.c (is_power_of_2(val))) is_power_of_2 2769 drivers/scsi/libiscsi.c if (!is_power_of_2(total_cmds)) { is_power_of_2 1194 drivers/scsi/libiscsi_tcp.c if (!r2ts || !is_power_of_2(r2ts)) is_power_of_2 433 drivers/scsi/sd_zbc.c } else if (!is_power_of_2(zone_blocks)) { is_power_of_2 111 drivers/soc/fsl/qbman/bman_ccsr.c is_power_of_2(size)); is_power_of_2 353 drivers/soc/fsl/qbman/qman_ccsr.c is_power_of_2(size)); is_power_of_2 63 drivers/staging/fwserial/dma_fifo.c if (!is_power_of_2(align) || size < 0) is_power_of_2 834 drivers/usb/gadget/udc/udc-xilinx.c if (!(is_power_of_2(maxpacket) && maxpacket >= 8 && is_power_of_2 125 fs/block_dev.c if (size > PAGE_SIZE || size < 512 || !is_power_of_2(size)) is_power_of_2 2420 fs/btrfs/disk-io.c if (!is_power_of_2(sectorsize) || sectorsize < 4096 || is_power_of_2 2432 fs/btrfs/disk-io.c if (!is_power_of_2(nodesize) || nodesize < sectorsize || is_power_of_2 2477 fs/btrfs/disk-io.c if (!is_power_of_2(btrfs_super_stripesize(sb))) { is_power_of_2 610 fs/btrfs/tree-checker.c if (!is_power_of_2(stripe_len) || stripe_len != BTRFS_STRIPE_LEN) { is_power_of_2 626 fs/btrfs/tree-checker.c if (!is_power_of_2(type & BTRFS_BLOCK_GROUP_PROFILE_MASK) && is_power_of_2 806 fs/btrfs/tree-checker.c if (!is_power_of_2(mode & S_IFMT)) { is_power_of_2 1027 fs/btrfs/tree-checker.c if (!is_power_of_2(flags & (BTRFS_EXTENT_FLAG_DATA | is_power_of_2 1014 fs/ext2/super.c !is_power_of_2(sbi->s_inode_size) || is_power_of_2 1914 fs/ext4/super.c if (arg && (arg > (1 << 30) || !is_power_of_2(arg))) { is_power_of_2 3811 fs/ext4/super.c (!is_power_of_2(sbi->s_inode_size)) || is_power_of_2 4096 fs/ext4/super.c !is_power_of_2(sbi->s_desc_size)) { is_power_of_2 90 fs/ext4/sysfs.c if (t && (!is_power_of_2(t) || t > 0x40000000)) is_power_of_2 1506 fs/fat/inode.c if (!is_power_of_2(bpb->fat_sector_size) is_power_of_2 1515 fs/fat/inode.c if (!is_power_of_2(bpb->fat_sec_per_clus)) { is_power_of_2 96 fs/hfs/btree.c if (!is_power_of_2(size)) is_power_of_2 232 fs/hfsplus/btree.c if (!is_power_of_2(size)) is_power_of_2 266 fs/jbd2/revoke.c J_ASSERT(is_power_of_2(hash_size)); is_power_of_2 2194 fs/namespace.c if (!is_power_of_2(type)) is_power_of_2 1548 fs/ntfs/inode.c if (!is_power_of_2(ni->itype.index.block_size)) { is_power_of_2 56 fs/ntfs/logfile.c !is_power_of_2(logfile_log_page_size)) { is_power_of_2 772 fs/pstore/ram.c if (pdata->record_size && !is_power_of_2(pdata->record_size)) is_power_of_2 774 fs/pstore/ram.c if (pdata->console_size && !is_power_of_2(pdata->console_size)) is_power_of_2 776 fs/pstore/ram.c if (pdata->ftrace_size && !is_power_of_2(pdata->ftrace_size)) is_power_of_2 778 fs/pstore/ram.c if (pdata->pmsg_size && !is_power_of_2(pdata->pmsg_size)) is_power_of_2 532 fs/ubifs/super.c if (!is_power_of_2(c->min_io_size)) { is_power_of_2 543 fs/ubifs/super.c !is_power_of_2(c->max_write_size)) { is_power_of_2 1343 fs/udf/super.c if (!is_power_of_2(sdata->s_packet_len)) { is_power_of_2 1072 fs/ufs/super.c if (!is_power_of_2(uspi->s_fsize)) { is_power_of_2 1087 fs/ufs/super.c if (!is_power_of_2(uspi->s_bsize)) { is_power_of_2 277 fs/verity/hash_algs.c BUG_ON(!is_power_of_2(alg->digest_size)); is_power_of_2 278 fs/verity/hash_algs.c BUG_ON(!is_power_of_2(alg->block_size)); is_power_of_2 66 fs/verity/open.c if (WARN_ON(!is_power_of_2(params->digest_size))) { is_power_of_2 405 fs/xfs/xfs_super.c !is_power_of_2(mp->m_logbsize))) { is_power_of_2 228 include/asm-generic/div64.h is_power_of_2(__base)) { \ is_power_of_2 31 include/crypto/ctr.h if (WARN_ON_ONCE(!is_power_of_2(blocksize))) is_power_of_2 106 include/linux/generic-radix-tree.h if (!is_power_of_2(obj_size)) { is_power_of_2 188 include/linux/generic-radix-tree.h if (!is_power_of_2(obj_size) && is_power_of_2 21 include/linux/iommu-helper.h BUG_ON(!is_power_of_2(boundary_size)); is_power_of_2 229 include/linux/log2.h if (is_power_of_2(n)) is_power_of_2 203 kernel/bpf/arraymap.c if (is_power_of_2(elem_size)) { is_power_of_2 821 kernel/bpf/arraymap.c if (is_power_of_2(elem_size)) is_power_of_2 2380 kernel/bpf/btf.c if (t->size > 8 || !is_power_of_2(t->size)) { is_power_of_2 5473 kernel/bpf/verifier.c if (is_power_of_2(val)) is_power_of_2 5571 kernel/bpf/verifier.c if (is_power_of_2(val)) is_power_of_2 5771 kernel/events/core.c if (!is_power_of_2(nr_pages)) is_power_of_2 5793 kernel/events/core.c if (nr_pages != 0 && !is_power_of_2(nr_pages)) is_power_of_2 120 lib/hexdump.c if (!is_power_of_2(groupsize) || groupsize > 8) is_power_of_2 71 lib/kfifo.c if (!is_power_of_2(size)) is_power_of_2 84 lib/test_hexdump.c if (!is_power_of_2(gs) || gs > 8 || (len % gs != 0)) is_power_of_2 270 mm/cma.c if (alignment && !is_power_of_2(alignment)) is_power_of_2 1615 mm/percpu.c !is_power_of_2(align))) { is_power_of_2 1056 mm/slab_common.c if (is_power_of_2(size)) is_power_of_2 487 mm/slob.c if (is_power_of_2(size)) is_power_of_2 1061 mm/vmalloc.c BUG_ON(!is_power_of_2(align)); is_power_of_2 3239 mm/vmalloc.c BUG_ON(offset_in_page(align) || !is_power_of_2(align)); is_power_of_2 208 net/core/sysctl_net_core.c if (!ret && write && !is_power_of_2(*ptr)) { is_power_of_2 409 net/ipv4/tcp_cdg.c if (!is_power_of_2(window)) is_power_of_2 1799 net/netfilter/ipvs/ip_vs_ctl.c if (val < 1 || !is_power_of_2(val)) is_power_of_2 646 net/netfilter/nft_payload.c if (len <= 4 && is_power_of_2(len) && IS_ALIGNED(offset, len) && is_power_of_2 929 net/sched/cls_u32.c if (!is_power_of_2(divisor)) { is_power_of_2 638 net/sched/sch_sfq.c (!is_power_of_2(ctl->divisor) || ctl->divisor > 65536)) is_power_of_2 362 net/xdp/xdp_umem.c if (!unaligned_chunks && !is_power_of_2(chunk_size)) is_power_of_2 465 net/xdp/xsk.c if (entries == 0 || *queue || !is_power_of_2(entries)) is_power_of_2 208 scripts/dtc/dtc.c if (!is_power_of_2(alignsize)) is_power_of_2 1177 sound/soc/codecs/sta350.c if (is_power_of_2(tmp8) && tmp8 >= 1 && tmp8 <= 128) is_power_of_2 381 tools/perf/arch/arm/util/cs-etm.c if (!is_power_of_2(sz)) { is_power_of_2 109 tools/perf/arch/arm64/util/arm-spe.c if (sz < min_sz || !is_power_of_2(sz)) { is_power_of_2 204 tools/perf/arch/x86/util/intel-bts.c if (sz < min_sz || !is_power_of_2(sz)) { is_power_of_2 690 tools/perf/arch/x86/util/intel-pt.c if (sz < min_sz || !is_power_of_2(sz)) { is_power_of_2 121 tools/perf/util/auxtrace.c mp->mask = is_power_of_2(mp->len) ? mp->len - 1 : 0; is_power_of_2 783 tools/perf/util/evlist.c if (!is_power_of_2(pages)) is_power_of_2 793 tools/perf/util/evlist.c else if (!is_power_of_2(pages)) is_power_of_2 828 tools/perf/util/evlist.c } else if (!is_power_of_2(pages)) {