Lines Matching +full:patch +full:- +full:address
1 // SPDX-License-Identifier: GPL-2.0-only
16 #include <asm/patch.h>
39 * reg-a0) or BUILD_BUG_ON failed with "idx >= __end_of_fixed_addresses".
75 return -EINVAL; in __patch_insn_set()
121 return -EINVAL; in __patch_insn_write()
190 size = min(len, PAGE_SIZE * 2 - offset_in_page(addr)); in patch_insn_set()
196 len -= size; in patch_insn_set()
221 * Copy the instructions to the destination address, two pages at a time in patch_insn_write()
225 size = min(len, PAGE_SIZE * 2 - offset_in_page(addr)); in patch_insn_write()
232 len -= size; in patch_insn_write()
253 struct patch_insn *patch = data; in patch_text_cb() local
256 if (atomic_inc_return(&patch->cpu_count) == num_online_cpus()) { in patch_text_cb()
257 ret = patch_insn_write(patch->addr, patch->insns, patch->len); in patch_text_cb()
265 atomic_inc_return_release(&patch->cpu_count); in patch_text_cb()
267 while (atomic_read(&patch->cpu_count) <= num_online_cpus()) in patch_text_cb()
280 struct patch_insn patch = { in patch_text() local
297 ret = stop_machine_cpuslocked(patch_text_cb, &patch, cpu_online_mask); in patch_text()