Lines Matching refs:opcode

151 	uint16_t opcode;  member
345 struct net_buf *bt_hci_cmd_create(uint16_t opcode, uint8_t param_len) in bt_hci_cmd_create() argument
350 LOG_DBG("opcode 0x%04x param_len %u", opcode, param_len); in bt_hci_cmd_create()
360 hdr->opcode = sys_cpu_to_le16(opcode); in bt_hci_cmd_create()
383 cmd(buf)->opcode = 0; in bt_hci_cmd_alloc()
390 int bt_hci_cmd_send(uint16_t opcode, struct net_buf *buf) in bt_hci_cmd_send() argument
401 LOG_DBG("opcode 0x%04x param_len %u", opcode, buf->len); in bt_hci_cmd_send()
403 cmd(buf)->opcode = opcode; in bt_hci_cmd_send()
410 hdr->opcode = sys_cpu_to_le16(opcode); in bt_hci_cmd_send()
419 if (opcode == BT_HCI_OP_HOST_NUM_COMPLETED_PACKETS) { in bt_hci_cmd_send()
438 int bt_hci_cmd_send_sync(uint16_t opcode, struct net_buf *buf, in bt_hci_cmd_send_sync() argument
458 LOG_DBG("buf %p opcode 0x%04x len %u", buf, opcode, buf->len); in bt_hci_cmd_send_sync()
467 err = bt_hci_cmd_send(opcode, net_buf_ref(buf)); in bt_hci_cmd_send_sync()
498 BT_ASSERT_MSG(success, "command opcode 0x%04x timeout", opcode); in bt_hci_cmd_send_sync()
506 opcode, err); in bt_hci_cmd_send_sync()
510 LOG_WRN("opcode 0x%04x status 0x%02x %s", opcode, in bt_hci_cmd_send_sync()
528 LOG_DBG("rsp %p opcode 0x%04x len %u", buf, opcode, buf->len); in bt_hci_cmd_send_sync()
2539 static void hci_cmd_done(uint16_t opcode, uint8_t status, struct net_buf *evt_buf) in hci_cmd_done() argument
2544 LOG_DBG("opcode 0x%04x status 0x%02x %s buf %p", opcode, in hci_cmd_done()
2550 if (opcode == 0) { in hci_cmd_done()
2558 LOG_ERR("No command sent for cmd complete 0x%04x", opcode); in hci_cmd_done()
2562 if (cmd(buf)->opcode != opcode) { in hci_cmd_done()
2563 LOG_ERR("OpCode 0x%04x completed instead of expected 0x%04x", opcode, in hci_cmd_done()
2564 cmd(buf)->opcode); in hci_cmd_done()
2601 uint16_t opcode; in hci_cmd_complete() local
2605 opcode = sys_le16_to_cpu(evt->opcode); in hci_cmd_complete()
2607 LOG_DBG("opcode 0x%04x", opcode); in hci_cmd_complete()
2617 if (opcode == BT_HCI_OP_HOST_NUM_COMPLETED_PACKETS) { in hci_cmd_complete()
2623 hci_cmd_done(opcode, status, buf); in hci_cmd_complete()
2635 uint16_t opcode; in hci_cmd_status() local
2639 opcode = sys_le16_to_cpu(evt->opcode); in hci_cmd_status()
2642 LOG_DBG("opcode 0x%04x", opcode); in hci_cmd_status()
2644 hci_cmd_done(opcode, evt->status, buf); in hci_cmd_status()
3199 LOG_DBG("Sending command 0x%04x (buf %p) to driver", cmd(buf)->opcode, buf); in hci_core_send_cmd()
3205 hci_cmd_done(cmd(buf)->opcode, BT_HCI_ERR_UNSPECIFIED, buf); in hci_core_send_cmd()