/src/sys/net/ |
bpfjit.h | 55 typedef unsigned int (*bpfjit_func_t)(const bpf_ctx_t *, bpf_args_t *); 57 bpfjit_func_t bpfjit_generate_code(const bpf_ctx_t *, 63 bpfjit_func_t (*bj_generate_code)(const bpf_ctx_t *,
|
bpf.h | 391 typedef struct bpf_ctx bpf_ctx_t; typedef in typeref:struct:bpf_ctx 411 typedef uint32_t (*bpf_copfunc_t)(const bpf_ctx_t *, bpf_args_t *, uint32_t); 586 bpf_ctx_t *bpf_create(void); 587 void bpf_destroy(bpf_ctx_t *); 589 int bpf_set_cop(bpf_ctx_t *, const bpf_copfunc_t *, size_t); 590 int bpf_set_extmem(bpf_ctx_t *, size_t, bpf_memword_init_t); 591 u_int bpf_filter_ext(const bpf_ctx_t *, const struct bpf_insn *, bpf_args_t *); 592 int bpf_validate_ext(const bpf_ctx_t *, const struct bpf_insn *, int); 594 bpfjit_func_t bpf_jit_generate(bpf_ctx_t *, void *, size_t);
|
bpf_filter.c | 63 bpf_ctx_t * 66 return kmem_zalloc(sizeof(bpf_ctx_t), KM_SLEEP); 70 bpf_destroy(bpf_ctx_t *bc) 72 kmem_free(bc, sizeof(bpf_ctx_t)); 76 bpf_set_cop(bpf_ctx_t *bc, const bpf_copfunc_t *funcs, size_t n) 84 bpf_set_extmem(bpf_ctx_t *bc, size_t nwords, bpf_memword_init_t preinited) 212 bpf_filter_ext(const bpf_ctx_t *bc, const struct bpf_insn *pc, bpf_args_t *args) 611 bpf_validate_ext(const bpf_ctx_t *bc, const struct bpf_insn *f, int signed_len)
|
bpfjit.c | 142 bpf_ctx_t *ctx; 654 const bpf_ctx_t *bc, const struct bpf_insn *pc, 1282 optimize_pass1(const bpf_ctx_t *bc, const struct bpf_insn *insns, 1467 optimize_pass2(const bpf_ctx_t *bc, const struct bpf_insn *insns, 1578 optimize(const bpf_ctx_t *bc, const struct bpf_insn *insns, 1698 const bpf_ctx_t *bc, const struct bpf_insn *insns, 2153 bpfjit_generate_code(const bpf_ctx_t *bc,
|
bpf.c | 304 bpf_jit_generate(bpf_ctx_t *bc, void *code, size_t size) 307 bpfjit_func_t (*generate_code)(const bpf_ctx_t *,
|
/src/sys/net/npf/ |
npf_bpf.c | 57 static bpf_ctx_t *npf_bpfctx __read_mostly; 59 static uint32_t npf_cop_l3(const bpf_ctx_t *, bpf_args_t *, uint32_t); 60 static uint32_t npf_cop_table(const bpf_ctx_t *, bpf_args_t *, uint32_t); 154 npf_cop_l3(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A) 174 npf_cop_table(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A)
|
npf_impl.h | 220 bpf_ctx_t * bpfctx;
|
/src/tests/net/bpf/ |
h_bpf.h | 46 unsigned int rumpns_bpf_filter_ext(const bpf_ctx_t *, 48 bpfjit_func_t rumpns_bpfjit_generate_code(const bpf_ctx_t *,
|
/src/tests/lib/libbpfjit/ |
t_cop.c | 43 static uint32_t retA(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A); 44 static uint32_t retBL(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A); 45 static uint32_t retWL(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A); 46 static uint32_t retNF(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A); 47 static uint32_t setARG(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A); 57 static const bpf_ctx_t ctx = { 64 retA(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A) 71 retBL(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A) 78 retWL(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A) 85 retNF(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A [all...] |
t_extmem.c | 43 static uint32_t retM(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A); 49 static const bpf_ctx_t ctx = { 57 retM(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A)
|
/src/tests/net/bpfjit/ |
t_cop.c | 51 static uint32_t retA(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A); 52 static uint32_t retBL(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A); 53 static uint32_t retWL(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A); 54 static uint32_t retNF(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A); 55 static uint32_t setARG(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A); 65 static const bpf_ctx_t ctx = { 72 retA(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A) 79 retBL(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A) 86 retWL(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A) 93 retNF(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A [all...] |
t_extmem.c | 51 static uint32_t retM(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A); 57 static const bpf_ctx_t ctx = { 65 retM(const bpf_ctx_t *bc, bpf_args_t *args, uint32_t A)
|