/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 | 239 uint8_t* pp = param; in btm_ble_read_batchscan_reports() local 240 UINT8_TO_STREAM(pp, BTM_BLE_BATCH_SCAN_READ_RESULTS); in btm_ble_read_batchscan_reports() 241 UINT8_TO_STREAM(pp, scan_mode); in btm_ble_read_batchscan_reports() 308 uint8_t* pp = param; in btm_ble_set_storage_config() local 309 UINT8_TO_STREAM(pp, BTM_BLE_BATCH_SCAN_SET_STORAGE_PARAM); in btm_ble_set_storage_config() 310 UINT8_TO_STREAM(pp, batch_scan_full_max); in btm_ble_set_storage_config() 311 UINT8_TO_STREAM(pp, batch_scan_trunc_max); in btm_ble_set_storage_config() 312 UINT8_TO_STREAM(pp, batch_scan_notify_threshold); in btm_ble_set_storage_config()
|
D | btm_ble.cc | 795 uint8_t* pp = data; in read_phy_cb() local 796 STREAM_TO_UINT8(status, pp); in read_phy_cb() 797 STREAM_TO_UINT16(handle, pp); in read_phy_cb() 799 STREAM_TO_UINT8(tx_phy, pp); in read_phy_cb() 800 STREAM_TO_UINT8(rx_phy, pp); in read_phy_cb() 846 uint8_t* pp = data; in BTM_BleReadPhy() local 847 UINT16_TO_STREAM(pp, handle); in BTM_BleReadPhy() 882 uint8_t* pp = data; in BTM_BleSetDefaultPhy() local 883 UINT8_TO_STREAM(pp, all_phys); in BTM_BleSetDefaultPhy() 884 UINT8_TO_STREAM(pp, tx_phys); in BTM_BleSetDefaultPhy() [all …]
|
D | btm_ble_addr.cc | 110 uint8_t* pp; in btm_gen_non_resolve_paddr_cmpl() local 116 pp = rand; in btm_gen_non_resolve_paddr_cmpl() 117 STREAM_TO_BDADDR(static_random, pp); in btm_gen_non_resolve_paddr_cmpl()
|
/system/nfc/src/nfc/ndef/ |
D | ndef_utils.cc | 908 uint8_t *p_prev_pl, *pp; in NDEF_MsgAppendPayload() local 913 pp = p_rec + 1; in NDEF_MsgAppendPayload() 916 type_len = *pp++; in NDEF_MsgAppendPayload() 920 prev_paylen = *pp++; in NDEF_MsgAppendPayload() 922 BE_STREAM_TO_UINT32(prev_paylen, pp); in NDEF_MsgAppendPayload() 926 id_len = *pp++; in NDEF_MsgAppendPayload() 930 p_prev_pl = pp + type_len + id_len; in NDEF_MsgAppendPayload() 945 pp = p_rec + 2; in NDEF_MsgAppendPayload() 949 shiftdown(pp + 1, (uint32_t)(*p_cur_size - (pp - p_msg) - 1), 3); in NDEF_MsgAppendPayload() 956 UINT32_TO_BE_STREAM(pp, new_paylen); in NDEF_MsgAppendPayload() [all …]
|
/system/nfc/src/nfa/hci/ |
D | nfa_hci_utils.cc | 52 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in nfa_hciu_find_pipe_by_pid() local 56 for (; xx < NFA_HCI_MAX_PIPE_CB; xx++, pp++) { in nfa_hciu_find_pipe_by_pid() 57 if (pp->pipe_id == pipe_id) return (pp); in nfa_hciu_find_pipe_by_pid() 159 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in nfa_hciu_count_open_pipes_on_gate() local 164 for (; xx < NFA_HCI_MAX_PIPE_CB; xx++, pp++) { in nfa_hciu_count_open_pipes_on_gate() 167 (pp->pipe_state == NFA_HCI_PIPE_OPENED)) in nfa_hciu_count_open_pipes_on_gate() 204 tNFA_HCI_DYN_PIPE* pp; in nfa_hciu_get_pipe_owner() local 207 pp = nfa_hciu_find_pipe_by_pid(pipe_id); in nfa_hciu_get_pipe_owner() 208 if (pp == nullptr) return (NFA_HANDLE_INVALID); in nfa_hciu_get_pipe_owner() 210 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 | 143 uint8_t* pp; in nfc_ncif_send_data() local 207 pp = (uint8_t*)(p + 1) + p->offset; in nfc_ncif_send_data() 209 memcpy(pp, ps, ulen); in nfc_ncif_send_data() 220 pp = (uint8_t*)(p + 1) + p->offset; in nfc_ncif_send_data() 222 NCI_DATA_PBLD_HDR(pp, pbf, hdr0, ulen); in nfc_ncif_send_data() 373 uint8_t mt, pbf, gid, *p, *pp; in nfc_ncif_process_event() local 380 pp = p; in nfc_ncif_process_event() 381 NCI_MSG_PRS_HDR0(pp, mt, pbf, gid); in nfc_ncif_process_event() 382 oid = ((*pp) & NCI_OID_MASK); in nfc_ncif_process_event() 401 oid = ((*pp) & NCI_OID_MASK); in nfc_ncif_process_event() [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/netd/resolv/ |
D | res_init.cpp | 132 char *cp, **pp; in res_vinit() local 175 pp = statp->dnsrch; in res_vinit() 176 *pp++ = statp->defdname; in res_vinit() 177 *pp = NULL; in res_vinit() 183 while (pp < statp->dnsrch + MAXDFLSRCH) { in res_vinit() 186 *pp++ = cp; in res_vinit() 189 *pp = NULL; in res_vinit() 191 for (pp = statp->dnsrch; *pp; pp++) LOG(DEBUG) << "\t" << *pp; in res_vinit()
|
/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 | 519 uint8_t* pp = value; in bta_hh_le_save_report_ref() local 521 STREAM_TO_UINT8(p_rpt->rpt_id, pp); in bta_hh_le_save_report_ref() 522 STREAM_TO_UINT8(p_rpt->rpt_type, pp); in bta_hh_le_save_report_ref() 1248 uint8_t* pp = value; in read_hid_info_cb() local 1250 STREAM_TO_UINT16(p_dev_cb->dscp_info.version, pp); in read_hid_info_cb() 1251 STREAM_TO_UINT8(p_dev_cb->dscp_info.ctry_code, pp); in read_hid_info_cb() 1252 STREAM_TO_UINT8(p_dev_cb->dscp_info.flag, pp); in read_hid_info_cb() 1271 uint8_t* pp = value; in read_hid_report_map_cb() local 1272 STREAM_TO_ARRAY(p_srvc->rpt_map, pp, len); in read_hid_report_map_cb() 1294 uint8_t* pp = value; in read_ext_rpt_ref_desc_cb() local [all …]
|
/system/extras/perfprofd/ |
D | perfprofdcore.cc | 159 std::string pp = config.perf_path; in check_profiling_enabled() local 160 if (access(pp.c_str(), R_OK|X_OK) == -1) { in check_profiling_enabled() 161 LOG(WARNING) << "unable to access/execute " << pp; in check_profiling_enabled()
|
/system/bt/stack/btu/ |
D | btu_hcif.cc | 898 uint8_t* pp = (uint8_t*)(p + 1); in btu_hcif_send_cmd_with_cb() local 903 UINT16_TO_STREAM(pp, opcode); in btu_hcif_send_cmd_with_cb() 904 UINT8_TO_STREAM(pp, params_len); in btu_hcif_send_cmd_with_cb() 906 memcpy(pp, params, params_len); in btu_hcif_send_cmd_with_cb() 909 btu_hcif_log_command_metrics(opcode, pp, in btu_hcif_send_cmd_with_cb() 2148 uint8_t* pp; in btu_ble_proc_ltk_req() local 2151 pp = p + 8; in btu_ble_proc_ltk_req() 2152 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()
|