| /arch/arm64/kernel/ |
| A D | alternative.c | 110 replptr = ALT_REPL_PTR(alt); in patch_alternative() 146 struct alt_instr *alt; in __apply_alternatives() local 150 for (alt = region->begin; alt < region->end; alt++) { in __apply_alternatives() 152 int cap = ALT_CAP(alt); in __apply_alternatives() 160 if (ALT_HAS_CB(alt)) in __apply_alternatives() 161 BUG_ON(alt->alt_len != 0); in __apply_alternatives() 163 BUG_ON(alt->alt_len != alt->orig_len); in __apply_alternatives() 165 origptr = ALT_ORIG_PTR(alt); in __apply_alternatives() 169 if (ALT_HAS_CB(alt)) in __apply_alternatives() 211 if (!alt) in apply_alternatives_vdso() [all …]
|
| A D | proton-pack.c | 580 void __init spectre_v4_patch_fw_mitigation_enable(struct alt_instr *alt, in spectre_v4_patch_fw_mitigation_enable() argument 600 void __init smccc_patch_fw_mitigation_conduit(struct alt_instr *alt, in smccc_patch_fw_mitigation_conduit() argument 1109 void noinstr spectre_bhb_patch_loop_mitigation_enable(struct alt_instr *alt, in spectre_bhb_patch_loop_mitigation_enable() argument 1120 void noinstr spectre_bhb_patch_fw_mitigation_enabled(struct alt_instr *alt, in spectre_bhb_patch_fw_mitigation_enabled() argument 1131 void noinstr spectre_bhb_patch_loop_iter(struct alt_instr *alt, in spectre_bhb_patch_loop_iter() argument 1151 void noinstr spectre_bhb_patch_wa3(struct alt_instr *alt, in spectre_bhb_patch_wa3() argument 1177 void __init spectre_bhb_patch_clearbhb(struct alt_instr *alt, in spectre_bhb_patch_clearbhb() argument
|
| /arch/riscv/errata/sifive/ |
| A D | errata.c | 95 struct alt_entry *alt; in sifive_errata_patch_func() local 107 for (alt = begin; alt < end; alt++) { in sifive_errata_patch_func() 108 if (alt->vendor_id != SIFIVE_VENDOR_ID) in sifive_errata_patch_func() 110 if (alt->patch_id >= ERRATA_SIFIVE_NUMBER) { in sifive_errata_patch_func() 111 WARN(1, "This errata id:%d is not in kernel errata list", alt->patch_id); in sifive_errata_patch_func() 115 tmp = (1U << alt->patch_id); in sifive_errata_patch_func() 118 patch_text_nosync(ALT_OLD_PTR(alt), ALT_ALT_PTR(alt), in sifive_errata_patch_func() 119 alt->alt_len); in sifive_errata_patch_func()
|
| /arch/riscv/errata/thead/ |
| A D | errata.c | 193 struct alt_entry *alt; in thead_errata_patch_func() local 200 for (alt = begin; alt < end; alt++) { in thead_errata_patch_func() 201 if (alt->vendor_id != THEAD_VENDOR_ID) in thead_errata_patch_func() 203 if (alt->patch_id >= ERRATA_THEAD_NUMBER) in thead_errata_patch_func() 206 tmp = (1U << alt->patch_id); in thead_errata_patch_func() 208 oldptr = ALT_OLD_PTR(alt); in thead_errata_patch_func() 209 altptr = ALT_ALT_PTR(alt); in thead_errata_patch_func() 213 memcpy(oldptr, altptr, alt->alt_len); in thead_errata_patch_func() 216 patch_text_nosync(oldptr, altptr, alt->alt_len); in thead_errata_patch_func()
|
| /arch/powerpc/perf/ |
| A D | power6-pmu.c | 362 if (alt < event) in find_alternatives_list() 364 else if (alt > event) in find_alternatives_list() 380 alt[0] = event; in p6_get_alternatives() 392 alt[nalt++] = aevent; in p6_get_alternatives() 424 switch (alt[i]) { in p6_get_alternatives() 430 alt[j++] = 0x1e; /* PM_CYC */ in p6_get_alternatives() 437 alt[j++] = 2; /* PM_INST_CMPL */ in p6_get_alternatives() 443 alt[j++] = 0x10000e; /* PM_PURR */ in p6_get_alternatives() 455 alt[j] = alt[i]; in p6_get_alternatives() 464 if (p6_limited_pmc_event(alt[i])) { in p6_get_alternatives() [all …]
|
| A D | power5+-pmu.c | 280 alt[0] = event; in power5p_get_alternatives() 288 alt[nalt++] = ae; in power5p_get_alternatives() 294 alt[nalt++] = ae; in power5p_get_alternatives() 310 switch (alt[i]) { in power5p_get_alternatives() 312 alt[j++] = 0x600005; /* PM_RUN_CYC */ in power5p_get_alternatives() 316 alt[j++] = 0xf; in power5p_get_alternatives() 323 alt[j++] = 0x100009; /* PM_INST_CMPL */ in power5p_get_alternatives() 324 alt[j++] = 0x200009; in power5p_get_alternatives() 336 alt[j] = alt[i]; in power5p_get_alternatives() 345 if (power5p_limited_pmc_event(alt[i])) { in power5p_get_alternatives() [all …]
|
| A D | power7-pmu.c | 158 static int power7_get_alternatives(u64 event, unsigned int flags, u64 alt[]) in power7_get_alternatives() argument 163 alt[0] = event; in power7_get_alternatives() 170 alt[nalt++] = ae; in power7_get_alternatives() 175 alt[nalt++] = ae; in power7_get_alternatives() 188 switch (alt[i]) { in power7_get_alternatives() 190 alt[j++] = 0x600f4; /* PM_RUN_CYC */ in power7_get_alternatives() 193 alt[j++] = 0x1e; in power7_get_alternatives() 196 alt[j++] = 0x500fa; /* PM_RUN_INST_CMPL */ in power7_get_alternatives() 199 alt[j++] = 0x2; /* PM_PPC_CMPL */ in power7_get_alternatives()
|
| A D | isa207-common.c | 767 int isa207_get_alternatives(u64 event, u64 alt[], int size, unsigned int flags, in isa207_get_alternatives() argument 773 alt[num_alt++] = event; in isa207_get_alternatives() 780 alt[num_alt++] = alt_event; in isa207_get_alternatives() 791 switch (alt[i]) { in isa207_get_alternatives() 793 alt[j++] = 0x600f4; /* PM_RUN_CYC */ in isa207_get_alternatives() 796 alt[j++] = 0x1e; in isa207_get_alternatives() 799 alt[j++] = 0x500fa; /* PM_RUN_INST_CMPL */ in isa207_get_alternatives() 802 alt[j++] = 0x2; in isa207_get_alternatives()
|
| A D | mpc7450-pmu.c | 222 static int mpc7450_get_alternatives(u64 event, unsigned int flags, u64 alt[]) in mpc7450_get_alternatives() argument 227 alt[0] = event; in mpc7450_get_alternatives() 234 alt[nalt++] = ae; in mpc7450_get_alternatives()
|
| A D | power5-pmu.c | 270 static int power5_get_alternatives(u64 event, unsigned int flags, u64 alt[]) in power5_get_alternatives() argument 275 alt[0] = event; in power5_get_alternatives() 282 alt[nalt++] = ae; in power5_get_alternatives() 287 alt[nalt++] = ae; in power5_get_alternatives()
|
| /arch/x86/include/asm/ |
| A D | paravirt_types.h | 414 alt, cond) \ 444 #define __PVOP_ALT_VCALL(op, alt, cond, ...) \ argument 445 (void)____PVOP_ALT_CALL(, op, alt, cond, \ 454 (void)____PVOP_ALT_CALL(, op.func, alt, cond, \ 463 __PVOP_ALT_CALL(rettype, op, alt, cond) 464 #define PVOP_ALT_VCALL0(op, alt, cond) \ argument 465 __PVOP_ALT_VCALL(op, alt, cond) 472 __PVOP_ALT_CALLEESAVE(rettype, op, alt, cond) 473 #define PVOP_ALT_VCALLEE0(op, alt, cond) \ argument 474 __PVOP_ALT_VCALLEESAVE(op, alt, cond) [all …]
|
| A D | vdso.h | 17 unsigned long alt, alt_len; member
|
| /arch/arm/boot/dts/aspeed/ |
| A D | openbmc-flash-layout-64-alt.dtsi | 13 label = "alt-u-boot"; 18 label = "alt-u-boot-env"; 23 label = "alt-kernel"; 28 label = "alt-rofs"; 33 label = "alt-rwfs";
|
| /arch/arm64/include/asm/ |
| A D | spectre.h | 106 void spectre_v4_patch_fw_mitigation_enable(struct alt_instr *alt, __le32 *origptr, 108 void smccc_patch_fw_mitigation_conduit(struct alt_instr *alt, __le32 *origptr, 110 void spectre_bhb_patch_loop_mitigation_enable(struct alt_instr *alt, __le32 *origptr, 112 void spectre_bhb_patch_fw_mitigation_enabled(struct alt_instr *alt, __le32 *origptr, 114 void spectre_bhb_patch_loop_iter(struct alt_instr *alt, 116 void spectre_bhb_patch_wa3(struct alt_instr *alt, 118 void spectre_bhb_patch_clearbhb(struct alt_instr *alt,
|
| A D | alternative.h | 21 typedef void (*alternative_cb_t)(struct alt_instr *alt, 34 void alt_cb_patch_nops(struct alt_instr *alt, __le32 *origptr,
|
| /arch/riscv/kernel/ |
| A D | alternative.c | 176 const Elf_Shdr *alt; in apply_vdso_alternatives() local 181 alt = find_section(hdr, shdr, ".alternative"); in apply_vdso_alternatives() 182 if (!alt) in apply_vdso_alternatives() 185 begin = (void *)hdr + alt->sh_offset, in apply_vdso_alternatives() 186 end = (void *)hdr + alt->sh_offset + alt->sh_size, in apply_vdso_alternatives()
|
| A D | cpufeature.c | 1176 struct alt_entry *alt; in riscv_cpufeature_patch_func() local 1183 for (alt = begin; alt < end; alt++) { in riscv_cpufeature_patch_func() 1184 id = PATCH_ID_CPUFEATURE_ID(alt->patch_id); in riscv_cpufeature_patch_func() 1185 vendor = PATCH_ID_CPUFEATURE_ID(alt->vendor_id); in riscv_cpufeature_patch_func() 1200 if (alt->vendor_id != 0) in riscv_cpufeature_patch_func() 1206 value = PATCH_ID_CPUFEATURE_VALUE(alt->patch_id); in riscv_cpufeature_patch_func() 1218 oldptr = ALT_OLD_PTR(alt); in riscv_cpufeature_patch_func() 1219 altptr = ALT_ALT_PTR(alt); in riscv_cpufeature_patch_func() 1222 patch_text_nosync(oldptr, altptr, alt->alt_len); in riscv_cpufeature_patch_func() 1223 riscv_alternative_fix_offsets(oldptr, alt->alt_len, oldptr - altptr); in riscv_cpufeature_patch_func()
|
| /arch/s390/kernel/ |
| A D | vdso.c | 165 const struct elf64_shdr *alt, *shdr; in vdso_apply_alternatives() local 171 alt = find_section(hdr, shdr, ".altinstructions"); in vdso_apply_alternatives() 172 if (!alt) in vdso_apply_alternatives() 174 start = (void *)hdr + alt->sh_offset; in vdso_apply_alternatives() 175 end = (void *)hdr + alt->sh_offset + alt->sh_size; in vdso_apply_alternatives()
|
| /arch/arm64/kvm/ |
| A D | va_layout.c | 154 void __init kvm_update_va_mask(struct alt_instr *alt, in kvm_update_va_mask() argument 188 void kvm_patch_vector_branch(struct alt_instr *alt, in kvm_patch_vector_branch() argument 287 void kvm_get_kimage_voffset(struct alt_instr *alt, in kvm_get_kimage_voffset() argument 293 void kvm_compute_final_ctr_el0(struct alt_instr *alt, in kvm_compute_final_ctr_el0() argument
|
| /arch/loongarch/include/asm/ |
| A D | alternative-asm.h | 15 .macro altinstruction_entry orig alt feature orig_len alt_len 17 .long \alt - .
|
| /arch/x86/kernel/ |
| A D | module.c | 242 const Elf_Shdr *s, *alt = NULL, *locks = NULL, in module_finalize() local 250 alt = s; in module_finalize() 306 if (alt) { in module_finalize() 308 void *aseg = (void *)alt->sh_addr; in module_finalize() 309 apply_alternatives(aseg, aseg + alt->sh_size); in module_finalize()
|
| /arch/arm/kernel/ |
| A D | vmlinux.lds.S | 41 *(.alt.smp.init) 113 *(.alt.smp.init)
|
| /arch/m68k/hp300/ |
| A D | hp300map.map | 69 alt keycode 55 = Meta_Tab 79 alt keycode 63 = Meta_grave 127 alt keycode 101 = Meta_backslash 134 alt keycode 107 = Meta_semicolon 137 alt keycode 108 = Meta_apostrophe
|
| /arch/loongarch/kernel/ |
| A D | module.c | 514 const Elf_Shdr *s, *alt = NULL, *orc = NULL, *orc_ip = NULL, *ftrace = NULL; in module_finalize() local 518 alt = s; in module_finalize() 527 if (alt) in module_finalize() 528 apply_alternatives((void *)alt->sh_addr, (void *)alt->sh_addr + alt->sh_size); in module_finalize()
|
| /arch/arm/boot/dts/vt8500/ |
| A D | wm8750-apc8750.dts | 27 wm,function = <2>; /* alt */
|