Lines Matching refs:cmd
40 struct hci_msg *cmd; in nfc_hci_hcp_message_tx() local
45 cmd = kzalloc(sizeof(struct hci_msg), GFP_KERNEL); in nfc_hci_hcp_message_tx()
46 if (cmd == NULL) in nfc_hci_hcp_message_tx()
49 INIT_LIST_HEAD(&cmd->msg_l); in nfc_hci_hcp_message_tx()
50 skb_queue_head_init(&cmd->msg_frags); in nfc_hci_hcp_message_tx()
51 cmd->wait_response = (type == NFC_HCI_HCP_COMMAND) ? true : false; in nfc_hci_hcp_message_tx()
52 cmd->cb = cb; in nfc_hci_hcp_message_tx()
53 cmd->cb_context = cb_context; in nfc_hci_hcp_message_tx()
54 cmd->completion_delay = completion_delay; in nfc_hci_hcp_message_tx()
102 skb_queue_tail(&cmd->msg_frags, skb); in nfc_hci_hcp_message_tx()
113 list_add_tail(&cmd->msg_l, &hdev->msg_tx_queue); in nfc_hci_hcp_message_tx()
121 skb_queue_purge(&cmd->msg_frags); in nfc_hci_hcp_message_tx()
122 kfree(cmd); in nfc_hci_hcp_message_tx()