/system/bt/stack/hcic/ |
D | hcicmds.cc | 40 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_inquiry() local 45 UINT16_TO_STREAM(pp, HCI_INQUIRY); in btsnd_hcic_inquiry() 46 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_INQUIRY); in btsnd_hcic_inquiry() 48 LAP_TO_STREAM(pp, inq_lap); in btsnd_hcic_inquiry() 49 UINT8_TO_STREAM(pp, duration); in btsnd_hcic_inquiry() 50 UINT8_TO_STREAM(pp, response_cnt); in btsnd_hcic_inquiry() 57 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_inq_cancel() local 61 UINT16_TO_STREAM(pp, HCI_INQUIRY_CANCEL); in btsnd_hcic_inq_cancel() 62 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_INQ_CANCEL); in btsnd_hcic_inq_cancel() 71 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_per_inq_mode() local [all …]
|
D | hciblecmds.cc | 38 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_local_used_feat() local 43 UINT16_TO_STREAM(pp, HCI_BLE_WRITE_LOCAL_SPT_FEAT); in btsnd_hcic_ble_set_local_used_feat() 44 ARRAY_TO_STREAM(pp, feat_set, HCIC_PARAM_SIZE_SET_USED_FEAT_CMD); in btsnd_hcic_ble_set_local_used_feat() 51 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_random_addr() local 56 UINT16_TO_STREAM(pp, HCI_BLE_WRITE_RANDOM_ADDR); in btsnd_hcic_ble_set_random_addr() 57 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_RANDOM_ADDR_CMD); in btsnd_hcic_ble_set_random_addr() 59 BDADDR_TO_STREAM(pp, random_bda); in btsnd_hcic_ble_set_random_addr() 71 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_write_adv_params() local 76 UINT16_TO_STREAM(pp, HCI_BLE_WRITE_ADV_PARAMS); in btsnd_hcic_ble_write_adv_params() 77 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_WRITE_ADV_PARAMS); in btsnd_hcic_ble_write_adv_params() [all …]
|
/system/nfc/src/nfc/nci/ |
D | nci_hmsgs.cc | 44 uint8_t* pp; in nci_snd_core_reset() local 53 pp = (uint8_t*)(p + 1) + p->offset; in nci_snd_core_reset() 55 NCI_MSG_BLD_HDR0(pp, NCI_MT_CMD, NCI_GID_CORE); in nci_snd_core_reset() 56 NCI_MSG_BLD_HDR1(pp, NCI_MSG_CORE_RESET); in nci_snd_core_reset() 57 UINT8_TO_STREAM(pp, NCI_CORE_PARAM_SIZE_RESET); in nci_snd_core_reset() 58 UINT8_TO_STREAM(pp, reset_type); in nci_snd_core_reset() 75 uint8_t* pp; in nci_snd_core_init() local 84 pp = (uint8_t*)(p + 1) + p->offset; in nci_snd_core_init() 86 NCI_MSG_BLD_HDR0(pp, NCI_MT_CMD, NCI_GID_CORE); in nci_snd_core_init() 87 NCI_MSG_BLD_HDR1(pp, NCI_MSG_CORE_INIT); in nci_snd_core_init() [all …]
|
D | nci_hrcv.cc | 54 uint8_t *pp, len, op_code; in nci_proc_core_rsp() local 60 pp = p + 1; in nci_proc_core_rsp() 61 NCI_MSG_PRS_HDR1(pp, op_code); in nci_proc_core_rsp() 64 len = *pp++; in nci_proc_core_rsp() 69 nfc_ncif_proc_reset_rsp(pp, false); in nci_proc_core_rsp() 82 nfc_ncif_set_config_status(pp, len); in nci_proc_core_rsp() 90 nfc_ncif_report_conn_close_evt(*p_old, *pp); in nci_proc_core_rsp() 93 nfc_ncif_event_status(NFC_SET_POWER_SUB_STATE_REVT, *pp); in nci_proc_core_rsp() 114 uint8_t *pp, len, op_code; in nci_proc_core_ntf() local 120 pp = p + 1; in nci_proc_core_ntf() [all …]
|
/system/bt/stack/btm/ |
D | ble_advertiser_hci_interface.cc | 85 uint8_t* pp = ret_params; in parameters_response_parser() local 86 STREAM_TO_UINT8(status, pp); in parameters_response_parser() 87 STREAM_TO_INT8(tx_power, pp); in parameters_response_parser() 129 uint8_t* pp = param; in SetParameters() local 130 UINT8_TO_STREAM(pp, BTM_BLE_MULTI_ADV_SET_PARAM); in SetParameters() 131 UINT16_TO_STREAM(pp, adv_int_min); in SetParameters() 132 UINT16_TO_STREAM(pp, adv_int_max); in SetParameters() 135 UINT8_TO_STREAM(pp, 0x00); // ADV_IND in SetParameters() 137 UINT8_TO_STREAM(pp, 0x02); // ADV_SCAN_IND in SetParameters() 139 UINT8_TO_STREAM(pp, 0x03); // ADV_NONCONN_IND in SetParameters() [all …]
|
D | btm_ble_batchscan.cc | 241 uint8_t* pp = param; in btm_ble_read_batchscan_reports() local 242 UINT8_TO_STREAM(pp, BTM_BLE_BATCH_SCAN_READ_RESULTS); in btm_ble_read_batchscan_reports() 243 UINT8_TO_STREAM(pp, scan_mode); in btm_ble_read_batchscan_reports() 310 uint8_t* pp = param; in btm_ble_set_storage_config() local 311 UINT8_TO_STREAM(pp, BTM_BLE_BATCH_SCAN_SET_STORAGE_PARAM); in btm_ble_set_storage_config() 312 UINT8_TO_STREAM(pp, batch_scan_full_max); in btm_ble_set_storage_config() 313 UINT8_TO_STREAM(pp, batch_scan_trunc_max); in btm_ble_set_storage_config() 314 UINT8_TO_STREAM(pp, batch_scan_notify_threshold); in btm_ble_set_storage_config()
|
D | btm_ble.cc | 836 uint8_t* pp = data; in read_phy_cb() local 837 STREAM_TO_UINT8(status, pp); in read_phy_cb() 838 STREAM_TO_UINT16(handle, pp); in read_phy_cb() 840 STREAM_TO_UINT8(tx_phy, pp); in read_phy_cb() 841 STREAM_TO_UINT8(rx_phy, pp); in read_phy_cb() 890 uint8_t* pp = data; in BTM_BleReadPhy() local 891 UINT16_TO_STREAM(pp, handle); in BTM_BleReadPhy() 957 uint8_t* pp = data; in BTM_BleSetPhy() local 958 UINT16_TO_STREAM(pp, handle); in BTM_BleSetPhy() 959 UINT8_TO_STREAM(pp, all_phys); in BTM_BleSetPhy() [all …]
|
/system/nfc/src/nfc/ndef/ |
D | ndef_utils.cc | 912 uint8_t *p_prev_pl, *pp; in NDEF_MsgAppendPayload() local 917 pp = p_rec + 1; in NDEF_MsgAppendPayload() 920 type_len = *pp++; in NDEF_MsgAppendPayload() 924 prev_paylen = *pp++; in NDEF_MsgAppendPayload() 926 BE_STREAM_TO_UINT32(prev_paylen, pp); in NDEF_MsgAppendPayload() 930 id_len = *pp++; in NDEF_MsgAppendPayload() 934 p_prev_pl = pp + type_len + id_len; in NDEF_MsgAppendPayload() 949 pp = p_rec + 2; in NDEF_MsgAppendPayload() 953 shiftdown(pp + 1, (uint32_t)(*p_cur_size - (pp - p_msg) - 1), 3); in NDEF_MsgAppendPayload() 960 UINT32_TO_BE_STREAM(pp, new_paylen); in NDEF_MsgAppendPayload() [all …]
|
/system/nfc/src/nfa/hci/ |
D | nfa_hci_utils.cc | 53 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in nfa_hciu_find_pipe_by_pid() local 57 for (; xx < NFA_HCI_MAX_PIPE_CB; xx++, pp++) { in nfa_hciu_find_pipe_by_pid() 58 if (pp->pipe_id == pipe_id) return (pp); in nfa_hciu_find_pipe_by_pid() 160 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in nfa_hciu_count_open_pipes_on_gate() local 165 for (; xx < NFA_HCI_MAX_PIPE_CB; xx++, pp++) { in nfa_hciu_count_open_pipes_on_gate() 168 (pp->pipe_state == NFA_HCI_PIPE_OPENED)) in nfa_hciu_count_open_pipes_on_gate() 205 tNFA_HCI_DYN_PIPE* pp; in nfa_hciu_get_pipe_owner() local 208 pp = nfa_hciu_find_pipe_by_pid(pipe_id); in nfa_hciu_get_pipe_owner() 209 if (pp == nullptr) return (NFA_HANDLE_INVALID); in nfa_hciu_get_pipe_owner() 211 pg = nfa_hciu_find_gate_by_gid(pp->local_gate); in nfa_hciu_get_pipe_owner() [all …]
|
D | nfa_hci_act.cc | 403 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in nfa_hci_api_get_gate_pipe_list() local 412 pp = nfa_hci_cb.cfg.dyn_pipes; in nfa_hci_api_get_gate_pipe_list() 415 for (yy = 0; yy < NFA_HCI_MAX_PIPE_CB; yy++, pp++) { in nfa_hci_api_get_gate_pipe_list() 416 if (pp->local_gate == pg->gate_id) in nfa_hci_api_get_gate_pipe_list() 418 *(tNFA_HCI_PIPE_INFO*)pp; in nfa_hci_api_get_gate_pipe_list() 425 for (xx = 0, pp = nfa_hci_cb.cfg.dyn_pipes; xx < NFA_HCI_MAX_PIPE_CB; in nfa_hci_api_get_gate_pipe_list() 426 xx++, pp++) { in nfa_hci_api_get_gate_pipe_list() 427 if (pp->pipe_id != 0 && pp->local_gate == NFA_HCI_CONNECTIVITY_GATE) { in nfa_hci_api_get_gate_pipe_list() 430 pp, sizeof(tNFA_HCI_PIPE_INFO)); in nfa_hci_api_get_gate_pipe_list() 431 } else if (pp->pipe_id != 0 && pp->local_gate == NFA_HCI_LOOP_BACK_GATE) { in nfa_hci_api_get_gate_pipe_list() [all …]
|
D | nfa_hci_api.cc | 826 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in NFA_HciDebug() local 855 for (xx = 0; xx < NFA_HCI_MAX_PIPE_CB; xx++, pp++) { in NFA_HciDebug() 856 if (pp->pipe_id != 0) { in NFA_HciDebug() 861 xx, pp->pipe_id, pp->pipe_state, pp->local_gate, pp->dest_gate, in NFA_HciDebug() 862 pp->dest_host); in NFA_HciDebug()
|
/system/nfc/src/nfc/nfc/ |
D | nfc_vs.cc | 128 uint8_t* pp; in NFC_SendVsCommand() local 154 pp = (uint8_t*)(p_data + 1) + p_data->offset; in NFC_SendVsCommand() 155 NCI_MSG_BLD_HDR0(pp, NCI_MT_CMD, NCI_GID_PROP); in NFC_SendVsCommand() 156 NCI_MSG_BLD_HDR1(pp, oid); in NFC_SendVsCommand() 157 *pp = (uint8_t)p_data->len; in NFC_SendVsCommand()
|
D | nfc_ncif.cc | 142 uint8_t* pp; in nfc_ncif_send_data() local 206 pp = (uint8_t*)(p + 1) + p->offset; in nfc_ncif_send_data() 208 memcpy(pp, ps, ulen); in nfc_ncif_send_data() 219 pp = (uint8_t*)(p + 1) + p->offset; in nfc_ncif_send_data() 221 NCI_DATA_PBLD_HDR(pp, pbf, hdr0, ulen); in nfc_ncif_send_data() 881 uint8_t *pp, len_act; in nfc_ncif_proc_activate() local 913 pp = p; in nfc_ncif_proc_activate() 914 STREAM_TO_ARRAY(p_intf->intf_param.frame.param, pp, in nfc_ncif_proc_activate() 931 pp = &p_pa_iso->ats_res[NCI_ATS_T0_INDEX]; in nfc_ncif_proc_activate() 933 pp++; /* T0 */ in nfc_ncif_proc_activate() [all …]
|
D | nfc_main.cc | 954 uint8_t param_tlvs[4], *pp; in NFC_ConnCreate() local 959 pp = param_tlvs; in NFC_ConnCreate() 962 UINT8_TO_STREAM(pp, NCI_CON_CREATE_TAG_NFCEE_VAL); in NFC_ConnCreate() 963 UINT8_TO_STREAM(pp, 2); in NFC_ConnCreate() 964 UINT8_TO_STREAM(pp, id); in NFC_ConnCreate() 965 UINT8_TO_STREAM(pp, protocol); in NFC_ConnCreate() 969 UINT8_TO_STREAM(pp, NCI_CON_CREATE_TAG_RF_DISC_ID); in NFC_ConnCreate() 970 UINT8_TO_STREAM(pp, 1); in NFC_ConnCreate() 971 UINT8_TO_STREAM(pp, id); in NFC_ConnCreate()
|
/system/bt/stack/srvc/ |
D | srvc_dis.cc | 118 uint8_t *p = p_value->value, i, *pp; in dis_read_attr_value() local 141 pp = dis_cb.dis_value in dis_read_attr_value() 143 if (pp != NULL) { in dis_read_attr_value() 144 if (strlen((char*)pp) > GATT_MAX_ATTR_LEN) in dis_read_attr_value() 147 p_value->len = (uint16_t)strlen((char*)pp); in dis_read_attr_value() 156 pp += offset; in dis_read_attr_value() 157 ARRAY_TO_STREAM(p, pp, p_value->len); in dis_read_attr_value() 259 uint8_t *pp = NULL, *p_str; in dis_c_cmpl_cback() local 269 pp = p_data->att_value.value; in dis_c_cmpl_cback() 277 STREAM_TO_UINT64(p_clcb->dis_value.system_id, pp); in dis_c_cmpl_cback() [all …]
|
/system/bt/test/headless/ |
D | get_options.cc | 59 char* pp = optarg; in ParseValue() local 63 string_list.push_back(std::string(pp)); in ParseValue() 64 pp = p + 1; in ParseValue() 68 if (pp != p) string_list.push_back(std::string(pp)); in ParseValue()
|
/system/bt/gd/crypto_toolbox/ |
D | aes_cmac.cc | 142 uint8_t* pp = p.data(); in cmac_generate_subkey() local 145 if ((pp[OCTET16_LEN - 1] & 0x80) != 0) { in cmac_generate_subkey() 147 leftshift_onebit(pp, k1.data()); in cmac_generate_subkey() 150 leftshift_onebit(pp, k1.data()); in cmac_generate_subkey()
|
/system/bt/stack/gap/ |
D | gap_ble.cc | 313 uint8_t* pp; in client_cmpl_cback() local 330 pp = p_data->att_value.value; in client_cmpl_cback() 334 STREAM_TO_UINT16(min, pp); in client_cmpl_cback() 335 STREAM_TO_UINT16(max, pp); in client_cmpl_cback() 336 STREAM_TO_UINT16(latency, pp); in client_cmpl_cback() 337 STREAM_TO_UINT16(tout, pp); in client_cmpl_cback() 345 len = (uint16_t)strlen((char*)pp); in client_cmpl_cback() 347 cl_op_cmpl(*p_clcb, true, len, pp); in client_cmpl_cback() 351 cl_op_cmpl(*p_clcb, true, 1, pp); in client_cmpl_cback()
|
/system/bt/stack/crypto_toolbox/ |
D | aes_cmac.cc | 155 uint8_t* pp = p.data(); in cmac_generate_subkey() local 158 if ((pp[OCTET16_LEN - 1] & 0x80) != 0) { in cmac_generate_subkey() 160 leftshift_onebit(pp, k1.data()); in cmac_generate_subkey() 163 leftshift_onebit(pp, k1.data()); in cmac_generate_subkey()
|
/system/nfc/src/nfa/ee/ |
D | nfa_ee_act.cc | 65 static void add_route_tech_proto_tlv(uint8_t** pp, uint8_t tlv_type, in add_route_tech_proto_tlv() argument 68 *(*pp)++ = tlv_type; in add_route_tech_proto_tlv() 69 *(*pp)++ = 3; in add_route_tech_proto_tlv() 70 *(*pp)++ = nfcee_id; in add_route_tech_proto_tlv() 71 *(*pp)++ = pwr_cfg; in add_route_tech_proto_tlv() 72 *(*pp)++ = tech_proto; in add_route_tech_proto_tlv() 75 static void add_route_aid_tlv(uint8_t** pp, uint8_t* pa, uint8_t nfcee_id, in add_route_aid_tlv() argument 79 *(*pp)++ = tag; in add_route_aid_tlv() 80 *(*pp)++ = len + 2; in add_route_aid_tlv() 81 *(*pp)++ = nfcee_id; in add_route_aid_tlv() [all …]
|
/system/bt/bta/hh/ |
D | bta_hh_le.cc | 518 uint8_t* pp = value; in bta_hh_le_save_report_ref() local 520 STREAM_TO_UINT8(p_rpt->rpt_id, pp); in bta_hh_le_save_report_ref() 521 STREAM_TO_UINT8(p_rpt->rpt_type, pp); in bta_hh_le_save_report_ref() 1245 uint8_t* pp = value; in read_hid_info_cb() local 1247 STREAM_TO_UINT16(p_dev_cb->dscp_info.version, pp); in read_hid_info_cb() 1248 STREAM_TO_UINT8(p_dev_cb->dscp_info.ctry_code, pp); in read_hid_info_cb() 1249 STREAM_TO_UINT8(p_dev_cb->dscp_info.flag, pp); in read_hid_info_cb() 1268 uint8_t* pp = value; in read_hid_report_map_cb() local 1269 STREAM_TO_ARRAY(p_srvc->rpt_map, pp, len); in read_hid_report_map_cb() 1291 uint8_t* pp = value; in read_ext_rpt_ref_desc_cb() local [all …]
|
/system/bt/stack/btu/ |
D | btu_hcif.cc | 947 uint8_t* pp = (uint8_t*)(p + 1); in btu_hcif_send_cmd_with_cb() local 952 UINT16_TO_STREAM(pp, opcode); in btu_hcif_send_cmd_with_cb() 953 UINT8_TO_STREAM(pp, params_len); in btu_hcif_send_cmd_with_cb() 955 memcpy(pp, params, params_len); in btu_hcif_send_cmd_with_cb() 958 btu_hcif_log_command_metrics(opcode, pp, in btu_hcif_send_cmd_with_cb() 2210 uint8_t* pp; in btu_ble_proc_ltk_req() local 2213 pp = p + 8; in btu_ble_proc_ltk_req() 2214 STREAM_TO_UINT16(ediv, pp); in btu_ble_proc_ltk_req()
|
/system/bt/stack/smp/ |
D | smp_keys.cc | 114 uint8_t* pp = rand; in smp_proc_passkey() local 117 STREAM_TO_UINT32(passkey, pp); in smp_proc_passkey() 490 uint8_t* pp = p.data(); in smp_process_ediv() local 494 STREAM_TO_UINT16(y, pp); in smp_process_ediv()
|
/system/bt/stack/gatt/ |
D | att_protocol.cc | 275 uint8_t *p, *pp, pair_len, *p_pair_len; in attp_build_value_cmd() local 279 p = pp = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_value_cmd()
|
D | gatt_attr.cc | 535 uint8_t* pp = p_data->att_value.value; in gatt_cl_op_cmpl_cback() local 545 STREAM_TO_UINT8(supported_feat_mask, pp); in gatt_cl_op_cmpl_cback()
|