/packages/modules/Bluetooth/system/stack/avrc/ |
D | avrc_opt.cc | 52 BT_HDR* p_cmd; in avrc_vendor_msg() local 69 p_cmd = (BT_HDR*)osi_calloc(AVRC_META_CMD_BUF_SIZE); in avrc_vendor_msg() 71 p_cmd->offset = AVCT_MSG_OFFSET; in avrc_vendor_msg() 72 p_data = (uint8_t*)(p_cmd + 1) + p_cmd->offset; in avrc_vendor_msg() 80 p_cmd->len = (uint16_t)(p_data + p_msg->vendor_len - (uint8_t*)(p_cmd + 1) - in avrc_vendor_msg() 81 p_cmd->offset); in avrc_vendor_msg() 82 p_cmd->layer_specific = AVCT_DATA_CTRL; in avrc_vendor_msg() 84 return p_cmd; in avrc_vendor_msg() 109 BT_HDR* p_cmd = (BT_HDR*)osi_calloc(AVRC_CMD_BUF_SIZE); in AVRC_UnitCmd() local 112 p_cmd->offset = AVCT_MSG_OFFSET; in AVRC_UnitCmd() [all …]
|
D | avrc_bld_ct.cc | 49 static tAVRC_STS avrc_bld_next_cmd(tAVRC_NEXT_CMD* p_cmd, BT_HDR* p_pkt) { in avrc_bld_next_cmd() argument 60 UINT8_TO_BE_STREAM(p_data, p_cmd->target_pdu); in avrc_bld_next_cmd() 80 static tAVRC_STS avrc_bld_set_abs_volume_cmd(tAVRC_SET_VOLUME_CMD* p_cmd, in avrc_bld_set_abs_volume_cmd() argument 90 UINT8_TO_BE_STREAM(p_data, (AVRC_MAX_VOLUME & p_cmd->volume)); in avrc_bld_set_abs_volume_cmd() 256 BT_HDR* p_pkt, tAVRC_GET_APP_ATTR_TXT_CMD* p_cmd) { in avrc_bld_get_player_app_setting_attr_text_cmd() argument 262 uint8_t param_len = p_cmd->num_attr + 1; in avrc_bld_get_player_app_setting_attr_text_cmd() 265 UINT8_TO_BE_STREAM(p_data, p_cmd->num_attr); in avrc_bld_get_player_app_setting_attr_text_cmd() 266 for (int count = 0; count < p_cmd->num_attr; count++) { in avrc_bld_get_player_app_setting_attr_text_cmd() 267 UINT8_TO_BE_STREAM(p_data, p_cmd->attrs[count]); in avrc_bld_get_player_app_setting_attr_text_cmd() 285 BT_HDR* p_pkt, tAVRC_GET_APP_VAL_TXT_CMD* p_cmd) { in avrc_bld_get_player_app_setting_value_text_cmd() argument [all …]
|
D | avrc_api.cc | 482 BT_HDR* p_cmd = NULL; in avrc_proc_far_msg() local 624 status = AVRC_BldCommand(&avrc_command, &p_cmd); in avrc_proc_far_msg() 626 AVRC_MsgReq(handle, (uint8_t)(label), AVRC_CMD_CTRL, p_cmd, false); in avrc_proc_far_msg() 943 BT_HDR* p_cmd = (BT_HDR*)osi_calloc(AVRC_CMD_BUF_SIZE); in avrc_pass_msg() local 944 p_cmd->offset = AVCT_MSG_OFFSET; in avrc_pass_msg() 945 p_cmd->layer_specific = AVCT_DATA_CTRL; in avrc_pass_msg() 947 uint8_t* p_data = (uint8_t*)(p_cmd + 1) + p_cmd->offset; in avrc_pass_msg() 965 p_cmd->len = (uint16_t)(p_data - (uint8_t*)(p_cmd + 1) - p_cmd->offset); in avrc_pass_msg() 967 return p_cmd; in avrc_pass_msg()
|
/packages/modules/Bluetooth/system/stack/gatt/ |
D | gatt_sr.cc | 62 tGATT_SR_CMD* p_cmd; in gatt_sr_enqueue_cmd() local 65 p_cmd = &tcb.sr_cmd; in gatt_sr_enqueue_cmd() 74 p_cmd = &channel->server_outstanding_cmd_; in gatt_sr_enqueue_cmd() 79 p_cmd->cid = cid; in gatt_sr_enqueue_cmd() 81 if ((p_cmd->op_code == 0) || in gatt_sr_enqueue_cmd() 88 p_cmd->trans_id = ++tcb.trans_id; in gatt_sr_enqueue_cmd() 89 p_cmd->op_code = op_code; in gatt_sr_enqueue_cmd() 90 p_cmd->handle = handle; in gatt_sr_enqueue_cmd() 91 p_cmd->status = GATT_NOT_FOUND; in gatt_sr_enqueue_cmd() 93 trans_id = p_cmd->trans_id; in gatt_sr_enqueue_cmd() [all …]
|
D | att_protocol.cc | 481 uint8_t cmd_code, BT_HDR* p_cmd) { in attp_cl_send_cmd() argument 486 if (gatt_cmd_enq(tcb, p_clcb, true, cmd_code, p_cmd)) { in attp_cl_send_cmd() 500 tGATT_STATUS att_ret = attp_send_msg_to_l2cap(tcb, p_clcb->cid, p_cmd); in attp_cl_send_cmd() 540 BT_HDR* p_cmd = NULL; in attp_send_cl_confirmation_msg() local 541 p_cmd = attp_build_opcode_cmd(GATT_HANDLE_VALUE_CONF); in attp_send_cl_confirmation_msg() 543 if (p_cmd == NULL) return GATT_NO_RESOURCES; in attp_send_cl_confirmation_msg() 546 tGATT_STATUS att_ret = attp_send_msg_to_l2cap(tcb, cid, p_cmd); in attp_send_cl_confirmation_msg() 572 BT_HDR* p_cmd = NULL; in attp_send_cl_msg() local 595 p_cmd = attp_build_mtu_cmd(GATT_REQ_MTU, p_msg->mtu); in attp_send_cl_msg() 608 p_cmd = attp_build_browse_cmd(op_code, p_msg->browse.s_handle, in attp_send_cl_msg() [all …]
|
D | gatt_cl.cc | 1171 if (!cmd.to_send || cmd.p_cmd == NULL) { in gatt_cl_send_next_cmd_inq() 1176 att_ret = attp_send_msg_to_l2cap(tcb, cmd.cid, cmd.p_cmd); in gatt_cl_send_next_cmd_inq() 1185 cmd.p_cmd = NULL; in gatt_cl_send_next_cmd_inq()
|
D | gatt_int.h | 207 BT_HDR* p_cmd; member
|
D | gatt_utils.cc | 1595 cmd.p_cmd = p_buf; in gatt_cmd_enq()
|
/packages/modules/Bluetooth/system/stack/btu/ |
D | btu_hcif.cc | 361 static void btu_hcif_log_command_metrics(uint16_t opcode, const uint8_t* p_cmd, in btu_hcif_log_command_metrics() argument 379 STREAM_TO_BDADDR(bd_addr, p_cmd); in btu_hcif_log_command_metrics() 387 STREAM_TO_UINT16(handle, p_cmd); in btu_hcif_log_command_metrics() 388 STREAM_TO_UINT8(reason, p_cmd); in btu_hcif_log_command_metrics() 396 STREAM_TO_UINT16(handle, p_cmd); in btu_hcif_log_command_metrics() 405 STREAM_TO_BDADDR(bd_addr, p_cmd); in btu_hcif_log_command_metrics() 414 STREAM_TO_BDADDR(bd_addr, p_cmd); in btu_hcif_log_command_metrics() 415 STREAM_TO_UINT8(reason, p_cmd); in btu_hcif_log_command_metrics() 425 p_cmd += 2; // Skip LE_Scan_Interval in btu_hcif_log_command_metrics() 426 p_cmd += 2; // Skip LE_Scan_Window; in btu_hcif_log_command_metrics() [all …]
|
/packages/modules/Bluetooth/system/stack/test/ |
D | stack_btu_test.cc | 28 const uint8_t* p_cmd); 38 uint8_t p_cmd[10]; // garbage data for testing in TEST_F() local 40 HCI_SETUP_ESCO_CONNECTION, HCI_ERR_UNSPECIFIED, p_cmd); in TEST_F()
|
/packages/modules/Bluetooth/system/bta/ag/ |
D | bta_ag_at.cc | 96 for (idx = 0; p_cb->p_at_tbl[idx].p_cmd[0] != 0; idx++) { in bta_ag_process_at() 97 if (!utl_strucmp(p_cb->p_at_tbl[idx].p_cmd, p_cb->p_cmd_buf)) { in bta_ag_process_at() 103 if (p_cb->p_at_tbl[idx].p_cmd[0] != 0) { in bta_ag_process_at() 105 p_arg = p_cb->p_cmd_buf + strlen(p_cb->p_at_tbl[idx].p_cmd); in bta_ag_process_at()
|
D | bta_ag_at.h | 52 const char* p_cmd; /* AT command string */ member
|
/packages/modules/Bluetooth/system/stack/sdp/ |
D | sdp_discovery.cc | 123 BT_HDR* p_cmd = (BT_HDR*)osi_malloc(SDP_DATA_BUF_SIZE); in sdp_snd_service_search_req() local 128 p_cmd->offset = L2CAP_MIN_OFFSET; in sdp_snd_service_search_req() 129 p = p_start = (uint8_t*)(p_cmd + 1) + L2CAP_MIN_OFFSET; in sdp_snd_service_search_req() 149 osi_free(p_cmd); in sdp_snd_service_search_req() 178 p_cmd->len = (uint16_t)(p - p_start); in sdp_snd_service_search_req() 180 if (L2CA_DataWrite(p_ccb->connection_id, p_cmd) != L2CAP_DW_SUCCESS) { in sdp_snd_service_search_req() 182 p_ccb->device_address, p_ccb->connection_id, p_cmd->len); in sdp_snd_service_search_req()
|
/packages/modules/Bluetooth/system/stack/include/ |
D | btu_hcif.h | 37 const uint8_t* p_cmd);
|
D | avrc_api.h | 765 tAVRC_STS AVRC_BldCommand(tAVRC_COMMAND* p_cmd, BT_HDR** pp_pkt);
|