Lines Matching defs:sock
36 static int bnep_sock_release(struct socket *sock)
38 struct sock *sk = sock->sk;
40 BT_DBG("sock %p sk %p", sock, sk);
52 static int do_bnep_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp)
72 nsock = sockfd_lookup(ca.sock, &err);
136 static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
138 return do_bnep_sock_ioctl(sock, cmd, (void __user *)arg);
142 static int bnep_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
167 return do_bnep_sock_ioctl(sock, cmd, argp);
197 static int bnep_sock_create(struct net *net, struct socket *sock, int protocol,
200 struct sock *sk;
202 BT_DBG("sock %p", sock);
204 if (sock->type != SOCK_RAW)
211 sock_init_data(sock, sk);
213 sock->ops = &bnep_sock_ops;
215 sock->state = SS_UNCONNECTED;