Lines Matching refs:sock
32 static int hidp_sock_release(struct socket *sock) in hidp_sock_release() argument
34 struct sock *sk = sock->sk; in hidp_sock_release()
36 BT_DBG("sock %p sk %p", sock, sk); in hidp_sock_release()
49 static int hidp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in hidp_sock_ioctl() argument
142 static int hidp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in hidp_sock_compat_ioctl() argument
195 return hidp_sock_ioctl(sock, cmd, arg); in hidp_sock_compat_ioctl()
228 static int hidp_sock_create(struct net *net, struct socket *sock, int protocol, in hidp_sock_create() argument
231 struct sock *sk; in hidp_sock_create()
233 BT_DBG("sock %p", sock); in hidp_sock_create()
235 if (sock->type != SOCK_RAW) in hidp_sock_create()
242 sock_init_data(sock, sk); in hidp_sock_create()
244 sock->ops = &hidp_sock_ops; in hidp_sock_create()
246 sock->state = SS_UNCONNECTED; in hidp_sock_create()