Lines Matching refs:resp
204 command_complete_t resp;
209 if (read_hci_event(fd, (unsigned char *)&resp, sizeof(resp)) < 0) {
215 if (resp.uart_prefix != HCI_EVENT_PKT) {
218 resp.uart_prefix);
223 if (resp.hci_hdr.evt != EVT_CMD_COMPLETE) {
227 resp.hci_hdr.evt);
231 if (resp.hci_hdr.plen < 4) {
234 resp.hci_hdr.plen);
238 if (resp.cmd_complete.opcode != (unsigned short)opcode) {
240 resp.cmd_complete.opcode, opcode);
245 return resp.status == 0 ? 0 : -1;