Lines Matching refs:code
259 call = (insn[i].code == (BPF_JMP | BPF_CALL)) ? true : false; in analyze_reg_usage()
344 if ((BPF_CLASS(insn->code) == BPF_JMP32) && in get_offset()
345 (BPF_OP(insn->code) == BPF_JA)) in get_offset()
377 return BPF_SRC(insn->code) == BPF_K; in has_imm()
490 const u8 class = BPF_CLASS(insn->code); in check_bpf_jump()
491 const u8 op = BPF_OP(insn->code); in check_bpf_jump()
588 const bool j32 = (BPF_CLASS(insn->code) == BPF_JMP32) ? true : false; in handle_jumps()
596 CHECK_RET(bpf_cond_to_arc(BPF_OP(insn->code), &cond)); in handle_jumps()
739 const u8 code = insn->code; in handle_insn() local
748 switch (code) { in handle_insn()
853 CHECK_RET(handle_swap(buf, dst, imm, BPF_SRC(code), in handle_insn()
854 BPF_CLASS(code) == BPF_ALU64, in handle_insn()
953 len = load_r(buf, dst, src, off, BPF_SIZE(code), false); in handle_insn()
958 len = load_r(buf, dst, src, off, BPF_SIZE(code), true); in handle_insn()
965 len = store_r(buf, src, dst, off, BPF_SIZE(code)); in handle_insn()
971 len = store_i(buf, imm, dst, off, BPF_SIZE(code)); in handle_insn()
1032 pr_err("bpf-jit: can't handle instruction code 0x%02X\n", code); in handle_insn()
1036 if (BPF_CLASS(code) == BPF_ALU) { in handle_insn()
1043 if (BPF_OP(code) != BPF_END && ctx->do_zext) in handle_insn()
1322 if (insn->code == bpf_opc_call) { in jit_patch_relocations()
1324 } else if (insn->code == bpf_opc_ldi64) { in jit_patch_relocations()