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

Lines Matching defs:sock

44 #include <net/sock.h>
63 static void __sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent);
64 static void sco_chan_del(struct sock *sk, int err);
68 static void sco_sock_close(struct sock *sk);
69 static void sco_sock_kill(struct sock *sk);
74 struct sock *sk = (struct sock *) arg;
76 BT_DBG("sock %p state %d", sk, sk->sk_state);
87 static void sco_sock_set_timer(struct sock *sk, long timeout)
89 BT_DBG("sock %p state %d timeout %ld", sk, sk->sk_state, timeout);
93 static void sco_sock_clear_timer(struct sock *sk)
95 BT_DBG("sock %p state %d", sk, sk->sk_state);
130 static inline struct sock *sco_chan_get(struct sco_conn *conn)
132 struct sock *sk = NULL;
142 struct sock *sk;
163 static inline int sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent)
177 static int sco_connect(struct sock *sk)
231 static inline int sco_send_frame(struct sock *sk, struct msghdr *msg, int len)
261 struct sock *sk = sco_chan_get(conn);
279 static struct sock *__sco_get_sock_by_addr(bdaddr_t *ba)
281 struct sock *sk;
295 static struct sock *sco_get_sock_listen(bdaddr_t *src)
297 struct sock *sk = NULL, *sk1 = NULL;
320 static void sco_sock_destruct(struct sock *sk)
328 static void sco_sock_cleanup_listen(struct sock *parent)
330 struct sock *sk;
347 static void sco_sock_kill(struct sock *sk)
360 static void __sco_sock_close(struct sock *sk)
383 static void sco_sock_close(struct sock *sk)
392 static void sco_sock_init(struct sock *sk, struct sock *parent)
406 static struct sock *sco_sock_alloc(struct net *net, struct socket *sock, int proto, gfp_t prio)
408 struct sock *sk;
414 sock_init_data(sock, sk);
431 static int sco_sock_create(struct net *net, struct socket *sock, int protocol,
434 struct sock *sk;
436 BT_DBG("sock %p", sock);
438 sock->state = SS_UNCONNECTED;
440 if (sock->type != SOCK_SEQPACKET)
443 sock->ops = &sco_sock_ops;
445 sk = sco_sock_alloc(net, sock, protocol, GFP_ATOMIC);
453 static int sco_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len)
456 struct sock *sk = sock->sk;
489 static int sco_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags)
492 struct sock *sk = sock->sk;
524 static int sco_sock_listen(struct socket *sock, int backlog)
526 struct sock *sk = sock->sk;
533 if (sk->sk_state != BT_BOUND || sock->type != SOCK_SEQPACKET) {
547 static int sco_sock_accept(struct socket *sock, struct socket *newsock, int flags)
550 struct sock *sk = sock->sk, *ch;
603 static int sco_sock_getname(struct socket *sock, struct sockaddr *addr, int *len, int peer)
606 struct sock *sk = sock->sk;
608 BT_DBG("sock %p, sk %p", sock, sk);
621 static int sco_sock_sendmsg(struct kiocb *iocb, struct socket *sock,
624 struct sock *sk = sock->sk;
627 BT_DBG("sock %p, sk %p", sock, sk);
647 static int sco_sock_setsockopt(struct socket *sock, int level, int optname, char __user *optval, unsigned int optlen)
649 struct sock *sk = sock->sk;
666 static int sco_sock_getsockopt_old(struct socket *sock, int optname, char __user *optval, int __user *optlen)
668 struct sock *sk = sock->sk;
721 static int sco_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen)
723 struct sock *sk = sock->sk;
729 return sco_sock_getsockopt_old(sock, optname, optval, optlen);
746 static int sco_sock_shutdown(struct socket *sock, int how)
748 struct sock *sk = sock->sk;
751 BT_DBG("sock %p, sk %p", sock, sk);
770 static int sco_sock_release(struct socket *sock)
772 struct sock *sk = sock->sk;
775 BT_DBG("sock %p, sk %p", sock, sk);
793 static void __sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent)
806 static void sco_chan_del(struct sock *sk, int err)
831 struct sock *parent, *sk;
880 register struct sock *sk;
958 struct sock *sk;