Lines Matching refs:bpf_prog
862 struct sock_fprog *bpf_prog; in uml_vector_default_bpf() local
864 bpf_prog = uml_kmalloc(sizeof(struct sock_fprog), UM_GFP_KERNEL); in uml_vector_default_bpf()
865 if (bpf_prog) { in uml_vector_default_bpf()
866 bpf_prog->len = DEFAULT_BPF_LEN; in uml_vector_default_bpf()
867 bpf_prog->filter = NULL; in uml_vector_default_bpf()
874 bpf_prog->filter = bpf; in uml_vector_default_bpf()
888 kfree(bpf_prog); in uml_vector_default_bpf()
889 bpf_prog = NULL; in uml_vector_default_bpf()
891 return bpf_prog; in uml_vector_default_bpf()
899 struct sock_fprog *bpf_prog; in uml_vector_user_bpf() local
910 bpf_prog = uml_kmalloc(sizeof(struct sock_fprog), UM_GFP_KERNEL); in uml_vector_user_bpf()
911 if (bpf_prog == NULL) { in uml_vector_user_bpf()
915 bpf_prog->len = statbuf.st_size / sizeof(struct sock_filter); in uml_vector_user_bpf()
916 bpf_prog->filter = NULL; in uml_vector_user_bpf()
927 bpf_prog->filter = bpf; in uml_vector_user_bpf()
935 return bpf_prog; in uml_vector_user_bpf()
939 kfree(bpf_prog); in uml_vector_user_bpf()