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