/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | disasm.c | 205 if (BPF_MODE(insn->code) == BPF_MEM) in print_bpf_insn() 211 else if (BPF_MODE(insn->code) == BPF_ATOMIC && in print_bpf_insn() 220 } else if (BPF_MODE(insn->code) == BPF_ATOMIC && in print_bpf_insn() 231 } else if (BPF_MODE(insn->code) == BPF_ATOMIC && in print_bpf_insn() 239 } else if (BPF_MODE(insn->code) == BPF_ATOMIC && in print_bpf_insn() 250 if (BPF_MODE(insn->code) == BPF_MEM) { in print_bpf_insn() 262 if (BPF_MODE(insn->code) != BPF_MEM && BPF_MODE(insn->code) != BPF_MEMSX) { in print_bpf_insn() 268 BPF_MODE(insn->code) == BPF_MEM ? in print_bpf_insn() 273 if (BPF_MODE(insn->code) == BPF_ABS) { in print_bpf_insn() 278 } else if (BPF_MODE(insn->code) == BPF_IND) { in print_bpf_insn() [all …]
|
/openbmc/linux/kernel/bpf/ |
H A D | disasm.c | 205 if (BPF_MODE(insn->code) == BPF_MEM) in print_bpf_insn() 211 else if (BPF_MODE(insn->code) == BPF_ATOMIC && in print_bpf_insn() 220 } else if (BPF_MODE(insn->code) == BPF_ATOMIC && in print_bpf_insn() 231 } else if (BPF_MODE(insn->code) == BPF_ATOMIC && in print_bpf_insn() 239 } else if (BPF_MODE(insn->code) == BPF_ATOMIC && in print_bpf_insn() 250 if (BPF_MODE(insn->code) == BPF_MEM) { in print_bpf_insn() 262 if (BPF_MODE(insn->code) != BPF_MEM && BPF_MODE(insn->code) != BPF_MEMSX) { in print_bpf_insn() 268 BPF_MODE(insn->code) == BPF_MEM ? in print_bpf_insn() 273 if (BPF_MODE(insn->code) == BPF_ABS) { in print_bpf_insn() 278 } else if (BPF_MODE(insn->code) == BPF_IND) { in print_bpf_insn() [all …]
|
H A D | verifier.c | 598 BPF_MODE(insn->code) == BPF_ATOMIC && in is_cmpxchg_insn() 3078 (BPF_MODE(code) == BPF_ABS || BPF_MODE(code) == BPF_IND)) in check_subprogs() 3273 u8 mode = BPF_MODE(code); in is_reg64() 3660 u8 mode = BPF_MODE(insn->code); in backtrack_insn() 5363 if (BPF_MODE(insn->code) != BPF_MEM) { in check_map_kptr_access() 14850 u8 mode = BPF_MODE(insn->code); in check_ld_abs() 17299 u8 mode = BPF_MODE(insn->code); in do_check() 17604 ((BPF_MODE(insn->code) != BPF_MEM && BPF_MODE(insn->code) != BPF_MEMSX) || in resolve_pseudo_ldimm64() 18198 BPF_MODE(code) == BPF_IMM) in opt_subreg_zext_lo32_rnd_hi32() 18367 if (BPF_MODE(insn->code) == BPF_MEM) in convert_ctx_accesses() [all …]
|
H A D | syscall.c | 4320 if (BPF_CLASS(code) == BPF_LDX && BPF_MODE(code) == BPF_PROBE_MEM) { in bpf_insn_prepare_dump()
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/ |
H A D | main.h | 368 return BPF_MODE(meta->insn.code); in mbpf_mode() 416 (BPF_MODE(code) == BPF_ABS || BPF_MODE(code) == BPF_IND); in is_mbpf_classic_load() 423 return BPF_CLASS(code) == BPF_ST && BPF_MODE(code) == BPF_MEM; in is_mbpf_classic_store()
|
H A D | jit.c | 3975 if (BPF_MODE(insn.code) != BPF_ABS && in nfp_bpf_opt_ld_mask() 3976 BPF_MODE(insn.code) != BPF_IND) in nfp_bpf_opt_ld_mask() 4010 if (BPF_MODE(insn.code) != BPF_ABS && in nfp_bpf_opt_ld_shift() 4011 BPF_MODE(insn.code) != BPF_IND) in nfp_bpf_opt_ld_shift()
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | bpf_common.h | 22 #define BPF_MODE(code) ((code) & 0xe0) macro
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf_common.h | 22 #define BPF_MODE(code) ((code) & 0xe0) macro
|
/openbmc/linux/arch/x86/net/ |
H A D | bpf_jit_comp.c | 1508 if (BPF_MODE(insn->code) == BPF_PROBE_MEM || in do_jit() 1509 BPF_MODE(insn->code) == BPF_PROBE_MEMSX) { in do_jit() 1557 if (BPF_MODE(insn->code) == BPF_PROBE_MEMSX || in do_jit() 1558 BPF_MODE(insn->code) == BPF_MEMSX) in do_jit() 1562 if (BPF_MODE(insn->code) == BPF_PROBE_MEM || in do_jit() 1563 BPF_MODE(insn->code) == BPF_PROBE_MEMSX) { in do_jit()
|
/openbmc/linux/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 718 if (BPF_MODE(insn->code) != BPF_PROBE_MEM && in add_exception_handler() 719 BPF_MODE(insn->code) != BPF_PROBE_MEMSX) in add_exception_handler() 1180 sign_extend = (BPF_MODE(insn->code) == BPF_MEMSX || in build_insn() 1181 BPF_MODE(insn->code) == BPF_PROBE_MEMSX); in build_insn() 1381 const u8 mode = BPF_MODE(insn->code); in find_fpb_offset()
|
/openbmc/linux/arch/riscv/net/ |
H A D | bpf_jit_comp64.c | 593 (BPF_MODE(insn->code) != BPF_PROBE_MEM && BPF_MODE(insn->code) != BPF_PROBE_MEMSX)) in add_exception_handler() 1583 sign_ext = BPF_MODE(insn->code) == BPF_MEMSX || in bpf_jit_emit_insn() 1584 BPF_MODE(insn->code) == BPF_PROBE_MEMSX; in bpf_jit_emit_insn()
|
H A D | bpf_jit_comp32.c | 1271 BPF_MODE(code))) in bpf_jit_emit_insn() 1284 BPF_MODE(code))) in bpf_jit_emit_insn()
|
/openbmc/linux/arch/powerpc/net/ |
H A D | bpf_jit_comp64.c | 912 if (BPF_MODE(code) == BPF_PROBE_MEM) { in bpf_jit_build_body() 954 if (BPF_MODE(code) == BPF_PROBE_MEM) { in bpf_jit_build_body()
|
H A D | bpf_jit_comp32.c | 945 if (BPF_MODE(code) == BPF_PROBE_MEM) { in bpf_jit_build_body() 992 if (BPF_MODE(code) == BPF_PROBE_MEM) { in bpf_jit_build_body()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | relo_core.c | 1109 insn->code = BPF_MODE(insn->code) | insn_bpf_sz | BPF_CLASS(insn->code); in bpf_core_patch_insn()
|
/openbmc/linux/arch/parisc/net/ |
H A D | bpf_jit_comp64.c | 1082 emit_store(rd, rs, off, ctx, BPF_SIZE(code), BPF_MODE(code)); in bpf_jit_emit_insn()
|
H A D | bpf_jit_comp32.c | 1448 BPF_MODE(code))) in bpf_jit_emit_insn()
|
/openbmc/linux/arch/loongarch/net/ |
H A D | bpf_jit.c | 414 if (!ctx->image || !ctx->prog->aux->extable || BPF_MODE(insn->code) != BPF_PROBE_MEM) in add_exception_handler()
|
/openbmc/linux/arch/s390/net/ |
H A D | bpf_jit_comp.c | 791 BPF_MODE(insn->code) == BPF_PROBE_MEM) in bpf_jit_insn()
|
/openbmc/linux/net/core/ |
H A D | filter.c | 478 bool indirect = BPF_MODE(fp->code) == BPF_IND; in convert_bpf_ld_abs() 662 BPF_MODE(fp->code) == BPF_ABS && in bpf_convert_filter() 8840 bool indirect = BPF_MODE(orig->code) == BPF_IND; in bpf_gen_ld_abs()
|