• Home
  • Raw
  • Download

Lines Matching refs:mmu

236 	struct cpuinfo_arc_mmu *mmu = &cpuinfo_arc700[smp_processor_id()].mmu;  in local_flush_tlb_all()  local
239 int num_tlb = mmu->sets * mmu->ways; in local_flush_tlb_all()
707 struct cpuinfo_arc_mmu *mmu = &cpuinfo_arc700[smp_processor_id()].mmu; in read_decode_mmu_bcr() local
739 mmu->ver = (tmp >> 24); in read_decode_mmu_bcr()
742 if (mmu->ver <= 2) { in read_decode_mmu_bcr()
744 mmu->pg_sz_k = TO_KB(0x2000); in read_decode_mmu_bcr()
745 mmu->sets = 1 << mmu2->sets; in read_decode_mmu_bcr()
746 mmu->ways = 1 << mmu2->ways; in read_decode_mmu_bcr()
747 mmu->u_dtlb = mmu2->u_dtlb; in read_decode_mmu_bcr()
748 mmu->u_itlb = mmu2->u_itlb; in read_decode_mmu_bcr()
751 mmu->pg_sz_k = 1 << (mmu3->pg_sz - 1); in read_decode_mmu_bcr()
752 mmu->sets = 1 << mmu3->sets; in read_decode_mmu_bcr()
753 mmu->ways = 1 << mmu3->ways; in read_decode_mmu_bcr()
754 mmu->u_dtlb = mmu3->u_dtlb; in read_decode_mmu_bcr()
755 mmu->u_itlb = mmu3->u_itlb; in read_decode_mmu_bcr()
756 mmu->sasid = mmu3->sasid; in read_decode_mmu_bcr()
760 mmu->pg_sz_k = 1 << (mmu4->sz0 - 1); in read_decode_mmu_bcr()
761 mmu->s_pg_sz_m = 1 << (mmu4->sz1 - 11); in read_decode_mmu_bcr()
762 mmu->sets = 64 << mmu4->n_entry; in read_decode_mmu_bcr()
763 mmu->ways = mmu4->n_ways * 2; in read_decode_mmu_bcr()
764 mmu->u_dtlb = mmu4->u_dtlb * 4; in read_decode_mmu_bcr()
765 mmu->u_itlb = mmu4->u_itlb * 4; in read_decode_mmu_bcr()
766 mmu->sasid = mmu4->sasid; in read_decode_mmu_bcr()
767 pae_exists = mmu->pae = mmu4->pae; in read_decode_mmu_bcr()
774 struct cpuinfo_arc_mmu *p_mmu = &cpuinfo_arc700[cpu_id].mmu; in arc_mmu_mumbojumbo()
799 struct cpuinfo_arc_mmu *mmu = &cpuinfo_arc700[smp_processor_id()].mmu; in arc_mmu_init() local
825 if (is_isa_arcompact() && mmu->ver == CONFIG_ARC_MMU_VER) in arc_mmu_init()
827 else if (is_isa_arcv2() && mmu->ver >= CONFIG_ARC_MMU_VER) in arc_mmu_init()
832 mmu->ver, CONFIG_ARC_MMU_VER); in arc_mmu_init()
835 if (mmu->pg_sz_k != TO_KB(PAGE_SIZE)) in arc_mmu_init()
839 mmu->s_pg_sz_m != TO_MB(HPAGE_PMD_SIZE)) in arc_mmu_init()
843 if (IS_ENABLED(CONFIG_ARC_HAS_PAE40) && !mmu->pae) in arc_mmu_init()
874 #define SET_WAY_TO_IDX(mmu, set, way) ((set) * mmu->ways + (way)) argument
889 struct cpuinfo_arc_mmu *mmu = &cpuinfo_arc700[smp_processor_id()].mmu; in do_tlb_overlap_fault() local
891 int set, n_ways = mmu->ways; in do_tlb_overlap_fault()
894 BUG_ON(mmu->ways > 4); in do_tlb_overlap_fault()
899 for (set = 0; set < mmu->sets; set++) { in do_tlb_overlap_fault()
907 SET_WAY_TO_IDX(mmu, set, way)); in do_tlb_overlap_fault()
940 SET_WAY_TO_IDX(mmu, set, way)); in do_tlb_overlap_fault()