Home
last modified time | relevance | path

Searched refs:BPF_AND (Results 1 – 25 of 41) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Datomic_fetch.c10 BPF_ATOMIC_OP(BPF_DW, BPF_AND | BPF_FETCH, BPF_REG_2, BPF_REG_1, 0),
34 BPF_ATOMIC_OP(BPF_DW, BPF_AND | BPF_FETCH, BPF_REG_2, BPF_REG_1, 0),
58 BPF_ATOMIC_OP(BPF_W, BPF_AND | BPF_FETCH, BPF_REG_2, BPF_REG_1, 0),
81 BPF_ATOMIC_OP(BPF_W, BPF_AND | BPF_FETCH, BPF_REG_2, BPF_REG_1, 0),
127 __ATOMIC_FETCH_OP_TEST(BPF_REG_1, BPF_REG_2, 0x010, BPF_AND | BPF_FETCH, 0x011, 0x010),
128 __ATOMIC_FETCH_OP_TEST(BPF_REG_0, BPF_REG_1, 0x010, BPF_AND | BPF_FETCH, 0x011, 0x010),
129 __ATOMIC_FETCH_OP_TEST(BPF_REG_1, BPF_REG_0, 0x010, BPF_AND | BPF_FETCH, 0x011, 0x010),
130 __ATOMIC_FETCH_OP_TEST(BPF_REG_2, BPF_REG_3, 0x010, BPF_AND | BPF_FETCH, 0x011, 0x010),
131 __ATOMIC_FETCH_OP_TEST(BPF_REG_4, BPF_REG_5, 0x010, BPF_AND | BPF_FETCH, 0x011, 0x010),
132 __ATOMIC_FETCH_OP_TEST(BPF_REG_9, BPF_REG_8, 0x010, BPF_AND | BPF_FETCH, 0x011, 0x010),
H A Datomic_and.c8 BPF_ATOMIC_OP(BPF_DW, BPF_AND, BPF_REG_10, BPF_REG_1, -8),
30 BPF_ATOMIC_OP(BPF_DW, BPF_AND | BPF_FETCH, BPF_REG_10, BPF_REG_1, -8),
60 BPF_ATOMIC_OP(BPF_W, BPF_AND | BPF_FETCH, BPF_REG_10, BPF_REG_1, -4),
85 BPF_ATOMIC_OP(BPF_DW, BPF_AND | BPF_FETCH, BPF_REG_10, BPF_REG_0, -8),
H A Datomic_invalid.c18 __INVALID_ATOMIC_ACCESS_TEST(BPF_AND),
19 __INVALID_ATOMIC_ACCESS_TEST(BPF_AND | BPF_FETCH),
H A Djset.c154 BPF_ALU64_IMM(BPF_AND, BPF_REG_1, 0xff),
/openbmc/linux/tools/testing/selftests/bpf/
H A Ddisasm.c79 [BPF_AND >> 4] = "&=",
103 [BPF_AND >> 4] = "and",
212 (insn->imm == BPF_ADD || insn->imm == BPF_AND || in print_bpf_insn()
222 insn->imm == (BPF_AND | BPF_FETCH) || in print_bpf_insn()
H A Dtest_cgroup_storage.c35 BPF_ALU64_IMM(BPF_AND, BPF_REG_1, 0x1), in main()
/openbmc/linux/kernel/bpf/
H A Ddisasm.c79 [BPF_AND >> 4] = "&=",
103 [BPF_AND >> 4] = "and",
212 (insn->imm == BPF_ADD || insn->imm == BPF_AND || in print_bpf_insn()
222 insn->imm == (BPF_AND | BPF_FETCH) || in print_bpf_insn()
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf_common.h37 #define BPF_AND 0x50 macro
/openbmc/linux/include/uapi/linux/
H A Dbpf_common.h37 #define BPF_AND 0x50 macro
/openbmc/linux/arch/mips/net/
H A Dbpf_jit_comp.c230 case BPF_AND: in valid_alu_i()
268 op = BPF_AND; in rewrite_alu_i()
287 op = BPF_AND; in rewrite_alu_i()
306 case BPF_AND: in emit_alu_i()
346 case BPF_AND: in emit_alu_r()
418 case BPF_AND: in emit_atomic_r()
419 case BPF_AND | BPF_FETCH: in emit_atomic_r()
H A Dbpf_jit_comp64.c394 case BPF_AND: in emit_atomic_r64()
395 case BPF_AND | BPF_FETCH: in emit_atomic_r64()
674 case BPF_ALU | BPF_AND | BPF_K: in build_insn()
713 case BPF_ALU | BPF_AND | BPF_X: in build_insn()
762 case BPF_ALU64 | BPF_AND | BPF_K: in build_insn()
791 case BPF_ALU64 | BPF_AND | BPF_X: in build_insn()
854 case BPF_AND: in build_insn()
855 case BPF_AND | BPF_FETCH: in build_insn()
H A Dbpf_jit_comp32.c249 case BPF_AND: in emit_alu_i64()
296 case BPF_AND: in emit_alu_r64()
756 case BPF_AND: in emit_atomic_r32()
759 case BPF_AND | BPF_FETCH: in emit_atomic_r32()
837 case BPF_AND: in emit_atomic_r64()
840 case BPF_AND | BPF_FETCH: in emit_atomic_r64()
1509 case BPF_ALU | BPF_AND | BPF_K: in build_insn()
1694 case BPF_AND: in build_insn()
1695 case BPF_AND | BPF_FETCH: in build_insn()
1726 case BPF_AND: in build_insn()
[all …]
/openbmc/linux/lib/
H A Dtest_bpf.c550 case BPF_AND: in __bpf_alu_result()
4493 BPF_ALU64_IMM(BPF_AND, R4, 63),
6114 BPF_ALU32_REG(BPF_AND, R0, R1),
6126 BPF_ALU32_REG(BPF_AND, R0, R1),
6138 BPF_ALU64_REG(BPF_AND, R0, R1),
6150 BPF_ALU64_REG(BPF_AND, R0, R1),
6162 BPF_ALU32_IMM(BPF_AND, R0, 2),
6184 BPF_ALU32_IMM(BPF_AND, R0, 15),
6222 BPF_ALU64_IMM(BPF_AND, R0, 2),
11392 BPF_ALU64_REG(BPF_AND, R2, R3),
[all …]
/openbmc/linux/arch/arm64/net/
H A Dbpf_jit_comp.c470 case BPF_AND: in emit_lse_atomic()
484 case BPF_AND | BPF_FETCH: in emit_lse_atomic()
539 if (imm == BPF_ADD || imm == BPF_AND || in emit_ll_sc_atomic()
545 else if (imm == BPF_AND) in emit_ll_sc_atomic()
556 imm == (BPF_AND | BPF_FETCH) || in emit_ll_sc_atomic()
566 else if (imm == (BPF_AND | BPF_FETCH)) in emit_ll_sc_atomic()
813 case BPF_ALU | BPF_AND | BPF_X: in build_insn()
814 case BPF_ALU64 | BPF_AND | BPF_X: in build_insn()
930 case BPF_ALU | BPF_AND | BPF_K: in build_insn()
931 case BPF_ALU64 | BPF_AND | BPF_K: in build_insn()
[all …]
/openbmc/linux/arch/powerpc/net/
H A Dbpf_jit_comp64.c528 case BPF_ALU | BPF_AND | BPF_X: /* (u32) dst = dst & src */ in bpf_jit_build_body()
529 case BPF_ALU64 | BPF_AND | BPF_X: /* dst = dst & src */ in bpf_jit_build_body()
532 case BPF_ALU | BPF_AND | BPF_K: /* (u32) dst = dst & imm */ in bpf_jit_build_body()
533 case BPF_ALU64 | BPF_AND | BPF_K: /* dst = dst & imm */ in bpf_jit_build_body()
831 case BPF_AND: in bpf_jit_build_body()
832 case BPF_AND | BPF_FETCH: in bpf_jit_build_body()
H A Dbpf_jit_comp32.c538 case BPF_ALU64 | BPF_AND | BPF_X: /* dst = dst & src */ in bpf_jit_build_body()
542 case BPF_ALU | BPF_AND | BPF_X: /* (u32) dst = dst & src */ in bpf_jit_build_body()
545 case BPF_ALU64 | BPF_AND | BPF_K: /* dst = dst & imm */ in bpf_jit_build_body()
549 case BPF_ALU | BPF_AND | BPF_K: /* (u32) dst = dst & imm */ in bpf_jit_build_body()
876 case BPF_AND: in bpf_jit_build_body()
877 case BPF_AND | BPF_FETCH: in bpf_jit_build_body()
/openbmc/linux/tools/bpf/
H A Dbpf_exp.y399 bpf_set_curr_instr(BPF_ALU | BPF_AND | BPF_K, 0, 0, $3); }
401 bpf_set_curr_instr(BPF_ALU | BPF_AND | BPF_X, 0, 0, 0); }
403 bpf_set_curr_instr(BPF_ALU | BPF_AND | BPF_X, 0, 0, 0); }
/openbmc/linux/arch/loongarch/net/
H A Dbpf_jit.c301 case BPF_AND: in emit_atomic()
328 case BPF_AND | BPF_FETCH: in emit_atomic()
580 case BPF_ALU | BPF_AND | BPF_X: in build_insn()
581 case BPF_ALU64 | BPF_AND | BPF_X: in build_insn()
587 case BPF_ALU | BPF_AND | BPF_K: in build_insn()
588 case BPF_ALU64 | BPF_AND | BPF_K: in build_insn()
/openbmc/linux/arch/riscv/net/
H A Dbpf_jit_comp32.c253 case BPF_AND: in emit_alu_i64()
353 case BPF_AND: in emit_alu_i32()
438 case BPF_AND: in emit_alu_r64()
529 case BPF_AND: in emit_alu_r32()
978 case BPF_ALU64 | BPF_AND | BPF_X: in bpf_jit_emit_insn()
1006 case BPF_ALU64 | BPF_AND | BPF_K: in bpf_jit_emit_insn()
1025 case BPF_ALU | BPF_AND | BPF_X: in bpf_jit_emit_insn()
1051 case BPF_ALU | BPF_AND | BPF_K: in bpf_jit_emit_insn()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dalign.c381 BPF_ALU64_IMM(BPF_AND, BPF_REG_6, 0xff),
543 BPF_ALU64_IMM(BPF_AND, BPF_REG_6, 0xf),
/openbmc/linux/arch/parisc/net/
H A Dbpf_jit_comp32.c437 case BPF_AND: in emit_alu_i64()
533 case BPF_AND: in emit_alu_i32()
591 case BPF_AND: in emit_alu_r64()
656 case BPF_AND: in emit_alu_r32()
1146 case BPF_ALU64 | BPF_AND | BPF_X: in bpf_jit_emit_insn()
1175 case BPF_ALU64 | BPF_AND | BPF_K: in bpf_jit_emit_insn()
1194 case BPF_ALU | BPF_AND | BPF_X: in bpf_jit_emit_insn()
1221 case BPF_ALU | BPF_AND | BPF_K: in bpf_jit_emit_insn()
H A Dbpf_jit_comp64.c634 case BPF_ALU | BPF_AND | BPF_X: in bpf_jit_emit_insn()
635 case BPF_ALU64 | BPF_AND | BPF_X: in bpf_jit_emit_insn()
801 case BPF_ALU | BPF_AND | BPF_K: in bpf_jit_emit_insn()
802 case BPF_ALU64 | BPF_AND | BPF_K: in bpf_jit_emit_insn()
/openbmc/linux/samples/bpf/
H A Dtest_cgrp2_sock.c53 BPF_ALU64_IMM(BPF_AND, BPF_REG_0, 0xffffffff), in prog_load()
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp.c268 [BPF_AND] = 0x21,
933 case BPF_AND: in emit_atomic()
1124 case BPF_ALU | BPF_AND | BPF_X: in do_jit()
1129 case BPF_ALU64 | BPF_AND | BPF_X: in do_jit()
1160 case BPF_ALU | BPF_AND | BPF_K: in do_jit()
1165 case BPF_ALU64 | BPF_AND | BPF_K: in do_jit()
1184 case BPF_AND: in do_jit()
1610 if (insn->imm == (BPF_AND | BPF_FETCH) || in do_jit()
/openbmc/linux/arch/s390/net/
H A Dbpf_jit_comp.c1016 case BPF_ALU | BPF_AND | BPF_X: /* dst = (u32) dst & (u32) src */ in bpf_jit_insn()
1021 case BPF_ALU64 | BPF_AND | BPF_X: /* dst = dst & src */ in bpf_jit_insn()
1025 case BPF_ALU | BPF_AND | BPF_K: /* dst = (u32) dst & (u32) imm */ in bpf_jit_insn()
1030 case BPF_ALU64 | BPF_AND | BPF_K: /* dst = dst & imm */ in bpf_jit_insn()
1326 case BPF_AND: in bpf_jit_insn()
1327 case BPF_AND | BPF_FETCH: in bpf_jit_insn()

12