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 algif_skcipher_export(struct sock *sk, struct skcipher_request *req) in algif_skcipher_export()
57 struct sock *psk; in algif_skcipher_export()
85 struct sock *sk = areq->sk; in algif_skcipher_done()
96 static int _skcipher_recvmsg(struct socket *sock, struct msghdr *msg, in _skcipher_recvmsg() argument
99 struct sock *sk = sock->sk; in _skcipher_recvmsg()
101 struct sock *psk = ask->parent; in _skcipher_recvmsg()
213 static int skcipher_recvmsg(struct socket *sock, struct msghdr *msg, in skcipher_recvmsg() argument
216 struct sock *sk = sock->sk; in skcipher_recvmsg()
221 int err = _skcipher_recvmsg(sock, msg, ignored, flags); in skcipher_recvmsg()
265 static int skcipher_check_key(struct socket *sock) in skcipher_check_key() argument
268 struct sock *psk; in skcipher_check_key()
271 struct sock *sk = sock->sk; in skcipher_check_key()
300 static int skcipher_sendmsg_nokey(struct socket *sock, struct msghdr *msg, in skcipher_sendmsg_nokey() argument
305 err = skcipher_check_key(sock); in skcipher_sendmsg_nokey()
309 return skcipher_sendmsg(sock, msg, size); in skcipher_sendmsg_nokey()
312 static int skcipher_recvmsg_nokey(struct socket *sock, struct msghdr *msg, in skcipher_recvmsg_nokey() argument
317 err = skcipher_check_key(sock); in skcipher_recvmsg_nokey()
321 return skcipher_recvmsg(sock, msg, ignored, flags); in skcipher_recvmsg_nokey()
358 static void skcipher_sock_destruct(struct sock *sk) in skcipher_sock_destruct()
362 struct sock *psk = ask->parent; in skcipher_sock_destruct()
374 static int skcipher_accept_parent_nokey(void *private, struct sock *sk) in skcipher_accept_parent_nokey()
405 static int skcipher_accept_parent(void *private, struct sock *sk) in skcipher_accept_parent()