• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/ax25/

Lines Matching refs:sock

34 #include <net/sock.h>
60 static void ax25_free_sock(struct sock *sk)
158 struct sock *ax25_find_listener(ax25_address *addr, int digi,
186 struct sock *ax25_get_socket(ax25_address *my_addr, ax25_address *dest_addr,
189 struct sock *sk = NULL;
281 struct sock *sk;
341 struct sock *sk=ax25->sk;
536 static int ax25_setsockopt(struct socket *sock, int level, int optname,
539 struct sock *sk = sock->sk;
652 (sock->state != SS_UNCONNECTED ||
677 static int ax25_getsockopt(struct socket *sock, int level, int optname,
680 struct sock *sk = sock->sk;
774 static int ax25_listen(struct socket *sock, int backlog)
776 struct sock *sk = sock->sk;
796 .obj_size = sizeof(struct sock),
799 static int ax25_create(struct net *net, struct socket *sock, int protocol,
802 struct sock *sk;
808 switch (sock->type) {
863 sock_init_data(sock, sk);
866 sock->ops = &ax25_proto_ops;
874 struct sock *ax25_make_new(struct sock *osk, struct ax25_dev *ax25_dev)
876 struct sock *sk;
944 static int ax25_release(struct socket *sock)
946 struct sock *sk = sock->sk;
1017 sock->sk = NULL;
1030 static int ax25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
1032 struct sock *sk = sock->sk;
1105 static int __must_check ax25_connect(struct socket *sock,
1108 struct sock *sk = sock->sk;
1138 if (sock->state == SS_CONNECTING) {
1145 sock->state = SS_CONNECTED;
1149 sock->state = SS_UNCONNECTED;
1161 sock->state = SS_UNCONNECTED;
1236 sock->state = SS_CONNECTED;
1242 sock->state = SS_CONNECTING;
1298 sock->state = SS_UNCONNECTED;
1303 sock->state = SS_CONNECTED;
1312 static int ax25_accept(struct socket *sock, struct socket *newsock, int flags)
1315 struct sock *newsk;
1317 struct sock *sk;
1320 if (sock->state != SS_UNCONNECTED)
1323 if ((sk = sock->sk) == NULL)
1379 static int ax25_getname(struct socket *sock, struct sockaddr *uaddr,
1383 struct sock *sk = sock->sk;
1427 static int ax25_sendmsg(struct kiocb *iocb, struct socket *sock,
1431 struct sock *sk = sock->sk;
1603 static int ax25_recvmsg(struct kiocb *iocb, struct socket *sock,
1606 struct sock *sk = sock->sk;
1679 static int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
1681 struct sock *sk = sock->sk;