Home
last modified time | relevance | path

Searched refs:p_rsp (Results 1 – 24 of 24) sorted by relevance

/system/bt/stack/avrc/
Davrc_bld_tg.cc52 static tAVRC_STS avrc_bld_get_capability_rsp(tAVRC_GET_CAPS_RSP* p_rsp, in avrc_bld_get_capability_rsp() argument
61 if (!(AVRC_IS_VALID_CAP_ID(p_rsp->capability_id))) { in avrc_bld_get_capability_rsp()
62 AVRC_TRACE_ERROR("%s bad parameter. p_rsp: %x", __func__, p_rsp); in avrc_bld_get_capability_rsp()
73 UINT8_TO_BE_STREAM(p_data, p_rsp->capability_id); in avrc_bld_get_capability_rsp()
77 *p_count = p_rsp->count; in avrc_bld_get_capability_rsp()
82 *p_count += p_rsp->count; in avrc_bld_get_capability_rsp()
85 if (p_rsp->capability_id == AVRC_CAP_COMPANY_ID) { in avrc_bld_get_capability_rsp()
86 p_company_id = p_rsp->param.company_id; in avrc_bld_get_capability_rsp()
87 for (xx = 0; xx < p_rsp->count; xx++) { in avrc_bld_get_capability_rsp()
90 len += p_rsp->count * 3; in avrc_bld_get_capability_rsp()
[all …]
Davrc_api.cc358 BT_HDR* p_rsp = NULL; in avrc_proc_vendor_command() local
430 p_rsp = (BT_HDR*)osi_malloc(BT_DEFAULT_BUFFER_SIZE); in avrc_proc_vendor_command()
431 p_rsp->offset = p_pkt->offset; in avrc_proc_vendor_command()
432 p_data = (uint8_t*)(p_rsp + 1) + p_pkt->offset; in avrc_proc_vendor_command()
438 p_rsp->len = AVRC_VENDOR_HDR_SIZE + 5; in avrc_proc_vendor_command()
441 return p_rsp; in avrc_proc_vendor_command()
460 BT_HDR* p_rsp = NULL; in avrc_proc_far_msg() local
576 p_rsp = avrc_proc_vendor_command(handle, label, *pp_pkt, p_msg); in avrc_proc_far_msg()
577 if (p_rsp) { in avrc_proc_far_msg()
578 AVCT_MsgReq(handle, label, AVCT_RSP, p_rsp); in avrc_proc_far_msg()
[all …]
Davrc_pars_ct.cc145 tAVRC_REG_NOTIF_RSP* p_rsp) { in avrc_parse_notification_rsp() argument
149 BE_STREAM_TO_UINT8(p_rsp->event_id, p_stream); in avrc_parse_notification_rsp()
150 switch (p_rsp->event_id) { in avrc_parse_notification_rsp()
154 BE_STREAM_TO_UINT8(p_rsp->param.play_status, p_stream); in avrc_parse_notification_rsp()
160 BE_STREAM_TO_ARRAY(p_stream, p_rsp->param.track, 8); in avrc_parse_notification_rsp()
166 BE_STREAM_TO_UINT8(p_rsp->param.player_setting.num_attr, p_stream); in avrc_parse_notification_rsp()
167 if (p_rsp->param.player_setting.num_attr > AVRC_MAX_APP_SETTINGS) { in avrc_parse_notification_rsp()
169 p_rsp->param.player_setting.num_attr = AVRC_MAX_APP_SETTINGS; in avrc_parse_notification_rsp()
171 min_len += p_rsp->param.player_setting.num_attr * 2; in avrc_parse_notification_rsp()
173 for (int index = 0; index < p_rsp->param.player_setting.num_attr; in avrc_parse_notification_rsp()
[all …]
/system/bt/stack/sdp/
Dsdp_server.cc190 uint8_t *p_rsp, *p_rsp_start, *p_rsp_param_len; in process_service_search() local
264 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_search()
267 UINT8_TO_BE_STREAM(p_rsp, SDP_PDU_SERVICE_SEARCH_RSP); in process_service_search()
268 UINT16_TO_BE_STREAM(p_rsp, trans_num); in process_service_search()
271 p_rsp_param_len = p_rsp; in process_service_search()
272 p_rsp += 2; in process_service_search()
275 UINT16_TO_BE_STREAM(p_rsp, num_rsp_handles); in process_service_search()
276 UINT16_TO_BE_STREAM(p_rsp, cur_handles); in process_service_search()
283 UINT32_TO_BE_STREAM(p_rsp, rsp_handles[xx]); in process_service_search()
286 UINT8_TO_BE_STREAM(p_rsp, SDP_CONTINUATION_LEN); in process_service_search()
[all …]
Dsdp_utils.cc280 uint8_t *p_rsp, *p_rsp_start, *p_rsp_param_len; in sdpu_build_n_send_error() local
289 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in sdpu_build_n_send_error()
291 UINT8_TO_BE_STREAM(p_rsp, SDP_PDU_ERROR_RESPONSE); in sdpu_build_n_send_error()
292 UINT16_TO_BE_STREAM(p_rsp, trans_num); in sdpu_build_n_send_error()
295 p_rsp_param_len = p_rsp; in sdpu_build_n_send_error()
296 p_rsp += 2; in sdpu_build_n_send_error()
298 UINT16_TO_BE_STREAM(p_rsp, error_code); in sdpu_build_n_send_error()
302 ARRAY_TO_BE_STREAM(p_rsp, p_error_text, (int)strlen(p_error_text)); in sdpu_build_n_send_error()
305 rsp_param_len = p_rsp - p_rsp_param_len - 2; in sdpu_build_n_send_error()
309 p_buf->len = p_rsp - p_rsp_start; in sdpu_build_n_send_error()
Dsdp_db.cc870 uint8_t* p_rsp; in SDP_ReadRecord() local
875 p_rsp = &p_data[3]; in SDP_ReadRecord()
878 rem_len = *p_data_len - (uint16_t)(p_rsp - p_data); in SDP_ReadRecord()
882 p_rsp = sdpu_build_attrib_entry(p_rsp, p_attr); in SDP_ReadRecord()
887 len = (int32_t)(p_rsp - p_data); in SDP_ReadRecord()
/system/bt/btif/src/
Dbtif_rc.cc277 tAVRC_GET_CAPS_RSP* p_rsp);
279 tAVRC_LIST_APP_ATTR_RSP* p_rsp);
281 tAVRC_LIST_APP_VALUES_RSP* p_rsp);
283 tAVRC_GET_CUR_APP_VALUE_RSP* p_rsp);
285 tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp);
287 tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp);
289 tAVRC_GET_PLAY_STATUS_RSP* p_rsp);
291 tAVRC_RSP* p_rsp);
293 tAVRC_GET_ATTRS_RSP* p_rsp);
295 tAVRC_RSP* p_rsp);
[all …]
/system/bt/stack/srvc/
Dsrvc_eng.cc205 tGATTS_RSP* p_rsp, tGATT_STATUS* p_status) { in srvc_eng_process_read_req() argument
209 if (p_data->is_long) p_rsp->attr_value.offset = p_data->offset; in srvc_eng_process_read_req()
211 p_rsp->attr_value.handle = p_data->handle; in srvc_eng_process_read_req()
214 act = dis_read_attr_value(clcb_idx, p_data->handle, &p_rsp->attr_value, in srvc_eng_process_read_req()
219 battery_s_read_attr_value(clcb_idx, p_data->handle, &p_rsp->attr_value, in srvc_eng_process_read_req()
230 UNUSED_ATTR tGATTS_RSP* p_rsp, in srvc_eng_process_write_req() argument
424 void srvc_sr_rsp(uint8_t clcb_idx, tGATT_STATUS st, tGATTS_RSP* p_rsp) { in srvc_sr_rsp() argument
427 srvc_eng_cb.clcb[clcb_idx].trans_id, st, p_rsp); in srvc_sr_rsp()
Dsrvc_battery.cc275 tBA_RSP_DATA* p_rsp) { in Battery_Rsp() argument
296 UINT16_TO_STREAM(pp, p_rsp->clt_cfg); in Battery_Rsp()
304 UINT8_TO_STREAM(pp, p_rsp->ba_level); in Battery_Rsp()
316 UINT8_TO_STREAM(pp, p_rsp->rpt_ref.rpt_id); in Battery_Rsp()
317 UINT8_TO_STREAM(pp, p_rsp->rpt_ref.rpt_type); in Battery_Rsp()
Dsrvc_eng_int.h66 extern void srvc_sr_rsp(uint8_t clcb_idx, tGATT_STATUS st, tGATTS_RSP* p_rsp);
/system/bt/bta/include/
Dbta_gatts_co.h65 tBTA_GATTS_SRV_CHG_RSP* p_rsp);
/system/bt/stack/gatt/
Dgatt_db.cc255 tGATT_TCB& tcb, tGATT_SVC_DB* p_db, uint8_t op_code, BT_HDR* p_rsp, in gatts_db_read_attr_value_by_type() argument
261 uint8_t* p = (uint8_t*)(p_rsp + 1) + p_rsp->len + L2CAP_MIN_OFFSET; in gatts_db_read_attr_value_by_type()
285 if (p_rsp->offset == 0) p_rsp->offset = len + 2; in gatts_db_read_attr_value_by_type()
287 if (p_rsp->offset == len + 2) { in gatts_db_read_attr_value_by_type()
288 p_rsp->len += (len + 2); in gatts_db_read_attr_value_by_type()
Dgatt_sr.cc151 tGATTS_RSP* p_rsp = NULL; in process_read_multi_rsp() local
158 if (node != list_end(list)) p_rsp = (tGATTS_RSP*)list_node(node); in process_read_multi_rsp()
161 if (p_rsp != NULL) { in process_read_multi_rsp()
162 total_len = (p_buf->len + p_rsp->attr_value.len); in process_read_multi_rsp()
166 len = p_rsp->attr_value.len - (total_len - mtu); in process_read_multi_rsp()
170 p_rsp->attr_value.len); in process_read_multi_rsp()
172 len = p_rsp->attr_value.len; in process_read_multi_rsp()
175 if (p_rsp->attr_value.handle == p_cmd->multi_req.handles[ii]) { in process_read_multi_rsp()
176 memcpy(p, p_rsp->attr_value.value, len); in process_read_multi_rsp()
Dgatt_int.h574 tGATT_TCB& tcb, tGATT_SVC_DB* p_db, uint8_t op_code, BT_HDR* p_rsp,
/system/bt/btif/co/
Dbta_gatts_co.cc126 UNUSED_ATTR tBTA_GATTS_SRV_CHG_RSP* p_rsp) { in bta_gatts_co_srv_chg() argument
/system/bt/bta/gatt/
Dbta_gatts_api.cc261 p_buf->p_rsp = (tBTA_GATTS_RSP*)(p_buf + 1); in BTA_GATTS_SendRsp()
262 memcpy(p_buf->p_rsp, p_msg, sizeof(tBTA_GATTS_RSP)); in BTA_GATTS_SendRsp()
Dbta_gatts_act.cc43 tGATTS_SRV_CHG_RSP* p_rsp);
103 tGATTS_SRV_CHG_RSP* p_rsp) { in bta_gatts_nv_srv_chg_cback() argument
106 (tBTA_GATTS_SRV_CHG_RSP*)p_rsp); in bta_gatts_nv_srv_chg_cback()
358 (tGATTS_RSP*)p_msg->api_rsp.p_rsp) != GATT_SUCCESS) { in bta_gatts_send_rsp()
Dbta_gatts_int.h92 tBTA_GATTS_RSP* p_rsp; member
/system/bt/stack/gap/
Dgap_ble.cc173 tGATTS_RSP* p_rsp) { in proc_read() argument
174 if (p_data->is_long) p_rsp->attr_value.offset = p_data->offset; in proc_read()
176 p_rsp->attr_value.handle = p_data->handle; in proc_read()
178 return read_attr_value(p_data->handle, &p_rsp->attr_value, p_data->is_long); in proc_read()
/system/bt/stack/include/
Dsrvc_api.h188 tBA_RSP_DATA* p_rsp);
Davrc_api.h681 extern tAVRC_STS AVRC_BldResponse(uint8_t handle, tAVRC_RESPONSE* p_rsp,
Dgatt_api.h644 tGATTS_SRV_CHG_RSP* p_rsp);
/system/nfc/src/nfa/ee/
Dnfa_ee_act.c1490 tNFC_NFCEE_MODE_SET_REVT* p_rsp = p_data->mode_set_rsp.p_data; in nfa_ee_nci_mode_set_rsp() local
1493 p_rsp->nfcee_id, p_rsp->mode); in nfa_ee_nci_mode_set_rsp()
1494 p_cb = nfa_ee_find_ecb(p_rsp->nfcee_id); in nfa_ee_nci_mode_set_rsp()
1498 p_rsp->nfcee_id); in nfa_ee_nci_mode_set_rsp()
1505 if (p_rsp->status == NFA_STATUS_OK) { in nfa_ee_nci_mode_set_rsp()
1506 if (p_rsp->mode == NFA_EE_MD_ACTIVATE) { in nfa_ee_nci_mode_set_rsp()
1527 p_rsp->status, p_cb->ecb_flags, nfa_ee_cb.ee_cfged, in nfa_ee_nci_mode_set_rsp()
1541 mode_set.status = p_rsp->status; in nfa_ee_nci_mode_set_rsp()
1542 mode_set.ee_handle = (tNFA_HANDLE)p_rsp->nfcee_id | NFA_HANDLE_GROUP_EE; in nfa_ee_nci_mode_set_rsp()
1592 tNFA_EE_NCI_WAIT_RSP* p_rsp = &p_data->wait_rsp; in nfa_ee_nci_wait_rsp() local
[all …]
/system/nfc/src/nfa/hci/
Dnfa_hci_act.c1755 uint8_t* p_rsp = data; in nfa_hci_handle_identity_mgmt_gate_pkt() local
1804 p_rsp = gate_rsp; in nfa_hci_handle_identity_mgmt_gate_pkt()
1832 p_rsp); in nfa_hci_handle_identity_mgmt_gate_pkt()