Lines Matching refs:sock
25 #include <net/sock.h>
78 void dccp_set_state(struct sock *sk, const int state)
118 static void dccp_finish_passive_close(struct sock *sk)
136 void dccp_done(struct sock *sk)
174 void dccp_destruct_common(struct sock *sk)
183 static void dccp_sk_destruct(struct sock *sk)
189 int dccp_init_sock(struct sock *sk, const __u8 ctl_sock_initialized)
220 void dccp_destroy_sock(struct sock *sk)
256 int dccp_disconnect(struct sock *sk, int flags)
315 __poll_t dccp_poll(struct file *file, struct socket *sock,
318 struct sock *sk = sock->sk;
323 sock_poll_wait(file, sock, wait);
369 int dccp_ioctl(struct sock *sk, int cmd, int *karg)
414 static int dccp_setsockopt_service(struct sock *sk, const __be32 service,
448 static int dccp_setsockopt_cscov(struct sock *sk, int cscov, bool rx)
484 static int dccp_setsockopt_ccid(struct sock *sk, int type,
509 static int do_dccp_setsockopt(struct sock *sk, int level, int optname,
575 int dccp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
587 static int dccp_getsockopt_service(struct sock *sk, int len,
615 static int do_dccp_getsockopt(struct sock *sk, int level, int optname,
683 int dccp_getsockopt(struct sock *sk, int level, int optname,
735 int dccp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
812 int dccp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags,
920 int inet_dccp_listen(struct socket *sock, int backlog)
922 struct sock *sk = sock->sk;
929 if (sock->state != SS_UNCONNECTED || sock->type != SOCK_DCCP)
964 static void dccp_terminate_connection(struct sock *sk)
991 void dccp_close(struct sock *sk, long timeout)
1090 void dccp_shutdown(struct sock *sk, int how)