Lines Matching refs:sock
200 static void x25_remove_socket(struct sock *sk) in x25_remove_socket()
212 struct sock *s; in x25_kill_by_device()
265 static void x25_insert_socket(struct sock *sk) in x25_insert_socket()
279 static struct sock *x25_find_listener(struct x25_address *addr, in x25_find_listener()
282 struct sock *s; in x25_find_listener()
283 struct sock *next_best; in x25_find_listener()
323 static struct sock *__x25_find_socket(unsigned int lci, struct x25_neigh *nb) in __x25_find_socket()
325 struct sock *s; in __x25_find_socket()
337 struct sock *x25_find_socket(unsigned int lci, struct x25_neigh *nb) in x25_find_socket()
339 struct sock *s; in x25_find_socket()
353 struct sock *sk; in x25_new_lci()
372 static void __x25_destroy_socket(struct sock *);
379 x25_destroy_socket_from_timer((struct sock *)data); in x25_destroy_timer()
389 static void __x25_destroy_socket(struct sock *sk) in __x25_destroy_socket()
425 void x25_destroy_socket_from_timer(struct sock *sk) in x25_destroy_socket_from_timer()
439 static int x25_setsockopt(struct socket *sock, int level, int optname, in x25_setsockopt() argument
443 struct sock *sk = sock->sk; in x25_setsockopt()
466 static int x25_getsockopt(struct socket *sock, int level, int optname, in x25_getsockopt() argument
469 struct sock *sk = sock->sk; in x25_getsockopt()
495 static int x25_listen(struct socket *sock, int backlog) in x25_listen() argument
497 struct sock *sk = sock->sk; in x25_listen()
518 static struct sock *x25_alloc_socket(struct net *net) in x25_alloc_socket()
521 struct sock *sk = sk_alloc(net, AF_X25, GFP_ATOMIC, &x25_proto); in x25_alloc_socket()
537 static int x25_create(struct net *net, struct socket *sock, int protocol, in x25_create() argument
540 struct sock *sk; in x25_create()
548 if (sock->type != SOCK_SEQPACKET) in x25_create()
561 sock_init_data(sock, sk); in x25_create()
565 sock->ops = &x25_proto_ops; in x25_create()
597 static struct sock *x25_make_new(struct sock *osk) in x25_make_new()
599 struct sock *sk = NULL; in x25_make_new()
635 static int x25_release(struct socket *sock) in x25_release() argument
637 struct sock *sk = sock->sk; in x25_release()
677 static int x25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in x25_bind() argument
679 struct sock *sk = sock->sk; in x25_bind()
708 static int x25_wait_for_connection_establishment(struct sock *sk) in x25_wait_for_connection_establishment()
737 static int x25_connect(struct socket *sock, struct sockaddr *uaddr, in x25_connect() argument
740 struct sock *sk = sock->sk; in x25_connect()
747 if (sk->sk_state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) { in x25_connect()
748 sock->state = SS_CONNECTED; in x25_connect()
753 if (sk->sk_state == TCP_CLOSE && sock->state == SS_CONNECTING) { in x25_connect()
754 sock->state = SS_UNCONNECTED; in x25_connect()
763 sock->state = SS_UNCONNECTED; in x25_connect()
795 sock->state = SS_CONNECTING; in x25_connect()
814 sock->state = SS_CONNECTED; in x25_connect()
826 static int x25_wait_for_data(struct sock *sk, long timeout) in x25_wait_for_data()
855 static int x25_accept(struct socket *sock, struct socket *newsock, int flags) in x25_accept() argument
857 struct sock *sk = sock->sk; in x25_accept()
858 struct sock *newsk; in x25_accept()
896 static int x25_getname(struct socket *sock, struct sockaddr *uaddr, in x25_getname() argument
900 struct sock *sk = sock->sk; in x25_getname()
923 struct sock *sk; in x25_rx_call_request()
924 struct sock *make; in x25_rx_call_request()
1080 static int x25_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) in x25_sendmsg() argument
1082 struct sock *sk = sock->sk; in x25_sendmsg()
1254 static int x25_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, in x25_recvmsg() argument
1257 struct sock *sk = sock->sk; in x25_recvmsg()
1356 static int x25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in x25_ioctl() argument
1358 struct sock *sk = sock->sk; in x25_ioctl()
1672 static int compat_x25_ioctl(struct socket *sock, unsigned int cmd, in compat_x25_ioctl() argument
1676 struct sock *sk = sock->sk; in compat_x25_ioctl()
1683 rc = x25_ioctl(sock, cmd, (unsigned long)argp); in compat_x25_ioctl()
1736 rc = x25_ioctl(sock, cmd, (unsigned long)argp); in compat_x25_ioctl()
1781 struct sock *s; in x25_kill_by_neigh()