Lines Matching refs:uprog
579 static struct bpf_prog *get_filter(struct sock_fprog *uprog) in get_filter() argument
585 if (!uprog->len) in get_filter()
589 fprog.len = uprog->len; in get_filter()
590 fprog.filter = memdup_array_user(uprog->filter, in get_filter()
591 uprog->len, sizeof(struct sock_filter)); in get_filter()
603 struct sock_fprog uprog; in ppp_get_filter() local
605 if (copy_from_user(&uprog, p, sizeof(struct sock_fprog))) in ppp_get_filter()
607 return get_filter(&uprog); in ppp_get_filter()
622 struct sock_fprog uprog; in compat_ppp_get_filter() local
626 uprog.len = uprog32.len; in compat_ppp_get_filter()
627 uprog.filter = compat_ptr(uprog32.filter); in compat_ppp_get_filter()
628 return get_filter(&uprog); in compat_ppp_get_filter()