Lines Matching refs:sock
49 static int cmtp_sock_release(struct socket *sock) in cmtp_sock_release() argument
51 struct sock *sk = sock->sk; in cmtp_sock_release()
53 BT_DBG("sock %p sk %p", sock, sk); in cmtp_sock_release()
66 static int cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in cmtp_sock_ioctl() argument
86 nsock = sockfd_lookup(ca.sock, &err); in cmtp_sock_ioctl()
141 static int cmtp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in cmtp_sock_compat_ioctl() argument
165 return cmtp_sock_ioctl(sock, cmd, arg); in cmtp_sock_compat_ioctl()
198 static int cmtp_sock_create(struct net *net, struct socket *sock, int protocol, in cmtp_sock_create() argument
201 struct sock *sk; in cmtp_sock_create()
203 BT_DBG("sock %p", sock); in cmtp_sock_create()
205 if (sock->type != SOCK_RAW) in cmtp_sock_create()
212 sock_init_data(sock, sk); in cmtp_sock_create()
214 sock->ops = &cmtp_sock_ops; in cmtp_sock_create()
216 sock->state = SS_UNCONNECTED; in cmtp_sock_create()