Lines Matching refs:target
152 u8 *target = buf + len;
163 __text_gen_insn(buf, JMP8_INSN_OPCODE, buf, target, JMP8_INSN_SIZE);
166 __text_gen_insn(buf, JMP32_INSN_OPCODE, buf, target, JMP32_INSN_SIZE);
170 for (;buf < target; buf++)
257 * src_imm = target - src_next_ip (1)
259 * and the target offset is:
261 * dst_imm = target - dst_next_ip (2)
263 * so rework (1) as an expression for target like:
265 * target = src_imm + src_next_ip (1a)
310 u8 *target = src + offset;
312 * If the target is inside the patched block, it's relative to the
315 return (target < src || target > src + src_len);
392 * Rewrite the "call BUG_func" replacement to point to the target of the
397 void *target, *bug = &BUG_func;
416 /* target address is stored at "next instruction + disp". */
417 target = *(void **)(instr + a->instrlen + disp);
420 /* target address is stored at disp. */
421 target = *(void **)disp;
423 if (!target)
424 target = bug;
426 /* (BUG_func - .) + (target - BUG_func) := target - . */
427 *(s32 *)(insn_buff + 1) += target - bug;
429 if (target == &nop_func)
630 retpoline_thunk_t *target;
634 target = addr + insn->length + insn->immediate.value;
635 reg = target - __x86_indirect_thunk_array;
1309 /* rewrite the callers to target func()-16 */