Lines Matching refs:hcp_ew
41 struct hcp_exec_waiter *hcp_ew = (struct hcp_exec_waiter *)context;
45 hcp_ew->exec_result = err;
46 if (hcp_ew->exec_result == 0)
47 hcp_ew->result_skb = skb;
50 hcp_ew->exec_complete = true;
52 wake_up(hcp_ew->wq);
60 struct hcp_exec_waiter hcp_ew;
61 hcp_ew.wq = &ew_wq;
62 hcp_ew.exec_complete = false;
63 hcp_ew.result_skb = NULL;
71 hcp_ew.exec_result = nfc_hci_hcp_message_tx(hdev, pipe,
74 nfc_hci_execute_cb, &hcp_ew,
76 if (hcp_ew.exec_result < 0)
77 return hcp_ew.exec_result;
79 wait_event(ew_wq, hcp_ew.exec_complete == true);
81 if (hcp_ew.exec_result == 0) {
83 *skb = hcp_ew.result_skb;
85 kfree_skb(hcp_ew.result_skb);
88 return hcp_ew.exec_result;