Lines Matching refs:scratch

1075 	const int scratch = 1; /* Our extra working register */  in build_fast_tlb_refill_handler()  local
1077 rv.huge_pte = scratch; in build_fast_tlb_refill_handler()
1090 UASM_i_MTC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1092 UASM_i_SW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1094 uasm_i_dsrl_safe(p, scratch, tmp, in build_fast_tlb_refill_handler()
1096 uasm_il_bnez(p, r, scratch, label_vmalloc); in build_fast_tlb_refill_handler()
1112 UASM_i_MTC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1114 UASM_i_SW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1132 #define LOC_PTEP scratch in build_fast_tlb_refill_handler()
1139 uasm_i_dsrl_safe(p, scratch, tmp, PGDIR_SHIFT - 3); in build_fast_tlb_refill_handler()
1151 uasm_i_dsrl_safe(p, scratch, tmp, PGDIR_SHIFT - 3); in build_fast_tlb_refill_handler()
1156 uasm_i_andi(p, scratch, scratch, (PTRS_PER_PGD - 1) << 3); in build_fast_tlb_refill_handler()
1159 UASM_i_LWX(p, LOC_PTEP, scratch, ptr); in build_fast_tlb_refill_handler()
1161 uasm_i_daddu(p, ptr, ptr, scratch); /* add in pgd offset */ in build_fast_tlb_refill_handler()
1167 uasm_i_dsrl_safe(p, scratch, tmp, PUD_SHIFT - 3); in build_fast_tlb_refill_handler()
1168 uasm_i_andi(p, scratch, scratch, (PTRS_PER_PUD - 1) << 3); in build_fast_tlb_refill_handler()
1171 UASM_i_LWX(p, ptr, scratch, ptr); in build_fast_tlb_refill_handler()
1173 uasm_i_daddu(p, ptr, ptr, scratch); /* add in pmd offset */ in build_fast_tlb_refill_handler()
1182 uasm_i_dsrl_safe(p, scratch, tmp, PMD_SHIFT - 3); in build_fast_tlb_refill_handler()
1183 uasm_i_andi(p, scratch, scratch, (PTRS_PER_PMD - 1) << 3); in build_fast_tlb_refill_handler()
1187 UASM_i_LWX(p, scratch, scratch, ptr); in build_fast_tlb_refill_handler()
1189 uasm_i_daddu(p, ptr, ptr, scratch); /* add in pmd offset */ in build_fast_tlb_refill_handler()
1190 UASM_i_LW(p, scratch, 0, ptr); in build_fast_tlb_refill_handler()
1197 uasm_il_bbit1(p, r, scratch, ilog2(_PAGE_HUGE), label_tlb_huge_update); in build_fast_tlb_refill_handler()
1212 UASM_i_LWX(p, even, scratch, tmp); in build_fast_tlb_refill_handler()
1214 UASM_i_LWX(p, odd, scratch, tmp); in build_fast_tlb_refill_handler()
1216 UASM_i_ADDU(p, ptr, scratch, tmp); /* add in offset */ in build_fast_tlb_refill_handler()
1235 UASM_i_MFC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1242 UASM_i_LW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1244 UASM_i_LW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1654 unsigned int mode, unsigned int scratch) in iPTE_SW() argument
1660 uasm_i_lui(p, scratch, swmode >> 16); in iPTE_SW()
1661 uasm_i_or(p, pte, pte, scratch); in iPTE_SW()
1722 int pte, int ptr, int scratch, enum label_id lid) in build_pte_present() argument
1724 int t = scratch >= 0 ? scratch : pte; in build_pte_present()
1760 unsigned int ptr, unsigned int scratch) in build_make_valid() argument
1764 iPTE_SW(p, r, pte, ptr, mode, scratch); in build_make_valid()
1773 unsigned int pte, unsigned int ptr, int scratch, in build_pte_writable() argument
1776 int t = scratch >= 0 ? scratch : pte; in build_pte_writable()
1800 unsigned int ptr, unsigned int scratch) in build_make_write() argument
1805 iPTE_SW(p, r, pte, ptr, mode, scratch); in build_make_write()
1814 unsigned int pte, unsigned int ptr, int scratch, in build_pte_modifiable() argument
1821 int t = scratch >= 0 ? scratch : pte; in build_pte_modifiable()