Lines Matching refs:bpf_prog
778 struct sock_fprog *bpf_prog; in uml_vector_default_bpf() local
780 bpf_prog = uml_kmalloc(sizeof(struct sock_fprog), UM_GFP_KERNEL); in uml_vector_default_bpf()
781 if (bpf_prog) { in uml_vector_default_bpf()
782 bpf_prog->len = DEFAULT_BPF_LEN; in uml_vector_default_bpf()
783 bpf_prog->filter = NULL; in uml_vector_default_bpf()
790 bpf_prog->filter = bpf; in uml_vector_default_bpf()
804 kfree(bpf_prog); in uml_vector_default_bpf()
805 bpf_prog = NULL; in uml_vector_default_bpf()
807 return bpf_prog; in uml_vector_default_bpf()
815 struct sock_fprog *bpf_prog; in uml_vector_user_bpf() local
826 bpf_prog = uml_kmalloc(sizeof(struct sock_fprog), UM_GFP_KERNEL); in uml_vector_user_bpf()
827 if (bpf_prog == NULL) { in uml_vector_user_bpf()
831 bpf_prog->len = statbuf.st_size / sizeof(struct sock_filter); in uml_vector_user_bpf()
832 bpf_prog->filter = NULL; in uml_vector_user_bpf()
843 bpf_prog->filter = bpf; in uml_vector_user_bpf()
851 return bpf_prog; in uml_vector_user_bpf()
855 kfree(bpf_prog); in uml_vector_user_bpf()