Lines Matching refs:resp
137 command_complete_t resp; in read_command_complete() local
142 if (read_hci_event(fd, (unsigned char *)&resp, sizeof(resp)) < 0) { in read_command_complete()
148 if (resp.uart_prefix != HCI_EVENT_PKT) { in read_command_complete()
150 resp.uart_prefix); in read_command_complete()
155 if (resp.hci_hdr.evt != EVT_CMD_COMPLETE) { in read_command_complete()
158 resp.hci_hdr.evt); in read_command_complete()
162 if (resp.hci_hdr.plen < 4) { in read_command_complete()
165 resp.hci_hdr.plen); in read_command_complete()
169 if (resp.cmd_complete.opcode != (unsigned short)opcode) { in read_command_complete()
171 resp.cmd_complete.opcode, opcode); in read_command_complete()
176 return resp.status == 0 ? 0 : -1; in read_command_complete()