Lines Matching refs:sock
43 #include <net/sock.h>
88 struct sock *sk;
140 static int hci_sock_release(struct socket *sock)
142 struct sock *sk = sock->sk;
145 BT_DBG("sock %p sk %p", sock, sk);
247 static inline int hci_sock_bound_ioctl(struct sock *sk, unsigned int cmd, unsigned long arg)
292 static int hci_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
294 struct sock *sk = sock->sk;
353 static int hci_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len)
356 struct sock *sk = sock->sk;
360 BT_DBG("sock %p sk %p", sock, sk);
389 static int hci_sock_getname(struct socket *sock, struct sockaddr *addr, int *addr_len, int peer)
392 struct sock *sk = sock->sk;
395 BT_DBG("sock %p sk %p", sock, sk);
410 static inline void hci_sock_cmsg(struct sock *sk, struct msghdr *msg, struct sk_buff *skb)
444 static int hci_sock_recvmsg(struct kiocb *iocb, struct socket *sock,
448 struct sock *sk = sock->sk;
452 BT_DBG("sock %p, sk %p", sock, sk);
481 static int hci_sock_sendmsg(struct kiocb *iocb, struct socket *sock,
484 struct sock *sk = sock->sk;
489 BT_DBG("sock %p sk %p", sock, sk);
564 static int hci_sock_setsockopt(struct socket *sock, int level, int optname, char __user *optval, unsigned int len)
567 struct sock *sk = sock->sk;
640 static int hci_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen)
643 struct sock *sk = sock->sk;
719 static int hci_sock_create(struct net *net, struct socket *sock, int protocol,
722 struct sock *sk;
724 BT_DBG("sock %p", sock);
726 if (sock->type != SOCK_RAW)
729 sock->ops = &hci_sock_ops;
735 sock_init_data(sock, sk);
741 sock->state = SS_UNCONNECTED;
761 struct sock *sk;