Home
last modified time | relevance | path

Searched full:alternative (Results 1 – 25 of 770) sorted by relevance

12345678910>>...31

/linux-6.12.1/arch/x86/include/asm/
Dsmap.h14 #include <asm/alternative.h>
23 ALTERNATIVE "", __ASM_CLAC, X86_FEATURE_SMAP
26 ALTERNATIVE "", __ASM_STAC, X86_FEATURE_SMAP
32 /* Note: a barrier is implicit in alternative() */ in clac()
33 alternative("", __ASM_CLAC, X86_FEATURE_SMAP); in clac()
38 /* Note: a barrier is implicit in alternative() */ in stac()
39 alternative("", __ASM_STAC, X86_FEATURE_SMAP); in stac()
47 ALTERNATIVE("", "pushf; pop %0; " __ASM_CLAC "\n\t", in smap_save()
57 ALTERNATIVE("", "push %0; popf\n\t", in smap_restore()
64 ALTERNATIVE("", __ASM_CLAC, X86_FEATURE_SMAP)
[all …]
Dalternative.h22 * Alternative inline assembly for SMP.
32 * The SMP alternative tables can be kept after boot and contain both
95 * Debug flag that can be tested to see whether alternative
186 /* alternative assembly primitive: */
187 #define ALTERNATIVE(oldinstr, newinstr, ft_flags) \ macro
193 ALTERNATIVE(ALTERNATIVE(oldinstr, newinstr1, ft_flags1), newinstr2, ft_flags2)
201 ALTERNATIVE(ALTERNATIVE_2(oldinstr, newinstr1, ft_flags1, newinstr2, ft_flags2), \
205 * Alternative instructions for different CPU types or capabilities.
216 #define alternative(oldinstr, newinstr, ft_flags) \ macro
217 asm_inline volatile(ALTERNATIVE(oldinstr, newinstr, ft_flags) : : : "memory")
[all …]
Dbarrier.h5 #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", \
48 #define barrier_nospec() alternative("", "lfence", X86_FEATURE_LFENCE_RDTSC)
Duaccess_64.h11 #include <asm/alternative.h>
29 asm (ALTERNATIVE("", in __untagged_addr()
60 * Masking the user address is an alternative to a conditional
128 ALTERNATIVE("rep movsb", in copy_user_generic()
190 ALTERNATIVE("rep stosb", in __clear_user()
/linux-6.12.1/arch/s390/include/asm/
Dalternative.h6 * Each alternative comes with a 32 bit feature field:
17 * in which context an alternative is supposed to be applied to the
24 * specific alternative patching.
27 * alternative should be applied.
66 u32 type : 8; /* type of alternative */
96 * | alternative instr 1 |
99 * | alternative instr 2 |
105 * | alternative instr |
129 /* alternative assembly primitive: */
130 #define ALTERNATIVE(oldinstr, altinstr, feature) \ macro
[all …]
/linux-6.12.1/tools/testing/selftests/net/
Daltnames.sh21 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-6.12.1/arch/arm64/include/asm/
Dalternative-macros.h41 * alternative assembly primitive:
117 * Alternative sequences
131 * alternative sequence it is defined in (branches into an
132 * alternative sequence are not fixed up).
136 * Begin an alternative code sequence.
165 * Provide the other half of the alternative code sequence.
178 * Complete an alternative code sequence.
190 * Callback-based alternative epilogue
197 * Provides a trivial alternative or default sequence consisting solely
213 * Usage: asm(ALTERNATIVE(oldinstr, newinstr, cpucap));
[all …]
Dlse.h14 #include <asm/alternative.h>
15 #include <asm/alternative-macros.h>
28 ALTERNATIVE(llsc, __LSE_PREAMBLE lse, ARM64_HAS_LSE_ATOMICS)
Darch_timer.h69 asm volatile(ALTERNATIVE("isb\n mrs %0, cntpct_el0", in arch_timer_read_cntpct_el0()
81 asm volatile(ALTERNATIVE("isb\n mrs %0, cntvct_el0", in arch_timer_read_cntvct_el0()
183 asm volatile(ALTERNATIVE("isb\n mrs %0, cntpct_el0", in __arch_counter_get_cntpct()
204 asm volatile(ALTERNATIVE("isb\n mrs %0, cntvct_el0", in __arch_counter_get_cntvct()
/linux-6.12.1/arch/parisc/include/asm/
Dcache.h9 #include <asm/alternative.h>
53 ALTERNATIVE(ALT_COND_NO_SMP, INSN_PxTLB) \
56 ALTERNATIVE(ALT_COND_NO_SMP, INSN_PxTLB) \
57 ALTERNATIVE(ALT_COND_NO_SPLIT_TLB, INSN_NOP) \
61 ALTERNATIVE(ALT_COND_NO_DCACHE, INSN_NOP) \
62 ALTERNATIVE(ALT_COND_NO_IOC_FDC, INSN_NOP) \
65 ALTERNATIVE(ALT_COND_NO_DCACHE, INSN_NOP) \
66 ALTERNATIVE(ALT_COND_NO_IOC_FDC, INSN_NOP) :::"memory")
Dalternative.h35 /* Alternative SMP implementation. */
36 #define ALTERNATIVE(cond, replacement) "!0:" \ macro
47 #define ALTERNATIVE(from, to, cond, replacement)\ macro
/linux-6.12.1/arch/riscv/include/asm/
Derrata_list.h8 #include <asm/alternative.h>
34 ALTERNATIVE(__stringify(RISCV_PTR do_trap_insn_fault), \
40 ALTERNATIVE(__stringify(RISCV_PTR do_page_fault), \
47 asm(ALTERNATIVE("sfence.vma x0, %0", "sfence.vma", SIFIVE_VENDOR_ID, \
52 asm(ALTERNATIVE("sfence.vma %0", "sfence.vma", SIFIVE_VENDOR_ID, \
57 asm(ALTERNATIVE("sfence.vma %0, %1", "sfence.vma", SIFIVE_VENDOR_ID, \
86 asm volatile(ALTERNATIVE( \
107 asm volatile(ALTERNATIVE( \
Dalternative-macros.h19 .pushsection .alternative, "a"
70 ".pushsection .alternative, \"a\"\n" \
140 * ALTERNATIVE(old_content, new_content, vendor_id, patch_id, CONFIG_k)
142 * asm(ALTERNATIVE(old_content, new_content, vendor_id, patch_id, CONFIG_k));
151 #define ALTERNATIVE(old_content, new_content, vendor_id, patch_id, CONFIG_k) \ macro
156 * ALTERNATIVE() to patch its customized content at the same location. In
158 * on the following sample code and then replace ALTERNATIVE() with
Darch_hweight.h9 #include <asm/alternative-macros.h>
23 asm goto(ALTERNATIVE("j %l[legacy]", "nop", 0, in __arch_hweight32()
54 asm goto(ALTERNATIVE("j %l[legacy]", "nop", 0, in __arch_hweight64()
/linux-6.12.1/arch/loongarch/include/asm/
Dalternative.h21 * Debug flag that can be tested to see whether alternative
50 * Pad the second replacement alternative with additional NOPs if it is
51 * additionally longer than the first replacement alternative.
70 /* alternative assembly primitive: */
71 #define ALTERNATIVE(oldinstr, newinstr, feature) \ macro
92 * Alternative instructions for different CPU types or capabilities.
103 #define alternative(oldinstr, newinstr, feature) \ macro
104 (asm volatile (ALTERNATIVE(oldinstr, newinstr, feature) : : : "memory"))
/linux-6.12.1/Documentation/networking/pse-pd/
Dpse-pi.rst32 design. As a result, the complexities of choosing between alternative pin
42 as Alternative A and Alternative B, which are distinguished not only by their
46 Alternative A and B Overview
49 - **Alternative A:** Utilizes RJ45 conductors 1, 2, 3 and 6. In either case of
51 The power delivery's polarity in this alternative can vary based on the MDI
55 - **Alternative B:** Utilizes RJ45 conductors 4, 5, 7 and 8. In case of
58 1G/2G/5G/10GBaseT network. Alternative B includes two configurations with
65 The following table outlines the pin configurations for both Alternative A and
66 Alternative B.
69 | Conductor | Alternative A | Alternative A | Alternative B | Alternative B |
[all …]
/linux-6.12.1/tools/testing/selftests/powerpc/pmu/event_code_tests/
Devent_alternatives_tests_p9.c34 * alternative events is handled by respective PMU driver in event_alternatives_tests_p9()
50 * Expected to pass since PM_RUN_CYC_ALT in PMC2 has alternative event in event_alternatives_tests_p9()
63 * Expected to pass since PM_INST_DISP in PMC2 has alternative event in event_alternatives_tests_p9()
76 * Expected to pass since PM_BR_2PATH in PMC2 has alternative event in event_alternatives_tests_p9()
89 * Expected to pass since PM_LD_MISS_L1 in PMC3 has alternative event in event_alternatives_tests_p9()
102 * Expected to pass since PM_RUN_INST_CMPL_ALT in PMC4 has alternative event in event_alternatives_tests_p9()
Devent_alternatives_tests_p10.c35 * alternative events is handled by respective PMU driver in event_alternatives_tests_p10()
44 * Test for event alternative for 0x0001e in event_alternatives_tests_p10()
65 * Expected to pass since 0x0001e has alternative event in event_alternatives_tests_p10()
93 * Expected to pass since 0x00020 has alternative event in event_alternatives_tests_p10()
/linux-6.12.1/arch/x86/um/asm/
Dbarrier.h6 #include <asm/alternative.h>
15 #define mb() alternative("lock; addl $0,0(%%esp)", "mfence", X86_FEATURE_XMM2)
16 #define rmb() alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2)
17 #define wmb() alternative("lock; addl $0,0(%%esp)", "sfence", X86_FEATURE_XMM)
/linux-6.12.1/Documentation/devicetree/bindings/net/pse-pd/
Dpse-controller.yaml75 - alternative-a
76 - alternative-b
86 | Conductor | Alternative A | Alternative A | Alternative B | Alternative B |
/linux-6.12.1/arch/x86/entry/
Dcalling.h167 ALTERNATIVE "", "SET_NOFLUSH_BIT \reg", X86_FEATURE_PCID
173 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_PTI
186 ALTERNATIVE "jmp .Lwrcr3_\@", "", X86_FEATURE_PCID
216 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_PTI
222 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_PTI
230 ALTERNATIVE "jmp .Ldone_\@", "", X86_FEATURE_PTI
249 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_PTI
259 ALTERNATIVE "jmp .Lwrcr3_\@", "", X86_FEATURE_PCID
306 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_KERNEL_IBRS
335 ALTERNATIVE "jmp .Lend_\@", "", X86_FEATURE_KERNEL_IBRS
[all …]
/linux-6.12.1/arch/s390/kernel/
Dalternative.c6 #include <asm/alternative.h>
17 * alternative code can overwrite previously scanned alternative code. in __apply_alternatives()
/linux-6.12.1/arch/riscv/kernel/
Dalternative.c3 * alternative runtime patching
13 #include <asm/alternative.h>
136 /* Don't modify jumps inside the alternative block */ in riscv_alternative_fix_offsets()
181 alt = find_section(hdr, shdr, ".alternative"); in apply_vdso_alternatives()
218 * for alternative.o in kernel/Makefile.
/linux-6.12.1/include/linux/pse-pd/
Dpse.h105 /* PSE PI pairset pinout can either be Alternative A or Alternative B */
113 * alternative ant its phandle
115 * @pinout: description of the pinout alternative
127 * @pairset: table of the PSE PI pinout alternative for the two pairset
/linux-6.12.1/arch/parisc/kernel/
Dpacache.S26 #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)
305 89: ALTERNATIVE(88b, 89b, ALT_COND_NO_DCACHE, INSN_NOP)
548 ALTERNATIVE(0b, 0b+4, ALT_COND_NO_SMP, INSN_PxTLB)
549 ALTERNATIVE(1b, 1b+4, ALT_COND_NO_SMP, INSN_PxTLB)
677 ALTERNATIVE(0b, 0b+4, ALT_COND_NO_SMP, INSN_PxTLB)
743 ALTERNATIVE(0b, 0b+4, ALT_COND_NO_SMP, INSN_PxTLB)
775 89: ALTERNATIVE(88b, 89b, ALT_COND_NO_DCACHE, INSN_NOP)
792 ALTERNATIVE(0b, 0b+4, ALT_COND_NO_SMP, INSN_PxTLB)
[all …]

12345678910>>...31