Lines Matching refs:sock
33 static int hidp_sock_release(struct socket *sock)
35 struct sock *sk = sock->sk;
37 BT_DBG("sock %p sk %p", sock, sk);
50 static int do_hidp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp)
126 static int hidp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
128 return do_hidp_sock_ioctl(sock, cmd, (void __user *)arg);
148 static int hidp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
219 return hidp_sock_ioctl(sock, cmd, arg);
249 static int hidp_sock_create(struct net *net, struct socket *sock, int protocol,
252 struct sock *sk;
254 BT_DBG("sock %p", sock);
256 if (sock->type != SOCK_RAW)
259 sk = bt_sock_alloc(net, sock, &hidp_proto, protocol, GFP_ATOMIC, kern);
263 sock->ops = &hidp_sock_ops;
264 sock->state = SS_UNCONNECTED;