Lines Matching refs:sock
36 static int bnep_sock_release(struct socket *sock) in bnep_sock_release() argument
38 struct sock *sk = sock->sk; in bnep_sock_release()
40 BT_DBG("sock %p sk %p", sock, sk); in bnep_sock_release()
52 static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in bnep_sock_ioctl() argument
73 nsock = sockfd_lookup(ca.sock, &err); in bnep_sock_ioctl()
138 static int bnep_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in bnep_sock_compat_ioctl() argument
162 return bnep_sock_ioctl(sock, cmd, arg); in bnep_sock_compat_ioctl()
195 static int bnep_sock_create(struct net *net, struct socket *sock, int protocol, in bnep_sock_create() argument
198 struct sock *sk; in bnep_sock_create()
200 BT_DBG("sock %p", sock); in bnep_sock_create()
202 if (sock->type != SOCK_RAW) in bnep_sock_create()
209 sock_init_data(sock, sk); in bnep_sock_create()
211 sock->ops = &bnep_sock_ops; in bnep_sock_create()
213 sock->state = SS_UNCONNECTED; in bnep_sock_create()