Lines Matching defs:code
8 * The code is based on the BPF JIT compiler for RV64G by Björn Töpel and
95 * code.
957 bool is64 = BPF_CLASS(insn->code) == BPF_ALU64 ||
958 BPF_CLASS(insn->code) == BPF_JMP;
960 u8 code = insn->code;
969 switch (code) {
988 if (BPF_SRC(code) == BPF_K) {
992 emit_alu_r64(dst, src, ctx, BPF_OP(code));
996 emit_alu_r64(dst, tmp2, ctx, BPF_OP(code));
1012 emit_alu_i64(dst, imm, ctx, BPF_OP(code));
1041 if (BPF_SRC(code) == BPF_K) {
1045 emit_alu_r32(dst, src, ctx, BPF_OP(code));
1061 emit_alu_i32(dst, imm, ctx, BPF_OP(code));
1069 emit_alu_r32(dst, tmp2, ctx, BPF_OP(code));
1210 if (BPF_SRC(code) == BPF_K) {
1219 emit_branch_r64(dst, src, rvoff, ctx, BPF_OP(code));
1221 emit_branch_r32(dst, src, rvoff, ctx, BPF_OP(code));
1248 if (emit_load_r64(dst, src, off, ctx, BPF_SIZE(code)))
1265 if (BPF_CLASS(code) == BPF_ST) {
1270 if (emit_store_r64(dst, src, off, ctx, BPF_SIZE(code),
1271 BPF_MODE(code)))
1283 if (emit_store_r64(dst, src, off, ctx, BPF_SIZE(code),
1284 BPF_MODE(code)))
1293 pr_info_once("bpf-jit: not supported: opcode %02x ***\n", code);
1297 pr_err("bpf-jit: unknown opcode %02x\n", code);