Lines Matching refs:patch_addr
23 static int __patch_mem(void *exec_addr, unsigned long val, void *patch_addr, bool is_dword) in __patch_mem() argument
29 __put_kernel_nofault(patch_addr, &val32, u32, failed); in __patch_mem()
31 __put_kernel_nofault(patch_addr, &val, u64, failed); in __patch_mem()
34 asm ("dcbst 0, %0; sync; icbi 0,%1; sync; isync" :: "r" (patch_addr), in __patch_mem()
284 u32 *patch_addr; in __do_patch_mem_mm() local
294 patch_addr = (u32 *)(text_poke_addr + offset_in_page(addr)); in __do_patch_mem_mm()
310 err = __patch_mem(addr, val, patch_addr, is_dword); in __do_patch_mem_mm()
330 u32 *patch_addr; in __do_patch_mem() local
336 patch_addr = (u32 *)(text_poke_addr + offset_in_page(addr)); in __do_patch_mem()
344 err = __patch_mem(addr, val, patch_addr, is_dword); in __do_patch_mem()
437 static int __patch_instructions(u32 *patch_addr, u32 *code, size_t len, bool repeat_instr) in __patch_instructions() argument
439 unsigned long start = (unsigned long)patch_addr; in __patch_instructions()
449 err = patch_memset64((u64 *)patch_addr, val, len / 8); in __patch_instructions()
453 err = patch_memset32(patch_addr, val, len / 4); in __patch_instructions()
456 err = copy_to_kernel_nofault(patch_addr, code, len); in __patch_instructions()
474 u32 *patch_addr; in __do_patch_instructions_mm() local
480 patch_addr = (u32 *)(text_poke_addr + offset_in_page(addr)); in __do_patch_instructions_mm()
496 err = __patch_instructions(patch_addr, code, len, repeat_instr); in __do_patch_instructions_mm()
521 u32 *patch_addr; in __do_patch_instructions() local
526 patch_addr = (u32 *)(text_poke_addr + offset_in_page(addr)); in __do_patch_instructions()
534 err = __patch_instructions(patch_addr, code, len, repeat_instr); in __do_patch_instructions()