/system/bt/hci/test/ |
D | low_power_manager_test.cpp | 50 STUB_FUNCTION(int, vendor_send_command, (vendor_opcode_t opcode, void *param)) 52 EXPECT_EQ(VENDOR_GET_LPM_IDLE_TIMEOUT, opcode); in DURING() 61 STUB_FUNCTION(int, vendor_send_async_command, (vendor_async_opcode_t opcode, void *param)) 64 EXPECT_EQ(VENDOR_SET_LPM_MODE, opcode); 71 EXPECT_EQ(VENDOR_SET_LPM_MODE, opcode); 83 STUB_FUNCTION(void, vendor_set_callback, (vendor_async_opcode_t opcode, vendor_cb callback)) 85 EXPECT_EQ(VENDOR_SET_LPM_MODE, opcode);
|
D | hci_layer_test.cpp | 381 STUB_FUNCTION(void, vendor_set_callback, (vendor_async_opcode_t opcode, UNUSED_ATTR vendor_cb callb… 384 EXPECT_EQ(VENDOR_CONFIGURE_FIRMWARE, opcode); 389 EXPECT_EQ(VENDOR_CONFIGURE_SCO, opcode); 394 EXPECT_EQ(VENDOR_DO_EPILOG, opcode); 403 STUB_FUNCTION(int, vendor_send_command, (vendor_opcode_t opcode, void *param)) 407 EXPECT_EQ(VENDOR_CHIP_POWER_CONTROL, opcode); 413 EXPECT_EQ(VENDOR_CHIP_POWER_CONTROL, opcode); 418 EXPECT_EQ(VENDOR_CHIP_POWER_CONTROL, opcode); 426 EXPECT_EQ(VENDOR_CHIP_POWER_CONTROL, opcode); 435 STUB_FUNCTION(int, vendor_send_async_command, (UNUSED_ATTR vendor_async_opcode_t opcode, UNUSED_ATT… [all …]
|
D | hci_hal_mct_test.cpp | 72 STUB_FUNCTION(int, vendor_send_command, (vendor_opcode_t opcode, void *param)) 74 EXPECT_EQ(VENDOR_OPEN_USERIAL, opcode); in DURING() 83 EXPECT_EQ(VENDOR_CLOSE_USERIAL, opcode);
|
D | hci_hal_h4_test.cpp | 77 STUB_FUNCTION(int, vendor_send_command, (vendor_opcode_t opcode, void *param)) 79 EXPECT_EQ(VENDOR_OPEN_USERIAL, opcode); in DURING() 86 EXPECT_EQ(VENDOR_CLOSE_USERIAL, opcode);
|
/system/bt/stack/include/ |
D | avrc_defs.h | 765 UINT8 opcode; /* Op Code (passthrough, vendor, etc) */ member 967 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member 976 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member 985 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member 995 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member 1005 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member 1015 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member 1026 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member 1036 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member 1045 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member [all …]
|
/system/bt/stack/avrc/ |
D | avrc_utils.c | 201 UINT8 opcode = 0; in avrc_opcode_from_pdu() local 207 opcode = AVRC_OP_PASS_THRU; in avrc_opcode_from_pdu() 211 opcode = AVRC_OP_VENDOR; in avrc_opcode_from_pdu() 215 return opcode; in avrc_opcode_from_pdu() 227 BOOLEAN avrc_is_valid_opcode(UINT8 opcode) in avrc_is_valid_opcode() argument 230 switch (opcode) in avrc_is_valid_opcode()
|
D | avrc_pars_tg.c | 360 switch (p_msg->hdr.opcode) in AVRC_Ctrl_ParsCommand() 367 AVRC_TRACE_ERROR("%s unknown opcode:0x%x", __func__, p_msg->hdr.opcode); in AVRC_Ctrl_ParsCommand() 370 p_result->cmd.opcode = p_msg->hdr.opcode; in AVRC_Ctrl_ParsCommand() 395 switch (p_msg->hdr.opcode) in AVRC_ParsCommand() 410 AVRC_TRACE_ERROR("%s unknown opcode:0x%x", __func__, p_msg->hdr.opcode); in AVRC_ParsCommand() 413 p_result->cmd.opcode = p_msg->hdr.opcode; in AVRC_ParsCommand()
|
D | avrc_bld_tg.c | 814 UINT8 opcode = avrc_opcode_from_pdu(p_rsp->pdu); in avrc_bld_init_rsp_buffer() local 816 AVRC_TRACE_API("%s: pdu=%x, opcode=%x/%x", __func__, p_rsp->pdu, opcode, p_rsp->rsp.opcode); in avrc_bld_init_rsp_buffer() 817 if (opcode != p_rsp->rsp.opcode && p_rsp->rsp.status != AVRC_STS_NO_ERROR && in avrc_bld_init_rsp_buffer() 818 avrc_is_valid_opcode(p_rsp->rsp.opcode)) in avrc_bld_init_rsp_buffer() 820 opcode = p_rsp->rsp.opcode; in avrc_bld_init_rsp_buffer() 821 AVRC_TRACE_API("%s opcode=%x", __func__, opcode); in avrc_bld_init_rsp_buffer() 824 switch (opcode) in avrc_bld_init_rsp_buffer() 840 p_pkt->event = opcode; in avrc_bld_init_rsp_buffer() 846 if (opcode != AVRC_OP_PASS_THRU) in avrc_bld_init_rsp_buffer() 849 switch (opcode) { in avrc_bld_init_rsp_buffer() [all …]
|
D | avrc_bld_ct.c | 366 UINT8 opcode = avrc_opcode_from_pdu(p_cmd->pdu); in avrc_bld_init_cmd_buffer() local 367 AVRC_TRACE_API("avrc_bld_init_cmd_buffer: pdu=%x, opcode=%x", p_cmd->pdu, opcode); in avrc_bld_init_cmd_buffer() 370 switch (opcode) in avrc_bld_init_cmd_buffer() 386 p_pkt->event = opcode; in avrc_bld_init_cmd_buffer() 392 if (opcode != AVRC_OP_PASS_THRU) in avrc_bld_init_cmd_buffer() 395 switch (opcode) { in avrc_bld_init_cmd_buffer() 406 p_cmd->cmd.opcode = opcode; in avrc_bld_init_cmd_buffer()
|
D | avrc_pars_ct.c | 395 switch (p_msg->hdr.opcode) in AVRC_Ctrl_ParsResponse() 402 AVRC_TRACE_ERROR("%s unknown opcode:0x%x", __func__, p_msg->hdr.opcode); in AVRC_Ctrl_ParsResponse() 405 p_result->rsp.opcode = p_msg->hdr.opcode; in AVRC_Ctrl_ParsResponse() 430 switch (p_msg->hdr.opcode) in AVRC_ParsResponse() 445 AVRC_TRACE_ERROR("%s unknown opcode:0x%x", __func__, p_msg->hdr.opcode); in AVRC_ParsResponse() 448 p_result->rsp.opcode = p_msg->hdr.opcode; in AVRC_ParsResponse()
|
D | avrc_api.c | 279 p_msg->hdr.opcode = AVRC_OP_DROP; /* used the p_pkt to send response */ in avrc_proc_vendor_command() 286 p_msg->hdr.opcode = AVRC_OP_DROP_N_FREE; in avrc_proc_vendor_command() 477 else if (p_msg->hdr.opcode == AVRC_OP_DROP) in avrc_proc_far_msg() 481 else if (p_msg->hdr.opcode == AVRC_OP_DROP_N_FREE) in avrc_proc_far_msg() 529 UINT8 opcode; in avrc_msg_cback() local 572 opcode = p_data[2]; in avrc_msg_cback() 579 switch(opcode) in avrc_msg_cback() 774 msg.hdr.opcode = opcode; in avrc_msg_cback() 775 (*avrc_cb.ccb[handle].p_msg_cback)(handle, label, opcode, &msg); in avrc_msg_cback() 782 handle, avrc_cb.ccb[handle].control, cr, opcode); in avrc_msg_cback()
|
/system/bt/hci/src/ |
D | vendor.c | 94 static int send_command(vendor_opcode_t opcode, void *param) { in send_command() argument 96 return lib_interface->op((bt_vendor_opcode_t)opcode, param); in send_command() 99 static int send_async_command(vendor_async_opcode_t opcode, void *param) { in send_async_command() argument 101 return lib_interface->op((bt_vendor_opcode_t)opcode, param); in send_async_command() 104 static void set_callback(vendor_async_opcode_t opcode, vendor_cb callback) { in set_callback() argument 105 callbacks[opcode] = callback; in set_callback() 178 static uint8_t transmit_cb(UNUSED_ATTR uint16_t opcode, void *buffer, tINT_CMD_CBACK callback) { in transmit_cb() argument
|
D | hci_packet_factory.c | 33 static BT_HDR *make_command_no_params(uint16_t opcode); 34 static BT_HDR *make_command(uint16_t opcode, size_t parameter_size, uint8_t **stream_out); 155 static BT_HDR *make_command_no_params(uint16_t opcode) { in make_command_no_params() argument 156 return make_command(opcode, 0, NULL); in make_command_no_params() 159 static BT_HDR *make_command(uint16_t opcode, size_t parameter_size, uint8_t **stream_out) { in make_command() argument 163 UINT16_TO_STREAM(stream, opcode); in make_command()
|
D | hci_layer.c | 90 uint16_t opcode; member 162 static waiting_command_t *get_waiting_command(command_opcode_t opcode); 362 STREAM_TO_UINT16(wait_entry->opcode, stream); in transmit_command() 380 STREAM_TO_UINT16(wait_entry->opcode, stream); in transmit_command_futured() 536 … hci layer timeout waiting for response to a command. opcode: 0x%x", __func__, wait_entry->opcode); in command_timed_out() 657 command_opcode_t opcode; in filter_incoming_event() local 664 STREAM_TO_UINT16(opcode, stream); in filter_incoming_event() 666 wait_entry = get_waiting_command(opcode); in filter_incoming_event() 669 if (opcode != HCI_COMMAND_NONE) { in filter_incoming_event() 671 __func__, opcode); in filter_incoming_event() [all …]
|
/system/bt/hci/include/ |
D | vendor.h | 64 int (*send_command)(vendor_opcode_t opcode, void *param); 67 int (*send_async_command)(vendor_async_opcode_t opcode, void *param); 70 void (*set_callback)(vendor_async_opcode_t opcode, vendor_cb callback);
|
D | bt_vendor_lib.h | 317 typedef uint8_t (*cmd_xmit_cb)(uint16_t opcode, void *p_buf, tINT_CMD_CBACK p_cback); 390 int (*op)(bt_vendor_opcode_t opcode, void *param);
|
/system/bt/stack/btu/ |
D | btu_hcif.c | 358 uint16_t opcode; in btu_hcif_send_cmd() local 362 STREAM_TO_UINT16(opcode, stream); in btu_hcif_send_cmd() 366 if ((opcode & HCI_GRP_VENDOR_SPECIFIC) == HCI_GRP_VENDOR_SPECIFIC in btu_hcif_send_cmd() 368 || (opcode == HCI_BLE_RAND) in btu_hcif_send_cmd() 369 || (opcode == HCI_BLE_ENCRYPT) in btu_hcif_send_cmd() 782 static void btu_hcif_hdl_command_complete (UINT16 opcode, UINT8 *p, UINT16 evt_len, in btu_hcif_hdl_command_complete() argument 785 switch (opcode) in btu_hcif_hdl_command_complete() 843 btm_ble_rand_enc_complete (p, opcode, (tBTM_RAND_ENC_CB *)p_cplt_cback); in btu_hcif_hdl_command_complete() 889 if ((opcode & HCI_GRP_VENDOR_SPECIFIC) == HCI_GRP_VENDOR_SPECIFIC) in btu_hcif_hdl_command_complete() 890 btm_vsc_complete (p, opcode, evt_len, (tBTM_CMPL_CB *)p_cplt_cback); in btu_hcif_hdl_command_complete() [all …]
|
/system/bt/vendor_libs/linux/ |
D | bt_vendor_linux.c | 66 uint16_t opcode; member 179 ev.opcode = MGMT_OP_INDEX_LIST; in bt_vendor_wait_hcidev() 213 if (ev.opcode == MGMT_EV_INDEX_ADDED && ev.index == hci_interface) { in bt_vendor_wait_hcidev() 215 } else if (ev.opcode == MGMT_EV_COMMAND_COMP) { in bt_vendor_wait_hcidev() 346 static int bt_vendor_op(bt_vendor_opcode_t opcode, void *param) in bt_vendor_op() argument 350 LOG_INFO(LOG_TAG, "%s op %d", __func__, opcode); in bt_vendor_op() 352 switch (opcode) { in bt_vendor_op() 406 LOG_INFO(LOG_TAG, "%s op %d retval %d", __func__, opcode, retval); in bt_vendor_op()
|
/system/bt/vendor_libs/test_vendor_lib/src/ |
D | bt_vendor.cc | 48 static int TestVendorOp(bt_vendor_opcode_t opcode, void* param) { in TestVendorOp() argument 49 LOG_INFO(LOG_TAG, "Opcode received in vendor library: %d", opcode); in TestVendorOp() 54 switch (opcode) { in TestVendorOp()
|
/system/bt/vendor_libs/test_vendor_lib/test/ |
D | packet_stream_unittest.cc | 57 void CheckedReceiveCommand(const char* payload, uint16_t opcode) { in CheckedReceiveCommand() argument 62 packet.push_back(opcode); in CheckedReceiveCommand() 63 packet.push_back(opcode >> 8); in CheckedReceiveCommand() 83 EXPECT_EQ(opcode, command->GetOpcode()); in CheckedReceiveCommand()
|
/system/core/libpixelflinger/codeflinger/ |
D | Arm64Assembler.cpp | 340 void ArmToArm64Assembler::dataProcessingCommon(int opcode, in dataProcessingCommon() argument 343 if(opcode != opSUB && s == 1) in dataProcessingCommon() 349 if(opcode != opSUB && opcode != opADD && opcode != opAND && in dataProcessingCommon() 350 opcode != opORR && opcode != opMVN) in dataProcessingCommon() 396 switch(opcode) in dataProcessingCommon() 408 void ArmToArm64Assembler::dataProcessing(int opcode, int cc, in dataProcessing() argument 418 if(opcode == opADD || opcode == opAND || opcode == opORR ||opcode == opSUB) in dataProcessing() 420 dataProcessingCommon(opcode, s, Wd, Rn, Op2); in dataProcessing() 422 else if(opcode == opCMP) in dataProcessing() 426 else if(opcode == opRSB) in dataProcessing() [all …]
|
/system/bt/btif/include/ |
D | btif_api.h | 378 bt_status_t btif_dut_mode_send(uint16_t opcode, uint8_t *buf, uint8_t len); 389 bt_status_t btif_le_test_mode(uint16_t opcode, uint8_t *buf, uint8_t len);
|
/system/bt/stack/btm/ |
D | btm_devctl.c | 650 tBTM_STATUS BTM_VendorSpecificCommand(UINT16 opcode, UINT8 param_len, in BTM_VendorSpecificCommand() argument 658 opcode, param_len); in BTM_VendorSpecificCommand() 661 btsnd_hcic_vendor_spec_cmd(p_buf, opcode, param_len, p_param_buf, (void *)p_cb); in BTM_VendorSpecificCommand() 681 void btm_vsc_complete (UINT8 *p, UINT16 opcode, UINT16 evt_len, in btm_vsc_complete() argument 690 vcs_cplt_params.opcode = opcode; /* Number of bytes in return info */ in btm_vsc_complete()
|
D | btm_ble_multi_adv.c | 68 void btm_ble_multi_adv_enq_op_q(UINT8 opcode, UINT8 inst_id, UINT8 cb_evt) in btm_ble_multi_adv_enq_op_q() argument 74 p_op_q->p_sub_code[p_op_q->next_idx] = (opcode |(cb_evt << 4)); in btm_ble_multi_adv_enq_op_q() 117 UINT8 cb_evt = 0, opcode; in btm_ble_multi_adv_vsc_cmpl_cback() local 128 btm_ble_multi_adv_deq_op_q(&opcode, &inst_id, &cb_evt); in btm_ble_multi_adv_vsc_cmpl_cback() 130 BTM_TRACE_DEBUG("op_code = %02x inst_id = %d cb_evt = %02x", opcode, inst_id, cb_evt); in btm_ble_multi_adv_vsc_cmpl_cback() 132 if (opcode != subcode || inst_id == 0) in btm_ble_multi_adv_vsc_cmpl_cback() 134 BTM_TRACE_ERROR("get unexpected VSC cmpl, expect: %d get: %d",subcode,opcode); in btm_ble_multi_adv_vsc_cmpl_cback()
|
/system/bt/btif/src/ |
D | bluetooth.c | 427 int dut_mode_send(uint16_t opcode, uint8_t* buf, uint8_t len) in dut_mode_send() argument 435 return btif_dut_mode_send(opcode, buf, len); in dut_mode_send() 439 int le_test_mode(uint16_t opcode, uint8_t* buf, uint8_t len) in le_test_mode() argument 447 return btif_le_test_mode(opcode, buf, len); in le_test_mode()
|