Lines Matching refs:sock

32 static int hash_alloc_result(struct sock *sk, struct hash_ctx *ctx)  in hash_alloc_result()
50 static void hash_free_result(struct sock *sk, struct hash_ctx *ctx) in hash_free_result()
63 static int hash_sendmsg(struct socket *sock, struct msghdr *msg, in hash_sendmsg() argument
66 struct sock *sk = sock->sk; in hash_sendmsg()
179 static int hash_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, in hash_recvmsg() argument
182 struct sock *sk = sock->sk; in hash_recvmsg()
226 static int hash_accept(struct socket *sock, struct socket *newsock, in hash_accept() argument
229 struct sock *sk = sock->sk; in hash_accept()
234 struct sock *sk2; in hash_accept()
294 static int hash_check_key(struct socket *sock) in hash_check_key() argument
297 struct sock *psk; in hash_check_key()
300 struct sock *sk = sock->sk; in hash_check_key()
329 static int hash_sendmsg_nokey(struct socket *sock, struct msghdr *msg, in hash_sendmsg_nokey() argument
334 err = hash_check_key(sock); in hash_sendmsg_nokey()
338 return hash_sendmsg(sock, msg, size); in hash_sendmsg_nokey()
341 static int hash_recvmsg_nokey(struct socket *sock, struct msghdr *msg, in hash_recvmsg_nokey() argument
346 err = hash_check_key(sock); in hash_recvmsg_nokey()
350 return hash_recvmsg(sock, msg, ignored, flags); in hash_recvmsg_nokey()
353 static int hash_accept_nokey(struct socket *sock, struct socket *newsock, in hash_accept_nokey() argument
358 err = hash_check_key(sock); in hash_accept_nokey()
362 return hash_accept(sock, newsock, arg); in hash_accept_nokey()
398 static void hash_sock_destruct(struct sock *sk) in hash_sock_destruct()
408 static int hash_accept_parent_nokey(void *private, struct sock *sk) in hash_accept_parent_nokey()
435 static int hash_accept_parent(void *private, struct sock *sk) in hash_accept_parent()