Lines Matching refs:way
682 #define SET_WAY_TO_IDX(mmu, set, way) ((set) * mmu->ways + (way)) argument
709 int is_valid, way; in do_tlb_overlap_fault() local
713 for (way = 0, is_valid = 0; way < n_ways; way++) { in do_tlb_overlap_fault()
715 SET_WAY_TO_IDX(mmu, set, way)); in do_tlb_overlap_fault()
717 pd0[way] = read_aux_reg(ARC_REG_TLBPD0); in do_tlb_overlap_fault()
718 is_valid |= pd0[way] & _PAGE_PRESENT; in do_tlb_overlap_fault()
719 pd0[way] &= PAGE_MASK; in do_tlb_overlap_fault()
727 for (way = 0; way < n_ways - 1; way++) { in do_tlb_overlap_fault()
731 if (!pd0[way]) in do_tlb_overlap_fault()
734 for (n = way + 1; n < n_ways; n++) { in do_tlb_overlap_fault()
735 if (pd0[way] != pd0[n]) in do_tlb_overlap_fault()
740 pd0[way], set, way, n); in do_tlb_overlap_fault()
746 pd0[way] = 0; in do_tlb_overlap_fault()
748 SET_WAY_TO_IDX(mmu, set, way)); in do_tlb_overlap_fault()