Lines Matching refs:class
2340 u8 code, class, op; in is_reg64() local
2343 class = BPF_CLASS(code); in is_reg64()
2345 if (class == BPF_JMP) { in is_reg64()
2369 if (class == BPF_ALU64 || class == BPF_JMP || in is_reg64()
2371 (class == BPF_ALU && op == BPF_END && insn->imm == 64)) in is_reg64()
2374 if (class == BPF_ALU || class == BPF_JMP32) in is_reg64()
2377 if (class == BPF_LDX) { in is_reg64()
2384 if (class == BPF_STX) { in is_reg64()
2394 if (class == BPF_LD) { in is_reg64()
2413 if (class == BPF_ST) in is_reg64()
2598 u8 class = BPF_CLASS(insn->code); in backtrack_insn() local
2613 if (class == BPF_ALU || class == BPF_ALU64) { in backtrack_insn()
2649 } else if (class == BPF_LDX) { in backtrack_insn()
2674 } else if (class == BPF_STX || class == BPF_ST) { in backtrack_insn()
2693 if (class == BPF_STX) in backtrack_insn()
2695 } else if (class == BPF_JMP || class == BPF_JMP32) { in backtrack_insn()
2738 } else if (class == BPF_LD) { in backtrack_insn()
4002 int class = BPF_CLASS(insn->code); in check_map_kptr_access() local
4020 if (class != BPF_LDX && off_desc->type == BPF_KPTR_REF) { in check_map_kptr_access()
4025 if (class == BPF_LDX) { in check_map_kptr_access()
4034 } else if (class == BPF_STX) { in check_map_kptr_access()
4039 } else if (class == BPF_ST) { in check_map_kptr_access()
12467 u8 class; in do_check() local
12478 class = BPF_CLASS(insn->code); in do_check()
12548 if (class == BPF_ALU || class == BPF_ALU64) { in do_check()
12553 } else if (class == BPF_LDX) { in do_check()
12599 } else if (class == BPF_STX) { in do_check()
12642 } else if (class == BPF_ST) { in do_check()
12667 } else if (class == BPF_JMP || class == BPF_JMP32) { in do_check()
12679 class == BPF_JMP32) { in do_check()
12703 class == BPF_JMP32) { in do_check()
12716 class == BPF_JMP32) { in do_check()
12766 } else if (class == BPF_LD) { in do_check()
12786 verbose(env, "unknown insn class %d\n", class); in do_check()
13638 u8 code, class; in opt_subreg_zext_lo32_rnd_hi32() local
13645 class = BPF_CLASS(code); in opt_subreg_zext_lo32_rnd_hi32()
13654 if (class == BPF_LD && in opt_subreg_zext_lo32_rnd_hi32()
13661 if (class == BPF_LDX && in opt_subreg_zext_lo32_rnd_hi32()