Lines Matching defs:sock
40 #include <net/sock.h>
59 static int rds_release(struct socket *sock)
61 struct sock *sk = sock->sk;
90 sock->sk = NULL;
99 * to wake the waitqueue after sk_sleep is clear as we hold a sock ref, but
114 static int rds_getname(struct socket *sock, struct sockaddr *uaddr,
117 struct rds_sock *rs = rds_sk_to_rs(sock->sk);
212 static __poll_t rds_poll(struct file *file, struct socket *sock,
215 struct sock *sk = sock->sk;
255 static int rds_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
257 struct rds_sock *rs = rds_sk_to_rs(sock->sk);
381 static int rds_enable_recvtstamp(struct sock *sk, sockptr_t optval,
432 static int rds_setsockopt(struct socket *sock, int level, int optname,
435 struct rds_sock *rs = rds_sk_to_rs(sock->sk);
463 lock_sock(sock->sk);
465 release_sock(sock->sk);
469 lock_sock(sock->sk);
470 ret = rds_enable_recvtstamp(sock->sk, optval, optlen, optname);
471 release_sock(sock->sk);
483 static int rds_getsockopt(struct socket *sock, int level, int optname,
486 struct rds_sock *rs = rds_sk_to_rs(sock->sk);
500 ret = rds_info_getsockopt(sock, optname, optval,
536 static int rds_connect(struct socket *sock, struct sockaddr *uaddr,
539 struct sock *sk = sock->sk;
659 static void rds_sock_destruct(struct sock *sk)
667 static int __rds_create(struct socket *sock, struct sock *sk, int protocol)
671 sock_init_data(sock, sk);
672 sock->ops = &rds_proto_ops;
698 static int rds_create(struct net *net, struct socket *sock, int protocol,
701 struct sock *sk;
703 if (sock->type != SOCK_SEQPACKET || protocol)
710 return __rds_create(sock, sk, protocol);
729 static void rds_sock_inc_info(struct socket *sock, unsigned int len,
768 static void rds6_sock_inc_info(struct socket *sock, unsigned int len,
800 static void rds_sock_info(struct socket *sock, unsigned int len,
841 static void rds6_sock_info(struct socket *sock, unsigned int len,