Home
last modified time | relevance | path

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

12345678910>>...17

/system/nfc/src/hal/include/
Dnfc_types.h72 #define UINT32_TO_STREAM(p, u32) \ argument
74 *(p)++ = (uint8_t)(u32); \
75 *(p)++ = (uint8_t)((u32) >> 8); \
76 *(p)++ = (uint8_t)((u32) >> 16); \
77 *(p)++ = (uint8_t)((u32) >> 24); \
79 #define UINT24_TO_STREAM(p, u24) \ argument
81 *(p)++ = (uint8_t)(u24); \
82 *(p)++ = (uint8_t)((u24) >> 8); \
83 *(p)++ = (uint8_t)((u24) >> 16); \
85 #define UINT16_TO_STREAM(p, u16) \ argument
[all …]
/system/nfc/src/static-lib-adapt/
DProtoDispBluetoothHci.c43 static void disp_sleepmode(uint8_t* p);
44 static void disp_sleepmode_evt(uint8_t* p);
69 void disp_sleepmode(uint8_t* p) { in disp_sleepmode() argument
72 int len = p[2]; in disp_sleepmode()
77 p += 3; in disp_sleepmode()
78 p_end_hci = p + len; in disp_sleepmode()
79 p = HCIDisp1Ext("Sleep_Mode", p, (*p <= 12) ? modes_str[*p] : ""); in disp_sleepmode()
80 p = HCIDisp1("Idle_Threshold_Host", p); in disp_sleepmode()
81 p = HCIDisp1("Idle_Threshold_HC", p); in disp_sleepmode()
82 p = HCIDisp1Ext("BT_WAKE_Active_Mode", p, in disp_sleepmode()
[all …]
/system/nfc/src/nfc/nci/
Dnci_hmsgs.c43 NFC_HDR* p; in nci_snd_core_reset() local
46 p = NCI_GET_CMD_BUF(NCI_CORE_PARAM_SIZE_RESET); in nci_snd_core_reset()
47 if (p == NULL) return (NCI_STATUS_FAILED); in nci_snd_core_reset()
49 p->event = BT_EVT_TO_NFC_NCI; in nci_snd_core_reset()
50 p->len = NCI_MSG_HDR_SIZE + NCI_CORE_PARAM_SIZE_RESET; in nci_snd_core_reset()
51 p->offset = NCI_MSG_OFFSET_SIZE; in nci_snd_core_reset()
52 p->layer_specific = 0; in nci_snd_core_reset()
53 pp = (uint8_t*)(p + 1) + p->offset; in nci_snd_core_reset()
60 nfc_ncif_send_cmd(p); in nci_snd_core_reset()
74 NFC_HDR* p; in nci_snd_core_init() local
[all …]
/system/sepolicy/tools/sepolicy-analyze/
Dneverallow.c25 char *p = *ptr; in read_typeset() local
35 while (p < end && isspace(*p)) in read_typeset()
36 p++; in read_typeset()
38 if (p == end) in read_typeset()
41 if (*p == '~') { in read_typeset()
45 p++; in read_typeset()
46 while (p < end && isspace(*p)) in read_typeset()
47 p++; in read_typeset()
48 if (p == end) in read_typeset()
52 if (*p == '{') { in read_typeset()
[all …]
/system/bt/stack/btu/
Dbtu_hcif.cc56 extern void btm_ble_test_command_complete(uint8_t* p);
61 static void btu_hcif_inquiry_comp_evt(uint8_t* p);
62 static void btu_hcif_inquiry_result_evt(uint8_t* p);
63 static void btu_hcif_inquiry_rssi_result_evt(uint8_t* p);
64 static void btu_hcif_extended_inquiry_result_evt(uint8_t* p);
66 static void btu_hcif_connection_comp_evt(uint8_t* p);
67 static void btu_hcif_connection_request_evt(uint8_t* p);
68 static void btu_hcif_disconnection_comp_evt(uint8_t* p);
69 static void btu_hcif_authentication_comp_evt(uint8_t* p);
70 static void btu_hcif_rmt_name_request_comp_evt(uint8_t* p, uint16_t evt_len);
[all …]
/system/bt/stack/include/
Dbt_types.h245 #define HCI_GET_CMD_HDR_OPCODE(p) \ argument
246 (uint16_t)((*((uint8_t*)((p) + 1) + (p)->offset) + \
247 (*((uint8_t*)((p) + 1) + (p)->offset + 1) << 8)))
248 #define HCI_GET_CMD_HDR_PARAM_LEN(p) \ argument
249 (uint8_t)(*((uint8_t*)((p) + 1) + (p)->offset + 2))
251 #define HCI_GET_EVT_HDR_OPCODE(p) \ argument
252 (uint8_t)(*((uint8_t*)((p) + 1) + (p)->offset))
253 #define HCI_GET_EVT_HDR_PARAM_LEN(p) \ argument
254 (uint8_t)(*((uint8_t*)((p) + 1) + (p)->offset + 1))
259 #define UINT64_TO_BE_STREAM(p, u64) \ argument
[all …]
/system/bt/stack/avdt/
Davdt_defs.h155 #define AVDT_MSG_PRS_HDR(p, lbl, pkt, msg) \ argument
157 (lbl) = (*(p) >> 4) & 0x0F; \
158 (pkt) = (*(p) >> 2) & 0x03; \
159 (msg) = *(p)++ & 0x03; \
162 #define AVDT_MSG_PRS_DISC(p, seid, in_use, type, tsep) \ argument
164 (seid) = *(p) >> 2; \
165 (in_use) = (*(p)++ >> 1) & 0x01; \
166 (type) = (*(p) >> 4) & 0x0F; \
167 (tsep) = (*(p)++ >> 3) & 0x01; \
170 #define AVDT_MSG_PRS_SIG(p, sig) \ argument
[all …]
Davdt_msg.cc58 typedef void (*tAVDT_MSG_BLD)(uint8_t** p, tAVDT_MSG* p_msg);
61 typedef uint8_t (*tAVDT_MSG_PRS)(tAVDT_MSG* p_msg, uint8_t* p, uint16_t len);
67 static void avdt_msg_bld_none(uint8_t** p, tAVDT_MSG* p_msg);
68 static void avdt_msg_bld_single(uint8_t** p, tAVDT_MSG* p_msg);
69 static void avdt_msg_bld_setconfig_cmd(uint8_t** p, tAVDT_MSG* p_msg);
70 static void avdt_msg_bld_reconfig_cmd(uint8_t** p, tAVDT_MSG* p_msg);
71 static void avdt_msg_bld_multi(uint8_t** p, tAVDT_MSG* p_msg);
72 static void avdt_msg_bld_security_cmd(uint8_t** p, tAVDT_MSG* p_msg);
73 static void avdt_msg_bld_discover_rsp(uint8_t** p, tAVDT_MSG* p_msg);
74 static void avdt_msg_bld_svccap(uint8_t** p, tAVDT_MSG* p_msg);
[all …]
/system/bt/stack/hcic/
Dhcicmds.cc39 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_inquiry() local
40 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_inquiry()
42 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_INQUIRY; in btsnd_hcic_inquiry()
43 p->offset = 0; in btsnd_hcic_inquiry()
52 btu_hcif_send_cmd(LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_inquiry()
56 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_inq_cancel() local
57 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_inq_cancel()
59 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_INQ_CANCEL; in btsnd_hcic_inq_cancel()
60 p->offset = 0; in btsnd_hcic_inq_cancel()
64 btu_hcif_send_cmd(LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_inq_cancel()
[all …]
Dhciblecmds.cc37 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_local_used_feat() local
38 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_local_used_feat()
40 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_SET_USED_FEAT_CMD; in btsnd_hcic_ble_set_local_used_feat()
41 p->offset = 0; in btsnd_hcic_ble_set_local_used_feat()
46 btu_hcif_send_cmd(LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_ble_set_local_used_feat()
50 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_random_addr() local
51 uint8_t* pp = (uint8_t*)(p + 1); in btsnd_hcic_ble_set_random_addr()
53 p->len = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_RANDOM_ADDR_CMD; in btsnd_hcic_ble_set_random_addr()
54 p->offset = 0; in btsnd_hcic_ble_set_random_addr()
61 btu_hcif_send_cmd(LOCAL_BR_EDR_CONTROLLER_ID, p); in btsnd_hcic_ble_set_random_addr()
[all …]
/system/extras/simpleperf/
Drecord.cpp59 void MoveToBinaryFormat(const RecordHeader& data, char*& p) { in MoveToBinaryFormat() argument
60 data.MoveToBinaryFormat(p); in MoveToBinaryFormat()
74 void SampleId::ReadFromBinaryFormat(const perf_event_attr& attr, const char* p, in ReadFromBinaryFormat() argument
80 MoveFromBinaryFormat(tid_data, p); in ReadFromBinaryFormat()
83 MoveFromBinaryFormat(time_data, p); in ReadFromBinaryFormat()
86 MoveFromBinaryFormat(id_data, p); in ReadFromBinaryFormat()
89 MoveFromBinaryFormat(stream_id_data, p); in ReadFromBinaryFormat()
92 MoveFromBinaryFormat(cpu_data, p); in ReadFromBinaryFormat()
95 MoveFromBinaryFormat(id_data, p); in ReadFromBinaryFormat()
98 CHECK_LE(p, end); in ReadFromBinaryFormat()
[all …]
/system/bt/stack/sdp/
Dsdp_discovery.cc49 static uint8_t* save_attr_seq(tCONN_CB* p_ccb, uint8_t* p, uint8_t* p_msg_end);
51 static uint8_t* add_attr(uint8_t* p, tSDP_DISCOVERY_DB* p_db,
115 uint8_t *p, *p_start, *p_param_len; in sdp_snd_service_search_req() local
121 p = p_start = (uint8_t*)(p_cmd + 1) + L2CAP_MIN_OFFSET; in sdp_snd_service_search_req()
124 UINT8_TO_BE_STREAM(p, SDP_PDU_SERVICE_SEARCH_REQ); in sdp_snd_service_search_req()
125 UINT16_TO_BE_STREAM(p, p_ccb->transaction_id); in sdp_snd_service_search_req()
129 p_param_len = p; in sdp_snd_service_search_req()
130 p += 2; in sdp_snd_service_search_req()
134 p = sdpu_build_uuid_seq(p, 1, in sdp_snd_service_search_req()
137 p = sdpu_build_uuid_seq(p, p_ccb->p_db->num_uuid_filters, in sdp_snd_service_search_req()
[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/nfc/src/nfc/tags/
Drw_t4t.c153 uint8_t* p; in rw_t4t_get_hw_version() local
163 p = (uint8_t*)(p_c_apdu + 1) + p_c_apdu->offset; in rw_t4t_get_hw_version()
165 UINT8_TO_BE_STREAM(p, T4T_CMD_DES_CLASS); in rw_t4t_get_hw_version()
166 UINT8_TO_BE_STREAM(p, T4T_CMD_INS_GET_HW_VERSION); in rw_t4t_get_hw_version()
167 UINT16_TO_BE_STREAM(p, 0x0000); in rw_t4t_get_hw_version()
168 UINT8_TO_BE_FIELD(p, 0x00); in rw_t4t_get_hw_version()
190 uint8_t* p; in rw_t4t_get_sw_version() local
200 p = (uint8_t*)(p_c_apdu + 1) + p_c_apdu->offset; in rw_t4t_get_sw_version()
202 UINT8_TO_BE_STREAM(p, T4T_CMD_DES_CLASS); in rw_t4t_get_sw_version()
203 UINT8_TO_BE_STREAM(p, T4T_ADDI_FRAME_RESP); in rw_t4t_get_sw_version()
[all …]
Dtags_int.c112 const tT1T_CMD_RSP_INFO *p_ret = NULL, *p; in t1t_cmd_to_rsp_info() local
115 for (xx = 0, p = &t1t_cmd_rsp_infos[0]; xx < T1T_MAX_NUM_OPCODES; xx++, p++) { in t1t_cmd_to_rsp_info()
116 if (opcode == p->opcode) { in t1t_cmd_to_rsp_info()
118 p_ret = p; in t1t_cmd_to_rsp_info()
136 const tT1T_INIT_TAG *p_ret = NULL, *p; in t1t_tag_init_data() local
139 for (xx = 0, p = &t1t_init_content[0]; xx < T1T_MAX_TAG_MODELS; xx++, p++) { in t1t_tag_init_data()
140 if (tag_model == p->tag_model) { in t1t_tag_init_data()
141 p_ret = p; in t1t_tag_init_data()
161 const tT2T_INIT_TAG *p_ret = NULL, *p; in t2t_tag_init_data() local
164 for (xx = 0, p = &t2t_init_content[0]; xx < T2T_MAX_TAG_MODELS; xx++, p++) { in t2t_tag_init_data()
[all …]
/system/bt/stack/btm/
Dbtm_sco.cc74 tSCO_CONN* p; in btm_sco_flush_sco_data() local
78 p = &btm_cb.sco_cb.sco_db[sco_inx]; in btm_sco_flush_sco_data()
79 while ((p_buf = (BT_HDR*)fixed_queue_try_dequeue(p->xmit_data_q)) != NULL) in btm_sco_flush_sco_data()
248 uint8_t* p = (uint8_t*)(p_msg + 1) + p_msg->offset;
253 STREAM_TO_UINT16(handle, p);
257 STREAM_TO_UINT8(pkt_size, p);
302 uint8_t* p;
318 p = (uint8_t*)(p_buf + 1) + p_buf->offset;
320 UINT16_TO_STREAM(p, p_ccb->hci_handle);
328 UINT8_TO_STREAM(p, (uint8_t)p_buf->len);
[all …]
Dbtm_acl.cc94 tACL_CONN* p = &btm_cb.acl_db[0]; in btm_bda_to_acl() local
97 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p++) { in btm_bda_to_acl()
98 if ((p->in_use) && (!memcmp(p->remote_addr, bda, BD_ADDR_LEN)) && in btm_bda_to_acl()
99 p->transport == transport) { in btm_bda_to_acl()
101 return (p); in btm_bda_to_acl()
121 tACL_CONN* p = &btm_cb.acl_db[0]; in btm_handle_to_acl_index() local
124 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p++) { in btm_handle_to_acl_index()
125 if ((p->in_use) && (p->hci_handle == hci_handle)) { in btm_handle_to_acl_index()
196 tACL_CONN* p; in btm_acl_created() local
202 p = btm_bda_to_acl(bda, transport); in btm_acl_created()
[all …]
Dbtm_ble_adv_filter.cc189 uint8_t* p, uint16_t evt_len) { in btm_flt_update_cb() argument
196 STREAM_TO_UINT8(status, p); in btm_flt_update_cb()
197 STREAM_TO_UINT8(op_subcode, p); in btm_flt_update_cb()
198 STREAM_TO_UINT8(action, p); in btm_flt_update_cb()
199 STREAM_TO_UINT8(num_avail, p); in btm_flt_update_cb()
327 uint8_t* p = param; in BTM_LE_PF_local_name() local
328 UINT8_TO_STREAM(p, BTM_BLE_META_PF_LOCAL_NAME); in BTM_LE_PF_local_name()
329 UINT8_TO_STREAM(p, action); in BTM_LE_PF_local_name()
330 UINT8_TO_STREAM(p, filt_index); in BTM_LE_PF_local_name()
334 ARRAY_TO_STREAM(p, name.data(), size); in BTM_LE_PF_local_name()
[all …]
/system/bt/stack/l2cap/
Dl2c_main.cc48 static void process_l2cap_cmd(tL2C_LCB* p_lcb, uint8_t* p, uint16_t pkt_len);
66 uint8_t* p = (uint8_t*)(p_msg + 1) + p_msg->offset; in l2c_rcv_acl_data() local
75 STREAM_TO_UINT16(handle, p); in l2c_rcv_acl_data()
90 STREAM_TO_UINT16(hci_len, p); in l2c_rcv_acl_data()
91 STREAM_TO_UINT16(l2cap_len, p); in l2c_rcv_acl_data()
92 STREAM_TO_UINT16(rcv_cid, p); in l2c_rcv_acl_data()
93 STREAM_TO_UINT8(cmd_code, p); in l2c_rcv_acl_data()
130 STREAM_TO_UINT16(hci_len, p); in l2c_rcv_acl_data()
141 STREAM_TO_UINT16(l2cap_len, p); in l2c_rcv_acl_data()
142 STREAM_TO_UINT16(rcv_cid, p); in l2c_rcv_acl_data()
[all …]
/system/nfc/src/nfc/llcp/
Dllcp_util.c44 uint8_t param_type, param_len, *p = p_bytes; in llcp_util_parse_link_params() local
47 BE_STREAM_TO_UINT8(param_type, p); in llcp_util_parse_link_params()
52 BE_STREAM_TO_UINT8(param_len, p); in llcp_util_parse_link_params()
53 BE_STREAM_TO_UINT8(llcp_cb.lcb.peer_version, p); in llcp_util_parse_link_params()
58 BE_STREAM_TO_UINT8(param_len, p); in llcp_util_parse_link_params()
59 BE_STREAM_TO_UINT16(llcp_cb.lcb.peer_miu, p); in llcp_util_parse_link_params()
66 BE_STREAM_TO_UINT8(param_len, p); in llcp_util_parse_link_params()
67 BE_STREAM_TO_UINT16(llcp_cb.lcb.peer_wks, p); in llcp_util_parse_link_params()
72 BE_STREAM_TO_UINT8(param_len, p); in llcp_util_parse_link_params()
73 BE_STREAM_TO_UINT8(llcp_cb.lcb.peer_lto, p); in llcp_util_parse_link_params()
[all …]
/system/bt/stack/avrc/
Davrc_pars_ct.cc48 uint8_t* p; in avrc_pars_vendor_rsp() local
58 p = p_msg->p_vendor_data; in avrc_pars_vendor_rsp()
59 BE_STREAM_TO_UINT8(p_result->pdu, p); in avrc_pars_vendor_rsp()
60 p++; /* skip the reserved/packe_type byte */ in avrc_pars_vendor_rsp()
61 BE_STREAM_TO_UINT16(len, p); in avrc_pars_vendor_rsp()
65 p_result->rsp.status = *p; in avrc_pars_vendor_rsp()
78 BE_STREAM_TO_UINT8(p_result->volume.volume, p); in avrc_pars_vendor_rsp()
85 BE_STREAM_TO_UINT8(eventid, p); in avrc_pars_vendor_rsp()
93 BE_STREAM_TO_UINT8(p_result->reg_notif.param.volume, p); in avrc_pars_vendor_rsp()
162 uint8_t* p = p_msg->p_browse_data; in avrc_pars_browse_rsp() local
[all …]
Davrc_pars_tg.cc46 uint8_t* p = p_msg->p_vendor_data; in avrc_ctrl_pars_vendor_cmd() local
47 p_result->pdu = *p++; in avrc_ctrl_pars_vendor_cmd()
54 p++; /* skip the reserved byte */ in avrc_ctrl_pars_vendor_cmd()
56 BE_STREAM_TO_UINT16(len, p); in avrc_ctrl_pars_vendor_cmd()
68 BE_STREAM_TO_UINT8(p_result->volume.volume, p); in avrc_ctrl_pars_vendor_cmd()
74 BE_STREAM_TO_UINT8(p_result->reg_notif.event_id, p); in avrc_ctrl_pars_vendor_cmd()
75 BE_STREAM_TO_UINT32(p_result->reg_notif.param, p); in avrc_ctrl_pars_vendor_cmd()
100 uint8_t* p; in avrc_pars_vendor_cmd() local
113 p = p_msg->p_vendor_data; in avrc_pars_vendor_cmd()
114 p_result->pdu = *p++; in avrc_pars_vendor_cmd()
[all …]
/system/nfc/src/nfc/nfc/
Dnfc_ncif.c129 NFC_HDR* p; in nfc_ncif_send_data() local
178 p = p_data; in nfc_ncif_send_data()
184 p = NCI_GET_CMD_BUF(ulen); in nfc_ncif_send_data()
185 if (p == NULL) return (NCI_STATUS_BUFFER_FULL); in nfc_ncif_send_data()
186 p->len = ulen; in nfc_ncif_send_data()
187 p->offset = NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE + 1; in nfc_ncif_send_data()
188 if (p->len) { in nfc_ncif_send_data()
189 pp = (uint8_t*)(p + 1) + p->offset; in nfc_ncif_send_data()
198 p->event = BT_EVT_TO_NFC_NCI; in nfc_ncif_send_data()
199 p->layer_specific = pbf; in nfc_ncif_send_data()
[all …]
/system/nfc/halimpl/pn54x/tml/
DphDal4Nfc_messageQueueLib.c118 phDal4Nfc_message_queue_item_t* p; in phDal4Nfc_msgctl() local
126 p = pQueue->pItems; in phDal4Nfc_msgctl()
127 while (p->pNext != NULL) { in phDal4Nfc_msgctl()
128 p = p->pNext; in phDal4Nfc_msgctl()
130 while (p->pPrev != NULL) { in phDal4Nfc_msgctl()
131 p = p->pPrev; in phDal4Nfc_msgctl()
132 free(p->pNext); in phDal4Nfc_msgctl()
133 p->pNext = NULL; in phDal4Nfc_msgctl()
135 free(p); in phDal4Nfc_msgctl()
163 phDal4Nfc_message_queue_item_t* p; in phDal4Nfc_msgsnd() local
[all …]
/system/core/adb/
Dsockets.cpp125 static int local_socket_enqueue(asocket* s, apacket* p) { in local_socket_enqueue() argument
126 D("LS(%d): enqueue %zu", s->id, p->len); in local_socket_enqueue()
128 p->ptr = p->data; in local_socket_enqueue()
141 while (p->len > 0) { in local_socket_enqueue()
142 int r = adb_write(s->fd, p->ptr, p->len); in local_socket_enqueue()
144 p->len -= r; in local_socket_enqueue()
145 p->ptr += r; in local_socket_enqueue()
150 put_apacket(p); in local_socket_enqueue()
159 if (p->len == 0) { in local_socket_enqueue()
160 put_apacket(p); in local_socket_enqueue()
[all …]

12345678910>>...17