Lines Matching refs:bpf_prog
779 struct sock_fprog *bpf_prog; in uml_vector_default_bpf() local
781 bpf_prog = uml_kmalloc(sizeof(struct sock_fprog), UM_GFP_KERNEL); in uml_vector_default_bpf()
782 if (bpf_prog) { in uml_vector_default_bpf()
783 bpf_prog->len = DEFAULT_BPF_LEN; in uml_vector_default_bpf()
784 bpf_prog->filter = NULL; in uml_vector_default_bpf()
791 bpf_prog->filter = bpf; in uml_vector_default_bpf()
805 kfree(bpf_prog); in uml_vector_default_bpf()
806 bpf_prog = NULL; in uml_vector_default_bpf()
808 return bpf_prog; in uml_vector_default_bpf()
816 struct sock_fprog *bpf_prog; in uml_vector_user_bpf() local
827 bpf_prog = uml_kmalloc(sizeof(struct sock_fprog), UM_GFP_KERNEL); in uml_vector_user_bpf()
828 if (bpf_prog == NULL) { in uml_vector_user_bpf()
832 bpf_prog->len = statbuf.st_size / sizeof(struct sock_filter); in uml_vector_user_bpf()
833 bpf_prog->filter = NULL; in uml_vector_user_bpf()
844 bpf_prog->filter = bpf; in uml_vector_user_bpf()
852 return bpf_prog; in uml_vector_user_bpf()
856 kfree(bpf_prog); in uml_vector_user_bpf()