Lines Matching defs:func
298 static int emit_patch(u8 **pprog, void *func, void *ip, u8 opcode)
304 offset = func - (ip + X86_PATCH_SIZE);
306 pr_err("Target call %p is out of range\n", func);
314 static int emit_call(u8 **pprog, void *func, void *ip)
316 return emit_patch(pprog, func, ip, 0xE8);
319 static int emit_jump(u8 **pprog, void *func, void *ip)
321 return emit_patch(pprog, func, ip, 0xE9);
820 u8 *func;
1252 func = (u8 *) __bpf_call_base + imm32;
1257 if (!imm32 || emit_call(&prog, func, image + addrs[i - 1] + 7))
1260 if (!imm32 || emit_call(&prog, func, image + addrs[i - 1]))
1629 static int emit_cond_near_jump(u8 **pprog, void *func, void *ip, u8 jmp_cond)
1635 offset = func - (ip + 2 + 4);
1637 pr_err("Target %p is out of range\n", func);
1926 EMIT1(add_1mod(0x48, BPF_REG_3)); /* cmp rdx,func */
1931 err = emit_cond_near_jump(&prog, /* je func */
1947 EMIT1(add_1mod(0x48, BPF_REG_3)); /* cmp rdx,func */