Lines Matching refs:hdev
119 static void nci_hci_reset_pipes(struct nci_hci_dev *hdev) in nci_hci_reset_pipes() argument
124 hdev->pipes[i].gate = NCI_HCI_INVALID_GATE; in nci_hci_reset_pipes()
125 hdev->pipes[i].host = NCI_HCI_INVALID_HOST; in nci_hci_reset_pipes()
127 memset(hdev->gate2pipe, NCI_HCI_INVALID_PIPE, sizeof(hdev->gate2pipe)); in nci_hci_reset_pipes()
398 struct nci_hci_dev *hdev = in nci_hci_msg_rx_work() local
404 while ((skb = skb_dequeue(&hdev->msg_rx_queue)) != NULL) { in nci_hci_msg_rx_work()
412 nci_hci_hcp_message_rx(hdev->ndev, pipe, in nci_hci_msg_rx_work()
720 struct nci_hci_dev *hdev; in nci_hci_allocate() local
722 hdev = kzalloc(sizeof(*hdev), GFP_KERNEL); in nci_hci_allocate()
723 if (!hdev) in nci_hci_allocate()
726 skb_queue_head_init(&hdev->rx_hcp_frags); in nci_hci_allocate()
727 INIT_WORK(&hdev->msg_rx_work, nci_hci_msg_rx_work); in nci_hci_allocate()
728 skb_queue_head_init(&hdev->msg_rx_queue); in nci_hci_allocate()
729 hdev->ndev = ndev; in nci_hci_allocate()
731 return hdev; in nci_hci_allocate()