Lines Matching defs:dest
119 static bool skip_addr(void *dest)
121 if (dest == error_entry)
123 if (dest == paranoid_entry)
125 if (dest == xen_error_entry)
128 if (dest == __switch_to_asm)
131 if (dest == ret_from_fork)
134 if (dest == soft_restart_cpu)
138 if (dest == __fentry__)
142 if (dest >= (void *)relocate_kernel &&
143 dest < (void*)relocate_kernel + KEXEC_CONTROL_CODE_MAX_SIZE)
147 if (dest >= (void *)hypercall_page &&
148 dest < (void*)hypercall_page + PAGE_SIZE)
157 void *dest;
168 dest = addr + insn.length + insn.immediate.value;
169 if (skip_addr(dest))
171 return dest;
181 static void *patch_dest(void *dest, bool direct)
185 u8 *pad = dest - tsize;
196 pr_warn_once("Invalid padding area for %pS\n", dest);
209 void *pad, *dest;
215 dest = call_get_dest(addr);
216 if (!dest || WARN_ON_ONCE(IS_ERR(dest)))
219 if (!is_coretext(ct, dest))
222 pad = patch_dest(dest, within_coretext(ct, dest));
227 dest, dest, pad);
279 void *callthunks_translate_call_dest(void *dest)
285 if (!thunks_initialized || skip_addr(dest))
286 return dest;
288 if (!is_coretext(NULL, dest))
289 return dest;
291 target = patch_dest(dest, false);
292 return target ? : dest;
300 unsigned long dest;
303 dest = roundup((unsigned long)addr, CONFIG_FUNCTION_ALIGNMENT);
304 if (!thunks_initialized || skip_addr((void *)dest))
307 pad = (void *)(dest - tmpl_size);