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;
94 BT_DBG("sock %p state %d", sk, sk->sk_state);
103 static void sco_sock_set_timer(struct sock *sk, long timeout)
108 BT_DBG("sock %p state %d timeout %ld", sk, sk->sk_state, timeout);
113 static void sco_sock_clear_timer(struct sock *sk)
118 BT_DBG("sock %p state %d", sk, sk->sk_state);
156 static void sco_chan_del(struct sock *sk, int err)
184 struct sock *sk;
213 static void __sco_chan_add(struct sco_conn *conn, struct sock *sk,
214 struct sock *parent)
225 static int sco_chan_add(struct sco_conn *conn, struct sock *sk,
226 struct sock *parent)
240 static int sco_connect(struct sock *sk)
307 static int sco_send_frame(struct sock *sk, struct sk_buff *skb)
325 struct sock *sk;
347 static struct sock *__sco_get_sock_listen_by_addr(bdaddr_t *ba)
349 struct sock *sk;
365 static struct sock *sco_get_sock_listen(bdaddr_t *src)
367 struct sock *sk = NULL, *sk1 = NULL;
389 static void sco_sock_destruct(struct sock *sk)
397 static void sco_sock_cleanup_listen(struct sock *parent)
399 struct sock *sk;
416 static void sco_sock_kill(struct sock *sk)
429 static void __sco_sock_close(struct sock *sk)
465 static void sco_sock_close(struct sock *sk)
473 static void sco_sock_init(struct sock *sk, struct sock *parent)
490 static struct sock *sco_sock_alloc(struct net *net, struct socket *sock,
493 struct sock *sk;
495 sk = bt_sock_alloc(net, sock, &sco_proto, proto, prio, kern);
512 static int sco_sock_create(struct net *net, struct socket *sock, int protocol,
515 struct sock *sk;
517 BT_DBG("sock %p", sock);
519 sock->state = SS_UNCONNECTED;
521 if (sock->type != SOCK_SEQPACKET)
524 sock->ops = &sco_sock_ops;
526 sk = sco_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
534 static int sco_sock_bind(struct socket *sock, struct sockaddr *addr,
538 struct sock *sk = sock->sk;
568 static int sco_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags)
571 struct sock *sk = sock->sk;
604 static int sco_sock_listen(struct socket *sock, int backlog)
606 struct sock *sk = sock->sk;
644 static int sco_sock_accept(struct socket *sock, struct socket *newsock,
648 struct sock *sk = sock->sk, *ch;
699 static int sco_sock_getname(struct socket *sock, struct sockaddr *addr,
703 struct sock *sk = sock->sk;
705 BT_DBG("sock %p, sk %p", sock, sk);
717 static int sco_sock_sendmsg(struct socket *sock, struct msghdr *msg,
720 struct sock *sk = sock->sk;
724 BT_DBG("sock %p, sk %p", sock, sk);
800 static int sco_sock_recvmsg(struct socket *sock, struct msghdr *msg,
803 struct sock *sk = sock->sk;
819 return bt_sock_recvmsg(sock, msg, len, flags);
822 static int sco_sock_setsockopt(struct socket *sock, int level, int optname,
825 struct sock *sk = sock->sk;
963 static int sco_sock_getsockopt_old(struct socket *sock, int optname,
966 struct sock *sk = sock->sk;
1024 static int sco_sock_getsockopt(struct socket *sock, int level, int optname,
1027 struct sock *sk = sock->sk;
1041 return sco_sock_getsockopt_old(sock, optname, optval, optlen);
1206 static int sco_sock_shutdown(struct socket *sock, int how)
1208 struct sock *sk = sock->sk;
1211 BT_DBG("sock %p, sk %p", sock, sk);
1236 static int sco_sock_release(struct socket *sock)
1238 struct sock *sk = sock->sk;
1241 BT_DBG("sock %p, sk %p", sock, sk);
1262 struct sock *parent;
1263 struct sock *sk = conn->sk;
1322 struct sock *sk;
1400 struct sock *sk;