• Home
  • Raw
  • Download

Lines Matching refs:scratch

1117 	const int scratch = 1; /* Our extra working register */  in build_fast_tlb_refill_handler()  local
1119 rv.huge_pte = scratch; in build_fast_tlb_refill_handler()
1132 UASM_i_MTC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1134 UASM_i_SW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1136 uasm_i_dsrl_safe(p, scratch, tmp, in build_fast_tlb_refill_handler()
1138 uasm_il_bnez(p, r, scratch, label_vmalloc); in build_fast_tlb_refill_handler()
1154 UASM_i_MTC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1156 UASM_i_SW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1173 #define LOC_PTEP scratch in build_fast_tlb_refill_handler()
1180 uasm_i_dsrl_safe(p, scratch, tmp, PGDIR_SHIFT - 3); in build_fast_tlb_refill_handler()
1192 uasm_i_dsrl_safe(p, scratch, tmp, PGDIR_SHIFT - 3); in build_fast_tlb_refill_handler()
1197 uasm_i_andi(p, scratch, scratch, (PTRS_PER_PGD - 1) << 3); in build_fast_tlb_refill_handler()
1200 UASM_i_LWX(p, LOC_PTEP, scratch, ptr); in build_fast_tlb_refill_handler()
1202 uasm_i_daddu(p, ptr, ptr, scratch); /* add in pgd offset */ in build_fast_tlb_refill_handler()
1208 uasm_i_dsrl_safe(p, scratch, tmp, PUD_SHIFT - 3); in build_fast_tlb_refill_handler()
1209 uasm_i_andi(p, scratch, scratch, (PTRS_PER_PUD - 1) << 3); in build_fast_tlb_refill_handler()
1212 UASM_i_LWX(p, ptr, scratch, ptr); in build_fast_tlb_refill_handler()
1214 uasm_i_daddu(p, ptr, ptr, scratch); /* add in pmd offset */ in build_fast_tlb_refill_handler()
1223 uasm_i_dsrl_safe(p, scratch, tmp, PMD_SHIFT - 3); in build_fast_tlb_refill_handler()
1224 uasm_i_andi(p, scratch, scratch, (PTRS_PER_PMD - 1) << 3); in build_fast_tlb_refill_handler()
1228 UASM_i_LWX(p, scratch, scratch, ptr); in build_fast_tlb_refill_handler()
1230 uasm_i_daddu(p, ptr, ptr, scratch); /* add in pmd offset */ in build_fast_tlb_refill_handler()
1231 UASM_i_LW(p, scratch, 0, ptr); in build_fast_tlb_refill_handler()
1238 uasm_il_bbit1(p, r, scratch, ilog2(_PAGE_HUGE), label_tlb_huge_update); in build_fast_tlb_refill_handler()
1253 UASM_i_LWX(p, even, scratch, tmp); in build_fast_tlb_refill_handler()
1255 UASM_i_LWX(p, odd, scratch, tmp); in build_fast_tlb_refill_handler()
1257 UASM_i_ADDU(p, ptr, scratch, tmp); /* add in offset */ in build_fast_tlb_refill_handler()
1276 UASM_i_MFC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1283 UASM_i_LW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1285 UASM_i_LW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1694 unsigned int mode, unsigned int scratch) in iPTE_SW() argument
1700 uasm_i_lui(p, scratch, swmode >> 16); in iPTE_SW()
1701 uasm_i_or(p, pte, pte, scratch); in iPTE_SW()
1762 int pte, int ptr, int scratch, enum label_id lid) in build_pte_present() argument
1764 int t = scratch >= 0 ? scratch : pte; in build_pte_present()
1800 unsigned int ptr, unsigned int scratch) in build_make_valid() argument
1804 iPTE_SW(p, r, pte, ptr, mode, scratch); in build_make_valid()
1813 unsigned int pte, unsigned int ptr, int scratch, in build_pte_writable() argument
1816 int t = scratch >= 0 ? scratch : pte; in build_pte_writable()
1840 unsigned int ptr, unsigned int scratch) in build_make_write() argument
1845 iPTE_SW(p, r, pte, ptr, mode, scratch); in build_make_write()
1854 unsigned int pte, unsigned int ptr, int scratch, in build_pte_modifiable() argument
1861 int t = scratch >= 0 ? scratch : pte; in build_pte_modifiable()