Lines Matching full:scratch

757  * TMP and PTR are scratch.
847 * BVADDR is the faulting address, PTR is scratch.
923 * TMP and PTR are scratch.
1056 const int scratch = 1; /* Our extra working register */ in build_fast_tlb_refill_handler() local
1058 rv.huge_pte = scratch; in build_fast_tlb_refill_handler()
1071 UASM_i_MTC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1073 UASM_i_SW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1075 uasm_i_dsrl_safe(p, scratch, tmp, in build_fast_tlb_refill_handler()
1077 uasm_il_bnez(p, r, scratch, label_vmalloc); in build_fast_tlb_refill_handler()
1093 UASM_i_MTC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1095 UASM_i_SW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1113 #define LOC_PTEP scratch in build_fast_tlb_refill_handler()
1120 uasm_i_dsrl_safe(p, scratch, tmp, PGDIR_SHIFT - 3); in build_fast_tlb_refill_handler()
1132 uasm_i_dsrl_safe(p, scratch, tmp, PGDIR_SHIFT - 3); in build_fast_tlb_refill_handler()
1137 uasm_i_andi(p, scratch, scratch, (PTRS_PER_PGD - 1) << 3); in build_fast_tlb_refill_handler()
1140 UASM_i_LWX(p, LOC_PTEP, scratch, ptr); in build_fast_tlb_refill_handler()
1142 uasm_i_daddu(p, ptr, ptr, scratch); /* add in pgd offset */ in build_fast_tlb_refill_handler()
1148 uasm_i_dsrl_safe(p, scratch, tmp, PUD_SHIFT - 3); in build_fast_tlb_refill_handler()
1149 uasm_i_andi(p, scratch, scratch, (PTRS_PER_PUD - 1) << 3); in build_fast_tlb_refill_handler()
1152 UASM_i_LWX(p, ptr, scratch, ptr); in build_fast_tlb_refill_handler()
1154 uasm_i_daddu(p, ptr, ptr, scratch); /* add in pmd offset */ in build_fast_tlb_refill_handler()
1163 uasm_i_dsrl_safe(p, scratch, tmp, PMD_SHIFT - 3); in build_fast_tlb_refill_handler()
1164 uasm_i_andi(p, scratch, scratch, (PTRS_PER_PMD - 1) << 3); in build_fast_tlb_refill_handler()
1168 UASM_i_LWX(p, scratch, scratch, ptr); in build_fast_tlb_refill_handler()
1170 uasm_i_daddu(p, ptr, ptr, scratch); /* add in pmd offset */ in build_fast_tlb_refill_handler()
1171 UASM_i_LW(p, scratch, 0, ptr); in build_fast_tlb_refill_handler()
1178 uasm_il_bbit1(p, r, scratch, ilog2(_PAGE_HUGE), label_tlb_huge_update); in build_fast_tlb_refill_handler()
1193 UASM_i_LWX(p, even, scratch, tmp); in build_fast_tlb_refill_handler()
1195 UASM_i_LWX(p, odd, scratch, tmp); in build_fast_tlb_refill_handler()
1197 UASM_i_ADDU(p, ptr, scratch, tmp); /* add in offset */ in build_fast_tlb_refill_handler()
1216 UASM_i_MFC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1223 UASM_i_LW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1225 UASM_i_LW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1591 /* if pgd_reg is allocated, save PGD also to scratch register */ in build_setup_pgd()
1636 unsigned int mode, unsigned int scratch) in iPTE_SW() argument
1642 uasm_i_lui(p, scratch, swmode >> 16); in iPTE_SW()
1643 uasm_i_or(p, pte, pte, scratch); in iPTE_SW()
1704 int pte, int ptr, int scratch, enum label_id lid) in build_pte_present() argument
1706 int t = scratch >= 0 ? scratch : pte; in build_pte_present()
1742 unsigned int ptr, unsigned int scratch) in build_make_valid() argument
1746 iPTE_SW(p, r, pte, ptr, mode, scratch); in build_make_valid()
1755 unsigned int pte, unsigned int ptr, int scratch, in build_pte_writable() argument
1758 int t = scratch >= 0 ? scratch : pte; in build_pte_writable()
1782 unsigned int ptr, unsigned int scratch) in build_make_write() argument
1787 iPTE_SW(p, r, pte, ptr, mode, scratch); in build_make_write()
1796 unsigned int pte, unsigned int ptr, int scratch, in build_pte_modifiable() argument
1803 int t = scratch >= 0 ? scratch : pte; in build_pte_modifiable()