Home
last modified time | relevance | path

Searched refs:BPF_XCHG (Results 1 – 21 of 21) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Datomic_fetch.c145 __ATOMIC_FETCH_OP_TEST(BPF_REG_1, BPF_REG_2, 0x010, BPF_XCHG, 0x011, 0x011),
146 __ATOMIC_FETCH_OP_TEST(BPF_REG_0, BPF_REG_1, 0x010, BPF_XCHG, 0x011, 0x011),
147 __ATOMIC_FETCH_OP_TEST(BPF_REG_1, BPF_REG_0, 0x010, BPF_XCHG, 0x011, 0x011),
148 __ATOMIC_FETCH_OP_TEST(BPF_REG_2, BPF_REG_3, 0x010, BPF_XCHG, 0x011, 0x011),
149 __ATOMIC_FETCH_OP_TEST(BPF_REG_4, BPF_REG_5, 0x010, BPF_XCHG, 0x011, 0x011),
150 __ATOMIC_FETCH_OP_TEST(BPF_REG_9, BPF_REG_8, 0x010, BPF_XCHG, 0x011, 0x011),
H A Datomic_xchg.c8 BPF_ATOMIC_OP(BPF_DW, BPF_XCHG, BPF_REG_10, BPF_REG_1, -8),
31 BPF_ATOMIC_OP(BPF_W, BPF_XCHG, BPF_REG_10, BPF_REG_1, -4),
H A Datomic_invalid.c24 __INVALID_ATOMIC_ACCESS_TEST(BPF_XCHG),
/openbmc/linux/arch/mips/net/
H A Dbpf_jit_comp32.c728 if (code == BPF_XCHG) { in emit_atomic_r32()
768 case BPF_XCHG: in emit_atomic_r32()
849 case BPF_XCHG: in emit_atomic_r64()
1700 case BPF_XCHG: in build_insn()
1732 case BPF_XCHG: in build_insn()
H A Dbpf_jit_comp64.c406 case BPF_XCHG: in emit_atomic_r64()
860 case BPF_XCHG: in build_insn()
H A Dbpf_jit_comp.c430 case BPF_XCHG: in emit_atomic_r()
/openbmc/linux/tools/testing/selftests/bpf/
H A Ddisasm.c240 insn->imm == BPF_XCHG) { in print_bpf_insn()
/openbmc/linux/kernel/bpf/
H A Ddisasm.c240 insn->imm == BPF_XCHG) { in print_bpf_insn()
H A Dcore.c2131 case BPF_XCHG: in ___bpf_prog_run()
H A Dverifier.c6944 case BPF_XCHG: in check_atomic()
/openbmc/linux/lib/
H A Dtest_bpf.c1605 case BPF_XCHG: in __bpf_emit_atomic64()
1652 case BPF_XCHG: in __bpf_emit_atomic32()
1828 return __bpf_fill_atomic64(self, BPF_XCHG); in bpf_fill_atomic64_xchg()
1880 return __bpf_fill_atomic32(self, BPF_XCHG); in bpf_fill_atomic32_xchg()
1915 case BPF_XCHG: in __bpf_fill_atomic_reg_pairs()
1998 } else if (op == BPF_XCHG) { /* Aliased, XCHG */ in __bpf_fill_atomic_reg_pairs()
2070 return __bpf_fill_atomic_reg_pairs(self, BPF_DW, BPF_XCHG); in bpf_fill_atomic64_xchg_reg_pairs()
2121 return __bpf_fill_atomic_reg_pairs(self, BPF_W, BPF_XCHG); in bpf_fill_atomic32_xchg_reg_pairs()
8760 BPF_ATOMIC_OP_TEST1(BPF_W, BPF_XCHG, xchg, 0x12, 0xab, 0xab),
11730 BPF_TEST_CLOBBER_ATOMIC(BPF_DW, BPF_XCHG),
[all …]
/openbmc/linux/arch/arm64/net/
H A Dbpf_jit_comp.c495 case BPF_XCHG: in emit_lse_atomic()
577 } else if (imm == BPF_XCHG) { in emit_ll_sc_atomic()
1392 ((imm == BPF_XCHG || in find_fpb_offset()
/openbmc/linux/Documentation/bpf/standardization/
H A Dinstruction-set.rst527 BPF_XCHG 0xe0 | BPF_FETCH atomic exchange
536 The ``BPF_XCHG`` operation atomically exchanges ``src`` with the value
/openbmc/linux/arch/powerpc/net/
H A Dbpf_jit_comp64.c858 case BPF_XCHG: in bpf_jit_build_body()
H A Dbpf_jit_comp32.c900 case BPF_XCHG: in bpf_jit_build_body()
/openbmc/linux/arch/loongarch/net/
H A Dbpf_jit.c353 case BPF_XCHG: in emit_atomic()
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf.h50 #define BPF_XCHG (0xe0 | BPF_FETCH) /* atomic exchange */ macro
/openbmc/linux/include/uapi/linux/
H A Dbpf.h50 #define BPF_XCHG (0xe0 | BPF_FETCH) /* atomic exchange */ macro
/openbmc/linux/arch/s390/net/
H A Dbpf_jit_comp.c1342 case BPF_XCHG: in bpf_jit_insn()
/openbmc/linux/arch/riscv/net/
H A Dbpf_jit_comp64.c543 case BPF_XCHG: in emit_atomic()
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp.c943 case BPF_XCHG: in emit_atomic()