Lines Matching refs:way
707 #define SET_WAY_TO_IDX(mmu, set, way) ((set) * mmu->ways + (way)) argument
734 int is_valid, way; in do_tlb_overlap_fault() local
738 for (way = 0, is_valid = 0; way < n_ways; way++) { in do_tlb_overlap_fault()
740 SET_WAY_TO_IDX(mmu, set, way)); in do_tlb_overlap_fault()
742 pd0[way] = read_aux_reg(ARC_REG_TLBPD0); in do_tlb_overlap_fault()
743 is_valid |= pd0[way] & _PAGE_PRESENT; in do_tlb_overlap_fault()
744 pd0[way] &= PAGE_MASK; in do_tlb_overlap_fault()
752 for (way = 0; way < n_ways - 1; way++) { in do_tlb_overlap_fault()
756 if (!pd0[way]) in do_tlb_overlap_fault()
759 for (n = way + 1; n < n_ways; n++) { in do_tlb_overlap_fault()
760 if (pd0[way] != pd0[n]) in do_tlb_overlap_fault()
765 pd0[way], set, way, n); in do_tlb_overlap_fault()
771 pd0[way] = 0; in do_tlb_overlap_fault()
773 SET_WAY_TO_IDX(mmu, set, way)); in do_tlb_overlap_fault()