Home
last modified time | relevance | path

Searched refs:__ilog2 (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/include/linux/
Dfsl_ifc.h69 (__ilog2(n) - IFC_AMASK_SHIFT))
110 #define CSOR_NAND_PB(n) ((__ilog2(n) - 5) << CSOR_NAND_PB_SHIFT)
163 #define CSOR_GPCM_GPTO(n) ((__ilog2(n) - 8) << CSOR_GPCM_GPTO_SHIFT)
618 #define IFC_NORCR_STOCNT(n) ((__ilog2(n) - 8) << IFC_NORCR_STOCNT_SHIFT)
/linux-6.1.9/arch/powerpc/mm/nohash/
De500.c102 tsize = __ilog2(size) - 10; in settlbcam()
141 unsigned int camsize = __ilog2(ram); in calc_cam_sz()
152 max_cam = __ilog2(mfspr(SPRN_TLB1PS)) + 10; in calc_cam_sz()
De500_hugetlbpage.c131 shift = __ilog2(psize); in book3e_hugetlb_preload()
/linux-6.1.9/arch/powerpc/platforms/ps3/
Dhtab.c193 ppc64_pft_size = __ilog2(htab_size); in ps3_hpte_init()
/linux-6.1.9/arch/powerpc/platforms/powermac/
Dpic.c217 irq += __ilog2(bits); in gatwick_action()
247 irq += __ilog2(bits); in pmac_pic_get_irq()
/linux-6.1.9/arch/powerpc/include/asm/
Dbitops.h278 #define __ilog2(x) ilog2(x) macro
Diommu.h126 return __ilog2((size - 1) >> tbl->it_page_shift) + 1; in get_iommu_order()
/linux-6.1.9/drivers/dma/
Dfsldma.c268 mode |= FSL_DMA_MR_SAHE | (__ilog2(size) << 14); in fsl_chan_set_src_loop_size()
301 mode |= FSL_DMA_MR_DAHE | (__ilog2(size) << 16); in fsl_chan_set_dst_loop_size()
328 mode |= (__ilog2(size) << 24) & FSL_DMA_MR_BWC_MASK; in fsl_chan_set_request_count()
/linux-6.1.9/arch/powerpc/mm/book3s32/
Dmmu.c364 lg_n_hpteg = __ilog2(n_hpteg); in MMU_init_hw()
/linux-6.1.9/arch/powerpc/mm/book3s64/
Dhash_utils.c871 unsigned memshift = __ilog2(mem_size); in htab_shift_for_mem_size()
974 htab_size = __ilog2(htab_size) - 18; in hash_init_partition_table()
1050 _SDR1 = table + __ilog2(htab_size_bytes) - 18; in htab_initialize()
/linux-6.1.9/arch/powerpc/kernel/
Dsetup_64.c553 info->log_block_size = __ilog2(bsize); in init_cache_info()
/linux-6.1.9/arch/powerpc/kvm/
De500_mmu_host.c435 tsize = min(__ilog2(psize) - 10, tsize); in kvmppc_e500_shadow_map()
Dbook3s_hv.c5201 porder = __ilog2(psize); in kvmppc_hv_setup_htab_rma()
/linux-6.1.9/drivers/ps3/
Dps3-vuart.c888 port = (BITS_PER_LONG - 1) - __ilog2(bus_priv->bmp->status); in ps3_vuart_irq_handler()
/linux-6.1.9/arch/powerpc/sysdev/
Dmpic.c1483 mpic->isu_shift = 1 + __ilog2(mpic->isu_size - 1); in mpic_alloc()