Home
last modified time | relevance | path

Searched refs:BPF_REG_4 (Results 1 – 25 of 42) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dalign.c60 BPF_MOV64_IMM(BPF_REG_4, 32),
61 BPF_ALU64_IMM(BPF_RSH, BPF_REG_4, 1),
62 BPF_ALU64_IMM(BPF_RSH, BPF_REG_4, 1),
63 BPF_ALU64_IMM(BPF_RSH, BPF_REG_4, 1),
64 BPF_ALU64_IMM(BPF_RSH, BPF_REG_4, 1),
91 BPF_MOV64_IMM(BPF_REG_4, 8),
92 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, 4),
93 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, 2),
153 LOAD_UNKNOWN(BPF_REG_4),
183 BPF_MOV64_REG(BPF_REG_4, BPF_REG_3),
[all …]
H A Dflow_dissector_load_bytes.c16 BPF_MOV64_IMM(BPF_REG_4, 1), in serial_test_flow_dissector_load_bytes()
/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Djit.c27 BPF_MOV64_IMM(BPF_REG_4, 1),
30 BPF_ALU32_REG(BPF_LSH, BPF_REG_1, BPF_REG_4),
33 BPF_ALU64_REG(BPF_RSH, BPF_REG_1, BPF_REG_4),
34 BPF_MOV64_REG(BPF_REG_4, BPF_REG_1),
35 BPF_ALU32_REG(BPF_RSH, BPF_REG_4, BPF_REG_0),
36 BPF_JMP_IMM(BPF_JEQ, BPF_REG_4, 0xff, 1),
38 BPF_ALU64_REG(BPF_ARSH, BPF_REG_4, BPF_REG_4),
39 BPF_JMP_IMM(BPF_JEQ, BPF_REG_4, 0, 1),
H A Dcalls.c1558 BPF_MOV64_REG(BPF_REG_4, BPF_REG_9),
1630 BPF_MOV64_REG(BPF_REG_4, BPF_REG_9),
1699 BPF_MOV64_REG(BPF_REG_4, BPF_REG_9),
1770 BPF_MOV64_REG(BPF_REG_4, BPF_REG_9),
1839 BPF_MOV64_REG(BPF_REG_4, BPF_REG_9),
1867 BPF_MOV64_REG(BPF_REG_4, BPF_REG_10),
1896 BPF_MOV64_REG(BPF_REG_4, BPF_REG_10),
1901 BPF_ST_MEM(BPF_W, BPF_REG_4, 0, 0),
1928 BPF_MOV64_REG(BPF_REG_4, BPF_REG_10),
1934 BPF_ST_MEM(BPF_W, BPF_REG_4, 0, 0),
[all …]
H A Dprecise.c148 BPF_LDX_MEM(BPF_DW, BPF_REG_4, BPF_REG_10, -8),
150 BPF_JMP_REG(BPF_JGT, BPF_REG_4, BPF_REG_0, 0),
175 BPF_LDX_MEM(BPF_DW, BPF_REG_4, BPF_REG_10, -8),
177 BPF_JMP_REG(BPF_JGT, BPF_REG_4, BPF_REG_0, 0),
201 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_1, offsetof(struct xdp_md, ingress_ifindex)),
206 BPF_JMP_IMM(BPF_JEQ, BPF_REG_4, 0, 1),
239 BPF_LD_MAP_FD(BPF_REG_4, 0),
240 BPF_ALU64_REG(BPF_MOV, BPF_REG_1, BPF_REG_4),
H A Dbpf_loop_inline.c49 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0),
75 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0),
84 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 1),
116 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0),
154 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0),
188 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0),
195 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0),
207 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0),
H A Datomic_fetch.c125 __ATOMIC_FETCH_OP_TEST(BPF_REG_4, BPF_REG_5, 1, BPF_ADD | BPF_FETCH, 2, 3),
131 __ATOMIC_FETCH_OP_TEST(BPF_REG_4, BPF_REG_5, 0x010, BPF_AND | BPF_FETCH, 0x011, 0x010),
137 __ATOMIC_FETCH_OP_TEST(BPF_REG_4, BPF_REG_5, 0x010, BPF_OR | BPF_FETCH, 0x011, 0x011),
143 __ATOMIC_FETCH_OP_TEST(BPF_REG_4, BPF_REG_5, 0x010, BPF_XOR | BPF_FETCH, 0x011, 0x001),
149 __ATOMIC_FETCH_OP_TEST(BPF_REG_4, BPF_REG_5, 0x010, BPF_XCHG, 0x011, 0x011),
H A Devent_output.c30 BPF_MOV64_REG(BPF_REG_4, BPF_REG_10), \
31 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, -8), \
H A Dctx_skb.c1157 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_1, // 1. r4 = *(u32 *)(r1 + data)
1159 BPF_MOV64_REG(BPF_REG_3, BPF_REG_4), // 2. r3 = r4
1163 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, 14), // 6. r4 += 14
1164 BPF_MOV64_REG(BPF_REG_1, BPF_REG_4), // 7. r1 = r4
1179 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_1, // 1. r4 = *(u32 *)(r1 + data)
1181 BPF_MOV64_REG(BPF_REG_3, BPF_REG_4), // 2. r3 = r4
1185 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, 14), // 6. r4 += 14
1186 BPF_MOV64_REG(BPF_REG_1, BPF_REG_4), // 7. r1 = r4
H A Dld_abs.c41 BPF_MOV64_IMM(BPF_REG_4, 0),
43 BPF_MOV64_REG(BPF_REG_0, BPF_REG_4),
H A Djump.c391 BPF_MOV64_REG(BPF_REG_0, BPF_REG_4),
H A Djmp32.c887 BPF_MOV64_REG(BPF_REG_0, BPF_REG_4),
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_sysctl.c326 BPF_MOV64_IMM(BPF_REG_4, 0),
380 BPF_MOV64_IMM(BPF_REG_4, 0),
428 BPF_MOV64_IMM(BPF_REG_4, 0),
891 BPF_MOV64_REG(BPF_REG_4, BPF_REG_7),
935 BPF_MOV64_REG(BPF_REG_4, BPF_REG_7),
961 BPF_MOV64_REG(BPF_REG_4, BPF_REG_7),
1005 BPF_MOV64_REG(BPF_REG_4, BPF_REG_7),
1038 BPF_MOV64_REG(BPF_REG_4, BPF_REG_7),
1082 BPF_MOV64_REG(BPF_REG_4, BPF_REG_7),
1123 BPF_MOV64_REG(BPF_REG_4, BPF_REG_7),
[all …]
H A Dtest_verifier.c446 insn[i++] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0); in bpf_fill_big_prog_with_loop_1()
477 BPF_MOV64_IMM(BPF_REG_4, 0), \
491 BPF_MOV64_REG(BPF_REG_4, BPF_REG_2), \
492 BPF_ALU64_IMM(BPF_ADD, BPF_REG_4, 8), \
493 BPF_JMP_REG(BPF_JLE, BPF_REG_4, BPF_REG_3, 1), \
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_ld_ind.c73 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_4, -0x200000)) in ind_check_calling_conv_r4()
/openbmc/linux/tools/lib/bpf/
H A Dgen_loader.c322 emit(gen, BPF_MOV64_REG(BPF_REG_4, reg2)); in emit_debug()
551 emit(gen, BPF_MOV64_IMM(BPF_REG_4, 0)); in emit_find_attach_target()
625 emit(gen, BPF_MOV64_IMM(BPF_REG_4, 0)); in emit_bpf_find_by_name_kind()
645 emit2(gen, BPF_LD_IMM64_RAW_FULL(BPF_REG_4, BPF_PSEUDO_MAP_IDX_VALUE, in emit_bpf_kallsyms_lookup_name()
647 emit(gen, BPF_MOV64_REG(BPF_REG_7, BPF_REG_4)); in emit_bpf_kallsyms_lookup_name()
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp.c176 [BPF_REG_4] = 1, /* RCX */
193 [BPF_REG_4] = offsetof(struct pt_regs, cx),
1337 if (boot_cpu_has(X86_FEATURE_BMI2) && src_reg != BPF_REG_4) { in do_jit()
1359 if (src_reg != BPF_REG_4) { /* common case */ in do_jit()
1361 if (dst_reg == BPF_REG_4) { in do_jit()
1369 EMIT_mov(BPF_REG_4, src_reg); in do_jit()
1379 if (src_reg != BPF_REG_4) { in do_jit()
1380 if (insn->dst_reg == BPF_REG_4) in do_jit()
H A Dbpf_jit_comp32.c147 [BPF_REG_4] = {STACK_OFFSET(32), STACK_OFFSET(36)},
2088 const u8 *r4 = bpf2ia32[BPF_REG_4]; in do_jit()
/openbmc/linux/samples/bpf/
H A Dcookie_uid_helper_example.c139 BPF_MOV64_IMM(BPF_REG_4, 0), in prog_load()
/openbmc/linux/tools/include/linux/
H A Dfilter.h17 #define BPF_REG_ARG4 BPF_REG_4
/openbmc/linux/arch/parisc/net/
H A Dbpf_jit_comp64.c25 [BPF_REG_4] = HPPA_R(8),
472 emit_hppa_copy(regmap[BPF_REG_4], HPPA_REG_ARG3, ctx); in emit_call()
1170 LOAD_PARAM(HPPA_REG_ARG3, BPF_REG_4); in bpf_jit_build_prologue()
H A Dbpf_jit_comp32.c81 [BPF_REG_4] = {HPPA_R(9), HPPA_R(10)},
901 reg = bpf_get_reg64_offset(regmap[BPF_REG_4], tmp, offset_sp, ctx); in emit_call()
1557 dst = regmap[BPF_REG_4]; in bpf_jit_build_prologue()
/openbmc/linux/include/linux/
H A Dbpf_verifier.h245 (1 << BPF_REG_3) | (1 << BPF_REG_4) | \
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dverifier.c261 reg1 = cur_regs(env) + BPF_REG_4; in nfp_bpf_check_helper_call()
/openbmc/linux/arch/arm/net/
H A Dbpf_jit_32.c156 [BPF_REG_4] = {STACK_OFFSET(BPF_R4_HI), STACK_OFFSET(BPF_R4_LO)},
1784 const s8 *r4 = bpf2a32[BPF_REG_4]; in build_insn()

12