Lines Matching refs:tmp

647 				   unsigned int tmp, enum label_id lid,  in build_restore_pagemask()  argument
653 uasm_i_lui(p, tmp, PM_DEFAULT_MASK >> 16); in build_restore_pagemask()
654 uasm_i_ori(p, tmp, tmp, PM_DEFAULT_MASK & 0xffff); in build_restore_pagemask()
655 uasm_i_mtc0(p, tmp, C0_PAGEMASK); in build_restore_pagemask()
658 uasm_i_ori(p, tmp, 0, PM_DEFAULT_MASK); in build_restore_pagemask()
659 uasm_i_mtc0(p, tmp, C0_PAGEMASK); in build_restore_pagemask()
672 uasm_i_lui(p, tmp, PM_DEFAULT_MASK >> 16); in build_restore_pagemask()
673 uasm_i_ori(p, tmp, tmp, PM_DEFAULT_MASK & 0xffff); in build_restore_pagemask()
675 uasm_i_mtc0(p, tmp, C0_PAGEMASK); in build_restore_pagemask()
677 uasm_i_ori(p, tmp, 0, PM_DEFAULT_MASK); in build_restore_pagemask()
679 uasm_i_mtc0(p, tmp, C0_PAGEMASK); in build_restore_pagemask()
689 unsigned int tmp, in build_huge_tlb_write_entry() argument
694 uasm_i_lui(p, tmp, PM_HUGE_MASK >> 16); in build_huge_tlb_write_entry()
695 uasm_i_ori(p, tmp, tmp, PM_HUGE_MASK & 0xffff); in build_huge_tlb_write_entry()
696 uasm_i_mtc0(p, tmp, C0_PAGEMASK); in build_huge_tlb_write_entry()
700 build_restore_pagemask(p, r, tmp, label_leave, restore_scratch); in build_huge_tlb_write_entry()
707 build_is_huge_pte(u32 **p, struct uasm_reloc **r, unsigned int tmp, in build_is_huge_pte() argument
710 UASM_i_LW(p, tmp, 0, pmd); in build_is_huge_pte()
712 uasm_il_bbit1(p, r, tmp, ilog2(_PAGE_HUGE), lid); in build_is_huge_pte()
714 uasm_i_andi(p, tmp, tmp, _PAGE_HUGE); in build_is_huge_pte()
715 uasm_il_bnez(p, r, tmp, lid); in build_is_huge_pte()
720 unsigned int tmp) in build_huge_update_entries() argument
737 uasm_i_lui(p, tmp, HPAGE_SIZE >> (7 + 16)); in build_huge_update_entries()
745 UASM_i_ADDU(p, pte, pte, tmp); in build_huge_update_entries()
774 unsigned int tmp, unsigned int ptr) in build_get_pmde64() argument
782 uasm_i_dmfc0(p, tmp, C0_BADVADDR); in build_get_pmde64()
796 uasm_i_dsrl_safe(p, ptr, tmp, PGDIR_SHIFT + PGD_ORDER + PAGE_SHIFT - 3); in build_get_pmde64()
799 uasm_il_bltz(p, r, tmp, label_vmalloc); in build_get_pmde64()
822 UASM_i_LA_mostly(p, tmp, pgdc); in build_get_pmde64()
823 uasm_i_daddu(p, ptr, ptr, tmp); in build_get_pmde64()
824 uasm_i_dmfc0(p, tmp, C0_BADVADDR); in build_get_pmde64()
835 uasm_i_dsrl_safe(p, tmp, tmp, PGDIR_SHIFT - 3); in build_get_pmde64()
837 uasm_i_andi(p, tmp, tmp, (PTRS_PER_PGD - 1)<<3); in build_get_pmde64()
838 uasm_i_daddu(p, ptr, ptr, tmp); /* add in pgd offset */ in build_get_pmde64()
840 uasm_i_dmfc0(p, tmp, C0_BADVADDR); /* get faulting address */ in build_get_pmde64()
842 uasm_i_dsrl_safe(p, tmp, tmp, PMD_SHIFT-3); /* get pmd offset in bytes */ in build_get_pmde64()
843 uasm_i_andi(p, tmp, tmp, (PTRS_PER_PMD - 1)<<3); in build_get_pmde64()
844 uasm_i_daddu(p, ptr, ptr, tmp); /* add in pmd offset */ in build_get_pmde64()
923 build_get_pgde32(u32 **p, unsigned int tmp, unsigned int ptr) in build_get_pgde32() argument
928 uasm_i_mfc0(p, tmp, C0_BADVADDR); /* get faulting address */ in build_get_pgde32()
935 UASM_i_LA_mostly(p, tmp, pgdc); in build_get_pgde32()
937 uasm_i_addu(p, ptr, tmp, ptr); in build_get_pgde32()
941 uasm_i_mfc0(p, tmp, C0_BADVADDR); /* get faulting address */ in build_get_pgde32()
944 uasm_i_srl(p, tmp, tmp, PGDIR_SHIFT); /* get pgd only bits */ in build_get_pgde32()
945 uasm_i_sll(p, tmp, tmp, PGD_T_LOG2); in build_get_pgde32()
946 uasm_i_addu(p, ptr, ptr, tmp); /* add in pgd offset */ in build_get_pgde32()
977 static void build_get_ptep(u32 **p, unsigned int tmp, unsigned int ptr) in build_get_ptep() argument
989 GET_CONTEXT(p, tmp); /* get context reg */ in build_get_ptep()
993 GET_CONTEXT(p, tmp); /* get context reg */ in build_get_ptep()
998 build_adjust_context(p, tmp); in build_get_ptep()
999 UASM_i_ADDU(p, ptr, ptr, tmp); /* add in offset */ in build_get_ptep()
1002 static void build_update_entries(u32 **p, unsigned int tmp, unsigned int ptep) in build_update_entries() argument
1010 uasm_i_ld(p, tmp, 0, ptep); /* get even pte */ in build_update_entries()
1013 UASM_i_ROTR(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); in build_update_entries()
1014 UASM_i_MTC0(p, tmp, C0_ENTRYLO0); /* load it */ in build_update_entries()
1017 uasm_i_dsrl_safe(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); /* convert to entrylo0 */ in build_update_entries()
1018 UASM_i_MTC0(p, tmp, C0_ENTRYLO0); /* load it */ in build_update_entries()
1030 uasm_i_lw(p, tmp, pte_off_even, ptep); /* even pte */ in build_update_entries()
1032 UASM_i_ROTR(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); in build_update_entries()
1034 UASM_i_MTC0(p, tmp, C0_ENTRYLO0); in build_update_entries()
1037 uasm_i_lw(p, tmp, 0, scratch); in build_update_entries()
1041 uasm_i_and(p, tmp, scratch, tmp); in build_update_entries()
1043 uasm_i_mthc0(p, tmp, C0_ENTRYLO0); in build_update_entries()
1048 UASM_i_LW(p, tmp, 0, ptep); /* get even pte */ in build_update_entries()
1053 UASM_i_ROTR(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); in build_update_entries()
1056 UASM_i_MTC0(p, tmp, C0_ENTRYLO0); /* load it */ in build_update_entries()
1059 UASM_i_SRL(p, tmp, tmp, ilog2(_PAGE_GLOBAL)); /* convert to entrylo0 */ in build_update_entries()
1062 UASM_i_MTC0(p, tmp, C0_ENTRYLO0); /* load it */ in build_update_entries()
1065 uasm_i_mfc0(p, tmp, C0_INDEX); in build_update_entries()
1081 struct uasm_reloc **r, unsigned int tmp, in build_fast_tlb_refill_handler() argument
1094 UASM_i_MFC0(p, tmp, C0_BADVADDR); in build_fast_tlb_refill_handler()
1106 uasm_i_dsrl_safe(p, scratch, tmp, in build_fast_tlb_refill_handler()
1121 UASM_i_MFC0(p, tmp, C0_BADVADDR); in build_fast_tlb_refill_handler()
1132 uasm_il_bltz(p, r, tmp, label_vmalloc); in build_fast_tlb_refill_handler()
1150 uasm_i_dsrl_safe(p, scratch, tmp, PGDIR_SHIFT - 3); in build_fast_tlb_refill_handler()
1162 uasm_i_dsrl_safe(p, scratch, tmp, PGDIR_SHIFT - 3); in build_fast_tlb_refill_handler()
1165 GET_CONTEXT(p, tmp); /* get context reg */ in build_fast_tlb_refill_handler()
1178 uasm_i_dsrl_safe(p, scratch, tmp, PMD_SHIFT - 3); in build_fast_tlb_refill_handler()
1180 GET_CONTEXT(p, tmp); /* get context reg */ in build_fast_tlb_refill_handler()
1190 build_adjust_context(p, tmp); in build_fast_tlb_refill_handler()
1207 odd = tmp; in build_fast_tlb_refill_handler()
1208 UASM_i_LWX(p, even, scratch, tmp); in build_fast_tlb_refill_handler()
1209 UASM_i_ADDIU(p, tmp, tmp, sizeof(pte_t)); in build_fast_tlb_refill_handler()
1210 UASM_i_LWX(p, odd, scratch, tmp); in build_fast_tlb_refill_handler()
1212 UASM_i_ADDU(p, ptr, scratch, tmp); /* add in offset */ in build_fast_tlb_refill_handler()
1213 even = tmp; in build_fast_tlb_refill_handler()
1715 build_r3000_pte_reload_tlbwi(u32 **p, unsigned int pte, unsigned int tmp) in build_r3000_pte_reload_tlbwi() argument
1718 uasm_i_mfc0(p, tmp, C0_EPC); /* cp0 delay */ in build_r3000_pte_reload_tlbwi()
1720 uasm_i_jr(p, tmp); in build_r3000_pte_reload_tlbwi()
1733 unsigned int tmp) in build_r3000_tlb_reload_write() argument
1735 uasm_i_mfc0(p, tmp, C0_INDEX); in build_r3000_tlb_reload_write()
1737 uasm_il_bltz(p, r, tmp, label_r3000_write_probe_fail); /* cp0 delay */ in build_r3000_tlb_reload_write()
1738 uasm_i_mfc0(p, tmp, C0_EPC); /* branch delay */ in build_r3000_tlb_reload_write()
1740 uasm_i_jr(p, tmp); in build_r3000_tlb_reload_write()
1744 uasm_i_jr(p, tmp); in build_r3000_tlb_reload_write()
1911 struct uasm_reloc **r, unsigned int tmp, in build_r4000_tlbchange_handler_tail() argument
1916 build_update_entries(p, tmp, ptr); in build_r4000_tlbchange_handler_tail()
1923 build_get_pgd_vmalloc64(p, l, r, tmp, ptr, not_refill); in build_r4000_tlbchange_handler_tail()