Home
last modified time | relevance | path

Searched refs:pp (Results 1 – 25 of 30) sorted by relevance

12

/system/bt/stack/hcic/
Dhcicmds.cc488 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_inquiry() local
493 UINT16_TO_STREAM(pp, HCI_INQUIRY); in btsnd_hcic_inquiry()
494 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_INQUIRY); in btsnd_hcic_inquiry()
496 LAP_TO_STREAM(pp, inq_lap); in btsnd_hcic_inquiry()
497 UINT8_TO_STREAM(pp, duration); in btsnd_hcic_inquiry()
498 UINT8_TO_STREAM(pp, response_cnt); in btsnd_hcic_inquiry()
505 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_inq_cancel() local
509 UINT16_TO_STREAM(pp, HCI_INQUIRY_CANCEL); in btsnd_hcic_inq_cancel()
510 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_INQ_CANCEL); in btsnd_hcic_inq_cancel()
519 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_per_inq_mode() local
[all …]
Dhciblecmds.cc111 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_local_used_feat() local
116 UINT16_TO_STREAM(pp, HCI_BLE_WRITE_LOCAL_SPT_FEAT); in btsnd_hcic_ble_set_local_used_feat()
117 ARRAY_TO_STREAM(pp, feat_set, HCIC_PARAM_SIZE_SET_USED_FEAT_CMD); in btsnd_hcic_ble_set_local_used_feat()
124 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_random_addr() local
129 UINT16_TO_STREAM(pp, HCI_BLE_WRITE_RANDOM_ADDR); in btsnd_hcic_ble_set_random_addr()
130 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_WRITE_RANDOM_ADDR_CMD); in btsnd_hcic_ble_set_random_addr()
132 BDADDR_TO_STREAM(pp, random_bda); in btsnd_hcic_ble_set_random_addr()
144 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_write_adv_params() local
149 UINT16_TO_STREAM(pp, HCI_BLE_WRITE_ADV_PARAMS); in btsnd_hcic_ble_write_adv_params()
150 UINT8_TO_STREAM(pp, HCIC_PARAM_SIZE_BLE_WRITE_ADV_PARAMS); in btsnd_hcic_ble_write_adv_params()
[all …]
/system/nfc/src/nfc/nci/
Dnci_hmsgs.cc44 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 …]
Dnci_hrcv.cc55 uint8_t *pp, len, op_code; in nci_proc_core_rsp() local
61 pp = p + 1; in nci_proc_core_rsp()
62 NCI_MSG_PRS_HDR1(pp, op_code); in nci_proc_core_rsp()
65 len = *pp++; in nci_proc_core_rsp()
70 nfc_ncif_proc_reset_rsp(pp, false); in nci_proc_core_rsp()
83 nfc_ncif_set_config_status(pp, len); in nci_proc_core_rsp()
91 nfc_ncif_report_conn_close_evt(*p_old, *pp); in nci_proc_core_rsp()
94 nfc_ncif_event_status(NFC_SET_POWER_SUB_STATE_REVT, *pp); in nci_proc_core_rsp()
115 uint8_t *pp, len, op_code; in nci_proc_core_ntf() local
121 pp = p + 1; in nci_proc_core_ntf()
[all …]
/system/bt/stack/btm/
Dble_advertiser_hci_interface.cc86 uint8_t* pp = ret_params; in parameters_response_parser() local
87 STREAM_TO_UINT8(status, pp); in parameters_response_parser()
88 STREAM_TO_INT8(tx_power, pp); in parameters_response_parser()
130 uint8_t* pp = param; in SetParameters() local
131 UINT8_TO_STREAM(pp, BTM_BLE_MULTI_ADV_SET_PARAM); in SetParameters()
132 UINT16_TO_STREAM(pp, adv_int_min); in SetParameters()
133 UINT16_TO_STREAM(pp, adv_int_max); in SetParameters()
136 UINT8_TO_STREAM(pp, 0x00); // ADV_IND in SetParameters()
138 UINT8_TO_STREAM(pp, 0x02); // ADV_SCAN_IND in SetParameters()
140 UINT8_TO_STREAM(pp, 0x03); // ADV_NONCONN_IND in SetParameters()
[all …]
Dbtm_ble_batchscan.cc245 uint8_t* pp = param; in btm_ble_read_batchscan_reports() local
246 UINT8_TO_STREAM(pp, BTM_BLE_BATCH_SCAN_READ_RESULTS); in btm_ble_read_batchscan_reports()
247 UINT8_TO_STREAM(pp, scan_mode); in btm_ble_read_batchscan_reports()
319 uint8_t* pp = param; in btm_ble_set_storage_config() local
320 UINT8_TO_STREAM(pp, BTM_BLE_BATCH_SCAN_SET_STORAGE_PARAM); in btm_ble_set_storage_config()
321 UINT8_TO_STREAM(pp, batch_scan_full_max); in btm_ble_set_storage_config()
322 UINT8_TO_STREAM(pp, batch_scan_trunc_max); in btm_ble_set_storage_config()
323 UINT8_TO_STREAM(pp, batch_scan_notify_threshold); in btm_ble_set_storage_config()
Dbtm_ble.cc706 uint8_t* pp = data; in read_phy_cb() local
707 STREAM_TO_UINT8(status, pp); in read_phy_cb()
708 STREAM_TO_UINT16(handle, pp); in read_phy_cb()
710 STREAM_TO_UINT8(tx_phy, pp); in read_phy_cb()
711 STREAM_TO_UINT8(rx_phy, pp); in read_phy_cb()
758 uint8_t* pp = data; in BTM_BleReadPhy() local
759 UINT16_TO_STREAM(pp, handle); in BTM_BleReadPhy()
803 uint8_t* pp = data; in BTM_BleSetPhy() local
804 UINT16_TO_STREAM(pp, handle); in BTM_BleSetPhy()
805 UINT8_TO_STREAM(pp, all_phys); in BTM_BleSetPhy()
[all …]
Dble_scanner_hci_interface.cc50 uint8_t* pp = data; in status_handle_callback() local
51 STREAM_TO_UINT8(status, pp); in status_handle_callback()
56 STREAM_TO_UINT16(handle, pp); in status_handle_callback()
/system/nfc/src/nfc/ndef/
Dndef_utils.cc912 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/
Dnfa_hci_utils.cc53 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 …]
Dnfa_hci_act.cc403 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 …]
Dnfa_hci_api.cc826 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/
Dnfc_vs.cc128 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()
Dnfc_ncif.cc147 uint8_t* pp; in nfc_ncif_send_data() local
211 pp = (uint8_t*)(p + 1) + p->offset; in nfc_ncif_send_data()
213 memcpy(pp, ps, ulen); in nfc_ncif_send_data()
224 pp = (uint8_t*)(p + 1) + p->offset; in nfc_ncif_send_data()
226 NCI_DATA_PBLD_HDR(pp, pbf, hdr0, ulen); in nfc_ncif_send_data()
990 uint8_t *pp, len_act; in nfc_ncif_proc_activate() local
1038 pp = p; in nfc_ncif_proc_activate()
1044 STREAM_TO_ARRAY(p_intf->intf_param.frame.param, pp, in nfc_ncif_proc_activate()
1075 pp = &p_pa_iso->ats_res[NCI_ATS_T0_INDEX]; in nfc_ncif_proc_activate()
1077 pp++; /* T0 */ in nfc_ncif_proc_activate()
[all …]
Dnfc_main.cc1000 uint8_t param_tlvs[4], *pp; in NFC_ConnCreate() local
1005 pp = param_tlvs; in NFC_ConnCreate()
1008 UINT8_TO_STREAM(pp, NCI_CON_CREATE_TAG_NFCEE_VAL); in NFC_ConnCreate()
1009 UINT8_TO_STREAM(pp, 2); in NFC_ConnCreate()
1010 UINT8_TO_STREAM(pp, id); in NFC_ConnCreate()
1011 UINT8_TO_STREAM(pp, protocol); in NFC_ConnCreate()
1015 UINT8_TO_STREAM(pp, NCI_CON_CREATE_TAG_RF_DISC_ID); in NFC_ConnCreate()
1016 UINT8_TO_STREAM(pp, 1); in NFC_ConnCreate()
1017 UINT8_TO_STREAM(pp, id); in NFC_ConnCreate()
/system/bt/stack/srvc/
Dsrvc_dis.cc118 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/
Dget_options.cc73 char* pp = optarg; in ParseValue() local
77 string_list.push_back(std::string(pp)); in ParseValue()
78 pp = p + 1; in ParseValue()
82 if (pp != p) string_list.push_back(std::string(pp)); in ParseValue()
/system/bt/gd/crypto_toolbox/
Daes_cmac.cc144 uint8_t* pp = p.data(); in cmac_generate_subkey() local
147 if ((pp[OCTET16_LEN - 1] & 0x80) != 0) { in cmac_generate_subkey()
149 leftshift_onebit(pp, k1.data()); in cmac_generate_subkey()
152 leftshift_onebit(pp, k1.data()); in cmac_generate_subkey()
/system/bt/stack/gap/
Dgap_ble.cc324 uint8_t* pp; in client_cmpl_cback() local
341 pp = p_data->att_value.value; in client_cmpl_cback()
345 STREAM_TO_UINT16(min, pp); in client_cmpl_cback()
346 STREAM_TO_UINT16(max, pp); in client_cmpl_cback()
347 STREAM_TO_UINT16(latency, pp); in client_cmpl_cback()
348 STREAM_TO_UINT16(tout, pp); in client_cmpl_cback()
356 len = (uint16_t)strlen((char*)pp); in client_cmpl_cback()
358 cl_op_cmpl(*p_clcb, true, len, pp); in client_cmpl_cback()
362 cl_op_cmpl(*p_clcb, true, 1, pp); in client_cmpl_cback()
/system/bt/stack/crypto_toolbox/
Daes_cmac.cc155 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/
Dnfa_ee_act.cc66 static void add_route_tech_proto_tlv(uint8_t** pp, uint8_t tlv_type, in add_route_tech_proto_tlv() argument
69 *(*pp)++ = tlv_type; in add_route_tech_proto_tlv()
70 *(*pp)++ = 3; in add_route_tech_proto_tlv()
71 *(*pp)++ = nfcee_id; in add_route_tech_proto_tlv()
72 *(*pp)++ = pwr_cfg; in add_route_tech_proto_tlv()
73 *(*pp)++ = tech_proto; in add_route_tech_proto_tlv()
76 static void add_route_aid_tlv(uint8_t** pp, uint8_t* pa, uint8_t nfcee_id, in add_route_aid_tlv() argument
80 *(*pp)++ = tag; in add_route_aid_tlv()
81 *(*pp)++ = len + 2; in add_route_aid_tlv()
82 *(*pp)++ = nfcee_id; in add_route_aid_tlv()
[all …]
/system/bt/bta/hh/
Dbta_hh_le.cc499 uint8_t* pp = value; in bta_hh_le_save_report_ref() local
501 STREAM_TO_UINT8(p_rpt->rpt_id, pp); in bta_hh_le_save_report_ref()
502 STREAM_TO_UINT8(p_rpt->rpt_type, pp); in bta_hh_le_save_report_ref()
1209 uint8_t* pp = value; in read_hid_info_cb() local
1211 STREAM_TO_UINT16(p_dev_cb->dscp_info.version, pp); in read_hid_info_cb()
1212 STREAM_TO_UINT8(p_dev_cb->dscp_info.ctry_code, pp); in read_hid_info_cb()
1213 STREAM_TO_UINT8(p_dev_cb->dscp_info.flag, pp); in read_hid_info_cb()
1232 uint8_t* pp = value; in read_hid_report_map_cb() local
1233 STREAM_TO_ARRAY(p_srvc->rpt_map, pp, len); in read_hid_report_map_cb()
1255 uint8_t* pp = value; in read_ext_rpt_ref_desc_cb() local
[all …]
/system/bt/bta/vc/
Dvc.cc272 uint8_t* pp = value; in OnVolumeControlStateChanged() local
273 STREAM_TO_UINT8(device->volume, pp); in OnVolumeControlStateChanged()
274 STREAM_TO_UINT8(device->mute, pp); in OnVolumeControlStateChanged()
275 STREAM_TO_UINT8(device->change_counter, pp); in OnVolumeControlStateChanged()
/system/bt/stack/btu/
Dbtu_hcif.cc897 uint8_t* pp = (uint8_t*)(p + 1); in btu_hcif_send_cmd_with_cb() local
902 UINT16_TO_STREAM(pp, opcode); in btu_hcif_send_cmd_with_cb()
903 UINT8_TO_STREAM(pp, params_len); in btu_hcif_send_cmd_with_cb()
905 memcpy(pp, params, params_len); in btu_hcif_send_cmd_with_cb()
908 btu_hcif_log_command_metrics(opcode, pp, in btu_hcif_send_cmd_with_cb()
1749 uint8_t* pp; in btu_ble_proc_ltk_req() local
1752 pp = p + 8; in btu_ble_proc_ltk_req()
1753 STREAM_TO_UINT16(ediv, pp); in btu_ble_proc_ltk_req()
/system/bt/stack/smp/
Dsmp_keys.cc92 uint8_t* pp = rand; in smp_proc_passkey() local
95 STREAM_TO_UINT32(passkey, pp); in smp_proc_passkey()
465 uint8_t* pp = p.data(); in smp_process_ediv() local
469 STREAM_TO_UINT16(y, pp); in smp_process_ediv()

12