Home
last modified time | relevance | path

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

/system/bt/stack/avrc/
Davrc_opt.cc48 BT_HDR* p_cmd; in avrc_vendor_msg() local
54 p_cmd = (BT_HDR*)osi_malloc(AVRC_META_CMD_BUF_SIZE); in avrc_vendor_msg()
56 p_cmd->offset = AVCT_MSG_OFFSET; in avrc_vendor_msg()
57 p_data = (uint8_t*)(p_cmd + 1) + p_cmd->offset; in avrc_vendor_msg()
65 p_cmd->len = (uint16_t)(p_data + p_msg->vendor_len - (uint8_t*)(p_cmd + 1) - in avrc_vendor_msg()
66 p_cmd->offset); in avrc_vendor_msg()
67 p_cmd->layer_specific = AVCT_DATA_CTRL; in avrc_vendor_msg()
69 return p_cmd; in avrc_vendor_msg()
94 BT_HDR* p_cmd = (BT_HDR*)osi_malloc(AVRC_CMD_BUF_SIZE); in AVRC_UnitCmd() local
97 p_cmd->offset = AVCT_MSG_OFFSET; in AVRC_UnitCmd()
[all …]
Davrc_bld_ct.cc39 static tAVRC_STS avrc_bld_next_cmd(tAVRC_NEXT_CMD* p_cmd, BT_HDR* p_pkt) { in avrc_bld_next_cmd() argument
50 UINT8_TO_BE_STREAM(p_data, p_cmd->target_pdu); in avrc_bld_next_cmd()
71 static tAVRC_STS avrc_bld_set_abs_volume_cmd(tAVRC_SET_VOLUME_CMD* p_cmd, in avrc_bld_set_abs_volume_cmd() argument
81 UINT8_TO_BE_STREAM(p_data, (AVRC_MAX_VOLUME & p_cmd->volume)); in avrc_bld_set_abs_volume_cmd()
248 BT_HDR* p_pkt, tAVRC_GET_APP_ATTR_TXT_CMD* p_cmd) { in avrc_bld_get_player_app_setting_attr_text_cmd() argument
254 uint8_t param_len = p_cmd->num_attr + 1; in avrc_bld_get_player_app_setting_attr_text_cmd()
257 UINT8_TO_BE_STREAM(p_data, p_cmd->num_attr); in avrc_bld_get_player_app_setting_attr_text_cmd()
258 for (int count = 0; count < p_cmd->num_attr; count++) { in avrc_bld_get_player_app_setting_attr_text_cmd()
259 UINT8_TO_BE_STREAM(p_data, p_cmd->attrs[count]); in avrc_bld_get_player_app_setting_attr_text_cmd()
277 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.cc459 BT_HDR* p_cmd = NULL; in avrc_proc_far_msg() local
601 status = AVRC_BldCommand(&avrc_command, &p_cmd); in avrc_proc_far_msg()
603 AVRC_MsgReq(handle, (uint8_t)(label), AVRC_CMD_CTRL, p_cmd); in avrc_proc_far_msg()
924 BT_HDR* p_cmd = (BT_HDR*)osi_malloc(AVRC_CMD_BUF_SIZE); in avrc_pass_msg() local
925 p_cmd->offset = AVCT_MSG_OFFSET; in avrc_pass_msg()
926 p_cmd->layer_specific = AVCT_DATA_CTRL; in avrc_pass_msg()
928 uint8_t* p_data = (uint8_t*)(p_cmd + 1) + p_cmd->offset; in avrc_pass_msg()
946 p_cmd->len = (uint16_t)(p_data - (uint8_t*)(p_cmd + 1) - p_cmd->offset); in avrc_pass_msg()
948 return p_cmd; in avrc_pass_msg()
/system/nfc/src/nfc/tags/
Drw_i93.cc663 NFC_HDR* p_cmd; in rw_i93_send_cmd_inventory() local
669 p_cmd = (NFC_HDR*)GKI_getpoolbuf(NFC_RW_POOL_ID); in rw_i93_send_cmd_inventory()
671 if (!p_cmd) { in rw_i93_send_cmd_inventory()
676 p_cmd->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE; in rw_i93_send_cmd_inventory()
677 p_cmd->len = 3; in rw_i93_send_cmd_inventory()
678 p = (uint8_t*)(p_cmd + 1) + p_cmd->offset; in rw_i93_send_cmd_inventory()
695 p_cmd->len++; in rw_i93_send_cmd_inventory()
701 p_cmd->len += I93_UID_BYTE_LEN; in rw_i93_send_cmd_inventory()
706 if (rw_i93_send_to_lower(p_cmd)) { in rw_i93_send_cmd_inventory()
724 NFC_HDR* p_cmd; in rw_i93_send_cmd_stay_quiet() local
[all …]
Dce_t4t.cc337 static bool ce_t4t_process_select_file_cmd(uint8_t* p_cmd) { in ce_t4t_process_select_file_cmd() argument
343 p_cmd++; /* skip P2 */ in ce_t4t_process_select_file_cmd()
346 BE_STREAM_TO_UINT8(data_len, p_cmd); in ce_t4t_process_select_file_cmd()
350 BE_STREAM_TO_UINT16(file_id, p_cmd); in ce_t4t_process_select_file_cmd()
380 static void ce_t4t_process_select_app_cmd(uint8_t* p_cmd, NFC_HDR* p_c_apdu) { in ce_t4t_process_select_app_cmd() argument
388 p_cmd++; /* skip P2 */ in ce_t4t_process_select_app_cmd()
391 BE_STREAM_TO_UINT8(data_len, p_cmd); in ce_t4t_process_select_app_cmd()
404 (!memcmp(p_cmd, ce_test_tag_app_id, data_len)) && in ce_t4t_process_select_app_cmd()
422 (!(memcmp(ce_cb.mem.t4t.reg_aid[xx].aid, p_cmd, data_len)))) { in ce_t4t_process_select_app_cmd()
453 (!memcmp(p_cmd, t4t_v20_ndef_tag_aid, data_len - 1)) && in ce_t4t_process_select_app_cmd()
[all …]
/system/bt/stack/gatt/
Datt_protocol.cc417 uint8_t cmd_code, BT_HDR* p_cmd) { in attp_cl_send_cmd() argument
421 gatt_cmd_enq(tcb, p_clcb, true, cmd_code, p_cmd); in attp_cl_send_cmd()
426 tGATT_STATUS att_ret = attp_send_msg_to_l2cap(tcb, p_cmd); in attp_cl_send_cmd()
459 BT_HDR* p_cmd = NULL; in attp_send_cl_msg() local
466 p_cmd = attp_build_mtu_cmd(GATT_REQ_MTU, p_msg->mtu); in attp_send_cl_msg()
477 p_cmd = attp_build_browse_cmd(op_code, p_msg->browse.s_handle, in attp_send_cl_msg()
490 p_cmd = attp_build_handle_cmd(op_code, handle, offset); in attp_send_cl_msg()
494 p_cmd = attp_build_opcode_cmd(op_code); in attp_send_cl_msg()
506 p_cmd = attp_build_value_cmd( in attp_send_cl_msg()
512 p_cmd = attp_build_exec_write_cmd(op_code, p_msg->exec_write); in attp_send_cl_msg()
[all …]
Dgatt_sr.cc51 tGATT_SR_CMD* p_cmd = &tcb.sr_cmd; in gatt_sr_enqueue_cmd() local
54 if ((p_cmd->op_code == 0) || in gatt_sr_enqueue_cmd()
61 p_cmd->trans_id = ++tcb.trans_id; in gatt_sr_enqueue_cmd()
62 p_cmd->op_code = op_code; in gatt_sr_enqueue_cmd()
63 p_cmd->handle = handle; in gatt_sr_enqueue_cmd()
64 p_cmd->status = GATT_NOT_FOUND; in gatt_sr_enqueue_cmd()
66 trans_id = p_cmd->trans_id; in gatt_sr_enqueue_cmd()
115 static bool process_read_multi_rsp(tGATT_SR_CMD* p_cmd, tGATT_STATUS status, in process_read_multi_rsp() argument
123 if (p_cmd->multi_rsp_q == NULL) in process_read_multi_rsp()
124 p_cmd->multi_rsp_q = fixed_queue_new(SIZE_MAX); in process_read_multi_rsp()
[all …]
Dgatt_cl.cc1036 if (!cmd.to_send || cmd.p_cmd == NULL) return false; in gatt_cl_send_next_cmd_inq()
1038 tGATT_STATUS att_ret = attp_send_msg_to_l2cap(tcb, cmd.p_cmd); in gatt_cl_send_next_cmd_inq()
1046 cmd.p_cmd = NULL; in gatt_cl_send_next_cmd_inq()
Dgatt_int.h202 BT_HDR* p_cmd; member
Dgatt_utils.cc1134 cmd.p_cmd = p_buf; in gatt_cmd_enq()
/system/bt/stack/btu/
Dbtu_hcif.cc470 static void btu_hcif_log_command_metrics(uint16_t opcode, uint8_t* p_cmd, in btu_hcif_log_command_metrics() argument
488 STREAM_TO_BDADDR(bd_addr, p_cmd); in btu_hcif_log_command_metrics()
496 STREAM_TO_UINT16(handle, p_cmd); in btu_hcif_log_command_metrics()
497 STREAM_TO_UINT8(reason, p_cmd); in btu_hcif_log_command_metrics()
505 STREAM_TO_UINT16(handle, p_cmd); in btu_hcif_log_command_metrics()
514 STREAM_TO_BDADDR(bd_addr, p_cmd); in btu_hcif_log_command_metrics()
523 STREAM_TO_BDADDR(bd_addr, p_cmd); in btu_hcif_log_command_metrics()
524 STREAM_TO_UINT8(reason, p_cmd); in btu_hcif_log_command_metrics()
534 p_cmd += 2; // Skip LE_Scan_Interval in btu_hcif_log_command_metrics()
535 p_cmd += 2; // Skip LE_Scan_Window; in btu_hcif_log_command_metrics()
[all …]
/system/bt/bta/ag/
Dbta_ag_at.cc86 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()
Dbta_ag_at.h48 const char* p_cmd; /* AT command string */ member
/system/nfc/src/nfa/dm/
Dnfa_dm_act.cc858 NFC_HDR* p_cmd = (NFC_HDR*)p_data; in nfa_dm_act_send_vsc() local
860 p_cmd->offset = sizeof(tNFA_DM_API_SEND_VSC) - NFC_HDR_SIZE; in nfa_dm_act_send_vsc()
861 p_cmd->len = p_data->send_vsc.cmd_params_len; in nfa_dm_act_send_vsc()
862 NFC_SendVsCommand(p_data->send_vsc.oid, p_cmd, p_data->send_vsc.p_cback); in nfa_dm_act_send_vsc()
881 NFC_HDR* p_cmd = (NFC_HDR*)p_data; in nfa_dm_act_send_raw_vs() local
883 p_cmd->offset = sizeof(tNFA_DM_API_SEND_VSC) - NFC_HDR_SIZE; in nfa_dm_act_send_raw_vs()
884 p_cmd->len = p_data->send_vsc.cmd_params_len; in nfa_dm_act_send_raw_vs()
885 NFC_SendRawVsCommand(p_cmd, p_data->send_vsc.p_cback); in nfa_dm_act_send_raw_vs()
/system/bt/stack/sdp/
Dsdp_discovery.cc121 BT_HDR* p_cmd = (BT_HDR*)osi_malloc(SDP_DATA_BUF_SIZE); in sdp_snd_service_search_req() local
125 p_cmd->offset = L2CAP_MIN_OFFSET; in sdp_snd_service_search_req()
126 p = p_start = (uint8_t*)(p_cmd + 1) + L2CAP_MIN_OFFSET; in sdp_snd_service_search_req()
165 p_cmd->len = (uint16_t)(p - p_start); in sdp_snd_service_search_req()
167 L2CA_DataWrite(p_ccb->connection_id, p_cmd); in sdp_snd_service_search_req()
/system/bt/stack/include/
Davrc_api.h672 extern tAVRC_STS AVRC_BldCommand(tAVRC_COMMAND* p_cmd, BT_HDR** pp_pkt);