Lines Matching refs:sock
38 #include <net/sock.h>
42 static int hidp_sock_release(struct socket *sock)
44 struct sock *sk = sock->sk;
46 BT_DBG("sock %p sk %p", sock, sk);
57 static int hidp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
158 static int hidp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
211 return hidp_sock_ioctl(sock, cmd, arg);
244 static int hidp_sock_create(struct net *net, struct socket *sock, int protocol,
247 struct sock *sk;
249 BT_DBG("sock %p", sock);
251 if (sock->type != SOCK_RAW)
258 sock_init_data(sock, sk);
260 sock->ops = &hidp_sock_ops;
262 sock->state = SS_UNCONNECTED;