Home
last modified time | relevance | path

Searched refs:orig (Results 1 – 25 of 29) sorted by relevance

12

/arch/riscv/kernel/
Dkernel_mode_vector.c28 int orig; in riscv_v_start() local
30 orig = riscv_v_flags(); in riscv_v_start()
31 BUG_ON((orig & flags) != 0); in riscv_v_start()
32 riscv_v_flags_set(orig | flags); in riscv_v_start()
38 int orig; in riscv_v_stop() local
41 orig = riscv_v_flags(); in riscv_v_stop()
42 BUG_ON((orig & flags) == 0); in riscv_v_stop()
43 riscv_v_flags_set(orig & ~flags); in riscv_v_stop()
/arch/sparc/mm/
Dtlb.c113 pte_t *ptep, pte_t orig, int fullmm, in tlb_batch_add() argument
117 pte_dirty(orig)) { in tlb_batch_add()
118 unsigned long paddr, pfn = pte_pfn(orig); in tlb_batch_add()
143 tlb_batch_add_one(mm, vaddr, pte_exec(orig), hugepage_shift); in tlb_batch_add()
171 pmd_t orig, pmd_t pmd) in __set_pmd_acct() argument
176 if ((pmd_val(pmd) ^ pmd_val(orig)) & _PAGE_PMD_HUGE) { in __set_pmd_acct()
191 if (is_huge_zero_page(pmd_page(orig))) in __set_pmd_acct()
207 if (!pmd_none(orig)) { in __set_pmd_acct()
209 if (pmd_trans_huge(orig)) { in __set_pmd_acct()
210 pte_t orig_pte = __pte(pmd_val(orig)); in __set_pmd_acct()
[all …]
Dhugetlbpage.c336 pte_t orig; in __set_huge_pte_at() local
354 orig = *ptep; in __set_huge_pte_at()
355 orig_shift = pte_none(orig) ? PAGE_SHIFT : huge_tte_to_shift(orig); in __set_huge_pte_at()
360 maybe_tlb_batch_add(mm, addr, ptep, orig, 0, orig_shift); in __set_huge_pte_at()
363 maybe_tlb_batch_add(mm, addr + REAL_HPAGE_SIZE, ptep, orig, 0, in __set_huge_pte_at()
/arch/mips/generic/
Dboard-sead3.c184 unsigned int freq, orig, tick = 0; in sead3_measure_hpt_freq() local
189 orig = readl(status_reg) & 0x2; /* get original sample */ in sead3_measure_hpt_freq()
191 while ((readl(status_reg) & 0x2) == orig) in sead3_measure_hpt_freq()
193 orig = orig ^ 0x2; /* flip the bit */ in sead3_measure_hpt_freq()
200 while ((readl(status_reg) & 0x2) == orig) in sead3_measure_hpt_freq()
202 orig = orig ^ 0x2; /* flip the bit */ in sead3_measure_hpt_freq()
/arch/arm/probes/kprobes/
Dopt-arm.c182 int arch_prepare_optimized_kprobe(struct optimized_kprobe *op, struct kprobe *orig) in NOKPROBE_SYMBOL()
189 if (!can_optimize(orig)) in NOKPROBE_SYMBOL()
222 (long)orig->addr + 8) & 0xfe000003; in NOKPROBE_SYMBOL()
239 BUG_ON(orig->ainsn.stack_space < 0); in NOKPROBE_SYMBOL()
241 stack_protect += orig->ainsn.stack_space; in NOKPROBE_SYMBOL()
260 orig->ainsn.kprobe_direct_exec = false; in NOKPROBE_SYMBOL()
261 if (can_kprobe_direct_exec(orig->ainsn.register_usage_flags)) { in NOKPROBE_SYMBOL()
273 code[TMPL_RESTORE_ORIGN_INSN] = __opcode_to_mem_arm(orig->opcode); in NOKPROBE_SYMBOL()
277 orig->ainsn.kprobe_direct_exec = true; in NOKPROBE_SYMBOL()
/arch/mips/include/asm/
Dbitops.h183 unsigned long res, orig; in test_and_set_bit_lock() local
188 orig = __test_bit_op(*m, "%0", in test_and_set_bit_lock()
191 res = (orig & BIT(bit)) != 0; in test_and_set_bit_lock()
227 unsigned long res, orig; in test_and_clear_bit() local
239 orig = __test_bit_op(*m, "%0", in test_and_clear_bit()
243 res = (orig & BIT(bit)) != 0; in test_and_clear_bit()
264 unsigned long res, orig; in test_and_change_bit() local
271 orig = __test_bit_op(*m, "%0", in test_and_change_bit()
274 res = (orig & BIT(bit)) != 0; in test_and_change_bit()
/arch/x86/kernel/
Dresource.c33 struct resource orig = *avail; in remove_e820_regions() local
44 if (orig.start != avail->start || orig.end != avail->end) { in remove_e820_regions()
55 orig = *avail; in remove_e820_regions()
/arch/arc/include/asm/
Datomic-llsc.h48 unsigned int val, orig; \
56 [orig] "=&r" (orig) \
61 return orig; \
Datomic-spinlock.h63 unsigned int orig; \
69 orig = v->counter; \
73 return orig; \
Datomic64-arcv2.h91 s64 val, orig; \
100 : "=&r"(orig), "=&r"(val) \
104 return orig; \
/arch/mips/n64/
Dinit.c88 void *orig; in n64_platform_init() local
122 orig = kzalloc(W * H * 2 + 63, GFP_DMA | GFP_KERNEL); in n64_platform_init()
123 if (!orig) in n64_platform_init()
125 phys = virt_to_phys(orig); in n64_platform_init()
/arch/ia64/lib/
Dstrlen.S75 #define orig r17 macro
91 mov orig=in0 // keep trackof initial byte address
145 sub ret0=src,orig // distance from base
187 sub ret0=base,orig // distance from base
/arch/mips/txx9/generic/
Dsmsc_fdc37m81x.c135 u8 orig; in smsc_fdc37m81x_config_dump() local
140 orig = smsc_fdc37m81x_rd(SMSC_FDC37M81X_DNUM); in smsc_fdc37m81x_config_dump()
165 smsc_dc37m81x_wr(SMSC_FDC37M81X_DNUM, orig); in smsc_fdc37m81x_config_dump()
/arch/sparc/vdso/
Dvma.c116 static int patchsym64(struct vdso_elfinfo *_e, const char *orig, in patchsym64() argument
120 Elf64_Sym *osym = find_sym64(e, orig); in patchsym64()
184 static int patchsym32(struct vdso_elfinfo *_e, const char *orig, in patchsym32() argument
188 Elf32_Sym *osym = find_sym32(e, orig); in patchsym32()
213 static int patch_one_symbol(struct vdso_elfinfo *e, const char *orig, in patch_one_symbol() argument
217 return patchsym64(e, orig, new_target); in patch_one_symbol()
219 return patchsym32(e, orig, new_target); in patch_one_symbol()
/arch/loongarch/include/asm/
Dalternative-asm.h15 .macro altinstruction_entry orig alt feature orig_len alt_len
16 .long \orig - .
/arch/s390/kernel/
Dftrace.c82 static const char orig[6] = { 0xc0, 0x04, 0x00, 0x00, 0x00, 0x00 }; in ftrace_init_nop() local
110 if (WARN_ON_ONCE(memcmp((const void *)rec->ip, &orig, sizeof(orig)))) in ftrace_init_nop()
Duprobes.c147 unsigned long orig; in arch_uretprobe_hijack_return_addr() local
149 orig = regs->gprs[14]; in arch_uretprobe_hijack_return_addr()
151 return orig; in arch_uretprobe_hijack_return_addr()
/arch/alpha/kernel/
Dsys_sio.c263 unsigned char orig, config; in alphabook1_init_pci() local
302 outb(0x0f, 0x3ce); orig = inb(0x3cf); /* read PR5 */ in alphabook1_init_pci()
310 outb(0x0f, 0x3ce); outb(orig, 0x3cf); /* (re)lock PR0-4 */ in alphabook1_init_pci()
/arch/m68k/fpsp040/
Dx_fline.S68 cmpib #VER_40,(%a7) |test for orig unimp frame
70 subl #UNIMP_40_SIZE-4,%a7 |emulate an orig fsave
Dgen_except.S60 cmpib #UNIMP_40_SIZE-4,1(%a7) |test for orig unimp frame
102 cmpib #UNIMP_40_SIZE-4,1(%a7) |test for orig unimp frame
280 cmpib #VER_40,(%a7) |test for orig unimp frame
331 moveql #13,%d0 |in orig, need to zero 14 lwords
/arch/x86/kvm/
Dcpuid.c173 struct kvm_cpuid_entry2 *orig; in kvm_cpuid_check_equal() local
180 orig = &vcpu->arch.cpuid_entries[i]; in kvm_cpuid_check_equal()
181 if (e2[i].function != orig->function || in kvm_cpuid_check_equal()
182 e2[i].index != orig->index || in kvm_cpuid_check_equal()
183 e2[i].flags != orig->flags || in kvm_cpuid_check_equal()
184 e2[i].eax != orig->eax || e2[i].ebx != orig->ebx || in kvm_cpuid_check_equal()
185 e2[i].ecx != orig->ecx || e2[i].edx != orig->edx) in kvm_cpuid_check_equal()
/arch/sparc/include/asm/
Dpgtable_64.h895 pte_t *ptep, pte_t orig, int fullmm,
899 pte_t *ptep, pte_t orig, int fullmm, in maybe_tlb_batch_add() argument
908 if (likely(mm != &init_mm) && pte_accessible(mm, orig)) in maybe_tlb_batch_add()
909 tlb_batch_add(mm, vaddr, ptep, orig, fullmm, hugepage_shift); in maybe_tlb_batch_add()
925 pte_t orig = *ptep; in __set_pte_at() local
928 maybe_tlb_batch_add(mm, addr, ptep, orig, fullmm, PAGE_SHIFT); in __set_pte_at()
/arch/x86/include/asm/
Dalternative.h365 .macro altinstr_entry orig alt ft_flags orig_len alt_len
366 .long \orig - .
/arch/arc/kernel/
Dentry-arcv2.S203 ; Exception in U mode, preempted in kernel, Intr taken (K mode), orig
229 ; (since IRQ NOT allowed in DS in ARCv2, this can only happen if orig
/arch/x86/xen/
Denlighten_pv.c682 void (*orig)(void); member
688 .orig = asm_##func, \
693 .orig = asm_##func, \
744 if (*addr == entry->orig) { in get_trap_addr()

12