• Home
  • Raw
  • Download

Lines Matching refs:sock

37 static int skcipher_sendmsg(struct socket *sock, struct msghdr *msg,  in skcipher_sendmsg()  argument
40 struct sock *sk = sock->sk; in skcipher_sendmsg()
42 struct sock *psk = ask->parent; in skcipher_sendmsg()
47 return af_alg_sendmsg(sock, msg, size, ivsize); in skcipher_sendmsg()
50 static int _skcipher_recvmsg(struct socket *sock, struct msghdr *msg, in _skcipher_recvmsg() argument
53 struct sock *sk = sock->sk; in _skcipher_recvmsg()
55 struct sock *psk = ask->parent; in _skcipher_recvmsg()
153 static int skcipher_recvmsg(struct socket *sock, struct msghdr *msg, in skcipher_recvmsg() argument
156 struct sock *sk = sock->sk; in skcipher_recvmsg()
161 int err = _skcipher_recvmsg(sock, msg, ignored, flags); in skcipher_recvmsg()
208 static int skcipher_check_key(struct socket *sock) in skcipher_check_key() argument
211 struct sock *psk; in skcipher_check_key()
214 struct sock *sk = sock->sk; in skcipher_check_key()
246 static int skcipher_sendmsg_nokey(struct socket *sock, struct msghdr *msg, in skcipher_sendmsg_nokey() argument
251 err = skcipher_check_key(sock); in skcipher_sendmsg_nokey()
255 return skcipher_sendmsg(sock, msg, size); in skcipher_sendmsg_nokey()
258 static ssize_t skcipher_sendpage_nokey(struct socket *sock, struct page *page, in skcipher_sendpage_nokey() argument
263 err = skcipher_check_key(sock); in skcipher_sendpage_nokey()
267 return af_alg_sendpage(sock, page, offset, size, flags); in skcipher_sendpage_nokey()
270 static int skcipher_recvmsg_nokey(struct socket *sock, struct msghdr *msg, in skcipher_recvmsg_nokey() argument
275 err = skcipher_check_key(sock); in skcipher_recvmsg_nokey()
279 return skcipher_recvmsg(sock, msg, ignored, flags); in skcipher_recvmsg_nokey()
319 static void skcipher_sock_destruct(struct sock *sk) in skcipher_sock_destruct()
323 struct sock *psk = ask->parent; in skcipher_sock_destruct()
333 static int skcipher_accept_parent_nokey(void *private, struct sock *sk) in skcipher_accept_parent_nokey()
369 static int skcipher_accept_parent(void *private, struct sock *sk) in skcipher_accept_parent()