Lines Matching defs:sock

47     struct sock *sk;
57 static void sco_sock_close(struct sock *sk);
58 static void sco_sock_kill(struct sock *sk);
80 struct sock *sk;
93 BT_DBG("sock %p state %d", sk, sk->sk_state);
103 static void sco_sock_set_timer(struct sock *sk, long timeout)
109 BT_DBG("sock %p state %d timeout %ld", sk, sk->sk_state, timeout);
114 static void sco_sock_clear_timer(struct sock *sk)
120 BT_DBG("sock %p state %d", sk, sk->sk_state);
158 static void sco_chan_del(struct sock *sk, int err)
187 struct sock *sk;
216 static void __sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent)
228 static int sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent)
243 static int sco_connect(struct hci_dev *hdev, struct sock *sk)
291 static int sco_send_frame(struct sock *sk, struct sk_buff *skb)
310 struct sock *sk;
335 static struct sock *_sco_get_sock_listen_by_addr(bdaddr_t *ba)
337 struct sock *sk;
356 static struct sock *sco_get_sock_listen(bdaddr_t *src)
358 struct sock *sk = NULL, *sk1 = NULL;
384 static void sco_sock_destruct(struct sock *sk)
392 static void sco_sock_cleanup_listen(struct sock *parent)
394 struct sock *sk;
411 static void sco_sock_kill(struct sock *sk)
425 static void _sco_sock_close(struct sock *sk)
461 static void sco_sock_close(struct sock *sk)
469 static void sco_skb_put_cmsg(struct sk_buff *skb, struct msghdr *msg, struct sock *sk)
477 static void sco_sock_init(struct sock *sk, struct sock *parent)
492 static struct sock *sco_sock_alloc(struct net *net, struct socket *sock, int proto, gfp_t prio, int kern)
494 struct sock *sk;
501 sock_init_data(sock, sk);
518 static int sco_sock_create(struct net *net, struct socket *sock, int protocol, int kern)
520 struct sock *sk;
522 BT_DBG("sock %p", sock);
524 sock->state = SS_UNCONNECTED;
526 if (sock->type != SOCK_SEQPACKET) {
530 sock->ops = &sco_sock_ops;
532 sk = sco_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
541 static int sco_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len)
544 struct sock *sk = sock->sk;
574 static int sco_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags)
577 struct sock *sk = sock->sk;
621 static int sco_sock_listen(struct socket *sock, int backlog)
623 struct sock *sk = sock->sk;
661 static int sco_sock_accept(struct socket *sock, struct socket *newsock, int flags, bool kern)
664 struct sock *sk = sock->sk, *ch;
717 static int sco_sock_getname(struct socket *sock, struct sockaddr *addr, int peer)
720 struct sock *sk = sock->sk;
722 BT_DBG("sock %p, sk %p", sock, sk);
735 static int sco_sock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
737 struct sock *sk = sock->sk;
741 BT_DBG("sock %p, sk %p", sock, sk);
821 static int sco_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, int flags)
823 struct sock *sk = sock->sk;
838 return bt_sock_recvmsg(sock, msg, len, flags);
841 static int sco_sock_setsockopt(struct socket *sock, int level, int optname, sockptr_t optval, unsigned int optlen)
843 struct sock *sk = sock->sk;
916 static int sco_sock_getsockopt_old(struct socket *sock, int optname, char __user *optval, int __user *optlen)
918 struct sock *sk = sock->sk;
977 static int sco_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen)
979 struct sock *sk = sock->sk;
988 return sco_sock_getsockopt_old(sock, optname, optval, optlen);
1063 static int sco_sock_shutdown(struct socket *sock, int how)
1065 struct sock *sk = sock->sk;
1068 BT_DBG("sock %p, sk %p", sock, sk);
1093 static int sco_sock_release(struct socket *sock)
1095 struct sock *sk = sock->sk;
1098 BT_DBG("sock %p, sk %p", sock, sk);
1119 struct sock *parent;
1120 struct sock *sk = conn->sk;
1179 struct sock *sk;
1264 struct sock *sk;