Home
last modified time | relevance | path

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

/Linux-v5.10/arch/powerpc/mm/nohash/
Dfsl_booke.c108 tsize = __ilog2(size) - 10; in settlbcam()
144 unsigned int camsize = __ilog2(ram); in calc_cam_sz()
155 max_cam = __ilog2(mfspr(SPRN_TLB1PS)) + 10; in calc_cam_sz()
Dbook3e_hugetlbpage.c141 shift = __ilog2(psize); in book3e_hugetlb_preload()
/Linux-v5.10/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-v5.10/arch/powerpc/platforms/ps3/
Dhtab.c193 ppc64_pft_size = __ilog2(htab_size); in ps3_hpte_init()
/Linux-v5.10/arch/powerpc/include/asm/
Dbitops.h205 #define __ilog2(x) ilog2(x) macro
Diommu.h128 return __ilog2((size - 1) >> tbl->it_page_shift) + 1; in get_iommu_order()
/Linux-v5.10/arch/powerpc/platforms/powermac/
Dpic.c214 irq += __ilog2(bits); in gatwick_action()
244 irq += __ilog2(bits); in pmac_pic_get_irq()
/Linux-v5.10/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-v5.10/arch/powerpc/mm/book3s64/
Dhash_utils.c762 unsigned memshift = __ilog2(mem_size); in htab_shift_for_mem_size()
866 htab_size = __ilog2(htab_size) - 18; in hash_init_partition_table()
942 _SDR1 = table + __ilog2(htab_size_bytes) - 18; in htab_initialize()
/Linux-v5.10/arch/powerpc/mm/book3s32/
Dmmu.c375 lg_n_hpteg = __ilog2(n_hpteg); in MMU_init_hw()
/Linux-v5.10/arch/powerpc/kernel/
Dsetup_64.c495 info->log_block_size = __ilog2(bsize); in init_cache_info()
/Linux-v5.10/arch/powerpc/kvm/
De500_mmu_host.c435 tsize = min(__ilog2(psize) - 10, tsize); in kvmppc_e500_shadow_map()
Dbook3s_hv_nested.c359 ptb_order = __ilog2(KVMPPC_NR_LPIDS - 1) + 1; in kvmhv_nested_init()
Dbook3s_hv.c4705 porder = __ilog2(psize); in kvmppc_hv_setup_htab_rma()
/Linux-v5.10/drivers/ps3/
Dps3-vuart.c888 port = (BITS_PER_LONG - 1) - __ilog2(bus_priv->bmp->status); in ps3_vuart_irq_handler()
/Linux-v5.10/arch/powerpc/sysdev/
Dmpic.c1484 mpic->isu_shift = 1 + __ilog2(mpic->isu_size - 1); in mpic_alloc()