Lines Matching refs:sock
37 #include <net/sock.h>
46 static int cmtp_sock_release(struct socket *sock)
48 struct sock *sk = sock->sk;
50 BT_DBG("sock %p sk %p", sock, sk);
61 static int cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
81 nsock = sockfd_lookup(ca.sock, &err);
136 static int cmtp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
160 return cmtp_sock_ioctl(sock, cmd, arg);
193 static int cmtp_sock_create(struct net *net, struct socket *sock, int protocol,
196 struct sock *sk;
198 BT_DBG("sock %p", sock);
200 if (sock->type != SOCK_RAW)
207 sock_init_data(sock, sk);
209 sock->ops = &cmtp_sock_ops;
211 sock->state = SS_UNCONNECTED;