Lines Matching defs:sock
38 #include <net/sock.h>
49 static int cmtp_sock_release(struct socket *sock)
51 struct sock *sk = sock->sk;
53 BT_DBG("sock %p sk %p", sock, sk);
66 static int do_cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp)
85 nsock = sockfd_lookup(ca.sock, &err);
139 static int cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
141 return do_cmtp_sock_ioctl(sock, cmd, (void __user *)arg);
145 static int cmtp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
170 return do_cmtp_sock_ioctl(sock, cmd, argp);
200 static int cmtp_sock_create(struct net *net, struct socket *sock, int protocol,
203 struct sock *sk;
205 BT_DBG("sock %p", sock);
207 if (sock->type != SOCK_RAW)
214 sock_init_data(sock, sk);
216 sock->ops = &cmtp_sock_ops;
218 sock->state = SS_UNCONNECTED;