Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 261) sorted by relevance

1234567891011

/system/bt/stack/btu/
Dbtu_hcif.c53 extern void btm_ble_test_command_complete(UINT8 *p);
58 static void btu_hcif_inquiry_comp_evt (UINT8 *p);
59 static void btu_hcif_inquiry_result_evt (UINT8 *p);
60 static void btu_hcif_inquiry_rssi_result_evt (UINT8 *p);
61 static void btu_hcif_extended_inquiry_result_evt (UINT8 *p);
63 static void btu_hcif_connection_comp_evt (UINT8 *p);
64 static void btu_hcif_connection_request_evt (UINT8 *p);
65 static void btu_hcif_disconnection_comp_evt (UINT8 *p);
66 static void btu_hcif_authentication_comp_evt (UINT8 *p);
67 static void btu_hcif_rmt_name_request_comp_evt (UINT8 *p, UINT16 evt_len);
[all …]
/system/bt/stack/hcic/
Dhcicmds.c41 BT_HDR *p; in btsnd_hcic_inquiry() local
44 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_INQUIRY)) == NULL) in btsnd_hcic_inquiry()
47 pp = (UINT8 *)(p + 1); in btsnd_hcic_inquiry()
49 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_INQUIRY; in btsnd_hcic_inquiry()
50 p->offset = 0; in btsnd_hcic_inquiry()
59 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_inquiry()
65 BT_HDR *p; in btsnd_hcic_inq_cancel() local
68 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_INQ_CANCEL)) == NULL) in btsnd_hcic_inq_cancel()
71 pp = (UINT8 *)(p + 1); in btsnd_hcic_inq_cancel()
73 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_INQ_CANCEL; in btsnd_hcic_inq_cancel()
[all …]
Dhciblecmds.c40 BT_HDR *p; in btsnd_hcic_ble_set_local_used_feat() local
43 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_SET_USED_FEAT_CMD)) == NULL) in btsnd_hcic_ble_set_local_used_feat()
46 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_set_local_used_feat()
48 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SET_USED_FEAT_CMD; in btsnd_hcic_ble_set_local_used_feat()
49 p->offset = 0; in btsnd_hcic_ble_set_local_used_feat()
54 btu_hcif_send_cmd (LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_ble_set_local_used_feat()
60 BT_HDR *p; in btsnd_hcic_ble_set_random_addr() local
63 if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_WRITE_RANDOM_ADDR_CMD)) == NULL) in btsnd_hcic_ble_set_random_addr()
66 pp = (UINT8 *)(p + 1); in btsnd_hcic_ble_set_random_addr()
68 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_RANDOM_ADDR_CMD; in btsnd_hcic_ble_set_random_addr()
[all …]
/system/bt/stack/include/
Dbt_types.h230 #define HCI_GET_CMD_HDR_OPCODE(p) (UINT16)((*((UINT8 *)((p) + 1) + p->offset) + \ argument
231 (*((UINT8 *)((p) + 1) + p->offset + 1) << 8)))
232 #define HCI_GET_CMD_HDR_PARAM_LEN(p) (UINT8) (*((UINT8 *)((p) + 1) + p->offset + 2)) argument
234 #define HCI_GET_EVT_HDR_OPCODE(p) (UINT8)(*((UINT8 *)((p) + 1) + p->offset)) argument
235 #define HCI_GET_EVT_HDR_PARAM_LEN(p) (UINT8) (*((UINT8 *)((p) + 1) + p->offset + 1)) argument
241 #define UINT32_TO_STREAM(p, u32) {*(p)++ = (UINT8)(u32); *(p)++ = (UINT8)((u32) >> 8); *(p)++ = (UI… argument
242 #define UINT24_TO_STREAM(p, u24) {*(p)++ = (UINT8)(u24); *(p)++ = (UINT8)((u24) >> 8); *(p)++ = (UI… argument
243 #define UINT16_TO_STREAM(p, u16) {*(p)++ = (UINT8)(u16); *(p)++ = (UINT8)((u16) >> 8);} argument
244 #define UINT8_TO_STREAM(p, u8) {*(p)++ = (UINT8)(u8);} argument
245 #define INT8_TO_STREAM(p, u8) {*(p)++ = (INT8)(u8);} argument
[all …]
/system/bt/stack/avdt/
Davdt_defs.h145 #define AVDT_MSG_PRS_HDR(p, lbl, pkt, msg) \ argument
146 lbl = *(p) >> 4; \
147 pkt = (*(p) >> 2) & 0x03; \
148 msg = *(p)++ & 0x03;
150 #define AVDT_MSG_PRS_DISC(p, seid, in_use, type, tsep) \ argument
151 seid = *(p) >> 2; \
152 in_use = (*(p)++ >> 1) & 0x01; \
153 type = *(p) >> 4; \
154 tsep = (*(p)++ >> 3) & 0x01;
156 #define AVDT_MSG_PRS_SIG(p, sig) \ argument
[all …]
Davdt_msg.c55 typedef void (*tAVDT_MSG_BLD)(UINT8 **p, tAVDT_MSG *p_msg);
58 typedef UINT8 (*tAVDT_MSG_PRS)(tAVDT_MSG *p_msg, UINT8 *p, UINT16 len);
65 static void avdt_msg_bld_none(UINT8 **p, tAVDT_MSG *p_msg);
66 static void avdt_msg_bld_single(UINT8 **p, tAVDT_MSG *p_msg);
67 static void avdt_msg_bld_setconfig_cmd(UINT8 **p, tAVDT_MSG *p_msg);
68 static void avdt_msg_bld_reconfig_cmd(UINT8 **p, tAVDT_MSG *p_msg);
69 static void avdt_msg_bld_multi(UINT8 **p, tAVDT_MSG *p_msg);
70 static void avdt_msg_bld_security_cmd(UINT8 **p, tAVDT_MSG *p_msg);
71 static void avdt_msg_bld_discover_rsp(UINT8 **p, tAVDT_MSG *p_msg);
72 static void avdt_msg_bld_svccap(UINT8 **p, tAVDT_MSG *p_msg);
[all …]
/system/core/run-as/
Dpackage.c284 skip_spaces(const char* p, const char* end) in skip_spaces() argument
286 while (p < end && is_space(*p)) in skip_spaces()
287 p++; in skip_spaces()
289 return p; in skip_spaces()
296 skip_non_spaces(const char* p, const char* end) in skip_non_spaces() argument
298 while (p < end && !is_space(*p)) in skip_non_spaces()
299 p++; in skip_non_spaces()
301 return p; in skip_non_spaces()
308 find_first(const char* p, const char* end, char ch) in find_first() argument
310 while (p < end && *p != ch) in find_first()
[all …]
/system/bt/stack/sdp/
Dsdp_discovery.c51 static UINT8 *save_attr_seq (tCONN_CB *p_ccb, UINT8 *p, UINT8 *p_msg_end);
53 static UINT8 *add_attr (UINT8 *p, tSDP_DISCOVERY_DB *p_db, tSDP_DISC_REC *p_rec,
121 UINT8 *p, *p_start, *p_param_len; in sdp_snd_service_search_req() local
133 p = p_start = (UINT8 *)(p_cmd + 1) + L2CAP_MIN_OFFSET; in sdp_snd_service_search_req()
136 UINT8_TO_BE_STREAM (p, SDP_PDU_SERVICE_SEARCH_REQ); in sdp_snd_service_search_req()
137 UINT16_TO_BE_STREAM (p, p_ccb->transaction_id); in sdp_snd_service_search_req()
141 p_param_len = p; in sdp_snd_service_search_req()
142 p += 2; in sdp_snd_service_search_req()
146 p = sdpu_build_uuid_seq (p, 1, &p_ccb->p_db->uuid_filters[p_ccb->cur_uuid_idx]); in sdp_snd_service_search_req()
148 p = sdpu_build_uuid_seq (p, p_ccb->p_db->num_uuid_filters, p_ccb->p_db->uuid_filters); in sdp_snd_service_search_req()
[all …]
Dsdp_db.c44 static BOOLEAN find_uuid_in_seq (UINT8 *p , UINT32 seq_len, UINT8 *p_his_uuid,
118 static BOOLEAN find_uuid_in_seq (UINT8 *p , UINT32 seq_len, UINT8 *p_uuid, in find_uuid_in_seq() argument
121 UINT8 *p_end = p + seq_len; in find_uuid_in_seq()
129 while (p < p_end) in find_uuid_in_seq()
131 type = *p++; in find_uuid_in_seq()
132 p = sdpu_get_len_from_type (p, type, &len); in find_uuid_in_seq()
136 if (sdpu_compare_uuid_arrays (p, len, p_uuid, uuid_len)) in find_uuid_in_seq()
141 if (find_uuid_in_seq (p, len, p_uuid, uuid_len, nest_level + 1)) in find_uuid_in_seq()
144 p = p + len; in find_uuid_in_seq()
218 static int sdp_compose_proto_list( UINT8 *p, UINT16 num_elem, in sdp_compose_proto_list() argument
[all …]
/system/core/adb/
Dadb_auth.cpp36 apacket *p; in send_auth_request() local
45 p = get_apacket(); in send_auth_request()
46 memcpy(p->data, t->token, ret); in send_auth_request()
47 p->msg.command = A_AUTH; in send_auth_request()
48 p->msg.arg0 = ADB_AUTH_TOKEN; in send_auth_request()
49 p->msg.data_length = ret; in send_auth_request()
50 send_packet(p, t); in send_auth_request()
56 apacket *p = get_apacket(); in send_auth_response() local
59 ret = adb_auth_sign(t->key, token, token_size, p->data); in send_auth_response()
62 put_apacket(p); in send_auth_response()
[all …]
Dadb.cpp167 const char* p = trace_setting.c_str(); in adb_trace_init() local
168 while (*p) { in adb_trace_init()
171 const char* q = strpbrk(p, " ,:;"); in adb_trace_init()
173 q = p + strlen(p); in adb_trace_init()
175 len = q - p; in adb_trace_init()
180 if (len == taglen && !memcmp(tags[tagn].tag, p, len)) { in adb_trace_init()
190 p = q; in adb_trace_init()
191 if (*p) in adb_trace_init()
192 p++; in adb_trace_init()
202 apacket* p = reinterpret_cast<apacket*>(malloc(sizeof(apacket))); in get_apacket() local
[all …]
Dsockets.cpp134 static int local_socket_enqueue(asocket *s, apacket *p) in local_socket_enqueue() argument
136 D("LS(%d): enqueue %d\n", s->id, p->len); in local_socket_enqueue()
138 p->ptr = p->data; in local_socket_enqueue()
151 while(p->len > 0) { in local_socket_enqueue()
152 int r = adb_write(s->fd, p->ptr, p->len); in local_socket_enqueue()
154 p->len -= r; in local_socket_enqueue()
155 p->ptr += r; in local_socket_enqueue()
167 if(p->len == 0) { in local_socket_enqueue()
168 put_apacket(p); in local_socket_enqueue()
173 p->next = 0; in local_socket_enqueue()
[all …]
/system/extras/showslab/
Dshowslab.c62 struct slab_info *head = NULL, *p = NULL, *prev = NULL; in get_slabinfo() local
97 p = malloc(sizeof (struct slab_info)); in get_slabinfo()
98 if (!p) { in get_slabinfo()
104 head = prev = p; in get_slabinfo()
108 slabdata %lu %lu %*d", p->name, in get_slabinfo()
109 &p->nr_active_objs, &p->nr_objs, in get_slabinfo()
110 &p->obj_size, &p->objs_per_slab, in get_slabinfo()
113 &p->nr_slabs); in get_slabinfo()
121 if (p->obj_size < stats->min_obj_size) in get_slabinfo()
122 stats->min_obj_size = p->obj_size; in get_slabinfo()
[all …]
/system/bt/stack/btm/
Dbtm_sco.c85 tSCO_CONN *p ; in btm_sco_flush_sco_data() local
90 p = &btm_cb.sco_cb.sco_db[sco_inx]; in btm_sco_flush_sco_data()
91 while (p->xmit_data_q.p_first) in btm_sco_flush_sco_data()
93 if ((p_buf = (BT_HDR *)GKI_dequeue (&p->xmit_data_q)) != NULL) in btm_sco_flush_sco_data()
274 UINT8 *p = (UINT8 *)(p_msg + 1) + p_msg->offset; in btm_route_sco_data() local
279 STREAM_TO_UINT16 (handle, p); in btm_route_sco_data()
283 STREAM_TO_UINT8 (pkt_size, p); in btm_route_sco_data()
330 UINT8 *p; in BTM_WriteScoData() local
348 p = (UINT8 *)(p_buf + 1) + p_buf->offset; in BTM_WriteScoData()
350 UINT16_TO_STREAM (p, p_ccb->hci_handle); in BTM_WriteScoData()
[all …]
Dbtm_acl.c96 tACL_CONN *p = &btm_cb.acl_db[0]; in btm_bda_to_acl() local
100 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p++) in btm_bda_to_acl()
102 if ((p->in_use) && (!memcmp (p->remote_addr, bda, BD_ADDR_LEN)) in btm_bda_to_acl()
104 && p->transport == transport in btm_bda_to_acl()
109 return(p); in btm_bda_to_acl()
129 tACL_CONN *p = &btm_cb.acl_db[0]; in btm_handle_to_acl_index() local
132 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p++) in btm_handle_to_acl_index()
134 if ((p->in_use) && (p->hci_handle == hci_handle)) in btm_handle_to_acl_index()
213 tACL_CONN *p; in btm_acl_created() local
219 p = btm_bda_to_acl(bda, transport); in btm_acl_created()
[all …]
/system/extras/simpleperf/
Drecord.cpp50 void MoveFromBinaryFormat(T& data, const char*& p) { in MoveFromBinaryFormat() argument
51 data = *reinterpret_cast<const T*>(p); in MoveFromBinaryFormat()
52 p += sizeof(T); in MoveFromBinaryFormat()
56 void MoveToBinaryFormat(const T& data, char*& p) { in MoveToBinaryFormat() argument
57 *reinterpret_cast<T*>(p) = data; in MoveToBinaryFormat()
58 p += sizeof(T); in MoveToBinaryFormat()
91 void SampleId::ReadFromBinaryFormat(const perf_event_attr& attr, const char* p, const char* end) { in ReadFromBinaryFormat() argument
96 MoveFromBinaryFormat(tid_data, p); in ReadFromBinaryFormat()
99 MoveFromBinaryFormat(time_data, p); in ReadFromBinaryFormat()
102 MoveFromBinaryFormat(id_data, p); in ReadFromBinaryFormat()
[all …]
/system/bt/stack/l2cap/
Dl2c_main.c44 static void process_l2cap_cmd (tL2C_LCB *p_lcb, UINT8 *p, UINT16 pkt_len);
64 UINT8 *p; in l2c_bcst_msg() local
79 p = (UINT8 *)(p_buf + 1) + p_buf->offset; in l2c_bcst_msg()
82 UINT16_TO_STREAM (p, 0x0050 | (L2CAP_PKT_START << 12) | (2 << 14)); in l2c_bcst_msg()
88 UINT16_TO_STREAM (p, acl_data_size); in l2c_bcst_msg()
92 UINT16_TO_STREAM (p, p_buf->len); in l2c_bcst_msg()
96 UINT16_TO_STREAM (p, p_buf->len - L2CAP_PKT_OVERHEAD); in l2c_bcst_msg()
97 UINT16_TO_STREAM (p, L2CAP_CONNECTIONLESS_CID); in l2c_bcst_msg()
98 UINT16_TO_STREAM (p, psm); in l2c_bcst_msg()
124 UINT8 *p = (UINT8 *)(p_msg + 1) + p_msg->offset; in l2c_rcv_acl_data() local
[all …]
/system/keymaster/
Dopenssl_utils.h35 void operator()(EVP_PKEY* p) const { EVP_PKEY_free(p); } in operator()
39 void operator()(BIGNUM* p) const { BN_free(p); } in operator()
43 void operator()(BN_CTX* p) const { BN_CTX_free(p); } in operator()
47 void operator()(PKCS8_PRIV_KEY_INFO* p) const { PKCS8_PRIV_KEY_INFO_free(p); } in operator()
51 void operator()(RSA* p) { RSA_free(p); } in operator()
55 void operator()(EC_GROUP* p) { EC_GROUP_free(p); } in operator()
59 void operator()(EC_KEY* p) { EC_KEY_free(p); } in operator()
68 inline void release_because_ownership_transferred(UniquePtr<T, Delete_T>& p) { in release_because_ownership_transferred() argument
69 T* val __attribute__((unused)) = p.release(); in release_because_ownership_transferred()
Dintegrity_assured_key_blob.cpp94 uint8_t* p = key_blob->writable_data(); in SerializeIntegrityAssuredBlob() local
95 *p++ = BLOB_VERSION; in SerializeIntegrityAssuredBlob()
96 p = key_material.Serialize(p, key_blob->end()); in SerializeIntegrityAssuredBlob()
97 p = hw_enforced.Serialize(p, key_blob->end()); in SerializeIntegrityAssuredBlob()
98 p = sw_enforced.Serialize(p, key_blob->end()); in SerializeIntegrityAssuredBlob()
100 return ComputeHmac(key_blob->key_material, p - key_blob->key_material, hidden, p); in SerializeIntegrityAssuredBlob()
108 const uint8_t* p = key_blob.begin(); in DeserializeIntegrityAssuredBlob() local
111 if (p > end || p + HMAC_SIZE > end) in DeserializeIntegrityAssuredBlob()
123 if (*p != BLOB_VERSION) in DeserializeIntegrityAssuredBlob()
125 ++p; in DeserializeIntegrityAssuredBlob()
[all …]
/system/bt/test/bluedroidtest/
Dbluedroidtest.c90 static void process_cmd(char *p, unsigned char is_job);
186 unsigned char *p = data; in hex_dump() local
204 (unsigned int)((uintptr_t)p-(uintptr_t)data) ); in hex_dump()
207 c = *p; in hex_dump()
213 snprintf(bytestr, sizeof(bytestr), "%02X ", *p); in hex_dump()
230 p++; /* next byte */ in hex_dump()
243 void skip_blanks(char **p) in skip_blanks() argument
245 while (**p == ' ') in skip_blanks()
246 (*p)++; in skip_blanks()
249 uint32_t get_int(char **p, int DefaultValue) in get_int() argument
[all …]
/system/core/libmemtrack/
Dmemtrack.c71 void memtrack_proc_destroy(struct memtrack_proc *p) in memtrack_proc_destroy() argument
75 if (p) { in memtrack_proc_destroy()
77 free(p->types[i].records); in memtrack_proc_destroy()
80 free(p); in memtrack_proc_destroy()
117 static int memtrack_proc_sanity_check(struct memtrack_proc *p) in memtrack_proc_sanity_check() argument
119 (void)p; in memtrack_proc_sanity_check()
123 int memtrack_proc_get(struct memtrack_proc *p, pid_t pid) in memtrack_proc_get() argument
131 if (!p) { in memtrack_proc_get()
135 p->pid = pid; in memtrack_proc_get()
137 memtrack_proc_get_type(&p->types[i], pid, i); in memtrack_proc_get()
[all …]
/system/bt/osi/src/
Dringbuffer.c34 ringbuffer_t* p = osi_calloc(sizeof(ringbuffer_t)); in ringbuffer_init() local
35 if (p == 0) in ringbuffer_init()
38 p->base = osi_calloc(size); in ringbuffer_init()
39 if (p->base == 0) { in ringbuffer_init()
40 osi_free(p); in ringbuffer_init()
44 p->head = p->tail = p->base; in ringbuffer_init()
45 p->total = p->available = size; in ringbuffer_init()
47 return p; in ringbuffer_init()
66 size_t ringbuffer_insert(ringbuffer_t *rb, const uint8_t *p, size_t length) { in ringbuffer_insert() argument
68 assert(p); in ringbuffer_insert()
[all …]
/system/bt/stack/smp/
Dsmp_keys.c45 static void smp_rand_back(tBTM_RAND_ENC *p);
48 static void smp_generate_y(tSMP_CB *p_cb, tSMP_INT_DATA *p);
49 static void smp_generate_rand_vector (tSMP_CB *p_cb, tSMP_INT_DATA *p);
50 static void smp_process_stk(tSMP_CB *p_cb, tSMP_ENC *p);
51 static void smp_calculate_comfirm_cont(tSMP_CB *p_cb, tSMP_ENC *p);
52 static void smp_process_confirm(tSMP_CB *p_cb, tSMP_ENC *p);
53 static void smp_process_compare(tSMP_CB *p_cb, tSMP_ENC *p);
54 static void smp_process_ediv(tSMP_CB *p_cb, tSMP_ENC *p);
56 static void smp_continue_private_key_creation(tSMP_CB *p_cb, tBTM_RAND_ENC *p);
77 void smp_debug_print_nbyte_little_endian(UINT8 *p, const UINT8 *key_name, UINT8 len) in smp_debug_print_nbyte_little_endian() argument
[all …]
/system/bt/stack/bnep/
Dbnep_utils.c175 UINT8 *p, *p_start; in bnep_send_conn_req() local
186 p = p_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in bnep_send_conn_req()
189 UINT8_TO_BE_STREAM (p, BNEP_FRAME_CONTROL); in bnep_send_conn_req()
192 UINT8_TO_BE_STREAM (p, BNEP_SETUP_CONNECTION_REQUEST_MSG); in bnep_send_conn_req()
194 UINT8_TO_BE_STREAM (p, p_bcb->dst_uuid.len); in bnep_send_conn_req()
198 UINT16_TO_BE_STREAM (p, p_bcb->dst_uuid.uu.uuid16); in bnep_send_conn_req()
199 UINT16_TO_BE_STREAM (p, p_bcb->src_uuid.uu.uuid16); in bnep_send_conn_req()
203 UINT32_TO_BE_STREAM (p, p_bcb->dst_uuid.uu.uuid32); in bnep_send_conn_req()
204 UINT32_TO_BE_STREAM (p, p_bcb->src_uuid.uu.uuid32); in bnep_send_conn_req()
208 memcpy (p, p_bcb->dst_uuid.uu.uuid128, p_bcb->dst_uuid.len); in bnep_send_conn_req()
[all …]
/system/bt/stack/gatt/
Datt_protocol.c49 UINT8 *p; in attp_build_mtu_cmd() local
53 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_mtu_cmd()
55 UINT8_TO_STREAM (p, op_code); in attp_build_mtu_cmd()
56 UINT16_TO_STREAM (p, rx_mtu); in attp_build_mtu_cmd()
75 UINT8 *p; in attp_build_exec_write_cmd() local
79 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd()
84 UINT8_TO_STREAM (p, op_code); in attp_build_exec_write_cmd()
89 UINT8_TO_STREAM (p, flag); in attp_build_exec_write_cmd()
110 UINT8 *p; in attp_build_err_cmd() local
114 p = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in attp_build_err_cmd()
[all …]

1234567891011