/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H A D | ctx_sk_lookup.c | 14 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1, 16 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1, 32 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1, 34 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1, 50 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1, 52 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1, 92 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1, 94 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1, 96 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1, 98 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1, [all …]
|
H A D | ctx_skb.c | 567 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0, 569 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0, 571 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0, 573 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0, 575 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0, 577 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0, 579 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0, 581 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0, 583 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0, 585 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0, [all …]
|
H A D | direct_value_access.c | 164 BPF_ST_MEM(BPF_H, BPF_REG_2, 0, 0xffff), 178 BPF_ST_MEM(BPF_H, BPF_REG_2, 0, 0xffff), 179 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1, 0), 192 BPF_ST_MEM(BPF_H, BPF_REG_2, 0, 0xffff), 193 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1, 0), 207 BPF_ST_MEM(BPF_H, BPF_REG_2, 1, 0xffff), 208 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1, 0), 221 BPF_ST_MEM(BPF_H, BPF_REG_1, 0, 42),
|
H A D | ld_abs.c | 77 BPF_LD_ABS(BPF_H, 0), 87 BPF_LD_ABS(BPF_H, 0), 123 BPF_LD_ABS(BPF_H, 12), 125 BPF_LD_ABS(BPF_H, 12), 138 BPF_LD_ABS(BPF_H, 12), 143 BPF_LD_IND(BPF_H, BPF_REG_7, 14), 253 BPF_LD_ABS(BPF_H, 0), 264 BPF_LD_ABS(BPF_H, 0),
|
H A D | perf_event_sample_period.c | 22 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1, 25 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_1,
|
/openbmc/linux/lib/ |
H A D | test_bpf.c | 7937 BPF_LDX_MEM(BPF_H, R0, R10, -2), 7939 BPF_LDX_MEM(BPF_H, R0, R10, -8), 7957 BPF_LDX_MEM(BPF_H, R0, R10, -2), 7959 BPF_LDX_MEM(BPF_H, R0, R10, -8), 7992 BPF_STX_MEM(BPF_H, R1, R2, 256), 7993 BPF_LDX_MEM(BPF_H, R0, R1, 256), 8024 BPF_STX_MEM(BPF_H, R1, R2, 13), 8025 BPF_LDX_MEM(BPF_H, R0, R1, 13), 8284 BPF_STX_MEM(BPF_H, R10, R2, -2), 8286 BPF_STX_MEM(BPF_H, R10, R2, -8), [all …]
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | bpf_common.h | 19 #define BPF_H 0x08 /* 16-bit */ macro
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf_common.h | 19 #define BPF_H 0x08 /* 16-bit */ macro
|
/openbmc/linux/tools/bpf/ |
H A D | bpf_exp.y | 136 bpf_set_curr_instr(BPF_LD | BPF_H | BPF_IND, 0, 0, $5); } 138 bpf_set_curr_instr(BPF_LD | BPF_H | BPF_IND, 0, 0, $6); } 140 bpf_set_curr_instr(BPF_LD | BPF_H | BPF_ABS, 0, 0, $3); } 142 bpf_set_curr_instr(BPF_LD | BPF_H | BPF_ABS, 0, 0,
|
/openbmc/linux/arch/loongarch/net/ |
H A D | bpf_jit.c | 876 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 881 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in build_insn() 892 case BPF_H: in build_insn() 923 case BPF_ST | BPF_MEM | BPF_H: in build_insn() 936 case BPF_H: in build_insn() 972 case BPF_STX | BPF_MEM | BPF_H: in build_insn() 984 case BPF_H: in build_insn()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | gen_loader.c | 204 case 2: return BPF_H; in insn_bytes_to_bpf_size() 698 emit(gen, BPF_ST_MEM(BPF_H, BPF_REG_8, offsetof(struct bpf_insn, off), 0)); in emit_relo_kfunc_btf() 714 emit(gen, BPF_ST_MEM(BPF_H, BPF_REG_8, offsetof(struct bpf_insn, off), 0)); in emit_relo_kfunc_btf() 718 emit(gen, BPF_ST_MEM(BPF_H, BPF_REG_8, offsetof(struct bpf_insn, off), btf_fd_idx)); in emit_relo_kfunc_btf() 724 emit(gen, BPF_LDX_MEM(BPF_H, BPF_REG_9, BPF_REG_8, in emit_relo_kfunc_btf() 742 emit(gen, BPF_LDX_MEM(BPF_H, BPF_REG_9, BPF_REG_8, sizeof(struct bpf_insn) + in emit_ksym_relo_log()
|
/openbmc/linux/arch/parisc/net/ |
H A D | bpf_jit_comp64.c | 574 case BPF_H: in emit_store() 1012 case BPF_LDX | BPF_MEM | BPF_H: in bpf_jit_emit_insn() 1016 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in bpf_jit_emit_insn() 1040 case BPF_H: in bpf_jit_emit_insn() 1069 case BPF_ST | BPF_MEM | BPF_H: in bpf_jit_emit_insn() 1074 case BPF_STX | BPF_MEM | BPF_H: in bpf_jit_emit_insn()
|
/openbmc/linux/arch/mips/net/ |
H A D | bpf_jit_comp64.c | 342 case BPF_H: in emit_ldx() 366 case BPF_H: in emit_stx() 825 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 832 case BPF_ST | BPF_MEM | BPF_H: in build_insn() 840 case BPF_STX | BPF_MEM | BPF_H: in build_insn()
|
/openbmc/linux/arch/x86/net/ |
H A D | bpf_jit_comp.c | 82 else if (bpf_size == BPF_H) in bpf_size_to_x86_bytes() 794 case BPF_H: in emit_ldx() 824 case BPF_H: in emit_ldsx() 851 case BPF_H: in emit_stx() 1409 case BPF_ST | BPF_MEM | BPF_H: in do_jit() 1434 case BPF_STX | BPF_MEM | BPF_H: in do_jit() 1443 case BPF_LDX | BPF_MEM | BPF_H: in do_jit() 1444 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in do_jit() 1451 case BPF_LDX | BPF_MEMSX | BPF_H: in do_jit() 1454 case BPF_LDX | BPF_PROBE_MEMSX | BPF_H: in do_jit()
|
H A D | bpf_jit_comp32.c | 1176 else if (bpf_size == BPF_H) in bpf_size_to_x86_bytes() 1912 case BPF_ST | BPF_MEM | BPF_H: in do_jit() 1927 case BPF_H: in do_jit() 1953 case BPF_STX | BPF_MEM | BPF_H: in do_jit() 1975 case BPF_H: in do_jit() 2014 case BPF_LDX | BPF_MEM | BPF_H: in do_jit() 2028 case BPF_H: in do_jit() 2051 case BPF_H: in do_jit()
|
/openbmc/linux/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 1159 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 1164 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in build_insn() 1168 case BPF_LDX | BPF_MEMSX | BPF_H: in build_insn() 1171 case BPF_LDX | BPF_PROBE_MEMSX | BPF_H: in build_insn() 1197 case BPF_H: in build_insn() 1255 case BPF_ST | BPF_MEM | BPF_H: in build_insn() 1276 case BPF_H: in build_insn() 1305 case BPF_STX | BPF_MEM | BPF_H: in build_insn() 1324 case BPF_H: in build_insn()
|
/openbmc/linux/arch/powerpc/net/ |
H A D | bpf_jit_comp64.c | 766 case BPF_STX | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = src */ in bpf_jit_build_body() 767 case BPF_ST | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = imm */ in bpf_jit_build_body() 898 case BPF_LDX | BPF_MEM | BPF_H: in bpf_jit_build_body() 899 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in bpf_jit_build_body() 935 case BPF_H: in bpf_jit_build_body()
|
H A D | bpf_jit_comp32.c | 817 case BPF_STX | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = src */ in bpf_jit_build_body() 820 case BPF_ST | BPF_MEM | BPF_H: /* (u16 *)(dst + off) = imm */ in bpf_jit_build_body() 933 case BPF_LDX | BPF_MEM | BPF_H: /* dst = *(u16 *)(ul) (src + off) */ in bpf_jit_build_body() 934 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in bpf_jit_build_body() 977 case BPF_H: in bpf_jit_build_body()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | disasm.c | 110 [BPF_H >> 3] = "u16", 117 [BPF_H >> 3] = "s16",
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | align.c | 228 BPF_LDX_MEM(BPF_H, BPF_REG_4, BPF_REG_5, 0), 229 BPF_LDX_MEM(BPF_H, BPF_REG_4, BPF_REG_5, 2),
|
/openbmc/linux/kernel/bpf/ |
H A D | disasm.c | 110 [BPF_H >> 3] = "u16", 117 [BPF_H >> 3] = "s16",
|
/openbmc/linux/net/core/ |
H A D | filter.c | 319 *insn++ = BPF_LDX_MEM(BPF_H, dst_reg, src_reg, in convert_skb_access() 327 *insn++ = BPF_LDX_MEM(BPF_H, dst_reg, src_reg, in convert_skb_access() 476 bool endian = BPF_SIZE(fp->code) == BPF_H || in convert_bpf_ld_abs() 524 case BPF_H: in convert_bpf_ld_abs() 652 case BPF_LD | BPF_ABS | BPF_H: in bpf_convert_filter() 655 case BPF_LD | BPF_IND | BPF_H: in bpf_convert_filter() 993 [BPF_LD | BPF_H | BPF_ABS] = true, in chk_code_allowed() 997 [BPF_LD | BPF_H | BPF_IND] = true, in chk_code_allowed() 1114 case BPF_LD | BPF_H | BPF_ABS: in bpf_check_classic() 8863 case BPF_H: in bpf_gen_ld_abs() [all …]
|
/openbmc/linux/arch/arm/net/ |
H A D | bpf_jit_32.c | 1018 case BPF_H: in is_ldst_imm() 1048 case BPF_H: in emit_str_r() 1087 case BPF_H: in emit_ldx_r() 1603 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 1614 case BPF_ST | BPF_MEM | BPF_H: in build_insn() 1623 case BPF_H: in build_insn() 1636 case BPF_STX | BPF_MEM | BPF_H: in build_insn()
|
/openbmc/linux/arch/riscv/net/ |
H A D | bpf_jit_comp64.c | 1565 case BPF_LDX | BPF_MEM | BPF_H: in bpf_jit_emit_insn() 1569 case BPF_LDX | BPF_PROBE_MEM | BPF_H: in bpf_jit_emit_insn() 1574 case BPF_LDX | BPF_MEMSX | BPF_H: in bpf_jit_emit_insn() 1577 case BPF_LDX | BPF_PROBE_MEMSX | BPF_H: in bpf_jit_emit_insn() 1607 case BPF_H: in bpf_jit_emit_insn() 1688 case BPF_ST | BPF_MEM | BPF_H: in bpf_jit_emit_insn() 1733 case BPF_STX | BPF_MEM | BPF_H: in bpf_jit_emit_insn()
|
/openbmc/linux/arch/sparc/net/ |
H A D | bpf_jit_comp_64.c | 1256 case BPF_LDX | BPF_MEM | BPF_H: in build_insn() 1267 case BPF_H: in build_insn() 1295 case BPF_ST | BPF_MEM | BPF_H: in build_insn() 1312 case BPF_H: in build_insn() 1337 case BPF_STX | BPF_MEM | BPF_H: in build_insn() 1350 case BPF_H: in build_insn()
|