Searched refs:patched (Results 1 - 15 of 15) sorted by relevance

/linux-master/arch/riscv/kernel/
H A Dpatch.c166 size_t patched = 0; local
174 while (patched < len && !ret) {
175 size = min_t(size_t, PAGE_SIZE * 2 - offset_in_page(addr + patched), len - patched);
176 ret = __patch_insn_set(addr + patched, c, size);
178 patched += size;
201 size_t patched = 0; local
209 while (patched < len && !ret) {
210 size = min_t(size_t, PAGE_SIZE * 2 - offset_in_page(addr + patched), len - patched);
[all...]
/linux-master/arch/arm64/kernel/
H A Dpatching.c108 typedef void text_poke_f(void *dst, void *src, size_t patched, size_t len);
113 size_t patched = 0; local
120 while (patched < len) {
121 ptr = addr + patched;
123 len - patched);
126 func(waddr, src, patched, size);
129 patched += size;
138 static void text_poke_memcpy(void *dst, void *src, size_t patched, size_t len) argument
140 copy_to_kernel_nofault(dst, src + patched, len);
143 static void text_poke_memset(void *dst, void *src, size_t patched, size_ argument
[all...]
/linux-master/kernel/livepatch/
H A Dpatch.c102 * Use the previously patched version of the function.
131 if (WARN_ON(!func->patched))
157 func->patched = false;
168 if (WARN_ON(func->patched))
219 func->patched = true;
238 if (func->patched)
243 obj->patched = false;
257 if (WARN_ON(obj->patched))
267 obj->patched = true;
277 if (obj->patched)
[all...]
H A Dcore.c64 * We do not want to block removal of patched modules and therefore
278 * These relocations are written to the klp module text to allow the patched
284 * 2) When a to-be-patched module loads -- or is already loaded when a
287 * are written to the klp module text to allow the patched code/data to
288 * reference symbols which live in the to-be-patched module or one of its
291 * the to-be-patched module to be loaded and patched sometime *after* the
350 * /sys/kernel/livepatch/<patch>/<object>/patched
463 return sysfs_emit(buf, "%d\n", obj->patched);
466 static struct kobj_attribute patched_kobj_attr = __ATTR_RO(patched);
[all...]
H A Dtransition.c32 * cond_resched(). This helps CPU-bound kthreads get patched.
178 * Switch the patched state of the task to the set of functions in the target
212 * to-be-patched or to-be-unpatched function.
230 * Check for the to-be-patched function
240 /* previously patched function */
261 * by looking for any to-be-patched or to-be-unpatched functions on its stack.
279 if (!obj->patched)
311 * running, or it's sleeping on a to-be-patched or to-be-unpatched function, or
331 * Now try to check the stack for any to-be-patched or to-be-unpatched
383 * Make sure current didn't get patched betwee
[all...]
/linux-master/arch/sparc/kernel/
H A Detrap_32.S113 sll %t_wim, 0x7, %t_wim ! patched on 7 window Sparcs
116 and %g2, 0xff, %g2 ! patched on 7 window Sparcs
189 and %g2, 0xff, %g2 ! patched on 7win Sparcs
203 and %g1, 0xff, %g1 ! patched on 7win Sparcs, mask
206 sll %t_wim, 0x7, %t_wim ! patched on 7win Sparcs
209 and %g2, 0xff, %g2 ! patched on 7win Sparcs
H A Dwof.S156 * be patched at boot time once the machine type is known.
234 spnwin_patch3: and %twin_tmp, 0xff, %twin_tmp ! patched on 7win Sparcs
/linux-master/drivers/bluetooth/
H A Dhci_ag6xx.c159 bool patched = false; local
218 * cases, current firmware is already patched. No need to patch it.
221 bt_dev_info(hdev, "Device is already patched. patch num: %02x",
223 patched = true;
259 patched = true;
287 err = btintel_exit_mfg(hdev, true, patched);
H A Dbtintel.h210 int btintel_exit_mfg(struct hci_dev *hdev, bool reset, bool patched);
243 static inline int btintel_exit_mfg(struct hci_dev *hdev, bool reset, bool patched) argument
H A Dbtintel.c118 int btintel_exit_mfg(struct hci_dev *hdev, bool reset, bool patched) argument
129 param[1] |= patched ? 0x02 : 0x01;
1717 "Intel device is already patched. patch num: %02x",
/linux-master/include/linux/
H A Dlivepatch.h27 * @old_name: name of the function to be patched
28 * @new_func: pointer to the patched function code
31 * @old_func: pointer to the function being patched
38 * @patched: the func has been added to the klp_ops list
41 * The patched and transition variables define the func's patching state. When
44 * patched=0 transition=0: unpatched
45 * patched=0 transition=1: unpatched, temporary starting state
46 * patched=1 transition=1: patched, may be visible to some tasks
47 * patched
76 bool patched; member in struct:klp_func
129 bool patched; member in struct:klp_object
[all...]
/linux-master/drivers/nfc/fdp/
H A Dfdp.c462 u8 patched = 0; local
483 patched = 1;
491 patched = 1;
498 if (patched) {
/linux-master/arch/x86/kernel/
H A Dalternative.c272 * "Destination" is where the instructions are being patched in by this
332 * If the target is inside the patched block, it's relative to the
475 * cpu_feature_enabled(X86_FEATURE_LA57) and is therefore patched here.
1673 * interruptions that might execute the to be patched code.
2011 size_t patched = 0; local
2016 while (patched < len) {
2017 unsigned long ptr = start + patched;
2020 s = min_t(size_t, PAGE_SIZE * 2 - offset_in_page(ptr), len - patched);
2022 __text_poke(text_poke_memcpy, (void *)ptr, opcode + patched, s); local
2023 patched
2060 size_t patched = 0; local
[all...]
/linux-master/drivers/mfd/
H A Dcs42l43.c721 bool patched, shadow; local
751 patched = mcu_rev >= CS42L43_MCU_SUPPORTED_REV ||
767 if (!patched && cs42l43->hw_lock) {
777 if (!patched) {
797 if (patched)
/linux-master/arch/arm/kernel/
H A Dphys2virt.S94 @ order bits, which can be patched into imm8 directly (and i:imm3

Completed in 435 milliseconds