Lines Matching refs:sock
105 struct sock *sk = req->data; in skcipher_async_cb()
117 static inline int skcipher_sndbuf(struct sock *sk) in skcipher_sndbuf()
126 static inline bool skcipher_writable(struct sock *sk) in skcipher_writable()
131 static int skcipher_alloc_sgl(struct sock *sk) in skcipher_alloc_sgl()
161 static void skcipher_pull_sgl(struct sock *sk, int used, int put) in skcipher_pull_sgl()
203 static void skcipher_free_sgl(struct sock *sk) in skcipher_free_sgl()
211 static int skcipher_wait_for_wmem(struct sock *sk, unsigned flags) in skcipher_wait_for_wmem()
237 static void skcipher_wmem_wakeup(struct sock *sk) in skcipher_wmem_wakeup()
254 static int skcipher_wait_for_data(struct sock *sk, unsigned flags) in skcipher_wait_for_data()
285 static void skcipher_data_wakeup(struct sock *sk) in skcipher_data_wakeup()
304 static int skcipher_sendmsg(struct socket *sock, struct msghdr *msg, in skcipher_sendmsg() argument
307 struct sock *sk = sock->sk; in skcipher_sendmsg()
439 static ssize_t skcipher_sendpage(struct socket *sock, struct page *page, in skcipher_sendpage() argument
442 struct sock *sk = sock->sk; in skcipher_sendpage()
507 static int skcipher_recvmsg_async(struct socket *sock, struct msghdr *msg, in skcipher_recvmsg_async() argument
510 struct sock *sk = sock->sk; 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()
708 static int skcipher_recvmsg(struct socket *sock, struct msghdr *msg, in skcipher_recvmsg() argument
712 skcipher_recvmsg_async(sock, msg, flags) : in skcipher_recvmsg()
713 skcipher_recvmsg_sync(sock, msg, flags); in skcipher_recvmsg()
716 static unsigned int skcipher_poll(struct file *file, struct socket *sock, in skcipher_poll() argument
719 struct sock *sk = sock->sk; in skcipher_poll()
758 static int skcipher_check_key(struct socket *sock) in skcipher_check_key() argument
761 struct sock *psk; in skcipher_check_key()
764 struct sock *sk = sock->sk; in skcipher_check_key()
796 static int skcipher_sendmsg_nokey(struct socket *sock, struct msghdr *msg, in skcipher_sendmsg_nokey() argument
801 err = skcipher_check_key(sock); in skcipher_sendmsg_nokey()
805 return skcipher_sendmsg(sock, msg, size); in skcipher_sendmsg_nokey()
808 static ssize_t skcipher_sendpage_nokey(struct socket *sock, struct page *page, in skcipher_sendpage_nokey() argument
813 err = skcipher_check_key(sock); in skcipher_sendpage_nokey()
817 return skcipher_sendpage(sock, page, offset, size, flags); in skcipher_sendpage_nokey()
820 static int skcipher_recvmsg_nokey(struct socket *sock, struct msghdr *msg, in skcipher_recvmsg_nokey() argument
825 err = skcipher_check_key(sock); in skcipher_recvmsg_nokey()
829 return skcipher_recvmsg(sock, msg, ignored, flags); in skcipher_recvmsg_nokey()
893 static void skcipher_wait(struct sock *sk) in skcipher_wait()
903 static void skcipher_sock_destruct(struct sock *sk) in skcipher_sock_destruct()
918 static int skcipher_accept_parent_nokey(void *private, struct sock *sk) in skcipher_accept_parent_nokey()
959 static int skcipher_accept_parent(void *private, struct sock *sk) in skcipher_accept_parent()