Lines Matching refs:hci_pi
102 if (sk->state != BT_BOUND || hci_pi(sk)->hdev != hdev) in hci_send_to_sock()
110 flt = &hci_pi(sk)->filter; in hci_send_to_sock()
143 struct hci_dev *hdev = hci_pi(sk)->hdev; in hci_sock_release()
171 struct hci_dev *hdev = hci_pi(sk)->hdev; in hci_sock_bound_ioctl()
272 if (hci_pi(sk)->hdev) { in hci_sock_bind()
286 hci_pi(sk)->hdev = hdev; in hci_sock_bind()
305 haddr->hci_dev = hci_pi(sk)->hdev->id; in hci_sock_getname()
313 __u32 mask = hci_pi(sk)->cmsg_mask; in hci_sock_cmsg()
379 if (!(hdev = hci_pi(sk)->hdev)) { in hci_sock_sendmsg()
454 hci_pi(sk)->cmsg_mask |= HCI_CMSG_DIR; in hci_sock_setsockopt()
456 hci_pi(sk)->cmsg_mask &= ~HCI_CMSG_DIR; in hci_sock_setsockopt()
466 hci_pi(sk)->cmsg_mask |= HCI_CMSG_TSTAMP; in hci_sock_setsockopt()
468 hci_pi(sk)->cmsg_mask &= ~HCI_CMSG_TSTAMP; in hci_sock_setsockopt()
472 memcpy(&flt, &hci_pi(sk)->filter, sizeof(flt)); in hci_sock_setsockopt()
486 memcpy(&hci_pi(sk)->filter, &flt, len); in hci_sock_setsockopt()
508 if (hci_pi(sk)->cmsg_mask & HCI_CMSG_DIR) in hci_sock_getsockopt()
518 if (hci_pi(sk)->cmsg_mask & HCI_CMSG_TSTAMP) in hci_sock_getsockopt()
529 if (copy_to_user(optval, &hci_pi(sk)->filter, len)) in hci_sock_getsockopt()
607 if (hci_pi(sk)->hdev == hdev) { in hci_sock_dev_event()
608 hci_pi(sk)->hdev = NULL; in hci_sock_dev_event()