Lines Matching refs:hdev
122 static void nci_hci_reset_pipes(struct nci_hci_dev *hdev) in nci_hci_reset_pipes() argument
127 hdev->pipes[i].gate = NCI_HCI_INVALID_GATE; in nci_hci_reset_pipes()
128 hdev->pipes[i].host = NCI_HCI_INVALID_HOST; in nci_hci_reset_pipes()
130 memset(hdev->gate2pipe, NCI_HCI_INVALID_PIPE, sizeof(hdev->gate2pipe)); in nci_hci_reset_pipes()
415 struct nci_hci_dev *hdev = in nci_hci_msg_rx_work() local
421 while ((skb = skb_dequeue(&hdev->msg_rx_queue)) != NULL) { in nci_hci_msg_rx_work()
429 nci_hci_hcp_message_rx(hdev->ndev, pipe, in nci_hci_msg_rx_work()
788 struct nci_hci_dev *hdev; in nci_hci_allocate() local
790 hdev = kzalloc(sizeof(*hdev), GFP_KERNEL); in nci_hci_allocate()
791 if (!hdev) in nci_hci_allocate()
794 skb_queue_head_init(&hdev->rx_hcp_frags); in nci_hci_allocate()
795 INIT_WORK(&hdev->msg_rx_work, nci_hci_msg_rx_work); in nci_hci_allocate()
796 skb_queue_head_init(&hdev->msg_rx_queue); in nci_hci_allocate()
797 hdev->ndev = ndev; in nci_hci_allocate()
799 return hdev; in nci_hci_allocate()