/Linux-v5.15/arch/x86/include/asm/ |
D | smap.h | 14 #include <asm/alternative.h> 25 ALTERNATIVE "", __ASM_CLAC, X86_FEATURE_SMAP 28 ALTERNATIVE "", __ASM_STAC, X86_FEATURE_SMAP 43 /* Note: a barrier is implicit in alternative() */ in clac() 44 alternative("", __ASM_CLAC, X86_FEATURE_SMAP); in clac() 49 /* Note: a barrier is implicit in alternative() */ in stac() 50 alternative("", __ASM_STAC, X86_FEATURE_SMAP); in stac() 58 ALTERNATIVE("", "pushf; pop %0; " __ASM_CLAC "\n\t", in smap_save() 68 ALTERNATIVE("", "push %0; popf\n\t", in smap_restore() 75 ALTERNATIVE("", __ASM_CLAC, X86_FEATURE_SMAP) [all …]
|
D | alternative.h | 17 * Alternative inline assembly for SMP. 27 * The SMP alternative tables can be kept after boot and contain both 71 * Debug flag that can be tested to see whether alternative 126 * Pad the second replacement alternative with additional NOPs if it is 127 * additionally longer than the first replacement alternative. 158 /* alternative assembly primitive: */ 159 #define ALTERNATIVE(oldinstr, newinstr, feature) \ macro 198 * Alternative instructions for different CPU types or capabilities. 209 #define alternative(oldinstr, newinstr, feature) \ macro 210 asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) : : : "memory") [all …]
|
D | barrier.h | 5 #include <asm/alternative.h> 15 #define mb() asm volatile(ALTERNATIVE("lock; addl $0,-4(%%esp)", "mfence", \ 17 #define rmb() asm volatile(ALTERNATIVE("lock; addl $0,-4(%%esp)", "lfence", \ 19 #define wmb() asm volatile(ALTERNATIVE("lock; addl $0,-4(%%esp)", "sfence", \ 52 #define barrier_nospec() alternative("", "lfence", X86_FEATURE_LFENCE_RDTSC)
|
D | arch_hweight.h | 19 asm (ALTERNATIVE("call __sw_hweight32", "popcntl %1, %0", X86_FEATURE_POPCNT) in __arch_hweight32() 47 asm (ALTERNATIVE("call __sw_hweight64", "popcntq %1, %0", X86_FEATURE_POPCNT) in __arch_hweight64()
|
/Linux-v5.15/tools/testing/selftests/net/ |
D | altnames.sh | 21 check_err $? "Failed to add short alternative name" 24 check_err $? "Failed to do link show with short alternative name" 27 check_err $? "Failed to get short alternative name from link show JSON" 30 check_err $? "Got unexpected short alternative name from link show JSON" 36 check_err $? "Failed to add long alternative name" 39 check_err $? "Failed to do link show with long alternative name" 42 check_err $? "Failed to get long alternative name from link show JSON" 45 check_err $? "Got unexpected long alternative name from link show JSON" 48 check_err $? "Failed to delete short alternative name" 51 check_fail $? "Unexpected success while trying to do link show with deleted short alternative name"
|
/Linux-v5.15/arch/parisc/include/asm/ |
D | cache.h | 9 #include <asm/alternative.h> 43 ALTERNATIVE(ALT_COND_NO_SMP, INSN_PxTLB) \ 46 ALTERNATIVE(ALT_COND_NO_SMP, INSN_PxTLB) \ 47 ALTERNATIVE(ALT_COND_NO_SPLIT_TLB, INSN_NOP) \ 50 ALTERNATIVE(ALT_COND_NO_SMP, INSN_PxTLB) \ 54 ALTERNATIVE(ALT_COND_NO_DCACHE, INSN_NOP) \ 55 ALTERNATIVE(ALT_COND_NO_IOC_FDC, INSN_NOP) \ 58 ALTERNATIVE(ALT_COND_NO_DCACHE, INSN_NOP) \ 59 ALTERNATIVE(ALT_COND_NO_IOC_FDC, INSN_NOP) :::"memory")
|
D | alternative.h | 35 /* Alternative SMP implementation. */ 36 #define ALTERNATIVE(cond, replacement) "!0:" \ macro 45 #define ALTERNATIVE(from, to, cond, replacement)\ macro
|
/Linux-v5.15/arch/arm64/include/asm/ |
D | alternative-macros.h | 29 * alternative assembly primitive: 105 * Alternative sequences 119 * alternative sequence it is defined in (branches into an 120 * alternative sequence are not fixed up). 124 * Begin an alternative code sequence. 153 * Provide the other half of the alternative code sequence. 166 * Complete an alternative code sequence. 178 * Callback-based alternative epilogue 185 * Provides a trivial alternative or default sequence consisting solely 201 * Usage: asm(ALTERNATIVE(oldinstr, newinstr, feature)); [all …]
|
D | irqflags.h | 8 #include <asm/alternative.h> 35 asm volatile(ALTERNATIVE( in arch_local_irq_enable() 54 asm volatile(ALTERNATIVE( in arch_local_irq_disable() 70 asm volatile(ALTERNATIVE( in arch_local_save_flags() 85 asm volatile(ALTERNATIVE( in arch_irqs_disabled_flags() 122 asm volatile(ALTERNATIVE( in arch_local_irq_restore()
|
D | io.h | 18 #include <asm/alternative.h> 52 asm volatile(ALTERNATIVE("ldrb %w0, [%1]", in __raw_readb() 64 asm volatile(ALTERNATIVE("ldrh %w0, [%1]", in __raw_readw() 75 asm volatile(ALTERNATIVE("ldr %w0, [%1]", in __raw_readl() 86 asm volatile(ALTERNATIVE("ldr %0, [%1]", in __raw_readq()
|
D | kvm_hyp.h | 12 #include <asm/alternative.h> 22 asm volatile(ALTERNATIVE(__mrs_s("%0", r##nvh), \ 32 asm volatile(ALTERNATIVE(__msr_s(r##nvh, "%x0"), \
|
D | lse.h | 15 #include <asm/alternative.h> 37 ALTERNATIVE(llsc, __LSE_PREAMBLE lse, ARM64_HAS_LSE_ATOMICS)
|
D | rwonce.h | 11 #include <asm/alternative-macros.h> 17 ALTERNATIVE( \
|
/Linux-v5.15/arch/s390/include/asm/ |
D | alternative.h | 36 * | alternative instr 1 | 39 * | alternative instr 2 | padding 46 * | alternative instr | 108 /* alternative assembly primitive: */ 109 #define ALTERNATIVE(oldinstr, altinstr, facility) \ macro 130 * Alternative instructions for different CPU types or capabilities. 141 #define alternative(oldinstr, altinstr, facility) \ macro 142 asm_inline volatile(ALTERNATIVE(oldinstr, altinstr, facility) : : : "memory") 148 /* Alternative inline assembly with input. */ 150 asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \ [all …]
|
D | alternative-asm.h | 62 * Define an alternative between two instructions. If @feature is 67 .macro ALTERNATIVE oldinstr, newinstr, feature 81 * Define an alternative between two instructions. If @feature is
|
D | nospec-insn.h | 5 #include <asm/alternative-asm.h> 111 # The ALTERNATIVE replacement code has a .+10 which targets 118 ALTERNATIVE "ex %r0,_LC_BR_R1", ".insn ril,0xc60000000000,0,.+10", 35
|
/Linux-v5.15/arch/riscv/include/asm/ |
D | alternative-macros.h | 19 .pushsection .alternative, "a" 56 ".pushsection .alternative, \"a\"\n" \ 101 * ALTERNATIVE(old_content, new_content, vendor_id, errata_id, CONFIG_k) 103 * asm(ALTERNATIVE(old_content, new_content, vendor_id, errata_id, CONFIG_k)); 112 #define ALTERNATIVE(old_content, new_content, vendor_id, errata_id, CONFIG_k) \ macro 117 * ALTERNATIVE() to patch its customized content at the same location. In 119 * on the following sample code and then replace ALTERNATIVE() with
|
D | errata_list.h | 8 #include <asm/alternative.h> 20 ALTERNATIVE(__stringify(RISCV_PTR do_trap_insn_fault), \ 26 ALTERNATIVE(__stringify(RISCV_PTR do_page_fault), \ 33 asm(ALTERNATIVE("sfence.vma %0", "sfence.vma", SIFIVE_VENDOR_ID, \
|
/Linux-v5.15/arch/x86/um/asm/ |
D | barrier.h | 5 #include <asm/alternative.h> 14 #define mb() alternative("lock; addl $0,0(%%esp)", "mfence", X86_FEATURE_XMM2) 15 #define rmb() alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2) 16 #define wmb() alternative("lock; addl $0,0(%%esp)", "sfence", X86_FEATURE_XMM)
|
/Linux-v5.15/arch/x86/entry/ |
D | calling.h | 167 ALTERNATIVE "", "SET_NOFLUSH_BIT \reg", X86_FEATURE_PCID 173 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_PTI 184 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_PTI 187 ALTERNATIVE "jmp .Lwrcr3_\@", "", X86_FEATURE_PCID 224 ALTERNATIVE "jmp .Ldone_\@", "", X86_FEATURE_PTI 242 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_PTI 244 ALTERNATIVE "jmp .Lwrcr3_\@", "", X86_FEATURE_PCID 303 ALTERNATIVE "", "lfence", X86_FEATURE_FENCE_SWAPGS_USER 306 ALTERNATIVE "", "lfence", X86_FEATURE_FENCE_SWAPGS_KERNEL
|
/Linux-v5.15/arch/parisc/kernel/ |
D | pacache.S | 26 #include <asm/alternative.h> 106 ALTERNATIVE(88b, fitdone, ALT_COND_NO_SPLIT_TLB, INSN_NOP) 244 89: ALTERNATIVE(88b, 89b, ALT_COND_NO_ICACHE, INSN_NOP) 306 89: ALTERNATIVE(88b, 89b, ALT_COND_NO_DCACHE, INSN_NOP) 570 ALTERNATIVE(0b, 0b+4, ALT_COND_NO_SMP, INSN_PxTLB) 571 ALTERNATIVE(1b, 1b+4, ALT_COND_NO_SMP, INSN_PxTLB) 709 ALTERNATIVE(0b, 0b+4, ALT_COND_NO_SMP, INSN_PxTLB) 785 ALTERNATIVE(0b, 0b+4, ALT_COND_NO_SMP, INSN_PxTLB) 817 89: ALTERNATIVE(88b, 89b, ALT_COND_NO_DCACHE, INSN_NOP) 844 ALTERNATIVE(0b, 0b+4, ALT_COND_NO_SMP, INSN_PxTLB) [all …]
|
D | alternative.c | 3 * Alternative live-patching for parisc. 10 #include <asm/alternative.h> 81 pr_debug("ALTERNATIVE %3d: Cond %2x, Replace %2d instructions to 0x%08x @ 0x%px (%pS)\n", in apply_alternatives()
|
/Linux-v5.15/arch/s390/kernel/ |
D | alternative.c | 3 #include <asm/alternative.h> 71 * alternative code can overwrite previously scanned alternative code. in __apply_alternatives()
|
/Linux-v5.15/arch/riscv/errata/ |
D | alternative.c | 3 * alternative runtime patching 12 #include <asm/alternative.h>
|
/Linux-v5.15/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/ |
D | debug_public.h | 33 * An alternative (storage efficient) implementation 38 * in the remote buffer (unless the alternative
|