Lines Matching defs:sock
36 #include <net/sock.h>
155 static void rose_remove_socket(struct sock *sk)
168 struct sock *s;
189 struct sock *s;
235 static void rose_insert_socket(struct sock *sk)
247 static struct sock *rose_find_listener(rose_address *addr, ax25_address *call)
249 struct sock *s;
279 struct sock *rose_find_socket(unsigned int lci, struct rose_neigh *neigh)
281 struct sock *s;
320 void rose_destroy_socket(struct sock *);
327 rose_destroy_socket((struct sock *)data);
336 void rose_destroy_socket(struct sock *sk)
373 static int rose_setsockopt(struct socket *sock, int level, int optname,
376 struct sock *sk = sock->sk;
433 static int rose_getsockopt(struct socket *sock, int level, int optname,
436 struct sock *sk = sock->sk;
491 static int rose_listen(struct socket *sock, int backlog)
493 struct sock *sk = sock->sk;
516 static int rose_create(struct net *net, struct socket *sock, int protocol,
519 struct sock *sk;
525 if (sock->type != SOCK_SEQPACKET || protocol != 0)
534 sock_init_data(sock, sk);
542 sock->ops = &rose_proto_ops;
559 static struct sock *rose_make_new(struct sock *osk)
561 struct sock *sk;
605 static int rose_release(struct socket *sock)
607 struct sock *sk = sock->sk;
653 sock->sk = NULL;
660 static int rose_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
662 struct sock *sk = sock->sk;
723 static int rose_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags)
725 struct sock *sk = sock->sk;
751 if (sk->sk_state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
753 sock->state = SS_CONNECTED;
757 if (sk->sk_state == TCP_CLOSE && sock->state == SS_CONNECTING) {
758 sock->state = SS_UNCONNECTED;
770 sock->state = SS_UNCONNECTED;
823 sock->state = SS_CONNECTING;
874 sock->state = SS_UNCONNECTED;
879 sock->state = SS_CONNECTED;
887 static int rose_accept(struct socket *sock, struct socket *newsock, int flags)
890 struct sock *newsk;
892 struct sock *sk;
895 if ((sk = sock->sk) == NULL)
951 static int rose_getname(struct socket *sock, struct sockaddr *uaddr,
955 struct sock *sk = sock->sk;
984 struct sock *sk;
985 struct sock *make;
1063 static int rose_sendmsg(struct kiocb *iocb, struct socket *sock,
1066 struct sock *sk = sock->sk;
1238 static int rose_recvmsg(struct kiocb *iocb, struct socket *sock,
1241 struct sock *sk = sock->sk;
1304 static int rose_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
1306 struct sock *sk = sock->sk;
1432 struct sock *s = sk_entry(v);