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

Lines Matching refs:sock

22 #include <net/sock.h>
72 struct sock sk; /* must be first member */
118 static void caif_read_lock(struct sock *sk)
125 static void caif_read_unlock(struct sock *sk)
138 static void caif_flow_ctrl(struct sock *sk, int mode)
147 * Copied from sock.c:sock_queue_rcv_skb(), but changed so packets are
150 static int caif_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
283 static void caif_check_flow_release(struct sock *sk)
301 static int caif_seqpkt_recvmsg(struct kiocb *iocb, struct socket *sock,
305 struct sock *sk = sock->sk;
339 static long caif_stream_data_wait(struct sock *sk, long timeo)
373 static int caif_stream_recvmsg(struct kiocb *iocb, struct socket *sock,
377 struct sock *sk = sock->sk;
486 * Copied from sock.c:sock_wait_for_wmem, but change to wait for
492 struct sock *sk = &cf_sk->sk;
570 static int caif_seqpkt_sendmsg(struct kiocb *kiocb, struct socket *sock,
573 struct sock *sk = sock->sk;
643 static int caif_stream_sendmsg(struct kiocb *kiocb, struct socket *sock,
646 struct sock *sk = sock->sk;
722 static int setsockopt(struct socket *sock,
725 struct sock *sk = sock->sk;
819 * o sock->state: holds the SS_* socket state and is updated by connect and
822 static int caif_connect(struct socket *sock, struct sockaddr *uaddr,
825 struct sock *sk = sock->sk;
839 switch (sock->state) {
847 sock->state = SS_CONNECTED;
877 sock->state = SS_UNCONNECTED;
888 sock->state = SS_CONNECTING;
941 sock->state = SS_UNCONNECTED;
947 sock->state = SS_CONNECTED;
958 static int caif_release(struct socket *sock)
960 struct sock *sk = sock->sk;
972 * this ensures no packets when sock is dead.
977 sock->sk = NULL;
1005 struct socket *sock, poll_table *wait)
1007 struct sock *sk = sock->sk;
1080 static void caif_sock_destructor(struct sock *sk)
1094 static int caif_create(struct net *net, struct socket *sock, int protocol,
1097 struct sock *sk = NULL;
1107 * The sock->type specifies the socket type to use.
1112 if (sock->type == SOCK_SEQPACKET)
1113 sock->ops = &caif_seqpacket_ops;
1114 else if (sock->type == SOCK_STREAM)
1115 sock->ops = &caif_stream_ops;
1124 * initialization makes sure that sock->state is not uninitialized.
1145 /* Initialize the nozero default sock structure data. */
1146 sock_init_data(sock, sk);