Searched refs:jmp_offset (Results 1 – 4 of 4) sorted by relevance
| /linux/arch/loongarch/net/ |
| H A D | bpf_jit.h | 238 enum loongarch_gpr rd, int jmp_offset) in cond_jmp_offset() argument 243 emit_insn(ctx, beq, rj, rd, jmp_offset); in cond_jmp_offset() 248 emit_insn(ctx, bne, rj, rd, jmp_offset); in cond_jmp_offset() 252 emit_insn(ctx, bltu, rd, rj, jmp_offset); in cond_jmp_offset() 256 emit_insn(ctx, bltu, rj, rd, jmp_offset); in cond_jmp_offset() 260 emit_insn(ctx, bgeu, rj, rd, jmp_offset); in cond_jmp_offset() 264 emit_insn(ctx, bgeu, rd, rj, jmp_offset); in cond_jmp_offset() 268 emit_insn(ctx, blt, rd, rj, jmp_offset); in cond_jmp_offset() 272 emit_insn(ctx, blt, rj, rd, jmp_offset); in cond_jmp_offset() 276 emit_insn(ctx, bge, rj, rd, jmp_offset); in cond_jmp_offset() [all …]
|
| H A D | bpf_jit.c | 290 #define jmp_offset (tc_ninsn - (cur_offset)) in emit_bpf_tail_call() macro 306 if (emit_tailcall_jmp(ctx, BPF_JGE, a2, t1, jmp_offset) < 0) in emit_bpf_tail_call() 318 if (emit_tailcall_jmp(ctx, BPF_JSGT, t3, t2, jmp_offset) < 0) in emit_bpf_tail_call() 330 if (emit_tailcall_jmp(ctx, BPF_JEQ, t2, LOONGARCH_GPR_ZERO, jmp_offset) < 0) in emit_bpf_tail_call() 344 #undef jmp_offset in emit_bpf_tail_call() 706 int ret, jmp_offset, tcc_ptr_off; in build_insn() local 1061 jmp_offset = bpf2la_offset(i, off, ctx); in build_insn() 1071 if (emit_cond_jmp(ctx, cond, t1, t2, jmp_offset) < 0) in build_insn() 1096 jmp_offset = bpf2la_offset(i, off, ctx); in build_insn() 1112 if (emit_cond_jmp(ctx, cond, t2, tm, jmp_offset) < 0) in build_insn() [all …]
|
| /linux/arch/arm64/net/ |
| H A D | bpf_jit_comp.c | 858 s32 jmp_offset; in emit_ll_sc_atomic() local 884 jmp_offset = -3; in emit_ll_sc_atomic() 885 check_imm19(jmp_offset); in emit_ll_sc_atomic() 886 emit(A64_CBNZ(0, tmp3, jmp_offset), ctx); in emit_ll_sc_atomic() 905 jmp_offset = -3; in emit_ll_sc_atomic() 906 check_imm19(jmp_offset); in emit_ll_sc_atomic() 907 emit(A64_CBNZ(0, tmp3, jmp_offset), ctx); in emit_ll_sc_atomic() 914 jmp_offset = -2; in emit_ll_sc_atomic() 915 check_imm19(jmp_offset); in emit_ll_sc_atomic() 916 emit(A64_CBNZ(0, tmp3, jmp_offset), ctx); in emit_ll_sc_atomic() [all …]
|
| /linux/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 1723 s64 jmp_offset; in do_jit() local 2609 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit() 2610 if (is_imm8_jmp_offset(jmp_offset)) { in do_jit() 2635 EMIT2(jmp_cond, jmp_offset); in do_jit() 2636 } else if (is_simm32(jmp_offset)) { in do_jit() 2637 EMIT2_off32(0x0F, jmp_cond + 0x10, jmp_offset); in do_jit() 2639 pr_err("cond_jmp gen bug %llx\n", jmp_offset); in do_jit() 2658 jmp_offset = -2; in do_jit() 2660 jmp_offset = addrs[i + insn->off] - addrs[i]; in do_jit() 2663 jmp_offset = -2; in do_jit() [all …]
|