Lines Matching defs:code
8 * The code is based on the BPF JIT compiler for RV64G by Björn Töpel and
95 * code.
959 bool is64 = BPF_CLASS(insn->code) == BPF_ALU64 ||
960 BPF_CLASS(insn->code) == BPF_JMP;
962 u8 code = insn->code;
971 switch (code) {
990 if (BPF_SRC(code) == BPF_K) {
994 emit_alu_r64(dst, src, ctx, BPF_OP(code));
998 emit_alu_r64(dst, tmp2, ctx, BPF_OP(code));
1014 emit_alu_i64(dst, imm, ctx, BPF_OP(code));
1043 if (BPF_SRC(code) == BPF_K) {
1047 emit_alu_r32(dst, src, ctx, BPF_OP(code));
1063 emit_alu_i32(dst, imm, ctx, BPF_OP(code));
1071 emit_alu_r32(dst, tmp2, ctx, BPF_OP(code));
1212 if (BPF_SRC(code) == BPF_K) {
1221 emit_branch_r64(dst, src, rvoff, ctx, BPF_OP(code));
1223 emit_branch_r32(dst, src, rvoff, ctx, BPF_OP(code));
1250 if (emit_load_r64(dst, src, off, ctx, BPF_SIZE(code)))
1268 if (BPF_CLASS(code) == BPF_ST) {
1273 if (emit_store_r64(dst, src, off, ctx, BPF_SIZE(code),
1274 BPF_MODE(code)))
1283 pr_info_once("bpf-jit: not supported: opcode %02x ***\n", code);
1287 pr_err("bpf-jit: unknown opcode %02x\n", code);