Lines Matching refs:sock
56 void hci_sock_set_flag(struct sock *sk, int nr) in hci_sock_set_flag()
61 void hci_sock_clear_flag(struct sock *sk, int nr) in hci_sock_clear_flag()
66 int hci_sock_test_flag(struct sock *sk, int nr) in hci_sock_test_flag()
71 unsigned short hci_sock_get_channel(struct sock *sk) in hci_sock_get_channel()
115 static bool is_filtered_packet(struct sock *sk, struct sk_buff *skb) in is_filtered_packet()
158 struct sock *sk; in hci_send_to_sock()
215 int flag, struct sock *skip_sk) in hci_send_to_channel()
217 struct sock *sk; in hci_send_to_channel()
346 static void send_monitor_replay(struct sock *sk) in send_monitor_replay()
417 struct sock *sk; in hci_sock_dev_event()
487 static int hci_sock_release(struct socket *sock) in hci_sock_release() argument
489 struct sock *sk = sock->sk; in hci_sock_release()
492 BT_DBG("sock %p sk %p", sock, sk); in hci_sock_release()
559 static int hci_sock_bound_ioctl(struct sock *sk, unsigned int cmd, in hci_sock_bound_ioctl()
602 static int hci_sock_ioctl(struct socket *sock, unsigned int cmd, in hci_sock_ioctl() argument
606 struct sock *sk = sock->sk; in hci_sock_ioctl()
675 static int hci_sock_bind(struct socket *sock, struct sockaddr *addr, in hci_sock_bind() argument
679 struct sock *sk = sock->sk; in hci_sock_bind()
683 BT_DBG("sock %p sk %p", sock, sk); in hci_sock_bind()
853 static int hci_sock_getname(struct socket *sock, struct sockaddr *addr, in hci_sock_getname() argument
857 struct sock *sk = sock->sk; in hci_sock_getname()
861 BT_DBG("sock %p sk %p", sock, sk); in hci_sock_getname()
884 static void hci_sock_cmsg(struct sock *sk, struct msghdr *msg, in hci_sock_cmsg()
921 static int hci_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, in hci_sock_recvmsg() argument
925 struct sock *sk = sock->sk; in hci_sock_recvmsg()
929 BT_DBG("sock %p, sk %p", sock, sk); in hci_sock_recvmsg()
969 static int hci_mgmt_cmd(struct hci_mgmt_chan *chan, struct sock *sk, in hci_mgmt_cmd()
1080 static int hci_sock_sendmsg(struct socket *sock, struct msghdr *msg, in hci_sock_sendmsg() argument
1083 struct sock *sk = sock->sk; in hci_sock_sendmsg()
1089 BT_DBG("sock %p sk %p", sock, sk); in hci_sock_sendmsg()
1205 static int hci_sock_setsockopt(struct socket *sock, int level, int optname, in hci_sock_setsockopt() argument
1209 struct sock *sk = sock->sk; in hci_sock_setsockopt()
1288 static int hci_sock_getsockopt(struct socket *sock, int level, int optname, in hci_sock_getsockopt() argument
1292 struct sock *sk = sock->sk; in hci_sock_getsockopt()
1380 static int hci_sock_create(struct net *net, struct socket *sock, int protocol, in hci_sock_create() argument
1383 struct sock *sk; in hci_sock_create()
1385 BT_DBG("sock %p", sock); in hci_sock_create()
1387 if (sock->type != SOCK_RAW) in hci_sock_create()
1390 sock->ops = &hci_sock_ops; in hci_sock_create()
1396 sock_init_data(sock, sk); in hci_sock_create()
1402 sock->state = SS_UNCONNECTED; in hci_sock_create()