Lines Matching refs:resp
266 command_complete_t resp; in read_command_complete() local
271 if (read_hci_event(fd, (unsigned char *)&resp, sizeof(resp)) < 0) { in read_command_complete()
277 if (resp.uart_prefix != HCI_EVENT_PKT) { in read_command_complete()
280 resp.uart_prefix); in read_command_complete()
285 if (resp.hci_hdr.evt != EVT_CMD_COMPLETE) { in read_command_complete()
289 resp.hci_hdr.evt); in read_command_complete()
293 if (resp.hci_hdr.plen < 4) { in read_command_complete()
296 resp.hci_hdr.plen); in read_command_complete()
300 if (resp.cmd_complete.opcode != (unsigned short)opcode) { in read_command_complete()
302 resp.cmd_complete.opcode, opcode); in read_command_complete()
307 return resp.status == 0 ? 0 : -1; in read_command_complete()