ilog2 1257 arch/alpha/kernel/setup.c maxsize = 1 << (ilog2(max_low_pfn + 1) + PAGE_SHIFT); ilog2 41 arch/arc/plat-eznps/mtm.c log_nat = ilog2(nat); ilog2 26 arch/arm/include/asm/cpufeature.h #define __hwcap_feature(x) ilog2(HWCAP_ ## x) ilog2 27 arch/arm/include/asm/cpufeature.h #define __hwcap2_feature(x) (32 + ilog2(HWCAP2_ ## x)) ilog2 58 arch/arm/mach-davinci/sram.c sram_pool = gen_pool_create(ilog2(SRAM_GRANULARITY), -1); ilog2 91 arch/arm/mach-mmp/sram.c info->gpool = gen_pool_create(ilog2(info->granularity), -1); ilog2 1009 arch/arm/mm/cache-l2x0.c way_size_bits = ilog2(way_size >> 10) - 3; ilog2 445 arch/arm/mm/pmsa-v7.c err |= mpu_setup_region(region++, xip[i].base, ilog2(xip[i].size), ilog2 456 arch/arm/mm/pmsa-v7.c err |= mpu_setup_region(region++, mem[i].base, ilog2(mem[i].size), ilog2 463 arch/arm/mm/pmsa-v7.c err |= mpu_setup_region(region++, vectors_base, ilog2(2 * PAGE_SIZE), ilog2 451 arch/arm64/mm/hugetlbpage.c hugetlb_add_hstate(ilog2(size) - PAGE_SHIFT); ilog2 173 arch/csky/mm/asid.c info->ctxt_shift = ilog2(asid_per_ctxt); ilog2 52 arch/mips/bcm63xx/cs.c val |= (ilog2(size) - ilog2(8 * 1024)) << MPI_CSBASE_SIZE_SHIFT; ilog2 15 arch/mips/include/asm/cpufeature.h #define cpu_feature(x) ilog2(HWCAP_ ## x) ilog2 387 arch/mips/kvm/entry.c uasm_i_sll(&p, T2, T2, ilog2(sizeof(long))); ilog2 651 arch/mips/kvm/trap_emul.c config1 |= ((ilog2(cpu_dcache_line_size()) - 1) << ilog2 82 arch/mips/lib/dump_tlb.c int asidwidth = DIV_ROUND_UP(ilog2(asidmask) + 1, 4); ilog2 374 arch/mips/mm/tlbex.c UASM_i_SLL(p, K0, K0, ilog2(sizeof(struct tlb_reg_save))); ilog2 634 arch/mips/mm/tlbex.c UASM_i_ROTR(p, reg, reg, ilog2(_PAGE_GLOBAL)); ilog2 636 arch/mips/mm/tlbex.c UASM_i_SRL(p, reg, reg, ilog2(_PAGE_NO_EXEC)); ilog2 638 arch/mips/mm/tlbex.c ilog2(_PAGE_GLOBAL) - ilog2(_PAGE_NO_EXEC)); ilog2 642 arch/mips/mm/tlbex.c uasm_i_dsrl_safe(p, reg, reg, ilog2(_PAGE_GLOBAL)); ilog2 644 arch/mips/mm/tlbex.c UASM_i_SRL(p, reg, reg, ilog2(_PAGE_GLOBAL)); ilog2 724 arch/mips/mm/tlbex.c uasm_il_bbit1(p, r, tmp, ilog2(_PAGE_HUGE), lid); ilog2 1061 arch/mips/mm/tlbex.c UASM_i_ROTR(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); ilog2 1071 arch/mips/mm/tlbex.c UASM_i_ROTR(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); ilog2 1234 arch/mips/mm/tlbex.c uasm_il_bbit1(p, r, scratch, ilog2(_PAGE_HUGE), label_tlb_huge_update); ilog2 1260 arch/mips/mm/tlbex.c uasm_i_drotr(p, even, even, ilog2(_PAGE_GLOBAL)); ilog2 1262 arch/mips/mm/tlbex.c uasm_i_drotr(p, odd, odd, ilog2(_PAGE_GLOBAL)); ilog2 1264 arch/mips/mm/tlbex.c uasm_i_dsrl_safe(p, even, even, ilog2(_PAGE_GLOBAL)); ilog2 1266 arch/mips/mm/tlbex.c uasm_i_dsrl_safe(p, odd, odd, ilog2(_PAGE_GLOBAL)); ilog2 1493 arch/mips/mm/tlbex.c psn = ilog2(_PAGE_HUGE); /* bit used to indicate huge page */ ilog2 1508 arch/mips/mm/tlbex.c pte_i = ilog2(_PAGE_GLOBAL); ilog2 1765 arch/mips/mm/tlbex.c uasm_il_bbit0(p, r, pte, ilog2(_PAGE_PRESENT), lid); ilog2 1854 arch/mips/mm/tlbex.c uasm_il_bbit0(p, r, pte, ilog2(_PAGE_WRITE), lid); ilog2 2144 arch/mips/mm/tlbex.c uasm_il_bbit0(&p, &r, wr.r1, ilog2(_PAGE_VALID), ilog2 2176 arch/mips/mm/tlbex.c uasm_i_bbit0(&p, wr.r2, ilog2(sizeof(pte_t)), 8); ilog2 2219 arch/mips/mm/tlbex.c uasm_il_bbit0(&p, &r, wr.r1, ilog2(_PAGE_VALID), ilog2 2251 arch/mips/mm/tlbex.c uasm_i_bbit0(&p, wr.r2, ilog2(sizeof(pte_t)), 8); ilog2 2514 arch/mips/mm/tlbex.c pwsize = ilog2(PTRS_PER_PGD) << MIPS_PWSIZE_GDW_SHIFT; ilog2 2515 arch/mips/mm/tlbex.c pwsize |= ilog2(PTRS_PER_PTE) << MIPS_PWSIZE_PTW_SHIFT; ilog2 2517 arch/mips/mm/tlbex.c pwsize |= ilog2(PTRS_PER_PMD) << MIPS_PWSIZE_MDW_SHIFT; ilog2 2595 arch/mips/mm/tlbex.c if (fillbits >= ilog2(_PAGE_NO_EXEC)) ilog2 102 arch/nios2/kernel/cpuinfo.c cpuinfo.tlb_num_ways_log2 = ilog2(cpuinfo.tlb_num_ways); ilog2 206 arch/powerpc/include/asm/bitops.h #define __ilog2(x) ilog2(x) ilog2 24 arch/powerpc/include/asm/cpufeature.h #define PPC_MODULE_FEATURE_VEC_CRYPTO (32 + ilog2(PPC_FEATURE2_VEC_CRYPTO)) ilog2 414 arch/powerpc/kernel/setup-common.c threads_shift = ilog2(tpc); ilog2 108 arch/powerpc/kernel/sysfs.c return ilog2(cycle); ilog2 767 arch/powerpc/kvm/e500_mmu.c sets = params.tlb_sizes[0] >> ilog2(params.tlb_ways[0]); ilog2 237 arch/powerpc/platforms/4xx/pci.c ma = (0xffffffffu << ilog2(size)) | 1; ilog2 303 arch/powerpc/platforms/4xx/pci.c sa = (0xffffffffu << ilog2(size)) | 1; ilog2 431 arch/powerpc/platforms/4xx/pci.c sa = (0xffffffffu << ilog2(size)) | 0x1; ilog2 508 arch/powerpc/platforms/4xx/pci.c sa = (0xffffffffu << ilog2(size)) | 1; ilog2 1734 arch/powerpc/platforms/4xx/pci.c sa = (0xffffffffu << ilog2(size)) | 0x1; ilog2 1858 arch/powerpc/platforms/4xx/pci.c sa = (0xffffffffffffffffull << ilog2(ep_size)); ilog2 1877 arch/powerpc/platforms/4xx/pci.c sa = (0xffffffffffffffffull << ilog2(size)); ilog2 236 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_event_irq = opal_event_request(ilog2(OPAL_EVENT_PCI_ERROR)); ilog2 418 arch/powerpc/platforms/powernv/opal-dump.c dump_irq = opal_event_request(ilog2(OPAL_EVENT_DUMP_AVAIL)); ilog2 295 arch/powerpc/platforms/powernv/opal-elog.c irq = opal_event_request(ilog2(OPAL_EVENT_ERROR_LOG_AVAIL)); ilog2 327 arch/powerpc/platforms/powernv/opal.c irq = opal_event_request(ilog2(OPAL_EVENT_MSG_PENDING)); ilog2 59 arch/powerpc/platforms/powernv/pci-ioda-tce.c const long shift = ilog2(tbl->it_level_size); ilog2 73 arch/powerpc/platforms/powernv/pci-ioda-tce.c ilog2(tbl->it_level_size) + 3); ilog2 82 arch/powerpc/platforms/powernv/pci-ioda-tce.c ilog2(tbl->it_level_size) + 3, 1); ilog2 270 arch/powerpc/platforms/powernv/pci-ioda-tce.c const unsigned int window_shift = ilog2(window_size); ilog2 2422 arch/powerpc/platforms/powernv/pci-ioda.c unsigned long tces_order = ilog2(window_size >> PAGE_SHIFT); ilog2 2423 arch/powerpc/platforms/powernv/pci-ioda.c unsigned long tcelevel_order = ilog2(maxblock >> 3); ilog2 2504 arch/powerpc/platforms/powernv/pci-ioda.c const unsigned window_shift = ilog2(window_size); ilog2 434 arch/powerpc/platforms/powernv/vas-window.c val = SET_FIELD(VAS_LFIFO_SIZE, val, ilog2(fifo_size)); ilog2 160 arch/powerpc/sysdev/fsl_pci.c unsigned int bits = min_t(u32, ilog2(size), ilog2 279 arch/powerpc/sysdev/fsl_pci.c | (ilog2(hose->io_resource.end ilog2 345 arch/powerpc/sysdev/fsl_pci.c mem_log = ilog2(sz); ilog2 376 arch/powerpc/sysdev/fsl_pci.c mem_log = ilog2(mem); ilog2 419 arch/powerpc/sysdev/fsl_pci.c mem_log = ilog2(sz); ilog2 311 arch/powerpc/sysdev/fsl_rio.c base_size_log = ilog2(size); ilog2 716 arch/powerpc/sysdev/fsl_rio.c 0x80077000 | (ilog2(RIO_MAINT_WIN_SIZE) - 1)); ilog2 26 arch/s390/include/asm/cpufeature.h #define cpu_feature(feat) ilog2(HWCAP_S390_ ## feat) ilog2 73 arch/s390/kernel/nmi.c lc->mcesad |= ilog2(MCESA_MAX_SIZE); ilog2 84 arch/s390/kernel/nmi.c mcesa_origin_lc = ilog2(size); ilog2 22 arch/s390/mm/hugetlbpage.c #define move_set_bit(x, a, b) (((x) & (a)) >> ilog2(a) << ilog2(b)) ilog2 354 arch/s390/mm/pageattr.c nr = (unsigned long)pte >> ilog2(sizeof(long)); ilog2 200 arch/sh/kernel/cpu/init.c CSHAPE((desc).way_size * (desc).ways, ilog2((desc).linesz), (desc).ways) ilog2 1086 arch/sparc/kernel/mdesc.c get_one_mondo_bits(val, &tb->cpu_mondo_qmask, 7, ilog2(max_cpus * 2)); ilog2 219 arch/sparc/mm/init_64.c ((1UL<<ilog2(roundup_pow_of_two(NR_CPUS)))-1UL) ilog2 335 arch/sparc/mm/init_64.c order = ilog2(size) - PAGE_SHIFT; ilog2 372 arch/sparc/mm/init_64.c hugepage_shift = ilog2(hugepage_size); ilog2 2317 arch/sparc/mm/init_64.c ilog2(roundup_pow_of_two(NR_CPUS)) > 32); ilog2 28 arch/x86/include/asm/div64.h n >>= ilog2(__base); \ ilog2 1313 arch/x86/include/asm/pgtable.h #define PTE_SHIFT ilog2(PTRS_PER_PTE) ilog2 124 arch/x86/kernel/cpu/mce/genpool.c tmpp = gen_pool_create(ilog2(sizeof(struct mce_evt_llist)), -1); ilog2 191 arch/x86/kvm/emulate.c #define NR_FASTOP (ilog2(sizeof(ulong)) + 1) ilog2 406 block/blk-integrity.c ilog2(queue_logical_block_size(disk->queue)); ilog2 236 block/blk-mq-debugfs.c #define HCTX_FLAG_NAME(name) [ilog2(BLK_MQ_F_##name)] = #name ilog2 285 block/blk-mq-debugfs.c #define RQF_NAME(name) [ilog2((__force u32)RQF_##name)] = #name ilog2 53 block/blk-mq.c bucket = ddir + 2 * ilog2(sectors); ilog2 1053 block/blk-mq.c return min(BLK_MQ_MAX_DISPATCH_ORDER - 1, ilog2(queued) + 1); ilog2 2386 block/blk-mq.c if (sbitmap_init_node(&hctx->ctx_map, nr_cpu_ids, ilog2(8), ilog2 78 block/blk-zoned.c return (nr_sectors + zone_sectors - 1) >> ilog2(zone_sectors); ilog2 1636 block/genhd.c [ilog2(DISK_EVENT_MEDIA_CHANGE)] = "media_change", ilog2 1637 block/genhd.c [ilog2(DISK_EVENT_EJECT_REQUEST)] = "eject_request", ilog2 1641 block/genhd.c [ilog2(DISK_EVENT_MEDIA_CHANGE)] = "DISK_MEDIA_CHANGE=1", ilog2 1642 block/genhd.c [ilog2(DISK_EVENT_EJECT_REQUEST)] = "DISK_EJECT_REQUEST=1", ilog2 482 block/kyber-iosched.c ilog2(8), GFP_KERNEL, hctx->numa_node)) { ilog2 779 drivers/base/regmap/regmap.c map->reg_stride_order = ilog2(map->reg_stride); ilog2 10 drivers/block/null_blk_zoned.c return sect >> ilog2(dev->zone_size_sects); ilog2 30 drivers/block/null_blk_zoned.c (SECTOR_SHIFT + ilog2(dev->zone_size_sects)); ilog2 255 drivers/char/agp/hp-agp.c writel(hp->iova_base|ilog2(HP_ZX1_IOVA_SIZE), hp->ioc_regs+HP_ZX1_PCOM); ilog2 283 drivers/char/agp/hp-agp.c writeq(hp->gart_base | ilog2(hp->gart_size), hp->ioc_regs+HP_ZX1_PCOM); ilog2 154 drivers/char/agp/i460-agp.c values[i].page_order = ilog2((sizeof(u32)*values[i].num_entries) >> PAGE_SHIFT); ilog2 93 drivers/char/agp/parisc-agp.c writeq(info->gart_base | ilog2(info->gart_size), info->ioc_regs+IOC_PCOM); ilog2 433 drivers/char/random.c #define S(x) ilog2(x)+5, (x), (x)*4, (x) << (ENTROPY_SHIFT+5) ilog2 159 drivers/clk/analogbits/wrpll-cln28hpc.c divq = ilog2(MAX_DIVQ_DIVISOR); ilog2 162 drivers/clk/analogbits/wrpll-cln28hpc.c divq = ilog2(s); ilog2 48 drivers/clk/qcom/clk-spmi-pmic-div.c return min(ilog2(div) + 1, 7); ilog2 213 drivers/clk/sunxi-ng/ccu_mp.c reg |= ilog2(p) << cmp->p.shift; ilog2 213 drivers/clk/sunxi-ng/ccu_nkmp.c reg |= (ilog2(_nkmp.p) << nkmp->p.shift) & p_mask; ilog2 529 drivers/clk/tegra/clk-pll.c p = ilog2(sel->p); ilog2 220 drivers/clocksource/timer-atmel-pit.c bits = 12 /* PICNT */ + ilog2(data->cycle) /* PIV */; ilog2 167 drivers/crypto/hisilicon/qm.c ((u32)ilog2(sqe_sz) << QM_SQ_SQE_SIZE_SHIFT)) ilog2 170 drivers/crypto/hisilicon/qm.c ((QM_Q_DEPTH - 1) | ((u32)ilog2(sqe_sz) << QM_SQ_SQE_SIZE_SHIFT)) ilog2 865 drivers/dma/fsl-qdma.c reg |= FSL_QDMA_BCQMR_CD_THLD(ilog2(temp->n_cq) - 4); ilog2 866 drivers/dma/fsl-qdma.c reg |= FSL_QDMA_BCQMR_CQ_SIZE(ilog2(temp->n_cq) - 6); ilog2 902 drivers/dma/fsl-qdma.c reg |= FSL_QDMA_BSQMR_CQ_SIZE(ilog2 ilog2 453 drivers/dma/nbpfaxi.c return min_t(int, __ffs(size), ilog2(max_burst)); ilog2 879 drivers/dma/sh/rcar-dmac.c desc->xfer_shift = ilog2(xfer_size); ilog2 1879 drivers/dma/sh/rcar-dmac.c engine->copy_align = ilog2(RCAR_DMAC_MEMCPY_XFER_SIZE); ilog2 582 drivers/dma/stm32-mdma.c ctcr |= STM32_MDMA_CTCR_DBURST((ilog2(dst_best_burst))); ilog2 602 drivers/dma/stm32-mdma.c ctcr |= STM32_MDMA_CTCR_SBURST((ilog2(src_best_burst))); ilog2 630 drivers/dma/stm32-mdma.c ctcr |= STM32_MDMA_CTCR_SBURST((ilog2(src_best_burst))); ilog2 649 drivers/dma/stm32-mdma.c ctcr |= STM32_MDMA_CTCR_DBURST((ilog2(dst_best_burst))); ilog2 997 drivers/dma/stm32-mdma.c mdma_burst = ilog2(best_burst); ilog2 1010 drivers/dma/stm32-mdma.c mdma_burst = ilog2(best_burst); ilog2 1052 drivers/dma/stm32-mdma.c mdma_burst = ilog2(best_burst); ilog2 1066 drivers/dma/stm32-mdma.c mdma_burst = ilog2(best_burst); ilog2 292 drivers/dma/sun6i-dma.c return ilog2(addr_width); ilog2 869 drivers/dma/ti/cppi41.c reg |= (ilog2(desc_size) - 5) << QMGR_MEMCTRL_DESC_SH; ilog2 870 drivers/dma/ti/cppi41.c reg |= ilog2(ALLOC_DECS_NUM) - 5; ilog2 100 drivers/firmware/efi/libstub/random.c slots = get_entry_num_slots(md, size, ilog2(align)); ilog2 2844 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->mm_stats.log2_max_MBps = ilog2(max(1u, max_MBps)); ilog2 2544 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c unsigned bits = ilog2(vm_size) + 18; ilog2 43 drivers/gpu/drm/amd/display/dc/basics/conversion.h return ilog2(num); ilog2 868 drivers/gpu/drm/arm/malidp_planes.c val |= ilog2(plane->state->rotation & DRM_MODE_ROTATE_MASK) << ilog2 114 drivers/gpu/drm/drm_bufs.c int bits = ilog2(SHMLBA >> PAGE_SHIFT) + 1; ilog2 867 drivers/gpu/drm/drm_client_modeset.c panel_rot = ilog2(*rotation & DRM_MODE_ROTATE_MASK); ilog2 868 drivers/gpu/drm/drm_client_modeset.c cmdline_rot = ilog2(cmdline->rotation_reflection & DRM_MODE_ROTATE_MASK); ilog2 13522 drivers/gpu/drm/i915/display/intel_display.c pipe = ilog2(state->active_crtcs); ilog2 2019 drivers/gpu/drm/i915/gem/i915_gem_context.c #define MAP(x, y) [ilog2(I915_CONTEXT_CLONE_##x)] = y ilog2 307 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c unsigned int size = 1 + ilog2(eb->buffer_count); ilog2 54 drivers/gpu/drm/i915/gem/i915_gem_internal.c max_order = min(max_order, ilog2(max_segment)); ilog2 53 drivers/gpu/drm/i915/gem/i915_gem_pages.c for_each_set_bit(i, &supported, ilog2(I915_GTT_MAX_PAGE_SIZE) + 1) { ilog2 85 drivers/gpu/drm/i915/gem/selftests/huge_pages.c unsigned int bit = ilog2(page_mask); ilog2 465 drivers/gpu/drm/i915/gem/selftests/huge_pages.c bit = ilog2(I915_GTT_PAGE_SIZE_64K); ilog2 468 drivers/gpu/drm/i915/gem/selftests/huge_pages.c ilog2(I915_GTT_MAX_PAGE_SIZE) + 1) { ilog2 1103 drivers/gpu/drm/i915/gem/selftests/huge_pages.c for_each_set_bit(i, &supported, ilog2(I915_GTT_MAX_PAGE_SIZE) + 1) ilog2 1340 drivers/gpu/drm/i915/gem/selftests/huge_pages.c first = ilog2(I915_GTT_PAGE_SIZE_64K); ilog2 1341 drivers/gpu/drm/i915/gem/selftests/huge_pages.c last = ilog2(I915_GTT_PAGE_SIZE_2M); ilog2 96 drivers/gpu/drm/i915/gt/intel_engine_user.c #define MAP(x, y) { ilog2(I915_ENGINE_##x), ilog2(I915_SCHEDULER_CAP_##y) } ilog2 1315 drivers/gpu/drm/i915/gt/intel_ringbuffer.c ring->wrap = BITS_PER_TYPE(ring->size) - ilog2(size); ilog2 110 drivers/gpu/drm/i915/i915_buddy.c mm->max_order = ilog2(size) - ilog2(chunk_size); ilog2 144 drivers/gpu/drm/i915/i915_buddy.c order = ilog2(root_size) - ilog2(chunk_size); ilog2 145 drivers/gpu/drm/i915/i915_gem_fence_reg.c val |= ilog2(stride) << I830_FENCE_PITCH_SHIFT; ilog2 178 drivers/gpu/drm/i915/i915_gem_fence_reg.c val |= ilog2(stride / 128) << I830_FENCE_PITCH_SHIFT; ilog2 871 drivers/gpu/drm/i915/i915_gem_gtt.c #define GEN8_PTE_SHIFT (ilog2(GEN8_PAGE_SIZE)) ilog2 873 drivers/gpu/drm/i915/i915_gem_gtt.c #define gen8_pd_shift(lvl) ((lvl) * ilog2(GEN8_PDES)) ilog2 32 drivers/gpu/drm/i915/i915_syncmap.c #define SHIFT ilog2(KSYNCMAP) ilog2 291 drivers/gpu/drm/i915/selftests/i915_buddy.c ms = BIT_ULL(12 + (prandom_u32_state(&prng) % ilog2(s >> 12))); ilog2 183 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c size, ilog2(size)); ilog2 201 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c last, size - last, ilog2(size)); ilog2 665 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c pot > ilog2(2 * I915_GTT_PAGE_SIZE); ilog2 189 drivers/gpu/drm/i915/selftests/i915_syncmap.c err = check_seqno((*sync), ilog2((*sync)->bitmap), seqno); ilog2 258 drivers/gpu/drm/i915/selftests/i915_syncmap.c err = check_seqno((*sync), ilog2((*sync)->bitmap), seqno); ilog2 532 drivers/gpu/drm/i915/selftests/i915_syncmap.c idx, ilog2(leaf->bitmap), idx); ilog2 384 drivers/gpu/drm/msm/adreno/adreno_gpu.h ((ilog2((_len)) & 0x1F) << 24) | (((_reg) << 2) & 0xFFFFF)) ilog2 393 drivers/gpu/drm/msm/adreno/adreno_gpu.h ((ilog2((_len)) & 0x1F) << 24) | (((_reg) << 2) & 0xFFFFF)) ilog2 141 drivers/gpu/drm/msm/msm_gpu.h (AXXX_CP_RB_CNTL_BUFSZ(ilog2(MSM_GPU_RINGBUFFER_SZ / 8)) | \ ilog2 142 drivers/gpu/drm/msm/msm_gpu.h AXXX_CP_RB_CNTL_BLKSZ(ilog2(MSM_GPU_RINGBUFFER_BLKSIZE / 8))) ilog2 235 drivers/gpu/drm/nouveau/dispnv04/arb.c *burst = ilog2(fifo_data.burst >> 4); ilog2 248 drivers/gpu/drm/nouveau/dispnv04/arb.c *burst = ilog2(burst_size >> 5); ilog2 1345 drivers/gpu/drm/omapdrm/omap_gem.c usergart[i].height_shift = ilog2(h); ilog2 1347 drivers/gpu/drm/omapdrm/omap_gem.c usergart[i].slot_shift = ilog2((PAGE_SIZE / h) >> i); ilog2 1191 drivers/gpu/drm/radeon/radeon_device.c unsigned bits = ilog2(radeon_vm_size) + 18; ilog2 1970 drivers/gpu/ipu-v3/ipu-image-convert.c w_align_in = ilog2(tile_width_align(IMAGE_CONVERT_IN, infmt, ilog2 1972 drivers/gpu/ipu-v3/ipu-image-convert.c h_align_in = ilog2(tile_height_align(IMAGE_CONVERT_IN, infmt, ilog2 1980 drivers/gpu/ipu-v3/ipu-image-convert.c w_align_out = ilog2(tile_width_align(IMAGE_CONVERT_OUT, outfmt, ilog2 1982 drivers/gpu/ipu-v3/ipu-image-convert.c h_align_out = ilog2(tile_height_align(IMAGE_CONVERT_OUT, outfmt, ilog2 1372 drivers/hwmon/adt7462.c return ilog2(input); ilog2 928 drivers/hwmon/adt7470.c return ilog2(input) + 1; ilog2 371 drivers/hwmon/pmbus/adm1275.c ilog2(word)); ilog2 377 drivers/hwmon/pmbus/adm1275.c ilog2(word)); ilog2 401 drivers/hwmon/pmbus/lm25066.c ilog2(word)); ilog2 197 drivers/hwtracing/stm/core.c ilog2(output->nr_chans)); ilog2 211 drivers/hwtracing/stm/core.c ilog2(output->nr_chans)); ilog2 829 drivers/i2c/busses/i2c-aspeed.c ilog2((divisor - 1) / clk_high_low_max) + 1 : 0; ilog2 545 drivers/i2c/busses/i2c-ocores.c i2c->reg_shift = ilog2(val); ilog2 690 drivers/ide/ide-tape.c set_bit(ilog2(IDE_AFLAG_MEDIUM_PRESENT), &drive->atapi_flags); ilog2 750 drivers/ide/ide-tape.c clear_bit(ilog2(IDE_AFLAG_ADDRESS_VALID), ilog2 759 drivers/ide/ide-tape.c set_bit(ilog2(IDE_AFLAG_ADDRESS_VALID), ilog2 786 drivers/ide/ide-tape.c clear_bit(ilog2(IDE_AFLAG_FILEMARK), &drive->atapi_flags); ilog2 1085 drivers/ide/ide-tape.c if (test_and_clear_bit(ilog2(IDE_AFLAG_FILEMARK), ilog2 1141 drivers/ide/ide-tape.c if (test_bit(ilog2(IDE_AFLAG_DETECT_BS), &drive->atapi_flags)) ilog2 1157 drivers/ide/ide-tape.c if (test_bit(ilog2(IDE_AFLAG_FILEMARK), ilog2 1176 drivers/ide/ide-tape.c if (!done && test_bit(ilog2(IDE_AFLAG_FILEMARK), &drive->atapi_flags)) { ilog2 1308 drivers/ide/ide-tape.c clear_bit(ilog2(IDE_AFLAG_MEDIUM_PRESENT), ilog2 1331 drivers/ide/ide-tape.c clear_bit(ilog2(IDE_AFLAG_DETECT_BS), ilog2 1334 drivers/ide/ide-tape.c set_bit(ilog2(IDE_AFLAG_DETECT_BS), ilog2 1495 drivers/ide/ide-tape.c if (test_and_set_bit(ilog2(IDE_AFLAG_BUSY), &drive->atapi_flags)) { ilog2 1502 drivers/ide/ide-tape.c clear_bit(ilog2(IDE_AFLAG_BUSY), &drive->atapi_flags); ilog2 1508 drivers/ide/ide-tape.c if (!test_bit(ilog2(IDE_AFLAG_ADDRESS_VALID), &drive->atapi_flags)) ilog2 1524 drivers/ide/ide-tape.c clear_bit(ilog2(IDE_AFLAG_BUSY), &drive->atapi_flags); ilog2 1585 drivers/ide/ide-tape.c if (minor < 128 && test_bit(ilog2(IDE_AFLAG_MEDIUM_PRESENT), ilog2 1595 drivers/ide/ide-tape.c clear_bit(ilog2(IDE_AFLAG_BUSY), &drive->atapi_flags); ilog2 170 drivers/iio/accel/adxl345_core.c clamp_val(ilog2(n), 0, ilog2 37 drivers/iio/adc/axp20x_adc.c #define AXP20X_ADC_RATE_HZ(x) ((ilog2((x) / 25) << 6) & AXP20X_ADC_RATE_MASK) ilog2 38 drivers/iio/adc/axp20x_adc.c #define AXP22X_ADC_RATE_HZ(x) ((ilog2((x) / 100) << 6) & AXP20X_ADC_RATE_MASK) ilog2 40 drivers/iio/adc/axp20x_adc.c #define AXP813_V_I_ADC_RATE_HZ(x) ((ilog2((x) / 100) << 4) & AXP813_V_I_ADC_RATE_MASK) ilog2 524 drivers/iio/chemical/bme680_core.c return ilog2(val) + 1; ilog2 343 drivers/iio/imu/adis16400.c t = ilog2(819200 / freq); ilog2 220 drivers/iio/industrialio-trigger.c ilog2(1)); ilog2 493 drivers/iio/pressure/bmp280-core.c data->oversampling_humid = ilog2(val); ilog2 510 drivers/iio/pressure/bmp280-core.c data->oversampling_temp = ilog2(val); ilog2 527 drivers/iio/pressure/bmp280-core.c data->oversampling_press = ilog2(val); ilog2 1012 drivers/iio/pressure/bmp280-core.c data->oversampling_press = ilog2(8); ilog2 1013 drivers/iio/pressure/bmp280-core.c data->oversampling_temp = ilog2(1); ilog2 1019 drivers/iio/pressure/bmp280-core.c data->oversampling_press = ilog2(16); ilog2 1020 drivers/iio/pressure/bmp280-core.c data->oversampling_temp = ilog2(2); ilog2 1026 drivers/iio/pressure/bmp280-core.c data->oversampling_press = ilog2(16); ilog2 1027 drivers/iio/pressure/bmp280-core.c data->oversampling_humid = ilog2(16); ilog2 1028 drivers/iio/pressure/bmp280-core.c data->oversampling_temp = ilog2(2); ilog2 206 drivers/iio/pressure/dps310.c DPS310_PRS_PRC_BITS, ilog2(val)); ilog2 225 drivers/iio/pressure/dps310.c DPS310_TMP_PRC_BITS, ilog2(val)); ilog2 236 drivers/iio/pressure/dps310.c val = ilog2(freq) << 4; ilog2 250 drivers/iio/pressure/dps310.c val = ilog2(freq) << 4; ilog2 287 drivers/iio/pressure/dps310.c return scale_factors[ilog2(rc)]; ilog2 297 drivers/iio/pressure/dps310.c return scale_factors[ilog2(rc)]; ilog2 717 drivers/infiniband/hw/bnxt_re/qplib_sp.c ((ilog2(pg_size) << ilog2 720 drivers/infiniband/hw/bnxt_re/qplib_sp.c req.log2_pbl_pg_size = cpu_to_le16(((ilog2(PAGE_SIZE) << ilog2 958 drivers/infiniband/hw/cxgb3/cxio_hal.c ilog2(65536 >> ilog2 959 drivers/infiniband/hw/cxgb3/cxio_hal.c ilog2(rdev_p->rnic_info.udbell_len >> ilog2 962 drivers/infiniband/hw/cxgb3/cxio_hal.c rdev_p->qpmask = (65536 >> ilog2(rdev_p->qpnr)) - 1; ilog2 145 drivers/infiniband/hw/cxgb3/iwch_provider.c chp->cq.size_log2 = ilog2(entries); ilog2 755 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->wq.size_log2 = ilog2(wqsize); ilog2 756 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->wq.rq_size_log2 = ilog2(rqsize); ilog2 757 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->wq.sq_size_log2 = ilog2(sqsize); ilog2 166 drivers/infiniband/hw/cxgb3/iwch_qp.c V_FR_PAGE_SIZE(ilog2(wr->mr->page_size) - 12) | ilog2 804 drivers/infiniband/hw/cxgb4/qp.c FW_RI_TPTE_PS_V(ilog2(wr->mr->page_size) - 12)); ilog2 833 drivers/infiniband/hw/cxgb4/qp.c wqe->fr.pgsz_shift = ilog2(wr->mr->page_size) - 12; ilog2 6479 drivers/infiniband/hw/hfi1/chip.c return ilog2(cu); ilog2 10122 drivers/infiniband/hw/hfi1/chip.c (ilog2(maxvlmtu >> 8) + 1); ilog2 10485 drivers/infiniband/hw/hfi1/chip.c int n = ilog2(state); ilog2 14213 drivers/infiniband/hw/hfi1/chip.c m = ilog2(__roundup_pow_of_two(max_by_vl)); ilog2 14216 drivers/infiniband/hw/hfi1/chip.c n = ilog2(__roundup_pow_of_two(num_vls)); ilog2 14450 drivers/infiniband/hw/hfi1/chip.c rrd.index1_width = ilog2(NUM_VNIC_MAP_ENTRIES); ilog2 14452 drivers/infiniband/hw/hfi1/chip.c rrd.index2_width = ilog2(NUM_VNIC_MAP_ENTRIES); ilog2 246 drivers/infiniband/hw/hfi1/driver.c *encoded = ilog2(size / PAGE_SIZE) + 1; ilog2 63 drivers/infiniband/hw/hfi1/opfn.c capcode = ilog2(mask & ~(mask - 1)) + 1; ilog2 231 drivers/infiniband/hw/hfi1/opfn.c extd = &hfi1_opfn_handlers[ilog2(capcode) + 1]; ilog2 1944 drivers/infiniband/hw/hfi1/pio.c newmap->mask = (1 << ilog2(newmap->vls)) - 1; ilog2 1959 drivers/infiniband/hw/hfi1/pio.c newmap->map[i]->mask = (1 << ilog2(sz)) - 1; ilog2 1231 drivers/infiniband/hw/hfi1/sdma.c newmap->mask = (1 << ilog2(newmap->vls)) - 1; ilog2 1249 drivers/infiniband/hw/hfi1/sdma.c newmap->map[i]->mask = (1 << ilog2(sz)) - 1; ilog2 1423 drivers/infiniband/hw/hfi1/sdma.c sde->sdma_shift = ilog2(descq_cnt); ilog2 258 drivers/infiniband/hw/hfi1/tid_rdma.c priv->timeout_shift = ilog2(priv->pkts_ps - 1) + 1; ilog2 858 drivers/infiniband/hw/hfi1/tid_rdma.c return ilog2(count) + 1; ilog2 1344 drivers/infiniband/hw/hfi1/tid_rdma.c flow->npkts += (npages + pmtu_pg - 1) >> ilog2(pmtu_pg); ilog2 802 drivers/infiniband/hw/hfi1/user_exp_rcv.c hfi1_put_tid(dd, rcventry, PT_EXPECTED, phys, ilog2(npages) + 1); ilog2 1572 drivers/infiniband/hw/hfi1/verbs.c ah->log_pmtu = ilog2(dd->vld[ah->vl].mtu); ilog2 622 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->esdb_dep = ilog2(HNS_ROCE_V1_EXT_SDB_DEPTH); ilog2 646 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->eodb_dep = ilog2(HNS_ROCE_V1_EXT_ODB_DEPTH); ilog2 1225 drivers/infiniband/hw/hns/hns_roce_hw_v1.c raq_shift = ilog2(HNS_ROCE_V1_RAQ_SIZE / HNS_ROCE_V1_RAQ_ENTRY); ilog2 2108 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ilog2((unsigned int)nent)); ilog2 2599 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ilog2((unsigned int)hr_qp->sq.wqe_cnt)); ilog2 2603 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ilog2((unsigned int)hr_qp->rq.wqe_cnt)); ilog2 2783 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ilog2((unsigned int)hr_qp->sq.wqe_cnt)); ilog2 2787 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ilog2((unsigned int)hr_qp->rq.wqe_cnt)); ilog2 2849 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ilog2((unsigned int)hr_qp->sq.wqe_cnt)); ilog2 2853 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ilog2((unsigned int)hr_qp->rq.wqe_cnt)); ilog2 2941 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ilog2((unsigned int)attr->max_dest_rd_atomic)); ilog2 3186 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ilog2((unsigned int)attr->max_rd_atomic)); ilog2 4346 drivers/infiniband/hw/hns/hns_roce_hw_v1.c eq->log_entries = ilog2(eq->entries); ilog2 4356 drivers/infiniband/hw/hns/hns_roce_hw_v1.c eq->log_entries = ilog2(eq->entries); ilog2 299 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ~(((qp->sq.head + nreq) >> ilog2(qp->sq.wqe_cnt)) & 0x1); ilog2 2569 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_CQC_BYTE_4_SHIFT_S, ilog2((unsigned int)nent)); ilog2 3227 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ilog2((unsigned int)hr_qp->sge.sge_cnt)); ilog2 3234 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ilog2((unsigned int)hr_qp->sge.sge_cnt) : 0); ilog2 3241 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ilog2((unsigned int)hr_qp->sq.wqe_cnt)); ilog2 3250 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ilog2((unsigned int)hr_qp->rq.wqe_cnt)); ilog2 3287 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_20_RQWS_S, ilog2(hr_qp->rq.max_gs)); ilog2 5413 drivers/infiniband/hw/hns/hns_roce_hw_v2.c eq->shift = ilog2((unsigned int)eq->entries); ilog2 6048 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ilog2(srq->max)); ilog2 928 drivers/infiniband/hw/hns/hns_roce_mr.c ilog2(hr_dev->caps.num_mtt_segs)); ilog2 934 drivers/infiniband/hw/hns/hns_roce_mr.c ilog2(hr_dev->caps.num_cqe_segs)); ilog2 941 drivers/infiniband/hw/hns/hns_roce_mr.c ilog2(hr_dev->caps.num_srqwqe_segs)); ilog2 948 drivers/infiniband/hw/hns/hns_roce_mr.c ilog2(hr_dev->caps.num_idx_segs)); ilog2 314 drivers/infiniband/hw/hns/hns_roce_qp.c ilog2(hr_dev->caps.max_rq_desc_sz); ilog2 317 drivers/infiniband/hw/hns/hns_roce_qp.c ilog2(hr_dev->caps.max_rq_desc_sz ilog2 332 drivers/infiniband/hw/hns/hns_roce_qp.c u8 max_sq_stride = ilog2(roundup_sq_stride); ilog2 567 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->sq.wqe_shift = ilog2(hr_dev->caps.max_sq_desc_sz); ilog2 385 drivers/infiniband/hw/hns/hns_roce_srq.c srq->wqe_shift = ilog2(srq_desc_size); ilog2 149 drivers/infiniband/hw/mlx4/mr.c return ilog2(ptr & (~(ptr - 1))); ilog2 354 drivers/infiniband/hw/mlx4/qp.c qp->rq.wqe_shift = ilog2(max_t(u32, wqe_size, inl_recv_sz)); ilog2 400 drivers/infiniband/hw/mlx4/qp.c qp->sq.wqe_shift = ilog2(roundup_pow_of_two(s)); ilog2 444 drivers/infiniband/hw/mlx4/qp.c ilog2(roundup_pow_of_two(dev->dev->caps.max_sq_desc_sz)) || ilog2 898 drivers/infiniband/hw/mlx4/qp.c if (wq.log_range_size > ilog2(dev->dev->caps.max_rss_tbl_sz)) { ilog2 2219 drivers/infiniband/hw/mlx4/qp.c ilog2(dev->dev->caps.max_gso_sz); ilog2 2229 drivers/infiniband/hw/mlx4/qp.c ilog2(dev->dev->caps.max_msg_sz); ilog2 2234 drivers/infiniband/hw/mlx4/qp.c context->rq_size_stride = ilog2(qp->rq.wqe_cnt) << 3; ilog2 2239 drivers/infiniband/hw/mlx4/qp.c context->sq_size_stride = ilog2(qp->sq.wqe_cnt) << 3; ilog2 3329 drivers/infiniband/hw/mlx4/qp.c fseg->page_size = cpu_to_be32(ilog2(mr->ibmr.page_size)); ilog2 103 drivers/infiniband/hw/mlx4/srq.c srq->msrq.wqe_shift = ilog2(desc_size); ilog2 664 drivers/infiniband/hw/mlx5/cq.c u8 log_wq_sz = ilog2(cqe_size); ilog2 974 drivers/infiniband/hw/mlx5/cq.c MLX5_SET(cqc, cqc, log_cq_size, ilog2(entries)); ilog2 1311 drivers/infiniband/hw/mlx5/cq.c MLX5_SET(cqc, cqc, log_cq_size, ilog2(entries)); ilog2 85 drivers/infiniband/hw/mlx5/mem.c m = min_t(unsigned long, ilog2(roundup_pow_of_two(i)), m); ilog2 88 drivers/infiniband/hw/mlx5/mem.c *order = ilog2(roundup_pow_of_two(i) >> m); ilog2 216 drivers/infiniband/hw/mlx5/mem.c *offset = buf_off >> ilog2(off_size); ilog2 780 drivers/infiniband/hw/mlx5/mr.c *order = ilog2(roundup_pow_of_two(*ncont)); ilog2 370 drivers/infiniband/hw/mlx5/qp.c qp->rq.wqe_shift = ilog2(wqe_size); ilog2 509 drivers/infiniband/hw/mlx5/qp.c qp->sq.wqe_shift = ilog2(MLX5_SEND_WQE_BB); ilog2 910 drivers/infiniband/hw/mlx5/qp.c qp->sq.wqe_shift = ilog2(MLX5_SEND_WQE_BB); ilog2 1077 drivers/infiniband/hw/mlx5/qp.c ilog2(qp->rq.wqe_cnt), &qp->rq.fbc); ilog2 1084 drivers/infiniband/hw/mlx5/qp.c ilog2(MLX5_SEND_WQE_BB), ilog2 1085 drivers/infiniband/hw/mlx5/qp.c ilog2(qp->sq.wqe_cnt), ilog2 1269 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(wq, wq, log_wq_stride, ilog2(MLX5_SEND_WQE_BB)); ilog2 2205 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(qpc, qpc, log_rq_size, ilog2(qp->rq.wqe_cnt)); ilog2 2211 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(qpc, qpc, log_sq_size, ilog2(qp->sq.wqe_cnt)); ilog2 4350 drivers/infiniband/hw/mlx5/qp.c seg->log2_page_size = ilog2(mr->ibmr.page_size); ilog2 6036 drivers/infiniband/hw/mlx5/qp.c rwq->log_rq_size = ilog2(rwq->wqe_count); ilog2 151 drivers/infiniband/hw/mlx5/srq.c mlx5_init_fbc(srq->buf.frags, srq->msrq.wqe_shift, ilog2(srq->msrq.max), ilog2 254 drivers/infiniband/hw/mlx5/srq.c srq->msrq.wqe_shift = ilog2(desc_size); ilog2 272 drivers/infiniband/hw/mlx5/srq.c in.log_size = ilog2(srq->msrq.max); ilog2 284 drivers/infiniband/hw/mlx5/srq.c ilog2(init_attr->ext.tag_matching.max_num_tags) + 1; ilog2 128 drivers/infiniband/hw/mthca/mthca_main.c static int log_mtts_per_seg = ilog2(MTHCA_MTT_SEG_SIZE / 8); ilog2 1241 drivers/infiniband/hw/mthca/mthca_main.c log_mtts_per_seg, ilog2(MTHCA_MTT_SEG_SIZE / 8)); ilog2 1242 drivers/infiniband/hw/mthca/mthca_main.c log_mtts_per_seg = ilog2(MTHCA_MTT_SEG_SIZE / 8); ilog2 130 drivers/infiniband/hw/mthca/mthca_provider.c (1 << (32 - ilog2(mdev->limits.num_mpts))) - 1; ilog2 757 drivers/infiniband/hw/mthca/mthca_provider.c ret = mthca_RESIZE_CQ(dev, cq->cqn, lkey, ilog2(entries)); ilog2 616 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->rq_size_stride = ilog2(qp->rq.max) << 3; ilog2 620 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->sq_size_stride = ilog2(qp->sq.max) << 3; ilog2 135 drivers/infiniband/hw/mthca/mthca_srq.c logsize = ilog2(max); ilog2 235 drivers/infiniband/hw/mthca/mthca_srq.c srq->wqe_shift = ilog2(ds); ilog2 2216 drivers/infiniband/hw/ocrdma/ocrdma_hw.c cmd->type_pgsz_pdn |= (ilog2(hw_page_size / OCRDMA_MIN_Q_PAGE_SIZE) ilog2 2227 drivers/infiniband/hw/ocrdma/ocrdma_hw.c cmd->max_wqe_rqe |= (ilog2(qp->sq.max_cnt) << ilog2 2266 drivers/infiniband/hw/ocrdma/ocrdma_hw.c cmd->type_pgsz_pdn |= (ilog2(hw_page_size / OCRDMA_MIN_Q_PAGE_SIZE) << ilog2 2274 drivers/infiniband/hw/ocrdma/ocrdma_hw.c cmd->max_wqe_rqe |= (ilog2(qp->rq.max_cnt) << ilog2 2784 drivers/infiniband/hw/ocrdma/ocrdma_hw.c cmd->max_sge_rqe = ilog2(max_rqe_allocated); ilog2 2788 drivers/infiniband/hw/ocrdma/ocrdma_hw.c cmd->pgsz_pdid |= (ilog2(hw_page_size / OCRDMA_MIN_Q_PAGE_SIZE) ilog2 2655 drivers/infiniband/hw/qedr/verbs.c mr->hw_mr.pbl_page_size_log = ilog2(mr->info.pbl_info.pbl_size); ilog2 2752 drivers/infiniband/hw/qedr/verbs.c mr->hw_mr.pbl_page_size_log = ilog2(mr->info.pbl_info.pbl_size); ilog2 3101 drivers/infiniband/hw/qedr/verbs.c ilog2(mr->ibmr.page_size) - 12); ilog2 3236 drivers/infiniband/hw/qib/qib_iba6120.c dd->rcvegrbufsize_shift = ilog2(dd->rcvegrbufsize); ilog2 4043 drivers/infiniband/hw/qib/qib_iba7220.c dd->rcvegrbufsize_shift = ilog2(dd->rcvegrbufsize); ilog2 6598 drivers/infiniband/hw/qib/qib_iba7322.c dd->rcvegrbufsize_shift = ilog2(dd->rcvegrbufsize); ilog2 212 drivers/infiniband/hw/qib/qib_init.c ilog2(rcd->rcvegrbufs_perchunk); ilog2 1336 drivers/infiniband/hw/qib/qib_verbs.c ah->log_pmtu = ilog2(ppd->ibmtu); ilog2 425 drivers/infiniband/sw/rdmavt/qp.c rdi->qp_dev->qp_table_bits = ilog2(rdi->dparms.qp_table_size); ilog2 1647 drivers/infiniband/sw/rdmavt/qp.c qp->log_pmtu = ilog2(qp->pmtu); ilog2 91 drivers/infiniband/sw/rxe/rxe_mr.c mem->map_shift = ilog2(RXE_BUF_PER_MAP); ilog2 129 drivers/infiniband/sw/rxe/rxe_mr.c mem->map_shift = ilog2(RXE_BUF_PER_MAP); ilog2 1039 drivers/infiniband/sw/rxe/rxe_verbs.c mr->page_shift = ilog2(ibmr->page_size); ilog2 400 drivers/infiniband/ulp/iser/iser_initiator.c ilog2(sc->device->sector_size)) * 8; ilog2 278 drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h &hashtable[hash_min(key, ilog2(OPA_VNIC_MAC_TBL_SIZE))]) ilog2 287 drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h &name[hash_min(key, ilog2(OPA_VNIC_MAC_TBL_SIZE))], member) ilog2 401 drivers/infiniband/ulp/srp/ib_srp.c fmr_param.page_shift = ilog2(dev->mr_page_size); ilog2 3857 drivers/infiniband/ulp/srp/ib_srp.c (ilog2(srp_dev->mr_page_size) - 9); ilog2 382 drivers/input/keyboard/cap11xx.c gain = ilog2(gain32); ilog2 394 drivers/input/keyboard/qt1050.c button.samples = ilog2(button.samples); ilog2 404 drivers/input/keyboard/qt1050.c button.scale = ilog2(button.scale); ilog2 238 drivers/input/misc/pm8941-pwrkey.c req_delay = ilog2(req_delay); ilog2 382 drivers/input/misc/pmic8xxx-pwrkey.c delay = ilog2(delay); ilog2 484 drivers/input/touchscreen/imx6ul_tsc.c tsc->average_select = ilog2(average_samples) - 2; ilog2 1675 drivers/iommu/arm-smmu-v3.c size = 1 << (STRTAB_SPLIT + ilog2(STRTAB_STE_DWORDS) + 3); ilog2 2876 drivers/iommu/arm-smmu-v3.c size = STRTAB_L1_SZ_SHIFT - (ilog2(STRTAB_L1_DESC_DWORDS) + 3); ilog2 3411 drivers/iommu/arm-smmu-v3.c if (smmu->cmdq.q.llq.max_n_shift <= ilog2(CMDQ_BATCH_ENTRIES)) { ilog2 1132 drivers/iommu/fsl_pamu.c spaace_pool = gen_pool_create(ilog2(sizeof(struct paace)), -1); ilog2 75 drivers/iommu/fsl_pamu_domain.c subwin_size = dma_domain->geom_size >> ilog2(win_cnt); ilog2 77 drivers/iommu/fsl_pamu_domain.c wnd = (subwin_iova - geom->aperture_start) >> ilog2(subwin_size); ilog2 253 drivers/iommu/fsl_pamu_domain.c subwin_size = window_size >> ilog2(win_cnt); ilog2 552 drivers/iommu/fsl_pamu_domain.c win_size = dma_domain->geom_size >> ilog2(dma_domain->win_cnt); ilog2 1491 drivers/iommu/intel-iommu.c unsigned int mask = ilog2(__roundup_pow_of_two(pages)); ilog2 114 drivers/iommu/intel-svm.c int mask = ilog2(__roundup_pow_of_two(pages)); ilog2 117 drivers/iommu/intel_irq_remapping.c mask = ilog2(count); ilog2 58 drivers/iommu/io-pgtable-arm.c ((l) == ARM_LPAE_START_LVL(d) ? ilog2(ARM_LPAE_PAGES_PER_PGD(d)) : 0) ilog2 66 drivers/iommu/io-pgtable-arm.c (1ULL << (ilog2(sizeof(arm_lpae_iopte)) + \ ilog2 770 drivers/iommu/io-pgtable-arm.c data->bits_per_level = data->pg_shift - ilog2(sizeof(arm_lpae_iopte)); ilog2 777 drivers/iommu/io-pgtable-arm.c data->pgd_size = 1UL << (pgd_bits + ilog2(sizeof(arm_lpae_iopte))); ilog2 909 drivers/iommu/io-pgtable-arm.c pgd_pages = data->pgd_size >> ilog2(sizeof(arm_lpae_iopte)); ilog2 428 drivers/irqchip/irq-gic-v3-its.c u8 size = ilog2(desc->its_mapd_cmd.dev->nr_ites); ilog2 1909 drivers/irqchip/irq-gic-v3-its.c ids -= ilog2(psz / (int)esz); ilog2 1924 drivers/irqchip/irq-gic-v3-its.c ids = ilog2(PAGE_ORDER_TO_SIZE(new_order) / (int)esz); ilog2 2326 drivers/irqchip/irq-gic-v3-its.c idx = id >> ilog2(baser->psz / esz); ilog2 2364 drivers/irqchip/irq-gic-v3-its.c return (ilog2(dev_id) < its->device_ids); ilog2 2543 drivers/irqchip/irq-gic-v3-its.c pr_debug("ITT %d entries, %d bits\n", nvec, ilog2(nvec)); ilog2 3278 drivers/irqchip/irq-gic-v3-its.c ids = ilog2(pre_its_window[1]) - 2; ilog2 131 drivers/lightnvm/pblk-rl.c int user_max = user_windows << ilog2(NVM_MAX_VLBA); ilog2 596 drivers/md/bcache/btree.c return ilog2(KEY_SIZE(k) / PAGE_SECTORS ?: 1); ilog2 603 drivers/md/bcache/btree.c ilog2(b->c->btree_pages), ilog2 796 drivers/md/bcache/btree.c free_pages((unsigned long) c->verify_ondisk, ilog2(bucket_pages(c))); ilog2 843 drivers/md/bcache/btree.c __get_free_pages(GFP_KERNEL, ilog2(bucket_pages(c))); ilog2 1591 drivers/md/bcache/super.c free_pages((unsigned long) c->uuids, ilog2(bucket_pages(c))); ilog2 1754 drivers/md/bcache/super.c ((void *) __get_free_pages(__GFP_ZERO|gfp, ilog2(bucket_pages(c)))) ilog2 1785 drivers/md/bcache/super.c c->bucket_bits = ilog2(sb->bucket_size); ilog2 1786 drivers/md/bcache/super.c c->block_bits = ilog2(sb->block_size); ilog2 1832 drivers/md/bcache/super.c bch_bset_sort_state_init(&c->sort, ilog2(c->btree_pages))) ilog2 2129 drivers/md/bcache/super.c free_pages((unsigned long) ca->disk_buckets, ilog2(bucket_pages(ca))); ilog2 341 drivers/md/dm-crypt.c log = ilog2(bs); ilog2 1829 drivers/md/dm-crypt.c return (cc->key_size - cc->key_extra_size) >> ilog2(cc->tfms_count); ilog2 573 drivers/md/dm-log-writes.c lc->sectorshift = ilog2(lc->sectorsize); ilog2 93 drivers/md/dm-zoned-metadata.c #define DMZ_MAP_ENTRIES_SHIFT (ilog2(DMZ_MAP_ENTRIES)) ilog2 725 drivers/md/dm-zoned-target.c dev->zone_nr_sectors_shift = ilog2(dev->zone_nr_sectors); ilog2 728 drivers/md/dm-zoned-target.c dev->zone_nr_blocks_shift = ilog2(dev->zone_nr_blocks); ilog2 26 drivers/md/raid1.h #define BARRIER_BUCKETS_NR_BITS (PAGE_SHIFT - ilog2(sizeof(atomic_t))) ilog2 328 drivers/md/raid5-ppl.c (data_sector >> ilog2(conf->chunk_sectors) == ilog2 329 drivers/md/raid5-ppl.c data_sector_last >> ilog2(conf->chunk_sectors)) && ilog2 453 drivers/md/raid5-ppl.c ilog2(ppl_conf->block_size >> 9)); ilog2 1042 drivers/media/i2c/ov5640.c (ilog2(pclk_div) << 4)); ilog2 1908 drivers/media/i2c/ov5640.c (ilog2(OV5640_SCLK2X_ROOT_DIV) << 2) | ilog2 1909 drivers/media/i2c/ov5640.c ilog2(OV5640_SCLK_ROOT_DIV)); ilog2 114 drivers/media/pci/tw5864/tw5864-h264.c bs_write_ue(s, ilog2(MAX_GOP_SIZE) - 4); /* log2_max_frame_num_minus4 */ ilog2 117 drivers/media/pci/tw5864/tw5864-h264.c bs_write_ue(s, ilog2(MAX_GOP_SIZE) - 4); ilog2 168 drivers/media/pci/tw5864/tw5864-h264.c bs_write(s, ilog2(MAX_GOP_SIZE), frame_gop_seqno); /* frame_num */ ilog2 173 drivers/media/pci/tw5864/tw5864-h264.c bs_write(s, ilog2(MAX_GOP_SIZE), frame_gop_seqno); ilog2 800 drivers/media/platform/imx-pxp.c decx = (src_width <= dst_width) ? 0 : ilog2(src_width / dst_width); ilog2 801 drivers/media/platform/imx-pxp.c decy = (src_height <= dst_height) ? 0 : ilog2(src_height / dst_height); ilog2 1625 drivers/media/platform/ti-vpe/vpe.c w_align = ilog2(w_align); ilog2 289 drivers/memstick/host/tifm_ms.c writel(ilog2(data_len) - 2, ilog2 322 drivers/misc/genwqe/card_base.c x = ilog2(GENWQE_PF_JOBTIMEOUT_MSEC * ilog2 350 drivers/misc/genwqe/card_base.c x = ilog2(cd->vf_jobtimeout_msec[vf] * ilog2 611 drivers/misc/habanalabs/goya/goya.c WREG32(mmMMU_LOG2_DDR_SIZE, ilog2(prop->dram_size)); ilog2 702 drivers/misc/habanalabs/goya/goya.c hdev->cpu_accessible_dma_pool = gen_pool_create(ilog2(32), -1); ilog2 785 drivers/misc/habanalabs/goya/goya.c WREG32(mmDMA_QM_0_PQ_SIZE + reg_off, ilog2(HL_QUEUE_LENGTH)); ilog2 1513 drivers/misc/habanalabs/goya/goya.c WREG32(mmMME_QM_PQ_SIZE, ilog2(MME_QMAN_LENGTH)); ilog2 1623 drivers/misc/habanalabs/goya/goya.c WREG32(mmTPC0_QM_PQ_SIZE + reg_off, ilog2(TPC_QMAN_LENGTH)); ilog2 829 drivers/misc/mic/scif/scif_rma.c >> ilog2(SCIF_NR_ADDR_IN_PAGE); ilog2 60 drivers/misc/sram.c part->pool = devm_gen_pool_create(sram->dev, ilog2(SRAM_GRANULARITY), ilog2 374 drivers/misc/sram.c sram->pool = devm_gen_pool_create(sram->dev, ilog2(SRAM_GRANULARITY), ilog2 1031 drivers/mmc/core/core.c const int max_bit = ilog2(MMC_VDD_35_36); ilog2 1038 drivers/mmc/core/core.c return ilog2(MMC_VDD_165_195); ilog2 40 drivers/mmc/core/regulator.c tmp = vdd_bit - ilog2(MMC_VDD_165_195); ilog2 671 drivers/mmc/host/meson-gx-mmc.c blksz = ilog2(blksz); ilog2 763 drivers/mmc/host/meson-gx-mmc.c ilog2(meson_mmc_get_timeout_msecs(data))); ilog2 791 drivers/mmc/host/meson-gx-mmc.c ilog2(SD_EMMC_CMD_TIMEOUT)); ilog2 985 drivers/mmc/host/meson-gx-mmc.c ilog2(SD_EMMC_CFG_RESP_TIMEOUT)); ilog2 986 drivers/mmc/host/meson-gx-mmc.c cfg |= FIELD_PREP(CFG_RC_CC_MASK, ilog2(SD_EMMC_CFG_CMD_GAP)); ilog2 987 drivers/mmc/host/meson-gx-mmc.c cfg |= FIELD_PREP(CFG_BLK_LEN_MASK, ilog2(SD_EMMC_CFG_BLK_SIZE)); ilog2 389 drivers/mmc/host/mxs-mmc.c log2_blksz = ilog2(data->blksz); ilog2 139 drivers/mmc/host/renesas_sdhi_core.c for (i = min(9, ilog2(UINT_MAX / new_clock)); i >= 0; i--) { ilog2 302 drivers/mmc/host/sdhci.h #define SDHCI_DEFAULT_BOUNDARY_ARG (ilog2(SDHCI_DEFAULT_BOUNDARY_SIZE) - 12) ilog2 696 drivers/mmc/host/tifm_sd.c writel(ilog2(r_data->blksz) - 2, ilog2 2199 drivers/mtd/nand/raw/brcmnand/brcmnand.c return ALIGN(ilog2(size) - ilog2(writesize), 8) >> 3; ilog2 1122 drivers/mtd/nand/raw/meson_nand.c meson_chip->tbers_max = ilog2(tbers_clocks); ilog2 752 drivers/mtd/spi-nor/cadence-quadspi.c reg |= (ilog2(nor->mtd.erasesize) << CQSPI_REG_SIZE_BLOCK_LSB); ilog2 1481 drivers/mtd/spi-nor/spi-nor.c pow = ilog2(mtd->size) - ilog2(lock_len); ilog2 1561 drivers/mtd/spi-nor/spi-nor.c pow = ilog2(mtd->size) - order_base_2(lock_len); ilog2 2095 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h #define ILOG2(x) (ilog2((x))) ilog2 8643 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c ilog2(ilt_client->page_size >> 12)); ilog2 8665 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c ilog2(ilt_client->page_size >> 12)); ilog2 8684 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c ilog2(ilt_client->page_size >> 12)); ilog2 8701 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c ilog2(ilt_client->page_size >> 12)); ilog2 1009 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c REG_WR(bp, DORQ_REG_MAX_RVFID_SIZE, ilog2(BNX2X_MAX_NUM_OF_VFS)); ilog2 4785 drivers/net/ethernet/broadcom/bnxt/bnxt.c segs = ilog2(nsegs); ilog2 108 drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c + (bar1_index << ilog2(OCTEON_BAR1_ENTRY_SIZE)) ilog2 393 drivers/net/ethernet/cavium/thunder/nicvf_main.c rss->hash_bits = ilog2(rounddown_pow_of_two(rss->rss_size)); ilog2 847 drivers/net/ethernet/cavium/thunder/nicvf_queues.c cq_cfg.qsize = ilog2(qs->cq_len >> 10); ilog2 896 drivers/net/ethernet/cavium/thunder/nicvf_queues.c sq_cfg.qsize = ilog2(qs->sq_len >> 10); ilog2 3496 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c start | BIR_V(1) | WINDOW_V(ilog2(sz_kb))); ilog2 3516 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ilog2(HMA_MAX_NO_FW_ADDRESS / HMA_PAGE_SIZE) : 0) ilog2 3546 drivers/net/ethernet/chelsio/cxgb4/sge.c FW_IQ_CMD_IQESIZE_V(ilog2(iq->iqe_len) - 4)); ilog2 4205 drivers/net/ethernet/chelsio/cxgb4/sge.c s->fl_pg_order = ilog2(fl_large_pg) - PAGE_SHIFT; ilog2 817 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c WINDOW_V(ilog2(MEMWIN0_APERTURE) - WINDOW_SHIFT_X)); ilog2 2268 drivers/net/ethernet/chelsio/cxgb4vf/sge.c FW_IQ_CMD_IQESIZE_V(ilog2(rspq->iqe_len) - 4)); ilog2 2666 drivers/net/ethernet/chelsio/cxgb4vf/sge.c s->fl_pg_order = ilog2(fl_large_pg) - PAGE_SHIFT; ilog2 1076 drivers/net/ethernet/cortina/gemini.c new_order = min(15, ilog2(new_size - 1) + 1); ilog2 2150 drivers/net/ethernet/cortina/gemini.c port->rxq_order = min(15, ilog2(rp->rx_pending - 1) + 1); ilog2 2154 drivers/net/ethernet/cortina/gemini.c port->txq_order = min(15, ilog2(rp->tx_pending - 1) + 1); ilog2 75 drivers/net/ethernet/freescale/fman/fman_muram.c muram->pool = gen_pool_create(ilog2(64), -1); ilog2 4426 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c roundup_size = ilog2(roundup_size); ilog2 9576 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c roundup_size = ilog2(roundup_size); ilog2 644 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c roundup_size = ilog2(roundup_size); ilog2 37 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c ilog2((size) >> API_CMD_CELL_SIZE_SHIFT) ilog2 76 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c #define CMDQ_PFN(addr, page_size) ((addr) >> (ilog2(page_size))) ilog2 307 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c hw_ioctxt.rq_depth = ilog2(rq_depth); ilog2 311 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c hw_ioctxt.sq_depth = ilog2(sq_depth); ilog2 62 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c #define EQ_SET_HW_PAGE_SIZE_VAL(eq) (ilog2(PAGE_IN_4K((eq)->page_size))) ilog2 65 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c #define EQ_SET_HW_ELEM_SIZE_VAL(eq) (ilog2(ELEMENT_SIZE_IN_32B(eq))) ilog2 530 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c wqebb_size_shift = ilog2(wqebb_size); ilog2 552 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c wq->wqebbs_per_page_shift = ilog2(num_wqebbs_per_page); ilog2 627 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c wqebb_size_shift = ilog2(wqebb_size); ilog2 643 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c num_wqebbs_per_page_shift = ilog2(num_wqebbs_per_page); ilog2 475 drivers/net/ethernet/huawei/hinic/hinic_port.c rq_num.rq_depth = ilog2(HINIC_SQ_DEPTH); ilog2 527 drivers/net/ethernet/huawei/hinic/hinic_rx.c rxq->rx_buff_shift = ilog2(HINIC_RX_BUF_SZ); ilog2 1691 drivers/net/ethernet/intel/i40e/i40e_main.c pow = ilog2(num_qps); ilog2 5811 drivers/net/ethernet/intel/i40e/i40e_main.c pow = ilog2(qcount); ilog2 770 drivers/net/ethernet/intel/ice/ice_switch.c (u8)ilog2(f_info->qgrp_size) : 0; ilog2 31 drivers/net/ethernet/marvell/octeontx2/af/common.h #define Q_SIZE(x, n) ((ilog2(x) - (n)) / 2) ilog2 405 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c ilog2(num_indices / MAX_RSS_INDIR_TBL_SIZE)); ilog2 409 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c ((ilog2(rss_sz) - 1) << 16) | (rss_sz * grp)); ilog2 204 drivers/net/ethernet/mellanox/mlx4/cq.c cq_context->logsize_usrpage = cpu_to_be32(ilog2(entries) << 24); ilog2 381 drivers/net/ethernet/mellanox/mlx4/cq.c cpu_to_be32((ilog2(nent) << 24) | ilog2 260 drivers/net/ethernet/mellanox/mlx4/en_clock.c return ilog2(div_u64(max_mul * freq_khz, 1000000)); ilog2 52 drivers/net/ethernet/mellanox/mlx4/en_resources.c context->rq_size_stride = ilog2(size) << 3 | (ilog2(stride) - 4); ilog2 54 drivers/net/ethernet/mellanox/mlx4/en_resources.c context->sq_size_stride = ilog2(size) << 3 | (ilog2(stride) - 4); ilog2 59 drivers/net/ethernet/mellanox/mlx4/en_resources.c context->sq_size_stride = ilog2(TXBB_SIZE) - 4; ilog2 1205 drivers/net/ethernet/mellanox/mlx4/en_rx.c rss_context->base_qpn = cpu_to_be32(ilog2(rss_rings) << 24 | ilog2 1038 drivers/net/ethernet/mellanox/mlx4/eq.c eq_context->log_eq_size = ilog2(eq->nent); ilog2 1901 drivers/net/ethernet/mellanox/mlx4/fw.c ((ilog2(cache_line_size()) - 4) << 5) | (1 << 4); ilog2 1953 drivers/net/ethernet/mellanox/mlx4/fw.c MLX4_PUT(inbox, (u8)((ilog2(dev->caps.eqe_size) - 5) << 4 | ilog2 1954 drivers/net/ethernet/mellanox/mlx4/fw.c (ilog2(dev->caps.eqe_size) - 5)), ilog2 162 drivers/net/ethernet/mellanox/mlx4/main.c int log_mtts_per_seg = ilog2(1); ilog2 2348 drivers/net/ethernet/mellanox/mlx4/main.c dev->caps.max_fmr_maps = (1 << (32 - ilog2(dev->caps.num_mpts))) - 1; ilog2 2351 drivers/net/ethernet/mellanox/mlx4/main.c init_hca->log_uar_sz = ilog2(dev->caps.num_uars) + ilog2 2355 drivers/net/ethernet/mellanox/mlx4/main.c init_hca->log_uar_sz = ilog2(dev->caps.num_uars); ilog2 217 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h #define ROUNDUP_LOG2(x) ilog2(roundup_pow_of_two(x)) ilog2 927 drivers/net/ethernet/mellanox/mlx4/mr.c ilog2((u32)dev->caps.num_mtts / ilog2 139 drivers/net/ethernet/mellanox/mlx4/profile.c profile[i].log_num = ilog2(profile[i].num); ilog2 225 drivers/net/ethernet/mellanox/mlx4/profile.c init_hca->log_num_eqs = ilog2(dev->caps.num_eqs); ilog2 245 drivers/net/ethernet/mellanox/mlx4/profile.c ilog2(mlx4_get_mgm_entry_size(dev)); ilog2 188 drivers/net/ethernet/mellanox/mlx4/srq.c srq_context->state_logsize_srqn = cpu_to_be32((ilog2(srq->max) << 24) | ilog2 745 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c ilog2(TRACER_BUFFER_PAGE_NUM)); ilog2 96 drivers/net/ethernet/mellanox/mlx5/core/en.h #define MLX5E_LOG_ALIGNED_MPWQE_PPW (ilog2(MLX5E_REQUIRED_WQE_MTTS)) ilog2 102 drivers/net/ethernet/mellanox/mlx5/core/en.h (ilog2(MLX5E_MAX_RQ_NUM_MTTS / MLX5E_REQUIRED_WQE_MTTS)) ilog2 109 drivers/net/ethernet/mellanox/mlx5/core/en.h (ilog2(PAGE_SIZE / roundup_pow_of_two(MLX5E_MIN_SKB_FRAG_SZ))) ilog2 2207 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET(wq, wq, log_wq_stride, ilog2(MLX5_SEND_WQE_BB)); ilog2 2541 drivers/net/ethernet/mellanox/mlx5/core/en_main.c ix = mlx5e_bits_invert(i, ilog2(sz)); ilog2 500 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c ix = mlx5e_bits_invert(i, ilog2(sz)); ilog2 291 drivers/net/ethernet/mellanox/mlx5/core/eq.c MLX5_SET(eqc, eqc, log_eq_size, ilog2(eq->nent)); ilog2 443 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(cqc, temp_cqc, log_cq_size, ilog2(cq_size)); ilog2 473 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(cqc, cqc, log_cq_size, ilog2(cq_size)); ilog2 549 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(qpc, temp_qpc, log_rq_stride, ilog2(MLX5_SEND_WQE_DS) - 4); ilog2 550 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(qpc, temp_qpc, log_rq_size, ilog2(conn->qp.rq.size)); ilog2 551 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(qpc, temp_qpc, log_sq_size, ilog2(conn->qp.sq.size)); ilog2 590 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(qpc, qpc, log_rq_stride, ilog2(MLX5_SEND_WQE_DS) - 4); ilog2 591 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(qpc, qpc, log_rq_size, ilog2(conn->qp.rq.size)); ilog2 593 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(qpc, qpc, log_sq_size, ilog2(conn->qp.sq.size)); ilog2 1045 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c log_table_sz = ft->max_fte ? ilog2(ft->max_fte) : 0; ilog2 158 drivers/net/ethernet/mellanox/mlx5/core/lib/dm.c MLX5_SET(sw_icm, sw_icm, log_sw_icm_size, ilog2(length)); ilog2 133 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, temp_qpc, log_rq_stride, ilog2(MLX5_SEND_WQE_DS) - 4); ilog2 134 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, temp_qpc, log_rq_size, ilog2(dr_qp->rq.wqe_cnt)); ilog2 135 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, temp_qpc, log_sq_size, ilog2(dr_qp->sq.wqe_cnt)); ilog2 172 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, qpc, log_rq_stride, ilog2(MLX5_SEND_WQE_DS) - 4); ilog2 173 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, qpc, log_rq_size, ilog2(dr_qp->rq.wqe_cnt)); ilog2 175 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, qpc, log_sq_size, ilog2(dr_qp->sq.wqe_cnt)); ilog2 719 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(cqc, temp_cqc, log_cq_size, ilog2(ncqe)); ilog2 748 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(cqc, cqc, log_cq_size, ilog2(ncqe)); ilog2 112 drivers/net/ethernet/mellanox/mlx5/core/wq.c u8 log_sq_stride = ilog2(MLX5_SEND_WQE_BB); ilog2 484 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_cq_log_cq_size_set(mbox, ilog2(q->count)); ilog2 674 drivers/net/ethernet/mellanox/mlxsw/pci.c mlxsw_cmd_mbox_sw2hw_eq_log_eq_size_set(mbox, ilog2(q->count)); ilog2 2788 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn_writeb(nn, NFP_NET_CFG_RXR_SZ(idx), ilog2(rx_ring->cnt)); ilog2 2797 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn_writeb(nn, NFP_NET_CFG_TXR_SZ(idx), ilog2(tx_ring->cnt)); ilog2 280 drivers/net/ethernet/pensando/ionic/ionic_dev.c .q_init.ring_size = ilog2(q->num_descs), ilog2 304 drivers/net/ethernet/pensando/ionic/ionic_dev.c ring_size = ilog2(num_descs); ilog2 385 drivers/net/ethernet/pensando/ionic/ionic_dev.c ring_size = ilog2(num_descs); ilog2 569 drivers/net/ethernet/pensando/ionic/ionic_lif.c .ring_size = ilog2(q->num_descs), ilog2 615 drivers/net/ethernet/pensando/ionic/ionic_lif.c .ring_size = ilog2(q->num_descs), ilog2 1900 drivers/net/ethernet/pensando/ionic/ionic_lif.c .ring_size = ilog2(q->num_descs), ilog2 1631 drivers/net/ethernet/qlogic/qed/qed_cxt.c blk_factor = ilog2(ILT_PAGE_IN_BYTES(p_cli->p_size.val) >> 10); ilog2 1645 drivers/net/ethernet/qlogic/qed/qed_cxt.c blk_factor = ilog2(ILT_PAGE_IN_BYTES(p_cli->p_size.val) >> 10); ilog2 1659 drivers/net/ethernet/qlogic/qed/qed_cxt.c blk_factor = ilog2(ILT_PAGE_IN_BYTES(p_cli->p_size.val) >> 10); ilog2 1736 drivers/net/ethernet/qlogic/qed/qed_cxt.c ilog2(rounded_conn_num)); ilog2 2681 drivers/net/ethernet/qlogic/qed/qed_dev.c dpi_bit_shift = ilog2(dpi_page_size / 4096); ilog2 2800 drivers/net/ethernet/qlogic/qed/qed_dev.c pf_dems_shift = ilog2(QED_PF_DEMS_SIZE / 4); ilog2 2803 drivers/net/ethernet/qlogic/qed/qed_iwarp.c iwarp_info->rcv_wnd_scale = ilog2(rcv_wnd_size) - ilog2 2804 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ilog2(QED_IWARP_RCV_WND_SIZE_MIN); ilog2 547 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c mac->mcast_bits_log2 = ilog2(mac->multicast_filter_bins); ilog2 928 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c mac->mcast_bits_log2 = ilog2(mac->multicast_filter_bins); ilog2 1405 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c mac->mcast_bits_log2 = ilog2(mac->multicast_filter_bins); ilog2 1559 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c pp_params.order = ilog2(num_pages); ilog2 4394 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ilog2(priv->hw->multicast_filter_bins); ilog2 3273 drivers/net/ethernet/sun/niu.c a ^= (a >> ilog2(MAX_RBR_RING_SIZE)); ilog2 240 drivers/net/ethernet/ti/davinci_cpdma.c pool->gen_pool = devm_gen_pool_create(ctlr->dev, ilog2(pool->desc_size), ilog2 461 drivers/net/wireless/ath/ath10k/spectral.c ar->spectral.config.fft_size = ilog2(val); ilog2 117 drivers/net/wireless/ath/ath10k/swap.c seg_info->seg_hw_info.size_log2 = __cpu_to_le32(ilog2(swap_bin_len)); ilog2 317 drivers/net/wireless/ath/ath5k/phy.c coef_exp = ilog2(coef_scaled); ilog2 263 drivers/net/wireless/ath/carl9170/fw.c if (ilog2(le32_to_cpu(otus_desc->feature_set)) >= ilog2 621 drivers/net/wireless/intel/iwlwifi/iwl-fh.h #define RX_QUEUE_CB_SIZE(x) ilog2(x) ilog2 649 drivers/net/wireless/intel/iwlwifi/iwl-fh.h #define TFD_QUEUE_CB_SIZE(x) (ilog2(x) - 3) ilog2 3479 drivers/net/wireless/marvell/mwl8k.c cmd->ap.log_cw_max = cpu_to_le32(ilog2(cw_max + 1)); ilog2 3480 drivers/net/wireless/marvell/mwl8k.c cmd->ap.log_cw_min = cpu_to_le32(ilog2(cw_min + 1)); ilog2 3484 drivers/net/wireless/marvell/mwl8k.c cmd->sta.log_cw_max = (u8)ilog2(cw_max + 1); ilog2 3485 drivers/net/wireless/marvell/mwl8k.c cmd->sta.log_cw_min = (u8)ilog2(cw_min + 1); ilog2 245 drivers/ntb/hw/mscc/ntb_hw_switchtec.c int xlate_pos = ilog2(size); ilog2 275 drivers/ntb/hw/mscc/ntb_hw_switchtec.c int xlate_pos = ilog2(size); ilog2 926 drivers/ntb/hw/mscc/ntb_hw_switchtec.c ctl_val |= ilog2(LUT_SIZE) << 8; ilog2 1032 drivers/ntb/hw/mscc/ntb_hw_switchtec.c xlate_pos = ilog2(size); ilog2 1333 drivers/ntb/ntb_transport.c qp_count = ilog2(qp_bitmap); ilog2 501 drivers/nvdimm/pfn_devs.c align = 1UL << ilog2(offset); ilog2 96 drivers/nvdimm/region_devs.c ndrd->hints_shift = ilog2(num_flush); ilog2 1859 drivers/nvme/host/pci.c ilog2(dev->ctrl.page_size)); ilog2 1993 drivers/nvme/host/pci.c min >> ilog2(SZ_1M), max_host_mem_size_mb); ilog2 2017 drivers/nvme/host/pci.c dev->host_mem_size >> ilog2(SZ_1M)); ilog2 831 drivers/nvme/host/rdma.c ctrl->ctrl.max_hw_sectors = ctrl->max_fr_pages << (ilog2(SZ_4K) - 9); ilog2 151 drivers/of/device.c mask = DMA_BIT_MASK(ilog2(dma_addr + size - 1) + 1); ilog2 416 drivers/pci/controller/dwc/pci-keystone.c val = ilog2(OB_WIN_SIZE); ilog2 98 drivers/pci/controller/pcie-cadence-ep.c aperture = ilog2(sz) - 7; /* 128B -> 0, 256B -> 1, 512B -> 2, ... */ ilog2 19 drivers/pci/controller/pcie-cadence.c int nbits = ilog2(sz); ilog2 1104 drivers/pci/controller/pcie-iproc.c size >>= ilog2(nr_windows); ilog2 74 drivers/pci/controller/pcie-rockchip-ep.c int num_pass_bits = ilog2(sz); ilog2 180 drivers/pci/controller/pcie-rockchip-ep.c aperture = ilog2(sz) - 7; /* 128B -> 0, 256B -> 1, 512B -> 2, ... */ ilog2 26 drivers/pci/endpoint/pci-epc-mem.c unsigned int page_shift = ilog2(mem->page_size); ilog2 61 drivers/pci/endpoint/pci-epc-mem.c page_shift = ilog2(page_size); ilog2 128 drivers/pci/endpoint/pci-epc-mem.c unsigned int page_shift = ilog2(mem->page_size); ilog2 164 drivers/pci/endpoint/pci-epc-mem.c unsigned int page_shift = ilog2(mem->page_size); ilog2 581 drivers/pci/msi.c entry->msi_attrib.multiple = ilog2(__roundup_pow_of_two(nvec)); ilog2 1442 drivers/pci/pci.c size = ilog2(resource_size(res)) - 20; ilog2 889 drivers/powercap/intel_rapl_common.c y = ilog2(value); ilog2 104 drivers/pwm/pwm-imx-tpm.c prescale = ilog2(clock_unit) + 1 - PWM_IMX_TPM_MOD_WIDTH; ilog2 81 drivers/pwm/pwm-rcar.c div = ilog2(tmp - 1) + 1; ilog2 96 drivers/pwm/pwm-sifive.c scale = clamp(ilog2(scale_pow) - PWM_SIFIVE_CMPWIDTH, 0, 0xf); ilog2 469 drivers/rtc/rtc-m41t80.c return 1 << ilog2(rate); ilog2 486 drivers/rtc/rtc-m41t80.c val = 15 - ilog2(rate); ilog2 234 drivers/rtc/rtc-rv3028.c tm->tm_wday = ilog2(date[RV3028_WDAY] & 0x7f); ilog2 221 drivers/rtc/rtc-rv8803.c tm->tm_wday = ilog2(date[RV8803_WEEK] & 0x7f); ilog2 153 drivers/rtc/rtc-rx4581.c tm->tm_wday = ilog2(date[RX4581_REG_DW] & 0x7F); ilog2 122 drivers/rtc/rtc-rx8581.c tm->tm_wday = ilog2(date[RX8581_REG_DW] & 0x7F); ilog2 184 drivers/s390/char/sclp_cmd.c return PFN_PHYS(start_pfn) >> ilog2(sclp.rzm); ilog2 419 drivers/s390/cio/qdio_main.c pos = ilog2(count); ilog2 92 drivers/scsi/bnx2fc/bnx2fc.h #define BNX2FC_NUM_MAX_SESS_LOG (ilog2(BNX2FC_NUM_MAX_SESS)) ilog2 104 drivers/scsi/bnx2fc/bnx2fc.h #define BNX2FC_RQ_BUF_LOG_SZ (ilog2(BNX2FC_RQ_BUF_SZ)) ilog2 60 drivers/scsi/csiostor/csio_hw_t5.c WINDOW_V(ilog2(MEMWIN_APERTURE) - 10), ilog2 32 drivers/scsi/cxlflash/common.h #define CHAN2PORTBANK(_x) ((_x) >> ilog2(CXLFLASH_NUM_FC_PORTS_PER_BANK)) ilog2 36 drivers/scsi/cxlflash/common.h #define PORTMASK2CHAN(_x) (ilog2((_x))) /* port mask to channel */ ilog2 2101 drivers/scsi/cxlflash/main.c num_fc_ports = min(ilog2(port_mask) + 1, MAX_FC_PORTS); ilog2 431 drivers/scsi/cxlflash/vlun.c const u32 s = ilog2(sdev->sector_size) - 9; ilog2 1278 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c unsigned int ilog2_interval = ilog2(interval); ilog2 1136 drivers/scsi/isci/host.c SMU_ICC_GEN_VAL(TIMER, ISCI_COALESCE_BASE + ilog2(active)), ilog2 97 drivers/scsi/isci/isci.h #define SCU_MAX_COMPLETION_QUEUE_SHIFT (ilog2(SCU_MAX_COMPLETION_QUEUE_ENTRIES)) ilog2 294 drivers/scsi/isci/request.c return (len >> ilog2(sector_size)) * 8; ilog2 2677 drivers/scsi/libfc/fc_exch.c fc_cpu_order = ilog2(roundup_pow_of_two(nr_cpu_ids)); ilog2 3091 drivers/scsi/qedf/qedf_main.c qedf->pf_params.fcoe_pf_params.log_page_size = ilog2(QEDF_PAGE_SIZE); ilog2 173 drivers/scsi/sd.h return blocks << (ilog2(sdev->sector_size) - 9); ilog2 183 drivers/scsi/sd.h return bytes >> ilog2(sdev->sector_size); ilog2 188 drivers/scsi/sd.h return sector >> (ilog2(sdev->sector_size) - 9); ilog2 489 drivers/scsi/sd_zbc.c nr_zones = round_up(sdkp->capacity, zone_blocks) >> ilog2(zone_blocks); ilog2 272 drivers/soc/fsl/qbman/bman.c #define RCR_SHIFT ilog2(sizeof(struct bm_rcr_entry)) ilog2 108 drivers/soc/fsl/qbman/bman_ccsr.c u32 exp = ilog2(size); ilog2 391 drivers/soc/fsl/qbman/qman.c #define EQCR_SHIFT ilog2(sizeof(struct qm_eqcr_entry)) ilog2 577 drivers/soc/fsl/qbman/qman.c #define DQRR_SHIFT ilog2(sizeof(struct qm_dqrr_entry)) ilog2 745 drivers/soc/fsl/qbman/qman.c #define MR_SHIFT ilog2(sizeof(union qm_mr_entry)) ilog2 348 drivers/soc/fsl/qbman/qman_ccsr.c u32 exp = ilog2(size); ilog2 1005 drivers/soc/ti/knav_qmss_queue.c hw_num_desc = ilog2(region->num_desc - 1) + 1; ilog2 250 drivers/spi/spi-npcm-fiu.c ilog2(op->addr.buswidth) << ilog2 255 drivers/spi/spi-npcm-fiu.c ((op->dummy.nbytes * ilog2(op->addr.buswidth)) ilog2 334 drivers/spi/spi-npcm-fiu.c uma_cfg |= ilog2(op->cmd.buswidth); ilog2 335 drivers/spi/spi-npcm-fiu.c uma_cfg |= ilog2(op->addr.buswidth) ilog2 337 drivers/spi/spi-npcm-fiu.c uma_cfg |= ilog2(op->dummy.buswidth) ilog2 339 drivers/spi/spi-npcm-fiu.c uma_cfg |= ilog2(op->data.buswidth) ilog2 396 drivers/spi/spi-npcm-fiu.c uma_cfg |= ilog2(op->cmd.buswidth); ilog2 397 drivers/spi/spi-npcm-fiu.c uma_cfg |= ilog2(op->addr.buswidth) << ilog2 399 drivers/spi/spi-npcm-fiu.c uma_cfg |= ilog2(op->data.buswidth) << ilog2 363 drivers/spi/spi-sifive.c num_cs = ilog2(cs_bits) + 1; ilog2 1092 drivers/spi/spi-sirf.c sspi->fifo_full_offset = ilog2(sspi->fifo_size); ilog2 296 drivers/spi/spi-sun4i.c div = ilog2(mclk_rate) - ilog2(tfr->speed_hz); ilog2 297 drivers/spi/spi-sun6i.c div = ilog2(mclk_rate) - ilog2(tfr->speed_hz); ilog2 187 drivers/staging/comedi/drivers/mite.c return (ilog2(size) - 1) & 0x1f; ilog2 195 drivers/staging/comedi/drivers/mite.c value = 1 + ilog2(retry_limit); ilog2 19 drivers/staging/exfat/exfat_blkdev.c p_bd->sector_size_bits = ilog2(p_bd->sector_size); ilog2 3025 drivers/staging/exfat/exfat_core.c p_fs->sectors_per_clu_bits = ilog2(p_bpb->sectors_per_clu); ilog2 3083 drivers/staging/exfat/exfat_core.c p_fs->sectors_per_clu_bits = ilog2(p_bpb->sectors_per_clu); ilog2 1985 drivers/staging/exfat/exfat_super.c dentries_per_clu_bits = ilog2(dentries_per_clu); ilog2 25 drivers/staging/fwserial/fwserial.h #define DISTRIBUTION_MAX_INDEX (ilog2(DISTRIBUTION_MAX_SIZE) + 1) ilog2 28 drivers/staging/fwserial/fwserial.h int n = (val) ? min(ilog2(val) + 1, DISTRIBUTION_MAX_INDEX) : 0; ilog2 1039 drivers/staging/media/allegro-dvt/allegro-core.c msg.max_cu_size = ilog2(SIZE_MACROBLOCK); ilog2 1040 drivers/staging/media/allegro-dvt/allegro-core.c msg.min_cu_size = ilog2(8); ilog2 317 drivers/staging/media/allegro-dvt/nal-h264.c leading_zero_bits = ilog2(*value + 1); ilog2 824 drivers/target/target_core_device.c q->limits.max_discard_sectors >> (ilog2(block_size) - 9); ilog2 623 drivers/target/target_core_file.c ilog2(dev->dev_attrib.block_size); ilog2 634 drivers/target/target_core_file.c ilog2(dev->dev_attrib.block_size); ilog2 821 drivers/target/target_core_iblock.c return ilog2(logs_per_phys); ilog2 1979 drivers/target/target_core_transport.c sectors = cmd->data_length >> ilog2(cmd->se_dev->dev_attrib.block_size); ilog2 2242 drivers/target/target_core_transport.c ilog2(cmd->se_dev->dev_attrib.block_size); ilog2 215 drivers/tty/hvc/hvc_opal.c irq = opal_event_request(ilog2(OPAL_EVENT_CONSOLE_INPUT)); ilog2 59 drivers/tty/serial/rp2.c #define RP2_ASIC_OFFSET(i) ((i) << ilog2(RP2_ASIC_SPACING)) ilog2 112 drivers/tty/serial/sirfsoc_uart.h full_bit = ilog2(port->fifosize); ilog2 120 drivers/tty/serial/sirfsoc_uart.h empty_bit = ilog2(port->fifosize) + 1; ilog2 566 drivers/usb/core/urb.c urb->interval = min(max, 1 << ilog2(urb->interval)); ilog2 2040 drivers/usb/gadget/udc/dummy_hcd.c .bFunctionalitySupport = ilog2(USB_5GBPS_OPERATION), ilog2 1513 drivers/usb/host/xhci.h #define TRB_SEGMENT_SHIFT (ilog2(TRB_SEGMENT_SIZE)) ilog2 316 drivers/usb/mtu3/mtu3_core.c fifo_sgsz = ilog2(mep->fifo_seg_size); ilog2 281 drivers/usb/usbip/vhci_hcd.c .bFunctionalitySupport = ilog2(USB_5GBPS_OPERATION), ilog2 353 drivers/video/fbdev/i740fb.c p_best = min(15, ilog2(I740_MAX_VCO_FREQ / (freq / I740_RFREQ_FIX))); ilog2 102 drivers/watchdog/stm32_iwdg.c iwdg_pr = presc <= 1 << PR_SHIFT ? 0 : ilog2(presc) - PR_SHIFT; ilog2 50 drivers/watchdog/tqmx86_wdt.c val = ilog2(t) | 0x90; ilog2 36 drivers/watchdog/uniphier_wdt.c (ilog2(sec) + WDTTIMSET_PERIOD_1_SEC) ilog2 1244 fs/btrfs/compression.c return ilog2(n * n * n * n); ilog2 1309 fs/btrfs/compression.c buf_num = ilog2(max_num); ilog2 2628 fs/btrfs/disk-io.c (1 + ilog2(nr_cpu_ids)); ilog2 2921 fs/btrfs/disk-io.c fs_info->dirty_metadata_batch = nodesize * (1 + ilog2(nr_cpu_ids)); ilog2 2922 fs/btrfs/disk-io.c fs_info->delalloc_batch = sectorsize * 512 * (1 + ilog2(nr_cpu_ids)); ilog2 796 fs/btrfs/sysfs.c bit = ilog2(sfa->feature_bit); ilog2 1638 fs/buffer.c return ilog2(blocksize); ilog2 157 fs/cachefiles/bind.c cache->bshift = PAGE_SHIFT - ilog2(stats.f_bsize); ilog2 140 fs/erofs/super.c sbi->islotbits = ilog2(sizeof(struct erofs_inode_compact)); ilog2 1043 fs/ext2/super.c ilog2 (EXT2_ADDR_PER_BLOCK(sb)); ilog2 1045 fs/ext2/super.c ilog2 (EXT2_DESC_PER_BLOCK(sb)); ilog2 1194 fs/ext4/inode.c bbits = ilog2(blocksize); ilog2 4122 fs/ext4/super.c sbi->s_addr_per_block_bits = ilog2(EXT4_ADDR_PER_BLOCK(sb)); ilog2 4123 fs/ext4/super.c sbi->s_desc_per_block_bits = ilog2(EXT4_DESC_PER_BLOCK(sb)); ilog2 916 fs/fuse/dir.c blkbits = ilog2(attr->blksize); ilog2 174 fs/fuse/inode.c inode->i_blkbits = ilog2(attr->blksize); ilog2 238 fs/hfsplus/wrapper.c sbi->alloc_blksz_shift = ilog2(blocksize); ilog2 153 fs/nfsd/nfscache.c nn->maskbits = ilog2(hashsize); ilog2 230 fs/orangefs/orangefs-bufmap.c bufmap->desc_shift = ilog2(bufmap->desc_size); ilog2 1399 fs/overlayfs/super.c BUILD_BUG_ON(ilog2(OVL_MAX_STACK) > 31); ilog2 1400 fs/overlayfs/super.c ofs->xino_bits = ilog2(ofs->numlowerfs) + 1; ilog2 148 fs/proc/array.c BUILD_BUG_ON(1 + ilog2(TASK_REPORT_MAX) != ARRAY_SIZE(task_state_array)); ilog2 644 fs/proc/task_mmu.c [ilog2(VM_READ)] = "rd", ilog2 645 fs/proc/task_mmu.c [ilog2(VM_WRITE)] = "wr", ilog2 646 fs/proc/task_mmu.c [ilog2(VM_EXEC)] = "ex", ilog2 647 fs/proc/task_mmu.c [ilog2(VM_SHARED)] = "sh", ilog2 648 fs/proc/task_mmu.c [ilog2(VM_MAYREAD)] = "mr", ilog2 649 fs/proc/task_mmu.c [ilog2(VM_MAYWRITE)] = "mw", ilog2 650 fs/proc/task_mmu.c [ilog2(VM_MAYEXEC)] = "me", ilog2 651 fs/proc/task_mmu.c [ilog2(VM_MAYSHARE)] = "ms", ilog2 652 fs/proc/task_mmu.c [ilog2(VM_GROWSDOWN)] = "gd", ilog2 653 fs/proc/task_mmu.c [ilog2(VM_PFNMAP)] = "pf", ilog2 654 fs/proc/task_mmu.c [ilog2(VM_DENYWRITE)] = "dw", ilog2 656 fs/proc/task_mmu.c [ilog2(VM_MPX)] = "mp", ilog2 658 fs/proc/task_mmu.c [ilog2(VM_LOCKED)] = "lo", ilog2 659 fs/proc/task_mmu.c [ilog2(VM_IO)] = "io", ilog2 660 fs/proc/task_mmu.c [ilog2(VM_SEQ_READ)] = "sr", ilog2 661 fs/proc/task_mmu.c [ilog2(VM_RAND_READ)] = "rr", ilog2 662 fs/proc/task_mmu.c [ilog2(VM_DONTCOPY)] = "dc", ilog2 663 fs/proc/task_mmu.c [ilog2(VM_DONTEXPAND)] = "de", ilog2 664 fs/proc/task_mmu.c [ilog2(VM_ACCOUNT)] = "ac", ilog2 665 fs/proc/task_mmu.c [ilog2(VM_NORESERVE)] = "nr", ilog2 666 fs/proc/task_mmu.c [ilog2(VM_HUGETLB)] = "ht", ilog2 667 fs/proc/task_mmu.c [ilog2(VM_SYNC)] = "sf", ilog2 668 fs/proc/task_mmu.c [ilog2(VM_ARCH_1)] = "ar", ilog2 669 fs/proc/task_mmu.c [ilog2(VM_WIPEONFORK)] = "wf", ilog2 670 fs/proc/task_mmu.c [ilog2(VM_DONTDUMP)] = "dd", ilog2 672 fs/proc/task_mmu.c [ilog2(VM_SOFTDIRTY)] = "sd", ilog2 674 fs/proc/task_mmu.c [ilog2(VM_MIXEDMAP)] = "mm", ilog2 675 fs/proc/task_mmu.c [ilog2(VM_HUGEPAGE)] = "hg", ilog2 676 fs/proc/task_mmu.c [ilog2(VM_NOHUGEPAGE)] = "nh", ilog2 677 fs/proc/task_mmu.c [ilog2(VM_MERGEABLE)] = "mg", ilog2 678 fs/proc/task_mmu.c [ilog2(VM_UFFD_MISSING)]= "um", ilog2 679 fs/proc/task_mmu.c [ilog2(VM_UFFD_WP)] = "uw", ilog2 682 fs/proc/task_mmu.c [ilog2(VM_PKEY_BIT0)] = "", ilog2 683 fs/proc/task_mmu.c [ilog2(VM_PKEY_BIT1)] = "", ilog2 684 fs/proc/task_mmu.c [ilog2(VM_PKEY_BIT2)] = "", ilog2 685 fs/proc/task_mmu.c [ilog2(VM_PKEY_BIT3)] = "", ilog2 687 fs/proc/task_mmu.c [ilog2(VM_PKEY_BIT4)] = "", ilog2 437 fs/qnx6/inode.c sbi->s_ptrbits = ilog2(s->s_blocksize / 4); ilog2 174 fs/verity/enable.c desc->log_blocksize = ilog2(arg->block_size); ilog2 77 fs/verity/open.c params->log_arity = params->log_blocksize - ilog2(params->digest_size); ilog2 84 include/asm-generic/div64.h ___p = 1 << ilog2(___b); \ ilog2 141 include/asm-generic/div64.h ___p >>= ilog2(___bits); \ ilog2 142 include/asm-generic/div64.h ___m >>= ilog2(___bits); \ ilog2 230 include/asm-generic/div64.h (n) >>= ilog2(__base); \ ilog2 38 include/asm-generic/getorder.h return ilog2((size) - 1) - PAGE_SHIFT + 1; ilog2 19 include/linux/assoc_array_priv.h #define ASSOC_ARRAY_LEVEL_STEP (ilog2(ASSOC_ARRAY_FAN_OUT)) ilog2 22 include/linux/assoc_array_priv.h #define ASSOC_ARRAY_KEY_CHUNK_SHIFT (ilog2(BITS_PER_LONG)) ilog2 57 include/linux/average.h unsigned long weight_rcp = ilog2(_weight_rcp); \ ilog2 46 include/linux/backing-dev-defs.h #define WB_STAT_BATCH (8*(1+ilog2(nr_cpu_ids))) ilog2 722 include/linux/blkdev.h return sector >> ilog2(q->limits.chunk_sectors); ilog2 14 include/linux/blockgroup_lock.h #define NR_BG_LOCKS (4 << ilog2(NR_CPUS < 32 ? NR_CPUS : 32)) ilog2 28 include/linux/hashtable.h #define HASH_BITS(name) ilog2(HASH_SIZE(name)) ilog2 177 include/linux/log2.h (1UL << (ilog2((n) - 1) + 1)) \ ilog2 193 include/linux/log2.h (1UL << ilog2(n))) : \ ilog2 200 include/linux/log2.h return n > 1 ? ilog2(n - 1) + 1 : 0; ilog2 220 include/linux/log2.h ilog2((n) - 1) + 1) : \ ilog2 253 include/linux/log2.h ? 1 : ilog2(n) + 1 \ ilog2 1416 include/linux/sched.h BUILD_BUG_ON(1 + ilog2(TASK_REPORT_MAX) != sizeof(state_char) - 1); ilog2 210 include/linux/slab.h #define KMALLOC_SHIFT_LOW ilog2(ARCH_DMA_MINALIGN) ilog2 42 include/linux/t10-pi.h unsigned int shift = ilog2(queue_logical_block_size(rq->q)); ilog2 60 include/linux/usb/composite.h #define USB_MS_TO_HS_INTERVAL(x) (ilog2((x * 1000 / 125)) + 1) ilog2 1390 include/net/sock.h #define SK_MEM_QUANTUM_SHIFT ilog2(SK_MEM_QUANTUM) ilog2 331 include/scsi/scsi_cmnd.h xfer_len += (xfer_len >> ilog2(prot_interval)) * 8; ilog2 22 kernel/bounds.c DEFINE(NR_CPUS_BITS, ilog2(CONFIG_NR_CPUS)); ilog2 204 kernel/bpf/arraymap.c *insn++ = BPF_ALU64_IMM(BPF_LSH, ret, ilog2(elem_size)); ilog2 822 kernel/bpf/arraymap.c *insn++ = BPF_ALU64_IMM(BPF_LSH, ret, ilog2(elem_size)); ilog2 643 kernel/events/ring_buffer.c max_order = ilog2(nr_pages); ilog2 666 kernel/events/ring_buffer.c order = min(max_order, ilog2(nr_pages - rb->aux_nr_pages)); ilog2 889 kernel/events/ring_buffer.c rb->page_order = ilog2(nr_pages); ilog2 443 kernel/irq/timings.c return likely(interval_us) ? ilog2(interval_us) : 0; ilog2 162 kernel/sched/fair.c factor = 1 + ilog2(cpus); ilog2 2088 kernel/time/timekeeping.c shift = ilog2(offset) - ilog2(tk->cycle_interval); ilog2 2091 kernel/time/timekeeping.c maxshift = (64 - (ilog2(ntp_tick_length())+1)) - 1; ilog2 207 kernel/trace/blktrace.c (ilog2(BLK_TC_ ## __name) + BLK_TC_SHIFT - __REQ_ ## __name)) ilog2 210 kernel/trace/trace_events_hist.c return (u64) ilog2(roundup_pow_of_two(val)); ilog2 2070 kernel/trace/trace_events_hist.c map_bits = ilog2(roundup_pow_of_two(size)); ilog2 36 lib/errseq.c #define ERRSEQ_SHIFT ilog2(MAX_ERRNO + 1) ilog2 170 lib/flex_proportions.c #define PROP_BATCH (8*(1+ilog2(nr_cpu_ids))) ilog2 8 lib/generic-radix-tree.c #define GENRADIX_ARY_SHIFT ilog2(GENRADIX_ARY) ilog2 60 lib/generic-radix-tree.c if (ilog2(offset) >= genradix_depth_shift(level)) ilog2 118 lib/generic-radix-tree.c if (n && ilog2(offset) < genradix_depth_shift(level)) ilog2 177 lib/generic-radix-tree.c if (ilog2(iter->offset) >= genradix_depth_shift(level)) ilog2 554 lib/idr.c #define IDA_CHUNK_SHIFT ilog2(IDA_BITMAP_BITS) ilog2 574 lib/idr.c xa_dump_index(index * IDA_BITMAP_BITS, ilog2(BITS_PER_LONG)); ilog2 61 lib/radix-tree.c #define IDA_INDEX_BITS (8 * sizeof(int) - 1 - ilog2(IDA_BITMAP_BITS)) ilog2 68 lib/rhashtable.c const unsigned int shift = PAGE_SHIFT - ilog2(sizeof(void *)); ilog2 142 lib/rhashtable.c const unsigned int shift = PAGE_SHIFT - ilog2(sizeof(void *)); ilog2 161 lib/rhashtable.c tbl->nest = (ilog2(nbuckets) - 1) % shift + 1; ilog2 1170 lib/rhashtable.c const unsigned int shift = PAGE_SHIFT - ilog2(sizeof(void *)); ilog2 1211 lib/rhashtable.c const unsigned int shift = PAGE_SHIFT - ilog2(sizeof(void *)); ilog2 51 lib/sbitmap.c shift = ilog2(BITS_PER_LONG); ilog2 2717 mm/ksm.c wait_on_bit(&ksm_run, ilog2(KSM_RUN_OFFLINE), ilog2 2831 mm/ksm.c wake_up_bit(&ksm_run, ilog2(KSM_RUN_OFFLINE)); ilog2 1110 mm/page-writeback.c bw >>= ilog2(period); ilog2 1414 mm/page-writeback.c return 1UL << (ilog2(thresh - dirty) >> 1); ilog2 1444 mm/page-writeback.c long hi = ilog2(wb->avg_write_bandwidth); ilog2 1445 mm/page-writeback.c long lo = ilog2(wb->dirty_ratelimit); ilog2 8141 mm/page_alloc.c log2qty = ilog2(numentries); ilog2 8171 mm/page_alloc.c tablename, 1UL << log2qty, ilog2(size) - PAGE_SHIFT, size, ilog2 3665 mm/slub.c set_min_partial(s, ilog2(s->size) / 2); ilog2 68 mm/vmpressure.c static const unsigned int vmpressure_level_critical_prio = ilog2(100 / 10); ilog2 649 net/core/bpf_sk_storage.c smap->bucket_log = ilog2(nbuckets); ilog2 306 net/ipv4/fib_trie.c ilog2((PAGE_SIZE - TNODE_SIZE(0)) / sizeof(struct key_vector *)) ilog2 308 net/ipv4/fib_trie.c ilog2((SIZE_MAX - TNODE_SIZE(0)) / sizeof(struct key_vector *)) ilog2 245 net/ipv4/tcp_output.c *rcv_wscale = clamp_t(int, ilog2(space) - 15, ilog2 170 net/ipv4/tcp_timer.c linear_backoff_thresh = ilog2(TCP_RTO_MAX / rto_base); ilog2 3071 net/ipv4/udp.c udp_busylocks_log = ilog2(nr_cpu_ids) + 4; ilog2 268 net/mac80211/tdls.c return ((ilog2(cw_min + 1) << 0x0) & 0x0f) | ilog2 269 net/mac80211/tdls.c ((ilog2(cw_max + 1) << 0x4) & 0xf0); ilog2 412 net/netfilter/ipvs/ip_vs_sync.c return ((long) cp >> (1 + ilog2(sizeof(*cp)))) & ipvs->threads_mask; ilog2 29 net/rxrpc/protocol.h #define RXRPC_CIDSHIFT ilog2(RXRPC_MAXCALLS) /* shift for connection ID */ ilog2 777 net/sched/sch_fq.c if (nval >= 1 && nval <= ilog2(256*1024)) ilog2 884 net/sched/sch_fq.c q->fq_trees_log = ilog2(1024); ilog2 695 net/smc/smc_core.c compressed = ilog2(size) + 1; ilog2 516 sound/pci/hda/hda_proc.c [ilog2(AC_PWRST_D0SUP)] = "D0", ilog2 517 sound/pci/hda/hda_proc.c [ilog2(AC_PWRST_D1SUP)] = "D1", ilog2 518 sound/pci/hda/hda_proc.c [ilog2(AC_PWRST_D2SUP)] = "D2", ilog2 519 sound/pci/hda/hda_proc.c [ilog2(AC_PWRST_D3SUP)] = "D3", ilog2 520 sound/pci/hda/hda_proc.c [ilog2(AC_PWRST_D3COLDSUP)] = "D3cold", ilog2 521 sound/pci/hda/hda_proc.c [ilog2(AC_PWRST_S3D3COLDSUP)] = "S3D3cold", ilog2 522 sound/pci/hda/hda_proc.c [ilog2(AC_PWRST_CLKSTOP)] = "CLKSTOP", ilog2 523 sound/pci/hda/hda_proc.c [ilog2(AC_PWRST_EPSS)] = "EPSS", ilog2 1178 sound/soc/codecs/sta350.c pdata->powerdown_delay_divider = ilog2(tmp8); ilog2 39 sound/soc/fsl/fsl_dma.h ((ilog2(x) << CCSR_DMA_MR_BWC_SHIFT) & CCSR_DMA_MR_BWC_MASK) ilog2 303 sound/soc/sunxi/sun8i-codec.c return ilog2(div) - 4; ilog2 25 tools/include/linux/hashtable.h #define HASH_BITS(name) ilog2(HASH_SIZE(name)) ilog2 155 tools/include/linux/log2.h (1UL << (ilog2((n) - 1) + 1)) \ ilog2 171 tools/include/linux/log2.h (1UL << ilog2(n))) : \ ilog2 3183 tools/testing/nvdimm/test/nfit.c nfit_pool = gen_pool_create(ilog2(SZ_4M), NUMA_NO_NODE); ilog2 237 tools/testing/selftests/vm/thuge-gen.c int arg = ilog2(ps) << MAP_HUGE_SHIFT; ilog2 249 tools/testing/selftests/vm/thuge-gen.c int arg = ilog2(ps) << SHM_HUGE_SHIFT; ilog2 59 virt/kvm/arm/vgic/vgic-mmio.h 8 >> ilog2(bits))