Lines Matching defs:sock
63 static struct hci_dev *hci_hdev_from_sock(struct sock *sk)
74 void hci_sock_set_flag(struct sock *sk, int nr)
79 void hci_sock_clear_flag(struct sock *sk, int nr)
84 int hci_sock_test_flag(struct sock *sk, int nr)
89 unsigned short hci_sock_get_channel(struct sock *sk)
94 u32 hci_sock_get_cookie(struct sock *sk)
99 static bool hci_sock_gen_cookie(struct sock *sk)
116 static void hci_sock_free_cookie(struct sock *sk)
165 static bool is_filtered_packet(struct sock *sk, struct sk_buff *skb)
205 struct sock *sk;
267 static void hci_sock_copy_creds(struct sock *sk, struct sk_buff *skb)
316 int flag, struct sock *skip_sk)
318 struct sock *sk;
350 int flag, struct sock *skip_sk)
421 int flag, struct sock *skip_sk)
423 struct sock *sk;
552 static struct sk_buff *create_monitor_ctrl_open(struct sock *sk)
612 static struct sk_buff *create_monitor_ctrl_close(struct sock *sk)
652 static struct sk_buff *create_monitor_ctrl_command(struct sock *sk, u16 index,
682 send_monitor_note(struct sock *sk, const char *fmt, ...)
715 static void send_monitor_replay(struct sock *sk)
757 static void send_monitor_control_replay(struct sock *mon_sk)
759 struct sock *sk;
830 struct sock *sk;
894 static int hci_sock_release(struct socket *sock)
896 struct sock *sk = sock->sk;
900 BT_DBG("sock %p sk %p", sock, sk);
996 static int hci_sock_bound_ioctl(struct sock *sk, unsigned int cmd,
1039 static int hci_sock_ioctl(struct socket *sock, unsigned int cmd,
1043 struct sock *sk = sock->sk;
1169 static int hci_sock_compat_ioctl(struct socket *sock, unsigned int cmd,
1177 return hci_sock_ioctl(sock, cmd, arg);
1180 return hci_sock_ioctl(sock, cmd, (unsigned long)compat_ptr(arg));
1184 static int hci_sock_bind(struct socket *sock, struct sockaddr *addr,
1188 struct sock *sk = sock->sk;
1193 BT_DBG("sock %p sk %p", sock, sk);
1484 static int hci_sock_getname(struct socket *sock, struct sockaddr *addr,
1488 struct sock *sk = sock->sk;
1492 BT_DBG("sock %p sk %p", sock, sk);
1515 static void hci_sock_cmsg(struct sock *sk, struct msghdr *msg,
1552 static int hci_sock_recvmsg(struct socket *sock, struct msghdr *msg,
1556 struct sock *sk = sock->sk;
1561 BT_DBG("sock %p, sk %p", sock, sk);
1608 scm_recv(sock, msg, &scm, flags);
1613 static int hci_mgmt_cmd(struct hci_mgmt_chan *chan, struct sock *sk,
1728 static int hci_logging_frame(struct sock *sk, struct sk_buff *skb,
1794 static int hci_sock_sendmsg(struct socket *sock, struct msghdr *msg,
1797 struct sock *sk = sock->sk;
1804 BT_DBG("sock %p sk %p", sock, sk);
1931 static int hci_sock_setsockopt_old(struct socket *sock, int level, int optname,
1935 struct sock *sk = sock->sk;
2014 static int hci_sock_setsockopt(struct socket *sock, int level, int optname,
2017 struct sock *sk = sock->sk;
2024 return hci_sock_setsockopt_old(sock, level, optname, optval,
2063 static int hci_sock_getsockopt_old(struct socket *sock, int level, int optname,
2067 struct sock *sk = sock->sk;
2129 static int hci_sock_getsockopt(struct socket *sock, int level, int optname,
2132 struct sock *sk = sock->sk;
2138 return hci_sock_getsockopt_old(sock, level, optname, optval,
2162 static void hci_sock_destruct(struct sock *sk)
2198 static int hci_sock_create(struct net *net, struct socket *sock, int protocol,
2201 struct sock *sk;
2203 BT_DBG("sock %p", sock);
2205 if (sock->type != SOCK_RAW)
2208 sock->ops = &hci_sock_ops;
2210 sk = bt_sock_alloc(net, sock, &hci_sk_proto, protocol, GFP_ATOMIC,
2215 sock->state = SS_UNCONNECTED;