/freebsd/sys/i386/i386/ |
H A D | bpf_jit_machdep.c | 141 case BPF_ALU|BPF_MOD|BPF_K: in bpf_jit_optimize() 518 case BPF_ALU|BPF_MOD|BPF_X: in bpf_jit_compile() 540 if (BPF_OP(ins->code) == BPF_MOD) in bpf_jit_compile() 583 case BPF_ALU|BPF_MOD|BPF_K: in bpf_jit_compile() 588 if (BPF_OP(ins->code) == BPF_MOD) in bpf_jit_compile()
|
/freebsd/contrib/libpcap/ |
H A D | bpf_filter.c | 293 case BPF_ALU|BPF_MOD|BPF_X: in pcapint_filter_with_aux_data() 341 case BPF_ALU|BPF_MOD|BPF_K: in pcapint_filter_with_aux_data() 463 case BPF_MOD: in pcapint_validate_filter()
|
H A D | bpf_image.c | 309 case BPF_ALU|BPF_MOD|BPF_X: in bpf_image() 363 case BPF_ALU|BPF_MOD|BPF_K: in bpf_image()
|
H A D | optimize.c | 806 case BPF_MOD: in fold_op() 1269 case BPF_ALU|BPF_MOD|BPF_K: in opt_stmt() 1303 if (op == BPF_MOD) in opt_stmt() 1320 case BPF_ALU|BPF_MOD|BPF_X: in opt_stmt() 1363 else if (op == BPF_MUL || op == BPF_DIV || op == BPF_MOD || in opt_stmt()
|
H A D | grammar.y.in | 859 | arth '%' arth { CHECK_PTR_VAL(($$ = gen_arth(cstate, BPF_MOD, $1, $3))); }
|
H A D | CHANGES | 411 Fix cross-builds with older kernels lacking BPF_MOD and BPF_XOR
|
H A D | gencode.c | 8047 } else if (code == BPF_MOD) { in gen_arth()
|
/freebsd/tools/regression/bpf/bpf_filter/tests/ |
H A D | test0087.h | 8 BPF_STMT(BPF_ALU+BPF_MOD+BPF_K, 0xdead),
|
H A D | test0091.h | 8 BPF_STMT(BPF_ALU+BPF_MOD+BPF_K, 0),
|
H A D | test0085.h | 9 BPF_STMT(BPF_ALU+BPF_MOD+BPF_X, 0),
|
H A D | test0089.h | 9 BPF_STMT(BPF_ALU+BPF_MOD+BPF_X, 0),
|
/freebsd/sys/amd64/amd64/ |
H A D | bpf_jit_machdep.c | 496 case BPF_ALU|BPF_MOD|BPF_X: in bpf_jit_compile() 510 if (BPF_OP(ins->code) == BPF_MOD) in bpf_jit_compile() 553 case BPF_ALU|BPF_MOD|BPF_K: in bpf_jit_compile() 558 if (BPF_OP(ins->code) == BPF_MOD) in bpf_jit_compile()
|
/freebsd/sys/net/ |
H A D | bpf_filter.c | 434 case BPF_ALU|BPF_MOD|BPF_X: in bpf_filter() 476 case BPF_ALU|BPF_MOD|BPF_K: in bpf_filter() 596 p->code == (BPF_ALU|BPF_MOD|BPF_K)) && p->k == 0) in bpf_validate()
|
H A D | bpf.h | 288 #define BPF_MOD 0x90 macro
|
/freebsd/contrib/libpcap/pcap/ |
H A D | bpf.h | 186 #define BPF_MOD 0x90
|
/freebsd/tools/regression/bpf/bpf_filter/ |
H A D | bpf_test.c | 178 p->code == (BPF_ALU|BPF_MOD|BPF_K)) && p->k == 0) in bpf_validate()
|
/freebsd/contrib/netbsd-tests/net/bpfjit/ |
H A D | t_bpfjit.c | 435 BPF_STMT(BPF_ALU+BPF_MOD+BPF_K, 0), in ATF_TC_BODY() 460 BPF_STMT(BPF_ALU+BPF_MOD+BPF_K, 1), in ATF_TC_BODY() 485 BPF_STMT(BPF_ALU+BPF_MOD+BPF_K, 2), in ATF_TC_BODY() 510 BPF_STMT(BPF_ALU+BPF_MOD+BPF_K, 4), in ATF_TC_BODY() 535 BPF_STMT(BPF_ALU+BPF_MOD+BPF_K, 10), in ATF_TC_BODY() 560 BPF_STMT(BPF_ALU+BPF_MOD+BPF_K, 10000), in ATF_TC_BODY() 585 BPF_STMT(BPF_ALU+BPF_MOD+BPF_K, UINT32_C(7609801)), in ATF_TC_BODY() 610 BPF_STMT(BPF_ALU+BPF_MOD+BPF_K, UINT32_C(0x80000000)), in ATF_TC_BODY() 1164 BPF_STMT(BPF_ALU+BPF_MOD+BPF_X, 0), in ATF_TC_BODY() 1190 BPF_STMT(BPF_ALU+BPF_MOD+BPF_X, 0), in ATF_TC_BODY() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libbpfjit/ |
H A D | t_bpfjit.c | 478 BPF_STMT(BPF_ALU+BPF_MOD+BPF_K, 0), in ATF_TC_BODY() 508 BPF_STMT(BPF_ALU+BPF_MOD+BPF_K, 1), in ATF_TC_BODY() 538 BPF_STMT(BPF_ALU+BPF_MOD+BPF_K, 2), in ATF_TC_BODY() 568 BPF_STMT(BPF_ALU+BPF_MOD+BPF_K, 4), in ATF_TC_BODY() 598 BPF_STMT(BPF_ALU+BPF_MOD+BPF_K, 10), in ATF_TC_BODY() 628 BPF_STMT(BPF_ALU+BPF_MOD+BPF_K, 10000), in ATF_TC_BODY() 658 BPF_STMT(BPF_ALU+BPF_MOD+BPF_K, UINT32_C(7609801)), in ATF_TC_BODY() 688 BPF_STMT(BPF_ALU+BPF_MOD+BPF_K, UINT32_C(0x80000000)), in ATF_TC_BODY() 1332 BPF_STMT(BPF_ALU+BPF_MOD+BPF_X, 0), in ATF_TC_BODY() 1363 BPF_STMT(BPF_ALU+BPF_MOD+BPF_X, 0), in ATF_TC_BODY() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
H A D | BPFInstrFormats.td | 42 def BPF_MOD : BPFArithOp<0x9>;
|
H A D | BPFInstrInfo.td | 346 defm MOD : ALU<BPF_MOD, 0, "%=", urem>; 350 defm SMOD : ALU<BPF_MOD, 1, "s%=", srem>;
|