Lines Matching refs:sock
106 static inline int skcipher_sndbuf(struct sock *sk) in skcipher_sndbuf()
115 static inline bool skcipher_writable(struct sock *sk) in skcipher_writable()
120 static int skcipher_alloc_sgl(struct sock *sk) in skcipher_alloc_sgl()
150 static void skcipher_pull_sgl(struct sock *sk, int used, int put) in skcipher_pull_sgl()
192 static void skcipher_free_sgl(struct sock *sk) in skcipher_free_sgl()
200 static int skcipher_wait_for_wmem(struct sock *sk, unsigned flags) in skcipher_wait_for_wmem()
226 static void skcipher_wmem_wakeup(struct sock *sk) in skcipher_wmem_wakeup()
243 static int skcipher_wait_for_data(struct sock *sk, unsigned flags) in skcipher_wait_for_data()
274 static void skcipher_data_wakeup(struct sock *sk) in skcipher_data_wakeup()
293 static int skcipher_sendmsg(struct socket *sock, struct msghdr *msg, in skcipher_sendmsg() argument
296 struct sock *sk = sock->sk; in skcipher_sendmsg()
298 struct sock *psk = ask->parent; in skcipher_sendmsg()
431 static ssize_t skcipher_sendpage(struct socket *sock, struct page *page, in skcipher_sendpage() argument
434 struct sock *sk = sock->sk; in skcipher_sendpage()
499 static int skcipher_recvmsg_async(struct socket *sock, struct msghdr *msg, in skcipher_recvmsg_async() argument
502 struct sock *sk = sock->sk; in skcipher_recvmsg_async()
504 struct sock *psk = ask->parent; in skcipher_recvmsg_async()
635 static int skcipher_recvmsg_sync(struct socket *sock, struct msghdr *msg, in skcipher_recvmsg_sync() argument
638 struct sock *sk = sock->sk; in skcipher_recvmsg_sync()
640 struct sock *psk = ask->parent; in skcipher_recvmsg_sync()
710 static int skcipher_recvmsg(struct socket *sock, struct msghdr *msg, in skcipher_recvmsg() argument
714 skcipher_recvmsg_async(sock, msg, flags) : in skcipher_recvmsg()
715 skcipher_recvmsg_sync(sock, msg, flags); in skcipher_recvmsg()
718 static unsigned int skcipher_poll(struct file *file, struct socket *sock, in skcipher_poll() argument
721 struct sock *sk = sock->sk; in skcipher_poll()
760 static int skcipher_check_key(struct socket *sock) in skcipher_check_key() argument
763 struct sock *psk; in skcipher_check_key()
766 struct sock *sk = sock->sk; in skcipher_check_key()
798 static int skcipher_sendmsg_nokey(struct socket *sock, struct msghdr *msg, in skcipher_sendmsg_nokey() argument
803 err = skcipher_check_key(sock); in skcipher_sendmsg_nokey()
807 return skcipher_sendmsg(sock, msg, size); in skcipher_sendmsg_nokey()
810 static ssize_t skcipher_sendpage_nokey(struct socket *sock, struct page *page, in skcipher_sendpage_nokey() argument
815 err = skcipher_check_key(sock); in skcipher_sendpage_nokey()
819 return skcipher_sendpage(sock, page, offset, size, flags); in skcipher_sendpage_nokey()
822 static int skcipher_recvmsg_nokey(struct socket *sock, struct msghdr *msg, in skcipher_recvmsg_nokey() argument
827 err = skcipher_check_key(sock); in skcipher_recvmsg_nokey()
831 return skcipher_recvmsg(sock, msg, ignored, flags); in skcipher_recvmsg_nokey()
895 static void skcipher_wait(struct sock *sk) in skcipher_wait()
905 static void skcipher_sock_destruct(struct sock *sk) in skcipher_sock_destruct()
920 static int skcipher_accept_parent_nokey(void *private, struct sock *sk) in skcipher_accept_parent_nokey()
962 static int skcipher_accept_parent(void *private, struct sock *sk) in skcipher_accept_parent()