Lines Matching defs:cmd
19 * counted from the moment the cmd is sent to the transport.
28 struct hci_msg *cmd;
33 cmd = kzalloc(sizeof(struct hci_msg), GFP_KERNEL);
34 if (cmd == NULL)
37 INIT_LIST_HEAD(&cmd->msg_l);
38 skb_queue_head_init(&cmd->msg_frags);
39 cmd->wait_response = (type == NFC_HCI_HCP_COMMAND) ? true : false;
40 cmd->cb = cb;
41 cmd->cb_context = cb_context;
42 cmd->completion_delay = completion_delay;
88 skb_queue_tail(&cmd->msg_frags, skb);
99 list_add_tail(&cmd->msg_l, &hdev->msg_tx_queue);
107 skb_queue_purge(&cmd->msg_frags);
108 kfree(cmd);
114 * Receive hcp message for pipe, with type and cmd.