Lines Matching defs:sock

49 	struct sock	*sk;
59 static void sco_sock_close(struct sock *sk);
60 static void sco_sock_kill(struct sock *sk);
83 struct sock *sk;
98 BT_DBG("sock %p state %d", sk, sk->sk_state);
108 static void sco_sock_set_timer(struct sock *sk, long timeout)
113 BT_DBG("sock %p state %d timeout %ld", sk, sk->sk_state, timeout);
118 static void sco_sock_clear_timer(struct sock *sk)
123 BT_DBG("sock %p state %d", sk, sk->sk_state);
158 static void sco_chan_del(struct sock *sk, int err)
186 struct sock *sk;
214 static void __sco_chan_add(struct sco_conn *conn, struct sock *sk,
215 struct sock *parent)
226 static int sco_chan_add(struct sco_conn *conn, struct sock *sk,
227 struct sock *parent)
241 static int sco_connect(struct hci_dev *hdev, struct sock *sk)
287 static int sco_send_frame(struct sock *sk, struct sk_buff *skb)
305 struct sock *sk;
327 static struct sock *__sco_get_sock_listen_by_addr(bdaddr_t *ba)
329 struct sock *sk;
345 static struct sock *sco_get_sock_listen(bdaddr_t *src)
347 struct sock *sk = NULL, *sk1 = NULL;
369 static void sco_sock_destruct(struct sock *sk)
377 static void sco_sock_cleanup_listen(struct sock *parent)
379 struct sock *sk;
396 static void sco_sock_kill(struct sock *sk)
409 static void __sco_sock_close(struct sock *sk)
444 static void sco_sock_close(struct sock *sk)
453 struct sock *sk)
461 static void sco_sock_init(struct sock *sk, struct sock *parent)
480 static struct sock *sco_sock_alloc(struct net *net, struct socket *sock,
483 struct sock *sk;
489 sock_init_data(sock, sk);
506 static int sco_sock_create(struct net *net, struct socket *sock, int protocol,
509 struct sock *sk;
511 BT_DBG("sock %p", sock);
513 sock->state = SS_UNCONNECTED;
515 if (sock->type != SOCK_SEQPACKET)
518 sock->ops = &sco_sock_ops;
520 sk = sco_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
528 static int sco_sock_bind(struct socket *sock, struct sockaddr *addr,
532 struct sock *sk = sock->sk;
562 static int sco_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags)
565 struct sock *sk = sock->sk;
610 static int sco_sock_listen(struct socket *sock, int backlog)
612 struct sock *sk = sock->sk;
650 static int sco_sock_accept(struct socket *sock, struct socket *newsock,
654 struct sock *sk = sock->sk, *ch;
705 static int sco_sock_getname(struct socket *sock, struct sockaddr *addr,
709 struct sock *sk = sock->sk;
711 BT_DBG("sock %p, sk %p", sock, sk);
723 static int sco_sock_sendmsg(struct socket *sock, struct msghdr *msg,
726 struct sock *sk = sock->sk;
730 BT_DBG("sock %p, sk %p", sock, sk);
806 static int sco_sock_recvmsg(struct socket *sock, struct msghdr *msg,
809 struct sock *sk = sock->sk;
825 return bt_sock_recvmsg(sock, msg, len, flags);
828 static int sco_sock_setsockopt(struct socket *sock, int level, int optname,
831 struct sock *sk = sock->sk;
902 static int sco_sock_getsockopt_old(struct socket *sock, int optname,
905 struct sock *sk = sock->sk;
963 static int sco_sock_getsockopt(struct socket *sock, int level, int optname,
966 struct sock *sk = sock->sk;
975 return sco_sock_getsockopt_old(sock, optname, optval, optlen);
1044 static int sco_sock_shutdown(struct socket *sock, int how)
1046 struct sock *sk = sock->sk;
1049 BT_DBG("sock %p, sk %p", sock, sk);
1074 static int sco_sock_release(struct socket *sock)
1076 struct sock *sk = sock->sk;
1079 BT_DBG("sock %p, sk %p", sock, sk);
1100 struct sock *parent;
1101 struct sock *sk = conn->sk;
1160 struct sock *sk;
1238 struct sock *sk;