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

Lines Matching refs:sock

41 static int llc_ui_wait_for_conn(struct sock *sk, long timeout);
42 static int llc_ui_wait_for_disc(struct sock *sk, long timeout);
43 static int llc_ui_wait_for_busy_core(struct sock *sk, long timeout);
92 static inline u8 llc_ui_header_len(struct sock *sk, struct sockaddr_llc *addr)
112 static int llc_ui_send_data(struct sock* sk, struct sk_buff *skb, int noblock)
129 static void llc_ui_sk_init(struct socket *sock, struct sock *sk)
131 sock_graft(sk, sock);
132 sk->sk_type = sock->type;
133 sock->ops = &llc_ui_ops;
146 * @sock: Socket to initialize and attach allocated sk to.
154 static int llc_ui_create(struct net *net, struct socket *sock, int protocol,
157 struct sock *sk;
166 if (likely(sock->type == SOCK_DGRAM || sock->type == SOCK_STREAM)) {
171 llc_ui_sk_init(sock, sk);
179 * @sock: Socket to release.
183 static int llc_ui_release(struct socket *sock)
185 struct sock *sk = sock->sk;
240 * @sock: socket to bind
248 static int llc_ui_autobind(struct socket *sock, struct sockaddr_llc *addr)
250 struct sock *sk = sock->sk;
288 * @sock: Socket to bind an address to.
300 static int llc_ui_bind(struct socket *sock, struct sockaddr *uaddr, int addrlen)
303 struct sock *sk = sock->sk;
353 struct sock *ask;
381 * @sock: Socket to shutdown.
390 static int llc_ui_shutdown(struct socket *sock, int how)
392 struct sock *sk = sock->sk;
413 * @sock: Socket which will be connected to the remote destination.
425 static int llc_ui_connect(struct socket *sock, struct sockaddr *uaddr,
428 struct sock *sk = sock->sk;
442 if (unlikely(sock->state == SS_CONNECTING))
447 rc = llc_ui_autobind(sock, addr);
453 sock->state = SS_CONNECTING;
460 sock->state = SS_UNCONNECTED;
479 sock->state = SS_CONNECTED;
486 sock->state = SS_UNCONNECTED;
492 * @sock: Socket to allow incoming connections on.
498 static int llc_ui_listen(struct socket *sock, int backlog)
500 struct sock *sk = sock->sk;
504 if (unlikely(sock->state != SS_UNCONNECTED))
526 static int llc_ui_wait_for_disc(struct sock *sk, long timeout)
547 static int llc_ui_wait_for_conn(struct sock *sk, long timeout)
562 static int llc_ui_wait_for_busy_core(struct sock *sk, long timeout)
588 static int llc_wait_data(struct sock *sk, long timeo)
631 * @sock: Socket which connections arrive on.
638 static int llc_ui_accept(struct socket *sock, struct socket *newsock, int flags)
640 struct sock *sk = sock->sk, *newsk;
651 if (unlikely(sock->state != SS_UNCONNECTED ||
692 * @sock: Socket to copy data from.
700 static int llc_ui_recvmsg(struct kiocb *iocb, struct socket *sock,
706 struct sock *sk = sock->sk;
852 * @sock: Socket to transmit data from.
859 static int llc_ui_sendmsg(struct kiocb *iocb, struct socket *sock,
862 struct sock *sk = sock->sk;
885 rc = llc_ui_autobind(sock, addr);
937 * @sock: Socket to get address of.
944 static int llc_ui_getname(struct socket *sock, struct sockaddr *uaddr,
948 struct sock *sk = sock->sk;
988 * @sock: Socket to get/set info
994 static int llc_ui_ioctl(struct socket *sock, unsigned int cmd,
1002 * @sock: Socket to set options on.
1010 static int llc_ui_setsockopt(struct socket *sock, int level, int optname,
1013 struct sock *sk = sock->sk;
1084 * @sock: Socket to get information from.
1092 static int llc_ui_getsockopt(struct socket *sock, int level, int optname,
1095 struct sock *sk = sock->sk;