Lines Matching defs:code
7 * The code is based on the BPF JIT compiler for RV64 by Björn Töpel and
101 * code.
1119 bool is64 = BPF_CLASS(insn->code) == BPF_ALU64 ||
1120 BPF_CLASS(insn->code) == BPF_JMP;
1122 u8 code = insn->code;
1133 BPF_CLASS(code), code, (code & BPF_ALU64) ? 1:0, BPF_SIZE(code),
1134 BPF_OP(code), insn->src_reg, insn->dst_reg);
1136 switch (code) {
1162 if (BPF_SRC(code) == BPF_K) {
1166 emit_alu_r64(dst, src, ctx, BPF_OP(code));
1171 emit_alu_r64(dst, tmp2, ctx, BPF_OP(code));
1181 emit_alu_i64(dst, imm, ctx, BPF_OP(code));
1210 if (BPF_SRC(code) == BPF_K) {
1214 emit_alu_r32(dst, src, ctx, BPF_OP(code));
1230 emit_alu_i32(dst, imm, ctx, BPF_OP(code));
1239 emit_alu_r32(dst, tmp2, ctx, BPF_OP(code));
1379 if (BPF_SRC(code) == BPF_K) {
1387 emit_branch_r64(dst, src, paoff, ctx, BPF_OP(code));
1389 emit_branch_r32(dst, src, paoff, ctx, BPF_OP(code));
1424 if (emit_load_r64(dst, src, off, ctx, BPF_SIZE(code)))
1442 if (BPF_CLASS(code) == BPF_ST) {
1447 if (emit_store_r64(dst, src, off, ctx, BPF_SIZE(code),
1448 BPF_MODE(code)))
1460 pr_err("bpf-jit: unknown opcode %02x\n", code);