Lines Matching refs:host_tlb_params
38 #define to_htlb1_esel(esel) (host_tlb_params[1].entries - (esel) - 1)
40 static struct kvmppc_e500_tlb_params host_tlb_params[E500_TLB_NUM]; variable
45 return host_tlb_params[1].entries - tlbcam_index - 1; in tlb1_max_shadow_size()
278 sizeof(unsigned int) * host_tlb_params[1].entries); in clear_tlb1_bitmap()
769 host_tlb_params[0].entries = mfspr(SPRN_TLB0CFG) & TLBnCFG_N_ENTRY; in e500_mmu_host_init()
770 host_tlb_params[1].entries = mfspr(SPRN_TLB1CFG) & TLBnCFG_N_ENTRY; in e500_mmu_host_init()
777 if (host_tlb_params[0].entries == 0 || in e500_mmu_host_init()
778 host_tlb_params[1].entries == 0) { in e500_mmu_host_init()
783 host_tlb_params[0].ways = (mfspr(SPRN_TLB0CFG) & TLBnCFG_ASSOC) >> in e500_mmu_host_init()
785 host_tlb_params[1].ways = host_tlb_params[1].entries; in e500_mmu_host_init()
787 if (!is_power_of_2(host_tlb_params[0].entries) || in e500_mmu_host_init()
788 !is_power_of_2(host_tlb_params[0].ways) || in e500_mmu_host_init()
789 host_tlb_params[0].entries < host_tlb_params[0].ways || in e500_mmu_host_init()
790 host_tlb_params[0].ways == 0) { in e500_mmu_host_init()
792 __func__, host_tlb_params[0].entries, in e500_mmu_host_init()
793 host_tlb_params[0].ways); in e500_mmu_host_init()
797 host_tlb_params[0].sets = in e500_mmu_host_init()
798 host_tlb_params[0].entries / host_tlb_params[0].ways; in e500_mmu_host_init()
799 host_tlb_params[1].sets = 1; in e500_mmu_host_init()
800 vcpu_e500->h2g_tlb1_rmap = kcalloc(host_tlb_params[1].entries, in e500_mmu_host_init()