Home
last modified time | relevance | path

Searched refs:p_cmd (Results 1 – 14 of 14) sorted by relevance

/system/bt/stack/avrc/
Davrc_opt.c49 BT_HDR *p_cmd; in avrc_vendor_msg() local
56 p_cmd = (BT_HDR *)osi_malloc(AVRC_META_CMD_BUF_SIZE); in avrc_vendor_msg()
59 p_cmd = (BT_HDR *)osi_malloc(AVRC_CMD_BUF_SIZE); in avrc_vendor_msg()
62 p_cmd->offset = AVCT_MSG_OFFSET; in avrc_vendor_msg()
63 p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset; in avrc_vendor_msg()
70 p_cmd->len = (UINT16)(p_data + p_msg->vendor_len - (UINT8 *)(p_cmd + 1) - p_cmd->offset); in avrc_vendor_msg()
71 p_cmd->layer_specific = AVCT_DATA_CTRL; in avrc_vendor_msg()
73 return p_cmd; in avrc_vendor_msg()
99 BT_HDR *p_cmd = (BT_HDR *)osi_malloc(AVRC_CMD_BUF_SIZE); in AVRC_UnitCmd() local
102 p_cmd->offset = AVCT_MSG_OFFSET; in AVRC_UnitCmd()
[all …]
Davrc_bld_ct.c41 static tAVRC_STS avrc_bld_next_cmd (tAVRC_NEXT_CMD *p_cmd, BT_HDR *p_pkt) in avrc_bld_next_cmd() argument
53 UINT8_TO_BE_STREAM(p_data, p_cmd->target_pdu); in avrc_bld_next_cmd()
74 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
84 UINT8_TO_BE_STREAM(p_data, (AVRC_MAX_VOLUME & p_cmd->volume)); in avrc_bld_set_abs_volume_cmd()
251 …S avrc_bld_get_player_app_setting_attr_text_cmd (BT_HDR * p_pkt, tAVRC_GET_APP_ATTR_TXT_CMD *p_cmd) in avrc_bld_get_player_app_setting_attr_text_cmd() argument
258 UINT8 param_len = p_cmd->num_attr + 1; in avrc_bld_get_player_app_setting_attr_text_cmd()
261 UINT8_TO_BE_STREAM(p_data, p_cmd->num_attr); in avrc_bld_get_player_app_setting_attr_text_cmd()
262 for(int count = 0; count < p_cmd->num_attr; count++) in avrc_bld_get_player_app_setting_attr_text_cmd()
264 UINT8_TO_BE_STREAM(p_data, p_cmd->attrs[count]); in avrc_bld_get_player_app_setting_attr_text_cmd()
280 …S avrc_bld_get_player_app_setting_value_text_cmd (BT_HDR * p_pkt, tAVRC_GET_APP_VAL_TXT_CMD *p_cmd) in avrc_bld_get_player_app_setting_value_text_cmd() argument
[all …]
Davrc_api.c351 BT_HDR *p_cmd = NULL; in avrc_proc_far_msg() local
490 if (AVRC_BldCommand ((tAVRC_COMMAND *)&avrc_cmd, &p_cmd) == AVRC_STS_NO_ERROR) in avrc_proc_far_msg()
493 AVRC_MsgReq (handle, (UINT8)(label), AVRC_CMD_CTRL, p_cmd); in avrc_proc_far_msg()
504 if (AVRC_BldCommand ((tAVRC_COMMAND *)&avrc_cmd, &p_cmd) == AVRC_STS_NO_ERROR) in avrc_proc_far_msg()
507 AVRC_MsgReq (handle, (UINT8)(label), AVRC_CMD_CTRL, p_cmd); in avrc_proc_far_msg()
815 BT_HDR *p_cmd = (BT_HDR *)osi_malloc(AVRC_CMD_BUF_SIZE); in avrc_pass_msg() local
816 p_cmd->offset = AVCT_MSG_OFFSET; in avrc_pass_msg()
817 p_cmd->layer_specific = AVCT_DATA_CTRL; in avrc_pass_msg()
819 UINT8 *p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset; in avrc_pass_msg()
838 p_cmd->len = (UINT16) (p_data - (UINT8 *)(p_cmd + 1) - p_cmd->offset); in avrc_pass_msg()
[all …]
/system/bt/stack/gatt/
Datt_protocol.c360 BT_HDR *p_cmd = NULL; in attp_build_sr_msg() local
377 p_cmd = attp_build_value_cmd(p_tcb->payload_size, in attp_build_sr_msg()
386 p_cmd = attp_build_opcode_cmd(op_code); in attp_build_sr_msg()
390 p_cmd = attp_build_err_cmd(p_msg->error.cmd_code, p_msg->error.handle, p_msg->error.reason); in attp_build_sr_msg()
394 p_cmd = attp_build_exec_write_cmd(op_code, 0); in attp_build_sr_msg()
398 p_cmd = attp_build_mtu_cmd(op_code, p_msg->mtu); in attp_build_sr_msg()
406 if (!p_cmd) in attp_build_sr_msg()
409 return p_cmd; in attp_build_sr_msg()
453 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
465 att_ret = attp_send_msg_to_l2cap(p_tcb, p_cmd); in attp_cl_send_cmd()
[all …]
Dgatt_sr.c48 tGATT_SR_CMD *p_cmd = &p_tcb->sr_cmd; in gatt_sr_enqueue_cmd() local
51 if ( (p_cmd->op_code == 0) || in gatt_sr_enqueue_cmd()
63 p_cmd->trans_id = ++p_tcb->trans_id; in gatt_sr_enqueue_cmd()
64 p_cmd->op_code = op_code; in gatt_sr_enqueue_cmd()
65 p_cmd->handle = handle; in gatt_sr_enqueue_cmd()
66 p_cmd->status = GATT_NOT_FOUND; in gatt_sr_enqueue_cmd()
68 trans_id = p_cmd->trans_id; in gatt_sr_enqueue_cmd()
121 static BOOLEAN process_read_multi_rsp (tGATT_SR_CMD *p_cmd, tGATT_STATUS status, in process_read_multi_rsp() argument
133 fixed_queue_enqueue(p_cmd->multi_rsp_q, p_buf); in process_read_multi_rsp()
135 p_cmd->status = status; in process_read_multi_rsp()
[all …]
Dgatt_cl.c1106 tGATT_CMD_Q *p_cmd = &p_tcb->cl_cmd_q[p_tcb->pending_cl_req]; in gatt_cl_send_next_cmd_inq() local
1114 p_cmd->to_send && p_cmd->p_cmd != NULL) in gatt_cl_send_next_cmd_inq()
1116 att_ret = attp_send_msg_to_l2cap(p_tcb, p_cmd->p_cmd); in gatt_cl_send_next_cmd_inq()
1121 p_cmd->to_send = FALSE; in gatt_cl_send_next_cmd_inq()
1122 p_cmd->p_cmd = NULL; in gatt_cl_send_next_cmd_inq()
1125 if (p_cmd->op_code != GATT_CMD_WRITE && p_cmd->op_code != GATT_SIGN_CMD_WRITE) in gatt_cl_send_next_cmd_inq()
1127 gatt_start_rsp_timer (p_cmd->clcb_idx); in gatt_cl_send_next_cmd_inq()
1137 p_cmd = &p_tcb->cl_cmd_q[p_tcb->pending_cl_req]; in gatt_cl_send_next_cmd_inq()
1146 memset(p_cmd, 0, sizeof(tGATT_CMD_Q)); in gatt_cl_send_next_cmd_inq()
1148 p_cmd = &p_tcb->cl_cmd_q[p_tcb->pending_cl_req]; in gatt_cl_send_next_cmd_inq()
Dgatt_utils.c2070 tGATT_CMD_Q *p_cmd = &p_tcb->cl_cmd_q[p_tcb->next_slot_inq]; in gatt_cmd_enq() local
2072 p_cmd->to_send = to_send; /* waiting to be sent */ in gatt_cmd_enq()
2073 p_cmd->op_code = op_code; in gatt_cmd_enq()
2074 p_cmd->p_cmd = p_buf; in gatt_cmd_enq()
2075 p_cmd->clcb_idx = clcb_idx; in gatt_cmd_enq()
2099 tGATT_CMD_Q *p_cmd = &p_tcb->cl_cmd_q[p_tcb->pending_cl_req]; in gatt_cmd_dequeue() local
2104 p_clcb = &gatt_cb.clcb[p_cmd->clcb_idx]; in gatt_cmd_dequeue()
2106 *p_op_code = p_cmd->op_code; in gatt_cmd_dequeue()
Dgatt_int.h266 BT_HDR *p_cmd; member
/system/bt/bta/ag/
Dbta_ag_at.c87 for (idx = 0; p_cb->p_at_tbl[idx].p_cmd[0] != 0; idx++) in bta_ag_process_at()
89 if (!utl_strucmp(p_cb->p_at_tbl[idx].p_cmd, p_cb->p_cmd_buf)) in bta_ag_process_at()
96 if (p_cb->p_at_tbl[idx].p_cmd[0] != 0) in bta_ag_process_at()
99 p_arg = p_cb->p_cmd_buf + strlen(p_cb->p_at_tbl[idx].p_cmd); in bta_ag_process_at()
Dbta_ag_at.h49 const char *p_cmd; /* AT command string */ member
/system/bt/stack/btu/
Dbtu_hcif.c945 static void btu_hcif_hdl_command_status (UINT16 opcode, UINT8 status, UINT8 *p_cmd, in btu_hcif_hdl_command_status() argument
962 if (p_cmd != NULL) in btu_hcif_hdl_command_status()
964 p_cmd++; /* bypass length field */ in btu_hcif_hdl_command_status()
965 STREAM_TO_UINT16 (handle, p_cmd); in btu_hcif_hdl_command_status()
1004 if (p_cmd != NULL) in btu_hcif_hdl_command_status()
1006 p_cmd++; in btu_hcif_hdl_command_status()
1007 STREAM_TO_BDADDR (bd_addr, p_cmd); in btu_hcif_hdl_command_status()
1017 if (p_cmd != NULL) in btu_hcif_hdl_command_status()
1019 p_cmd++; in btu_hcif_hdl_command_status()
1020 STREAM_TO_BDADDR (bd_addr, p_cmd); in btu_hcif_hdl_command_status()
[all …]
/system/bt/bta/hf_client/
Dbta_hf_client_at.h30 const char *p_cmd; /* AT command string */ member
/system/bt/stack/sdp/
Dsdp_discovery.c123 BT_HDR *p_cmd = (BT_HDR *) osi_malloc(SDP_DATA_BUF_SIZE); in sdp_snd_service_search_req() local
127 p_cmd->offset = L2CAP_MIN_OFFSET; in sdp_snd_service_search_req()
128 p = p_start = (UINT8 *)(p_cmd + 1) + L2CAP_MIN_OFFSET; in sdp_snd_service_search_req()
166 p_cmd->len = (UINT16)(p - p_start); in sdp_snd_service_search_req()
173 L2CA_DataWrite (p_ccb->connection_id, p_cmd); in sdp_snd_service_search_req()
/system/bt/stack/include/
Davrc_api.h629 extern tAVRC_STS AVRC_BldCommand( tAVRC_COMMAND *p_cmd, BT_HDR **pp_pkt);