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()
155 struct sock *sk; in hci_send_to_sock()
217 int flag, struct sock *skip_sk) in hci_send_to_channel()
219 struct sock *sk; in hci_send_to_channel()
386 static void send_monitor_replay(struct sock *sk) in send_monitor_replay()
481 struct sock *sk; in hci_sock_dev_event()
551 static int hci_sock_release(struct socket *sock) in hci_sock_release() argument
553 struct sock *sk = sock->sk; in hci_sock_release()
556 BT_DBG("sock %p sk %p", sock, sk); in hci_sock_release()
632 static int hci_sock_bound_ioctl(struct sock *sk, unsigned int cmd, in hci_sock_bound_ioctl()
675 static int hci_sock_ioctl(struct socket *sock, unsigned int cmd, in hci_sock_ioctl() argument
679 struct sock *sk = sock->sk; in hci_sock_ioctl()
748 static int hci_sock_bind(struct socket *sock, struct sockaddr *addr, in hci_sock_bind() argument
752 struct sock *sk = sock->sk; in hci_sock_bind()
756 BT_DBG("sock %p sk %p", sock, sk); in hci_sock_bind()
926 static int hci_sock_getname(struct socket *sock, struct sockaddr *addr, in hci_sock_getname() argument
930 struct sock *sk = sock->sk; in hci_sock_getname()
934 BT_DBG("sock %p sk %p", sock, sk); in hci_sock_getname()
957 static void hci_sock_cmsg(struct sock *sk, struct msghdr *msg, in hci_sock_cmsg()
994 static int hci_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, in hci_sock_recvmsg() argument
998 struct sock *sk = sock->sk; in hci_sock_recvmsg()
1002 BT_DBG("sock %p, sk %p", sock, sk); in hci_sock_recvmsg()
1042 static int hci_mgmt_cmd(struct hci_mgmt_chan *chan, struct sock *sk, in hci_mgmt_cmd()
1153 static int hci_sock_sendmsg(struct socket *sock, struct msghdr *msg, in hci_sock_sendmsg() argument
1156 struct sock *sk = sock->sk; in hci_sock_sendmsg()
1162 BT_DBG("sock %p sk %p", sock, sk); in hci_sock_sendmsg()
1284 static int hci_sock_setsockopt(struct socket *sock, int level, int optname, in hci_sock_setsockopt() argument
1288 struct sock *sk = sock->sk; in hci_sock_setsockopt()
1367 static int hci_sock_getsockopt(struct socket *sock, int level, int optname, in hci_sock_getsockopt() argument
1371 struct sock *sk = sock->sk; in hci_sock_getsockopt()
1459 static int hci_sock_create(struct net *net, struct socket *sock, int protocol, in hci_sock_create() argument
1462 struct sock *sk; in hci_sock_create()
1464 BT_DBG("sock %p", sock); in hci_sock_create()
1466 if (sock->type != SOCK_RAW) in hci_sock_create()
1469 sock->ops = &hci_sock_ops; in hci_sock_create()
1475 sock_init_data(sock, sk); in hci_sock_create()
1481 sock->state = SS_UNCONNECTED; in hci_sock_create()