Lines Matching defs:sock
35 #include <net/sock.h>
37 static int skcipher_sendmsg(struct socket *sock, struct msghdr *msg,
40 struct sock *sk = sock->sk;
42 struct sock *psk = ask->parent;
47 return af_alg_sendmsg(sock, msg, size, ivsize);
50 static int algif_skcipher_export(struct sock *sk, struct skcipher_request *req)
57 struct sock *psk;
85 struct sock *sk = areq->sk;
96 static int _skcipher_recvmsg(struct socket *sock, struct msghdr *msg,
99 struct sock *sk = sock->sk;
101 struct sock *psk = ask->parent;
213 static int skcipher_recvmsg(struct socket *sock, struct msghdr *msg,
216 struct sock *sk = sock->sk;
221 int err = _skcipher_recvmsg(sock, msg, ignored, flags);
265 static int skcipher_check_key(struct socket *sock)
268 struct sock *psk;
271 struct sock *sk = sock->sk;
300 static int skcipher_sendmsg_nokey(struct socket *sock, struct msghdr *msg,
305 err = skcipher_check_key(sock);
309 return skcipher_sendmsg(sock, msg, size);
312 static int skcipher_recvmsg_nokey(struct socket *sock, struct msghdr *msg,
317 err = skcipher_check_key(sock);
321 return skcipher_recvmsg(sock, msg, ignored, flags);
358 static void skcipher_sock_destruct(struct sock *sk)
362 struct sock *psk = ask->parent;
374 static int skcipher_accept_parent_nokey(void *private, struct sock *sk)
405 static int skcipher_accept_parent(void *private, struct sock *sk)