Lines Matching refs:jmp_offset

1579 	s64 jmp_offset;  in emit_kfunc_call()  local
1631 jmp_offset = (u8 *)__bpf_call_base + insn->imm - end_addr; in emit_kfunc_call()
1632 if (!is_simm32(jmp_offset)) { in emit_kfunc_call()
1634 jmp_offset); in emit_kfunc_call()
1638 EMIT1_off32(0xE8, jmp_offset); in emit_kfunc_call()
1681 s64 jmp_offset; in do_jit() local
2107 jmp_offset = func - (image + addrs[i]); in do_jit()
2109 if (!imm32 || !is_simm32(jmp_offset)) { in do_jit()
2127 EMIT1_off32(0xE8, jmp_offset + 9); in do_jit()
2365 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit()
2366 if (is_imm8(jmp_offset)) { in do_jit()
2367 EMIT2(jmp_cond, jmp_offset); in do_jit()
2368 } else if (is_simm32(jmp_offset)) { in do_jit()
2369 EMIT2_off32(0x0F, jmp_cond + 0x10, jmp_offset); in do_jit()
2371 pr_err("cond_jmp gen bug %llx\n", jmp_offset); in do_jit()
2414 jmp_offset = addrs[i + insn->off] - addrs[i] + 8; in do_jit()
2415 if (is_simm32(jmp_offset)) { in do_jit()
2416 EMIT2_off32(0x0F, jmp_cond + 0x10, jmp_offset); in do_jit()
2418 pr_err("cond_jmp gen bug %llx\n", jmp_offset); in do_jit()
2427 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit()
2428 if (is_simm32(jmp_offset)) { in do_jit()
2429 EMIT2_off32(0x0F, jmp_cond + 0x10, jmp_offset); in do_jit()
2431 pr_err("cond_jmp gen bug %llx\n", jmp_offset); in do_jit()
2444 jmp_offset = -2; in do_jit()
2446 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit()
2448 if (!jmp_offset) in do_jit()
2452 if (is_imm8(jmp_offset)) { in do_jit()
2453 EMIT2(0xEB, jmp_offset); in do_jit()
2454 } else if (is_simm32(jmp_offset)) { in do_jit()
2455 EMIT1_off32(0xE9, jmp_offset); in do_jit()
2457 pr_err("jmp gen bug %llx\n", jmp_offset); in do_jit()
2466 jmp_offset = ctx->cleanup_addr - addrs[i]; in do_jit()