Lines Matching refs:scratch
1111 const int scratch = 1; /* Our extra working register */ in build_fast_tlb_refill_handler() local
1113 rv.huge_pte = scratch; in build_fast_tlb_refill_handler()
1126 UASM_i_MTC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1128 UASM_i_SW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1130 uasm_i_dsrl_safe(p, scratch, tmp, in build_fast_tlb_refill_handler()
1132 uasm_il_bnez(p, r, scratch, label_vmalloc); in build_fast_tlb_refill_handler()
1148 UASM_i_MTC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1150 UASM_i_SW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1168 #define LOC_PTEP scratch in build_fast_tlb_refill_handler()
1175 uasm_i_dsrl_safe(p, scratch, tmp, PGDIR_SHIFT - 3); in build_fast_tlb_refill_handler()
1187 uasm_i_dsrl_safe(p, scratch, tmp, PGDIR_SHIFT - 3); in build_fast_tlb_refill_handler()
1192 uasm_i_andi(p, scratch, scratch, (PTRS_PER_PGD - 1) << 3); in build_fast_tlb_refill_handler()
1195 UASM_i_LWX(p, LOC_PTEP, scratch, ptr); in build_fast_tlb_refill_handler()
1197 uasm_i_daddu(p, ptr, ptr, scratch); /* add in pgd offset */ in build_fast_tlb_refill_handler()
1203 uasm_i_dsrl_safe(p, scratch, tmp, PUD_SHIFT - 3); in build_fast_tlb_refill_handler()
1204 uasm_i_andi(p, scratch, scratch, (PTRS_PER_PUD - 1) << 3); in build_fast_tlb_refill_handler()
1207 UASM_i_LWX(p, ptr, scratch, ptr); in build_fast_tlb_refill_handler()
1209 uasm_i_daddu(p, ptr, ptr, scratch); /* add in pmd offset */ in build_fast_tlb_refill_handler()
1218 uasm_i_dsrl_safe(p, scratch, tmp, PMD_SHIFT - 3); in build_fast_tlb_refill_handler()
1219 uasm_i_andi(p, scratch, scratch, (PTRS_PER_PMD - 1) << 3); in build_fast_tlb_refill_handler()
1223 UASM_i_LWX(p, scratch, scratch, ptr); in build_fast_tlb_refill_handler()
1225 uasm_i_daddu(p, ptr, ptr, scratch); /* add in pmd offset */ in build_fast_tlb_refill_handler()
1226 UASM_i_LW(p, scratch, 0, ptr); in build_fast_tlb_refill_handler()
1233 uasm_il_bbit1(p, r, scratch, ilog2(_PAGE_HUGE), label_tlb_huge_update); in build_fast_tlb_refill_handler()
1248 UASM_i_LWX(p, even, scratch, tmp); in build_fast_tlb_refill_handler()
1250 UASM_i_LWX(p, odd, scratch, tmp); in build_fast_tlb_refill_handler()
1252 UASM_i_ADDU(p, ptr, scratch, tmp); /* add in offset */ in build_fast_tlb_refill_handler()
1271 UASM_i_MFC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1278 UASM_i_LW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1280 UASM_i_LW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1690 unsigned int mode, unsigned int scratch) in iPTE_SW() argument
1696 uasm_i_lui(p, scratch, swmode >> 16); in iPTE_SW()
1697 uasm_i_or(p, pte, pte, scratch); in iPTE_SW()
1758 int pte, int ptr, int scratch, enum label_id lid) in build_pte_present() argument
1760 int t = scratch >= 0 ? scratch : pte; in build_pte_present()
1796 unsigned int ptr, unsigned int scratch) in build_make_valid() argument
1800 iPTE_SW(p, r, pte, ptr, mode, scratch); in build_make_valid()
1809 unsigned int pte, unsigned int ptr, int scratch, in build_pte_writable() argument
1812 int t = scratch >= 0 ? scratch : pte; in build_pte_writable()
1836 unsigned int ptr, unsigned int scratch) in build_make_write() argument
1841 iPTE_SW(p, r, pte, ptr, mode, scratch); in build_make_write()
1850 unsigned int pte, unsigned int ptr, int scratch, in build_pte_modifiable() argument
1857 int t = scratch >= 0 ? scratch : pte; in build_pte_modifiable()