Searched refs:opcode (Results 1 - 25 of 64) sorted by relevance

123

/system/bt/hci/test/
H A Dlow_power_manager_test.cpp50 STUB_FUNCTION(int, vendor_send_command, (vendor_opcode_t opcode, void *param))
52 EXPECT_EQ(VENDOR_GET_LPM_IDLE_TIMEOUT, opcode);
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);
H A Dhci_layer_test.cpp381 STUB_FUNCTION(void, vendor_set_callback, (vendor_async_opcode_t opcode, UNUSED_ATTR vendor_cb callback))
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...]
H A Dhci_hal_h4_test.cpp77 STUB_FUNCTION(int, vendor_send_command, (vendor_opcode_t opcode, void *param))
79 EXPECT_EQ(VENDOR_OPEN_USERIAL, opcode);
86 EXPECT_EQ(VENDOR_CLOSE_USERIAL, opcode);
/system/bt/hci/include/
H A Dvendor.h64 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);
H A Dbt_vendor_lib.h313 * The opcode parameter gives the HCI OpCode (combination of OGF and OCF) of
314 * HCI Command packet. For example, opcode = 0x0c03 for the HCI_RESET command
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/avrc/
H A Davrc_utils.c194 ** Description This function returns the opcode of the given pdu
201 UINT8 opcode = 0; local
207 opcode = AVRC_OP_PASS_THRU;
211 opcode = AVRC_OP_VENDOR;
215 return opcode;
222 ** Description This function returns the opcode of the given pdu
227 BOOLEAN avrc_is_valid_opcode(UINT8 opcode) argument
230 switch (opcode)
H A Davrc_bld_ct.c366 UINT8 opcode = avrc_opcode_from_pdu(p_cmd->pdu); local
367 AVRC_TRACE_API("avrc_bld_init_cmd_buffer: pdu=%x, opcode=%x", p_cmd->pdu, opcode);
370 switch (opcode)
386 p_pkt->event = opcode;
392 if (opcode != AVRC_OP_PASS_THRU)
395 switch (opcode) {
406 p_cmd->cmd.opcode = opcode;
H A Davrc_pars_tg.c360 switch (p_msg->hdr.opcode)
367 AVRC_TRACE_ERROR("%s unknown opcode:0x%x", __func__, p_msg->hdr.opcode);
370 p_result->cmd.opcode = p_msg->hdr.opcode;
395 switch (p_msg->hdr.opcode)
401 case AVRC_OP_PASS_THRU: /* 0x7C panel subunit opcode */
410 AVRC_TRACE_ERROR("%s unknown opcode:0x%x", __func__, p_msg->hdr.opcode);
413 p_result->cmd.opcode
[all...]
H A Davrc_bld_tg.c814 UINT8 opcode = avrc_opcode_from_pdu(p_rsp->pdu); local
816 AVRC_TRACE_API("%s: pdu=%x, opcode=%x/%x", __func__, p_rsp->pdu, opcode, p_rsp->rsp.opcode);
817 if (opcode != p_rsp->rsp.opcode && p_rsp->rsp.status != AVRC_STS_NO_ERROR &&
818 avrc_is_valid_opcode(p_rsp->rsp.opcode))
820 opcode = p_rsp->rsp.opcode;
821 AVRC_TRACE_API("%s opcode
[all...]
H A Davrc_pars_ct.c395 switch (p_msg->hdr.opcode)
402 AVRC_TRACE_ERROR("%s unknown opcode:0x%x", __func__, p_msg->hdr.opcode);
405 p_result->rsp.opcode = p_msg->hdr.opcode;
430 switch (p_msg->hdr.opcode)
436 case AVRC_OP_PASS_THRU: /* 0x7C panel subunit opcode */
445 AVRC_TRACE_ERROR("%s unknown opcode:0x%x", __func__, p_msg->hdr.opcode);
448 p_result->rsp.opcode
[all...]
H A Davrc_int.h76 #define AVRC_AVC_HDR_SIZE 3 /* ctype, subunit*, opcode */
81 #define AVRC_VENDOR_HDR_SIZE 6 /* ctype, subunit*, opcode, CO_ID */
152 extern BOOLEAN avrc_is_valid_opcode(UINT8 opcode);
/system/bt/vendor_libs/test_vendor_lib/src/
H A Dbt_vendor.cc45 // Vendor specific operations. |opcode| is the opcode for Bluedroid's vendor op
48 static int TestVendorOp(bt_vendor_opcode_t opcode, void* param) { argument
49 LOG_INFO(LOG_TAG, "Opcode received in vendor library: %d", opcode);
54 switch (opcode) {
/system/bt/hci/src/
H A Dvendor.c94 static int send_command(vendor_opcode_t opcode, void *param) { argument
96 return lib_interface->op((bt_vendor_opcode_t)opcode, param);
99 static int send_async_command(vendor_async_opcode_t opcode, void *param) { argument
101 return lib_interface->op((bt_vendor_opcode_t)opcode, param);
104 static void set_callback(vendor_async_opcode_t opcode, vendor_cb callback) { argument
105 callbacks[opcode] = callback;
178 static uint8_t transmit_cb(UNUSED_ATTR uint16_t opcode, void *buffer, tINT_CMD_CBACK callback) { argument
H A Dhci_packet_factory.c33 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) { argument
156 return make_command(opcode, 0, NULL);
159 static BT_HDR *make_command(uint16_t opcode, size_t parameter_size, uint8_t **stream_out) { argument
163 UINT16_TO_STREAM(stream, opcode);
H A Dhci_layer.c90 uint16_t opcode; member in struct:__anon749
162 static waiting_command_t *get_waiting_command(command_opcode_t opcode);
362 STREAM_TO_UINT16(wait_entry->opcode, stream);
380 STREAM_TO_UINT16(wait_entry->opcode, stream);
536 LOG_ERROR(LOG_TAG, "%s hci layer timeout waiting for response to a command. opcode: 0x%x", __func__, wait_entry->opcode);
657 command_opcode_t opcode; local
664 STREAM_TO_UINT16(opcode, stream);
666 wait_entry = get_waiting_command(opcode);
669 if (opcode !
749 get_waiting_command(command_opcode_t opcode) argument
[all...]
H A Dhci_packet_parser.c225 command_opcode_t opcode; local
228 STREAM_TO_UINT16(opcode, stream);
232 assert(opcode == expected_opcode);
/system/bt/stack/include/
H A Davrc_defs.h59 by the opcode and operand,
63 opcode but cannot respond because the current state
100 #define AVRC_OP_PASS_THRU 0x7C /* panel subunit opcode */
765 UINT8 opcode; /* Op Code (passthrough, vendor, etc) */ member in struct:__anon949
967 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon967
976 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon968
985 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon969
995 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon970
1005 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon971
1015 UINT8 opcode; /* O member in struct:__anon972
1026 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon973
1036 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon974
1045 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon975
1055 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon976
1065 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon977
1074 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon978
1083 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon979
1092 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon980
1105 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon981
1116 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon982
1129 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon983
1138 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon984
1149 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon985
1159 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon986
1167 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member in struct:__anon987
1206 UINT8 opcode; /* Op Code (copied from avrc_cmd.opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */ member in struct:__anon989
1217 UINT8 opcode; /* Op Code (copied from avrc_cmd.opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */ member in struct:__anon990
1227 UINT8 opcode; /* Op Code (copied from avrc_cmd.opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */ member in struct:__anon991
1237 UINT8 opcode; /* Op Code (copied from avrc_cmd.opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */ member in struct:__anon992
1247 UINT8 opcode; /* Op Code (copied from avrc_cmd.opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */ member in struct:__anon993
1257 UINT8 opcode; /* Op Code (copied from avrc_cmd.opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */ member in struct:__anon994
1267 UINT8 opcode; /* Op Code (copied from avrc_cmd.opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */ member in struct:__anon995
1310 UINT8 opcode; /* Op Code (copied from avrc_cmd.opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */ member in struct:__anon999
1320 UINT8 opcode; /* Op Code (copied from avrc_cmd.opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */ member in struct:__anon1000
1329 UINT8 opcode; /* Op Code (copied from avrc_cmd.opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */ member in struct:__anon1001
1342 UINT8 opcode; /* Op Code (copied from avrc_cmd.opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */ member in struct:__anon1002
1353 UINT8 opcode; /* Op Code (copied from avrc_cmd.opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */ member in struct:__anon1003
1362 UINT8 opcode; /* Op Code (copied from avrc_cmd.opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */ member in struct:__anon1004
1372 UINT8 opcode; /* Op Code (copied from avrc_cmd.opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */ member in struct:__anon1005
1381 UINT8 opcode; /* Op Code (copied from avrc_cmd.opcode by AVRC_BldResponse user. invalid one to generate according to pdu) */ member in struct:__anon1006
[all...]
/system/bt/vendor_libs/test_vendor_lib/test/
H A Dpacket_stream_unittest.cc57 void CheckedReceiveCommand(const char* payload, uint16_t opcode) { argument
62 packet.push_back(opcode);
63 packet.push_back(opcode >> 8);
83 EXPECT_EQ(opcode, command->GetOpcode());
/system/bt/vendor_libs/linux/
H A Dbt_vendor_linux.c66 uint16_t opcode; member in struct:mgmt_pkt
179 ev.opcode = MGMT_OP_INDEX_LIST;
213 if (ev.opcode == MGMT_EV_INDEX_ADDED && ev.index == hci_interface) {
215 } else if (ev.opcode == MGMT_EV_COMMAND_COMP) {
346 static int bt_vendor_op(bt_vendor_opcode_t opcode, void *param) argument
350 LOG_INFO(LOG_TAG, "%s op %d", __func__, opcode);
352 switch (opcode) {
406 LOG_INFO(LOG_TAG, "%s op %d retval %d", __func__, opcode, retval);
/system/bt/btif/include/
H A Dbtif_api.h378 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/btu/
H A Dbtu_hcif.c358 uint16_t opcode;
362 STREAM_TO_UINT16(opcode, stream);
366 if ((opcode & HCI_GRP_VENDOR_SPECIFIC) == HCI_GRP_VENDOR_SPECIFIC
368 || (opcode == HCI_BLE_RAND)
369 || (opcode == HCI_BLE_ENCRYPT)
782 static void btu_hcif_hdl_command_complete (UINT16 opcode, UINT8 *p, UINT16 evt_len, argument
785 switch (opcode)
843 btm_ble_rand_enc_complete (p, opcode, (tBTM_RAND_ENC_CB *)p_cplt_cback);
889 if ((opcode & HCI_GRP_VENDOR_SPECIFIC) == HCI_GRP_VENDOR_SPECIFIC)
890 btm_vsc_complete (p, opcode, evt_le
908 command_opcode_t opcode; local
945 btu_hcif_hdl_command_status(UINT16 opcode, UINT8 status, UINT8 *p_cmd, void *p_vsc_status_cback) argument
1105 command_opcode_t opcode; local
[all...]
/system/core/libpixelflinger/codeflinger/
H A DArm64Assembler.cpp340 void ArmToArm64Assembler::dataProcessingCommon(int opcode, argument
343 if(opcode != opSUB && s == 1)
349 if(opcode != opSUB && opcode != opADD && opcode != opAND &&
350 opcode != opORR && opcode != opMVN)
396 switch(opcode)
408 void ArmToArm64Assembler::dataProcessing(int opcode, int cc, argument
418 if(opcode
[all...]
/system/bt/stack/btm/
H A Dbtm_devctl.c650 tBTM_STATUS BTM_VendorSpecificCommand(UINT16 opcode, UINT8 param_len, argument
658 opcode, param_len);
660 /* Send the HCI command (opcode will be OR'd with HCI_GRP_VENDOR_SPECIFIC) */
661 btsnd_hcic_vendor_spec_cmd(p_buf, opcode, param_len, p_param_buf, (void *)p_cb);
681 void btm_vsc_complete (UINT8 *p, UINT16 opcode, UINT16 evt_len, argument
690 vcs_cplt_params.opcode = opcode; /* Number of bytes in return info */
H A Dbtm_ble_batchscan.c141 void btm_ble_batchscan_enq_op_q(UINT8 opcode, tBTM_BLE_BATCH_SCAN_STATE cur_state, argument
144 ble_batchscan_cb.op_q.sub_code[ble_batchscan_cb.op_q.next_idx] = (opcode |(cb_evt << 4));
363 UINT8 status = 0, subcode = 0, opcode = 0; local
373 btm_ble_batchscan_deq_op_q(&opcode, &cur_state, &cb_evt, &ref_value);
380 btm_ble_batchscan_deq_op_q(&opcode, &cur_state, &cb_evt, &ref_value);
383 opcode, cur_state, cb_evt, ref_value);
385 if (opcode != subcode)
387 BTM_TRACE_ERROR("Got unexpected VSC cmpl, expected: %d got: %d",subcode,opcode);
/system/bt/btif/src/
H A Dbluetooth.c427 int dut_mode_send(uint16_t opcode, uint8_t* buf, uint8_t len) argument
435 return btif_dut_mode_send(opcode, buf, len);
439 int le_test_mode(uint16_t opcode, uint8_t* buf, uint8_t len) argument
447 return btif_le_test_mode(opcode, buf, len);

Completed in 471 milliseconds

123