Lines Matching defs:sock
42 #include <net/sock.h>
49 static int bnep_sock_release(struct socket *sock)
51 struct sock *sk = sock->sk;
53 BT_DBG("sock %p sk %p", sock, sk);
63 static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
83 nsock = sockfd_lookup(ca.sock, &err);
141 static int bnep_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
165 return bnep_sock_ioctl(sock, cmd, arg);
198 static int bnep_sock_create(struct net *net, struct socket *sock, int protocol,
201 struct sock *sk;
203 BT_DBG("sock %p", sock);
205 if (sock->type != SOCK_RAW)
212 sock_init_data(sock, sk);
214 sock->ops = &bnep_sock_ops;
216 sock->state = SS_UNCONNECTED;