Lines Matching refs:fp
29 static void bpf_jit_build_prologue(struct bpf_prog *fp, u32 *image, in bpf_jit_build_prologue() argument
33 const struct sock_filter *filter = fp->insns; in bpf_jit_build_prologue()
115 static int bpf_jit_build_body(struct bpf_prog *fp, u32 *image, in bpf_jit_build_body() argument
119 const struct sock_filter *filter = fp->insns; in bpf_jit_build_body()
120 int flen = fp->len; in bpf_jit_build_body()
554 void bpf_jit_compile(struct bpf_prog *fp) in bpf_jit_compile() argument
563 int flen = fp->len; in bpf_jit_compile()
626 if (bpf_jit_build_body(fp, 0, &cgctx, addrs)) in bpf_jit_compile()
635 bpf_jit_build_prologue(fp, 0, &cgctx); in bpf_jit_compile()
650 bpf_jit_build_prologue(fp, code_base, &cgctx); in bpf_jit_compile()
651 bpf_jit_build_body(fp, code_base, &cgctx, addrs); in bpf_jit_compile()
672 fp->bpf_func = (void *)image; in bpf_jit_compile()
673 fp->jited = 1; in bpf_jit_compile()
680 void bpf_jit_free(struct bpf_prog *fp) in bpf_jit_free() argument
682 if (fp->jited) in bpf_jit_free()
683 module_memfree(fp->bpf_func); in bpf_jit_free()
685 bpf_prog_unlock_free(fp); in bpf_jit_free()