/hal_espressif-latest/components/bt/host/bluedroid/stack/avrc/ |
D | avrc_opt.c | 51 BT_HDR *p_cmd; in avrc_vendor_msg() local 58 if ((p_cmd = (BT_HDR *) osi_malloc(AVRC_META_CMD_BUF_SIZE)) != NULL) in avrc_vendor_msg() 61 if ((p_cmd = (BT_HDR *) osi_malloc(AVRC_CMD_BUF_SIZE)) != NULL) in avrc_vendor_msg() 64 p_cmd->offset = AVCT_MSG_OFFSET; in avrc_vendor_msg() 65 p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset; in avrc_vendor_msg() 73 p_cmd->len = (UINT16) (p_data + p_msg->vendor_len - (UINT8 *)(p_cmd + 1) - p_cmd->offset); in avrc_vendor_msg() 74 p_cmd->layer_specific = AVCT_DATA_CTRL; in avrc_vendor_msg() 76 return p_cmd; in avrc_vendor_msg() 102 BT_HDR *p_cmd; in AVRC_UnitCmd() local 105 if ((p_cmd = (BT_HDR *) osi_malloc(AVRC_CMD_BUF_SIZE)) != NULL) { in AVRC_UnitCmd() [all …]
|
D | avrc_bld_ct.c | 43 static tAVRC_STS avrc_bld_next_cmd (tAVRC_NEXT_CMD *p_cmd, BT_HDR *p_pkt) in avrc_bld_next_cmd() argument 55 UINT8_TO_BE_STREAM(p_data, p_cmd->target_pdu); in avrc_bld_next_cmd() 76 static tAVRC_STS avrc_bld_set_abs_volume_cmd (tAVRC_SET_VOLUME_CMD *p_cmd, BT_HDR *p_pkt) in avrc_bld_set_abs_volume_cmd() argument 86 UINT8_TO_BE_STREAM(p_data, (AVRC_MAX_VOLUME & p_cmd->volume)); in avrc_bld_set_abs_volume_cmd() 129 static BT_HDR *avrc_bld_init_cmd_buffer(tAVRC_COMMAND *p_cmd) in avrc_bld_init_cmd_buffer() argument 131 UINT8 opcode = avrc_opcode_from_pdu(p_cmd->pdu); in avrc_bld_init_cmd_buffer() 132 AVRC_TRACE_API("avrc_bld_init_cmd_buffer: pdu=%x, opcode=%x", p_cmd->pdu, opcode); in avrc_bld_init_cmd_buffer() 158 *p_data++ = p_cmd->pdu; in avrc_bld_init_cmd_buffer() 173 p_cmd->cmd.opcode = opcode; in avrc_bld_init_cmd_buffer() 187 static tAVRC_STS avrc_bld_set_player_value_cmd(tAVRC_SET_APP_VALUE_CMD *p_cmd, BT_HDR *p_pkt) in avrc_bld_set_player_value_cmd() argument [all …]
|
D | avrc_api.c | 361 BT_HDR *p_cmd = NULL; in avrc_proc_far_msg() local 489 if (AVRC_BldCommand ((tAVRC_COMMAND *)&avrc_cmd, &p_cmd) == AVRC_STS_NO_ERROR) { in avrc_proc_far_msg() 491 AVRC_MsgReq (handle, (UINT8)(label), AVRC_CMD_CTRL, p_cmd); in avrc_proc_far_msg() 782 BT_HDR *p_cmd = NULL; in avrc_pass_msg() local 788 if ((p_cmd = (BT_HDR *) osi_malloc(AVRC_CMD_BUF_SIZE)) != NULL) { in avrc_pass_msg() 789 p_cmd->offset = AVCT_MSG_OFFSET; in avrc_pass_msg() 790 p_cmd->layer_specific = AVCT_DATA_CTRL; in avrc_pass_msg() 791 p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset; in avrc_pass_msg() 811 p_cmd->len = (UINT16) (p_data - (UINT8 *)(p_cmd + 1) - p_cmd->offset); in avrc_pass_msg() 813 return p_cmd; in avrc_pass_msg()
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/gatt/ |
D | att_protocol.c | 384 BT_HDR *p_cmd = NULL; in attp_build_sr_msg() local 422 p_cmd = attp_build_value_cmd(p_tcb->payload_size, in attp_build_sr_msg() 431 p_cmd = attp_build_opcode_cmd(op_code); in attp_build_sr_msg() 435 p_cmd = attp_build_err_cmd(p_msg->error.cmd_code, p_msg->error.handle, p_msg->error.reason); in attp_build_sr_msg() 439 p_cmd = attp_build_exec_write_cmd(op_code, 0); in attp_build_sr_msg() 443 p_cmd = attp_build_mtu_cmd(op_code, p_msg->mtu); in attp_build_sr_msg() 451 if (!p_cmd) { in attp_build_sr_msg() 455 return p_cmd; in attp_build_sr_msg() 497 tGATT_STATUS attp_cl_send_cmd(tGATT_TCB *p_tcb, UINT16 clcb_idx, UINT8 cmd_code, BT_HDR *p_cmd) in attp_cl_send_cmd() argument 507 att_ret = attp_send_msg_to_l2cap(p_tcb, p_cmd); in attp_cl_send_cmd() [all …]
|
D | gatt_sr.c | 84 tGATT_SR_CMD *p_cmd = &p_tcb->sr_cmd; in gatt_sr_enqueue_cmd() local 87 if ( (p_cmd->op_code == 0) || in gatt_sr_enqueue_cmd() 95 p_cmd->trans_id = ++p_tcb->trans_id; in gatt_sr_enqueue_cmd() 96 p_cmd->op_code = op_code; in gatt_sr_enqueue_cmd() 97 p_cmd->handle = handle; in gatt_sr_enqueue_cmd() 98 p_cmd->status = GATT_NOT_FOUND; in gatt_sr_enqueue_cmd() 100 trans_id = p_cmd->trans_id; in gatt_sr_enqueue_cmd() 160 static BOOLEAN process_read_multi_rsp (tGATT_SR_CMD *p_cmd, tGATT_STATUS status, in process_read_multi_rsp() argument 169 if (p_cmd->multi_rsp_q == NULL) { in process_read_multi_rsp() 170 p_cmd->multi_rsp_q = fixed_queue_new(QUEUE_SIZE_MAX); in process_read_multi_rsp() [all …]
|
D | gatt_cl.c | 1094 tGATT_CMD_Q *p_cmd = &p_tcb->cl_cmd_q[p_tcb->pending_cl_req]; in gatt_cl_send_next_cmd_inq() local 1102 p_cmd->to_send && p_cmd->p_cmd != NULL) { in gatt_cl_send_next_cmd_inq() 1103 att_ret = attp_send_msg_to_l2cap(p_tcb, p_cmd->p_cmd); in gatt_cl_send_next_cmd_inq() 1107 p_cmd->to_send = FALSE; in gatt_cl_send_next_cmd_inq() 1108 if(p_cmd->p_cmd) { in gatt_cl_send_next_cmd_inq() 1109 osi_free(p_cmd->p_cmd); in gatt_cl_send_next_cmd_inq() 1110 p_cmd->p_cmd = NULL; in gatt_cl_send_next_cmd_inq() 1114 if (p_cmd->op_code != GATT_CMD_WRITE && p_cmd->op_code != GATT_SIGN_CMD_WRITE) { in gatt_cl_send_next_cmd_inq() 1115 gatt_start_rsp_timer (p_cmd->clcb_idx); in gatt_cl_send_next_cmd_inq() 1124 p_cmd = &p_tcb->cl_cmd_q[p_tcb->pending_cl_req]; in gatt_cl_send_next_cmd_inq() [all …]
|
D | gatt_utils.c | 2163 tGATT_CMD_Q *p_cmd = &p_tcb->cl_cmd_q[p_tcb->next_slot_inq]; in gatt_cmd_enq() local 2165 p_cmd->to_send = to_send; /* waiting to be sent */ in gatt_cmd_enq() 2166 p_cmd->op_code = op_code; in gatt_cmd_enq() 2167 p_cmd->p_cmd = p_buf; in gatt_cmd_enq() 2168 p_cmd->clcb_idx = clcb_idx; in gatt_cmd_enq() 2191 tGATT_CMD_Q *p_cmd = &p_tcb->cl_cmd_q[p_tcb->pending_cl_req]; in gatt_cmd_dequeue() local 2195 p_clcb = gatt_clcb_find_by_idx(p_cmd->clcb_idx); in gatt_cmd_dequeue() 2197 *p_op_code = p_cmd->op_code; in gatt_cmd_dequeue()
|
/hal_espressif-latest/components/bt/host/bluedroid/bta/hf_ag/ |
D | bta_ag_at.c | 86 for (idx = 0; p_cb->p_at_tbl[idx].p_cmd[0] != 0; idx++) { in bta_ag_process_at() 87 if (!utl_strucmp(p_cb->p_at_tbl[idx].p_cmd, p_cb->p_cmd_buf)) { in bta_ag_process_at() 93 if (p_cb->p_at_tbl[idx].p_cmd[0] != 0) { in bta_ag_process_at() 95 p_arg = p_cb->p_cmd_buf + strlen(p_cb->p_at_tbl[idx].p_cmd); in bta_ag_process_at()
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/btu/ |
D | btu_hcif.c | 1246 static void btu_hcif_hdl_command_status (UINT16 opcode, UINT8 status, UINT8 *p_cmd, in btu_hcif_hdl_command_status() argument 1264 if (p_cmd != NULL) { in btu_hcif_hdl_command_status() 1265 p_cmd++; /* bypass length field */ in btu_hcif_hdl_command_status() 1266 STREAM_TO_UINT16 (handle, p_cmd); in btu_hcif_hdl_command_status() 1325 if (p_cmd != NULL) { in btu_hcif_hdl_command_status() 1326 p_cmd++; in btu_hcif_hdl_command_status() 1327 STREAM_TO_BDADDR (bd_addr, p_cmd); in btu_hcif_hdl_command_status() 1337 if (p_cmd != NULL) { in btu_hcif_hdl_command_status() 1338 p_cmd++; in btu_hcif_hdl_command_status() 1339 STREAM_TO_BDADDR (bd_addr, p_cmd); in btu_hcif_hdl_command_status() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/bta/hf_ag/include/ |
D | bta_ag_at.h | 53 const char *p_cmd; /* AT command string */ member
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/sdp/ |
D | sdp_discovery.c | 116 BT_HDR *p_cmd; in sdp_snd_service_search_req() local 120 if ((p_cmd = (BT_HDR *) osi_malloc(SDP_DATA_BUF_SIZE)) == NULL) { in sdp_snd_service_search_req() 125 p_cmd->offset = L2CAP_MIN_OFFSET; in sdp_snd_service_search_req() 126 p = p_start = (UINT8 *)(p_cmd + 1) + L2CAP_MIN_OFFSET; in sdp_snd_service_search_req() 163 p_cmd->len = (UINT16)(p - p_start); in sdp_snd_service_search_req() 170 L2CA_DataWrite (p_ccb->connection_id, p_cmd); in sdp_snd_service_search_req()
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/include/stack/ |
D | avrc_api.h | 609 extern tAVRC_STS AVRC_BldCommand( tAVRC_COMMAND *p_cmd, BT_HDR **pp_pkt);
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/gatt/include/ |
D | gatt_int.h | 272 BT_HDR *p_cmd; member
|