Lines Matching defs:sock
37 static int bnep_sock_release(struct socket *sock)
39 struct sock *sk = sock->sk;
41 BT_DBG("sock %p sk %p", sock, sk);
53 static int do_bnep_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp)
73 nsock = sockfd_lookup(ca.sock, &err);
137 static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
139 return do_bnep_sock_ioctl(sock, cmd, (void __user *)arg);
143 static int bnep_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
168 return do_bnep_sock_ioctl(sock, cmd, argp);
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)
208 sk = bt_sock_alloc(net, sock, &bnep_proto, protocol, GFP_ATOMIC, kern);
212 sock->ops = &bnep_sock_ops;
213 sock->state = SS_UNCONNECTED;