Lines Matching refs:scratch

1118 	const int scratch = 1; /* Our extra working register */  in build_fast_tlb_refill_handler()  local
1120 rv.huge_pte = scratch; in build_fast_tlb_refill_handler()
1133 UASM_i_MTC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1135 UASM_i_SW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1137 uasm_i_dsrl_safe(p, scratch, tmp, in build_fast_tlb_refill_handler()
1139 uasm_il_bnez(p, r, scratch, label_vmalloc); in build_fast_tlb_refill_handler()
1155 UASM_i_MTC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1157 UASM_i_SW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1175 #define LOC_PTEP scratch in build_fast_tlb_refill_handler()
1182 uasm_i_dsrl_safe(p, scratch, tmp, PGDIR_SHIFT - 3); in build_fast_tlb_refill_handler()
1194 uasm_i_dsrl_safe(p, scratch, tmp, PGDIR_SHIFT - 3); in build_fast_tlb_refill_handler()
1199 uasm_i_andi(p, scratch, scratch, (PTRS_PER_PGD - 1) << 3); in build_fast_tlb_refill_handler()
1202 UASM_i_LWX(p, LOC_PTEP, scratch, ptr); in build_fast_tlb_refill_handler()
1204 uasm_i_daddu(p, ptr, ptr, scratch); /* add in pgd offset */ in build_fast_tlb_refill_handler()
1210 uasm_i_dsrl_safe(p, scratch, tmp, PUD_SHIFT - 3); in build_fast_tlb_refill_handler()
1211 uasm_i_andi(p, scratch, scratch, (PTRS_PER_PUD - 1) << 3); in build_fast_tlb_refill_handler()
1214 UASM_i_LWX(p, ptr, scratch, ptr); in build_fast_tlb_refill_handler()
1216 uasm_i_daddu(p, ptr, ptr, scratch); /* add in pmd offset */ in build_fast_tlb_refill_handler()
1225 uasm_i_dsrl_safe(p, scratch, tmp, PMD_SHIFT - 3); in build_fast_tlb_refill_handler()
1226 uasm_i_andi(p, scratch, scratch, (PTRS_PER_PMD - 1) << 3); in build_fast_tlb_refill_handler()
1230 UASM_i_LWX(p, scratch, scratch, ptr); in build_fast_tlb_refill_handler()
1232 uasm_i_daddu(p, ptr, ptr, scratch); /* add in pmd offset */ in build_fast_tlb_refill_handler()
1233 UASM_i_LW(p, scratch, 0, ptr); in build_fast_tlb_refill_handler()
1240 uasm_il_bbit1(p, r, scratch, ilog2(_PAGE_HUGE), label_tlb_huge_update); in build_fast_tlb_refill_handler()
1255 UASM_i_LWX(p, even, scratch, tmp); in build_fast_tlb_refill_handler()
1257 UASM_i_LWX(p, odd, scratch, tmp); in build_fast_tlb_refill_handler()
1259 UASM_i_ADDU(p, ptr, scratch, tmp); /* add in offset */ in build_fast_tlb_refill_handler()
1278 UASM_i_MFC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1285 UASM_i_LW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1287 UASM_i_LW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1697 unsigned int mode, unsigned int scratch) in iPTE_SW() argument
1703 uasm_i_lui(p, scratch, swmode >> 16); in iPTE_SW()
1704 uasm_i_or(p, pte, pte, scratch); in iPTE_SW()
1765 int pte, int ptr, int scratch, enum label_id lid) in build_pte_present() argument
1767 int t = scratch >= 0 ? scratch : pte; in build_pte_present()
1803 unsigned int ptr, unsigned int scratch) in build_make_valid() argument
1807 iPTE_SW(p, r, pte, ptr, mode, scratch); in build_make_valid()
1816 unsigned int pte, unsigned int ptr, int scratch, in build_pte_writable() argument
1819 int t = scratch >= 0 ? scratch : pte; in build_pte_writable()
1843 unsigned int ptr, unsigned int scratch) in build_make_write() argument
1848 iPTE_SW(p, r, pte, ptr, mode, scratch); in build_make_write()
1857 unsigned int pte, unsigned int ptr, int scratch, in build_pte_modifiable() argument
1864 int t = scratch >= 0 ? scratch : pte; in build_pte_modifiable()