Lines Matching refs:sock
62 static struct hci_dev *hci_hdev_from_sock(struct sock *sk)
73 void hci_sock_set_flag(struct sock *sk, int nr)
78 void hci_sock_clear_flag(struct sock *sk, int nr)
83 int hci_sock_test_flag(struct sock *sk, int nr)
88 unsigned short hci_sock_get_channel(struct sock *sk)
93 u32 hci_sock_get_cookie(struct sock *sk)
98 static bool hci_sock_gen_cookie(struct sock *sk)
115 static void hci_sock_free_cookie(struct sock *sk)
164 static bool is_filtered_packet(struct sock *sk, struct sk_buff *skb)
204 struct sock *sk;
268 int flag, struct sock *skip_sk)
270 struct sock *sk;
302 int flag, struct sock *skip_sk)
371 int flag, struct sock *skip_sk)
373 struct sock *sk;
502 static struct sk_buff *create_monitor_ctrl_open(struct sock *sk)
560 static struct sk_buff *create_monitor_ctrl_close(struct sock *sk)
598 static struct sk_buff *create_monitor_ctrl_command(struct sock *sk, u16 index,
626 send_monitor_note(struct sock *sk, const char *fmt, ...)
657 static void send_monitor_replay(struct sock *sk)
699 static void send_monitor_control_replay(struct sock *mon_sk)
701 struct sock *sk;
772 struct sock *sk;
836 static int hci_sock_release(struct socket *sock)
838 struct sock *sk = sock->sk;
842 BT_DBG("sock %p sk %p", sock, sk);
932 static int hci_sock_bound_ioctl(struct sock *sk, unsigned int cmd,
975 static int hci_sock_ioctl(struct socket *sock, unsigned int cmd,
979 struct sock *sk = sock->sk;
1105 static int hci_sock_compat_ioctl(struct socket *sock, unsigned int cmd,
1113 return hci_sock_ioctl(sock, cmd, arg);
1116 return hci_sock_ioctl(sock, cmd, (unsigned long)compat_ptr(arg));
1120 static int hci_sock_bind(struct socket *sock, struct sockaddr *addr,
1124 struct sock *sk = sock->sk;
1129 BT_DBG("sock %p sk %p", sock, sk);
1416 static int hci_sock_getname(struct socket *sock, struct sockaddr *addr,
1420 struct sock *sk = sock->sk;
1424 BT_DBG("sock %p sk %p", sock, sk);
1447 static void hci_sock_cmsg(struct sock *sk, struct msghdr *msg,
1484 static int hci_sock_recvmsg(struct socket *sock, struct msghdr *msg,
1488 struct sock *sk = sock->sk;
1493 BT_DBG("sock %p, sk %p", sock, sk);
1540 static int hci_mgmt_cmd(struct hci_mgmt_chan *chan, struct sock *sk,
1666 static int hci_logging_frame(struct sock *sk, struct msghdr *msg, int len)
1750 static int hci_sock_sendmsg(struct socket *sock, struct msghdr *msg,
1753 struct sock *sk = sock->sk;
1759 BT_DBG("sock %p sk %p", sock, sk);
1892 static int hci_sock_setsockopt(struct socket *sock, int level, int optname,
1896 struct sock *sk = sock->sk;
1978 static int hci_sock_getsockopt(struct socket *sock, int level, int optname,
1982 struct sock *sk = sock->sk;
2047 static void hci_sock_destruct(struct sock *sk)
2082 static int hci_sock_create(struct net *net, struct socket *sock, int protocol,
2085 struct sock *sk;
2087 BT_DBG("sock %p", sock);
2089 if (sock->type != SOCK_RAW)
2092 sock->ops = &hci_sock_ops;
2098 sock_init_data(sock, sk);
2104 sock->state = SS_UNCONNECTED;