Lines Matching refs:sock
37 #include <net/sock.h>
44 static inline bool aead_sufficient_data(struct sock *sk)
47 struct sock *psk = ask->parent;
61 static int aead_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
63 struct sock *sk = sock->sk;
65 struct sock *psk = ask->parent;
71 return af_alg_sendmsg(sock, msg, size, ivsize);
88 static int _aead_recvmsg(struct socket *sock, struct msghdr *msg,
91 struct sock *sk = sock->sk;
93 struct sock *psk = ask->parent;
325 static int aead_recvmsg(struct socket *sock, struct msghdr *msg,
328 struct sock *sk = sock->sk;
333 int err = _aead_recvmsg(sock, msg, ignored, flags);
377 static int aead_check_key(struct socket *sock)
380 struct sock *psk;
383 struct sock *sk = sock->sk;
412 static int aead_sendmsg_nokey(struct socket *sock, struct msghdr *msg,
417 err = aead_check_key(sock);
421 return aead_sendmsg(sock, msg, size);
424 static int aead_recvmsg_nokey(struct socket *sock, struct msghdr *msg,
429 err = aead_check_key(sock);
433 return aead_recvmsg(sock, msg, ignored, flags);
507 static void aead_sock_destruct(struct sock *sk)
511 struct sock *psk = ask->parent;
523 static int aead_accept_parent_nokey(void *private, struct sock *sk)
555 static int aead_accept_parent(void *private, struct sock *sk)