Home
last modified time | relevance | path

Searched refs:b_off (Results 1 – 2 of 2) sorted by relevance

/arch/mips/net/
Dbpf_jit.c665 static bool is_bad_offset(int b_off) in is_bad_offset() argument
667 return b_off > 0x1ffff || b_off < -0x20000; in is_bad_offset()
675 u32 k, b_off __maybe_unused; in build_body()
736 b_off = b_imm(prog->len, ctx); in build_body()
737 if (is_bad_offset(b_off)) in build_body()
739 emit_b(b_off, ctx); in build_body()
786 b_off = b_imm(prog->len, ctx); in build_body()
787 if (is_bad_offset(b_off)) in build_body()
789 emit_bcond(MIPS_COND_NE, r_ret, 0, b_off, ctx); in build_body()
868 b_off = b_imm(prog->len, ctx); in build_body()
[all …]
Debpf_jit.c606 int off, b_off; in emit_bpf_tail_call() local
617 b_off = b_imm(this_idx + 1, ctx); in emit_bpf_tail_call()
618 emit_instr(ctx, bne, MIPS_R_AT, MIPS_R_ZERO, b_off); in emit_bpf_tail_call()
626 b_off = b_imm(this_idx + 1, ctx); in emit_bpf_tail_call()
627 emit_instr(ctx, bltz, tcc_reg, b_off); in emit_bpf_tail_call()
638 b_off = b_imm(this_idx + 1, ctx); in emit_bpf_tail_call()
639 emit_instr(ctx, beq, MIPS_R_AT, MIPS_R_ZERO, b_off); in emit_bpf_tail_call()
653 static bool is_bad_offset(int b_off) in is_bad_offset() argument
655 return b_off > 0x1ffff || b_off < -0x20000; in is_bad_offset()
662 int src, dst, r, td, ts, mem_off, b_off; in build_one_insn() local
[all …]