Lines Matching refs:resp
151 command_complete_t resp; in read_command_complete() local
156 if (read_hci_event(fd, (unsigned char *)&resp, sizeof(resp)) < 0) { in read_command_complete()
162 if (resp.uart_prefix != HCI_EVENT_PKT) { in read_command_complete()
164 resp.uart_prefix); in read_command_complete()
169 if (resp.hci_hdr.evt != EVT_CMD_COMPLETE) { in read_command_complete()
172 resp.hci_hdr.evt); in read_command_complete()
176 if (resp.hci_hdr.plen < 4) { in read_command_complete()
179 resp.hci_hdr.plen); in read_command_complete()
183 if (resp.cmd_complete.opcode != (unsigned short)opcode) { in read_command_complete()
185 resp.cmd_complete.opcode, opcode); in read_command_complete()
190 return resp.status == 0 ? 0 : -1; in read_command_complete()