Lines Matching refs:sock
42 static int hash_sendmsg(struct socket *sock, struct msghdr *msg, in hash_sendmsg() argument
46 struct sock *sk = sock->sk; in hash_sendmsg()
104 static ssize_t hash_sendpage(struct socket *sock, struct page *page, in hash_sendpage() argument
107 struct sock *sk = sock->sk; in hash_sendpage()
149 static int hash_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, in hash_recvmsg() argument
152 struct sock *sk = sock->sk; in hash_recvmsg()
181 static int hash_accept(struct socket *sock, struct socket *newsock, int flags) in hash_accept() argument
183 struct sock *sk = sock->sk; in hash_accept()
188 struct sock *sk2; in hash_accept()
245 static int hash_check_key(struct socket *sock) in hash_check_key() argument
248 struct sock *psk; in hash_check_key()
251 struct sock *sk = sock->sk; in hash_check_key()
283 static int hash_sendmsg_nokey(struct socket *sock, struct msghdr *msg, in hash_sendmsg_nokey() argument
288 err = hash_check_key(sock); in hash_sendmsg_nokey()
292 return hash_sendmsg(sock, msg, size); in hash_sendmsg_nokey()
295 static ssize_t hash_sendpage_nokey(struct socket *sock, struct page *page, in hash_sendpage_nokey() argument
300 err = hash_check_key(sock); in hash_sendpage_nokey()
304 return hash_sendpage(sock, page, offset, size, flags); in hash_sendpage_nokey()
307 static int hash_recvmsg_nokey(struct socket *sock, struct msghdr *msg, in hash_recvmsg_nokey() argument
312 err = hash_check_key(sock); in hash_recvmsg_nokey()
316 return hash_recvmsg(sock, msg, ignored, flags); in hash_recvmsg_nokey()
319 static int hash_accept_nokey(struct socket *sock, struct socket *newsock, in hash_accept_nokey() argument
324 err = hash_check_key(sock); in hash_accept_nokey()
328 return hash_accept(sock, newsock, flags); in hash_accept_nokey()
392 static void hash_sock_destruct(struct sock *sk) in hash_sock_destruct()
403 static int hash_accept_parent_nokey(void *private, struct sock *sk) in hash_accept_parent_nokey()
439 static int hash_accept_parent(void *private, struct sock *sk) in hash_accept_parent()