Home
last modified time | relevance | path

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

/system/bt/stack/avrc/
Davrc_bld_tg.cc51 static tAVRC_STS avrc_bld_get_capability_rsp(tAVRC_GET_CAPS_RSP* p_rsp, in avrc_bld_get_capability_rsp() argument
60 if (!(AVRC_IS_VALID_CAP_ID(p_rsp->capability_id))) { in avrc_bld_get_capability_rsp()
61 AVRC_TRACE_ERROR("%s bad parameter. p_rsp: %x", __func__, p_rsp); in avrc_bld_get_capability_rsp()
72 UINT8_TO_BE_STREAM(p_data, p_rsp->capability_id); in avrc_bld_get_capability_rsp()
76 *p_count = p_rsp->count; in avrc_bld_get_capability_rsp()
81 *p_count += p_rsp->count; in avrc_bld_get_capability_rsp()
84 if (p_rsp->capability_id == AVRC_CAP_COMPANY_ID) { in avrc_bld_get_capability_rsp()
85 p_company_id = p_rsp->param.company_id; in avrc_bld_get_capability_rsp()
86 for (xx = 0; xx < p_rsp->count; xx++) { in avrc_bld_get_capability_rsp()
89 len += p_rsp->count * 3; in avrc_bld_get_capability_rsp()
[all …]
Davrc_api.cc356 BT_HDR* p_rsp = NULL; in avrc_proc_vendor_command() local
428 p_rsp = (BT_HDR*)osi_malloc(BT_DEFAULT_BUFFER_SIZE); in avrc_proc_vendor_command()
429 p_rsp->offset = p_pkt->offset; in avrc_proc_vendor_command()
430 p_data = (uint8_t*)(p_rsp + 1) + p_pkt->offset; in avrc_proc_vendor_command()
436 p_rsp->len = AVRC_VENDOR_HDR_SIZE + 5; in avrc_proc_vendor_command()
439 return p_rsp; in avrc_proc_vendor_command()
458 BT_HDR* p_rsp = NULL; in avrc_proc_far_msg() local
574 p_rsp = avrc_proc_vendor_command(handle, label, *pp_pkt, p_msg); in avrc_proc_far_msg()
575 if (p_rsp) { in avrc_proc_far_msg()
576 AVCT_MsgReq(handle, label, AVCT_RSP, p_rsp); in avrc_proc_far_msg()
[all …]
Davrc_pars_ct.cc143 tAVRC_REG_NOTIF_RSP* p_rsp) { in avrc_parse_notification_rsp() argument
147 BE_STREAM_TO_UINT8(p_rsp->event_id, p_stream); in avrc_parse_notification_rsp()
148 switch (p_rsp->event_id) { in avrc_parse_notification_rsp()
152 BE_STREAM_TO_UINT8(p_rsp->param.play_status, p_stream); in avrc_parse_notification_rsp()
158 BE_STREAM_TO_ARRAY(p_stream, p_rsp->param.track, 8); in avrc_parse_notification_rsp()
164 BE_STREAM_TO_UINT8(p_rsp->param.player_setting.num_attr, p_stream); in avrc_parse_notification_rsp()
165 if (p_rsp->param.player_setting.num_attr > AVRC_MAX_APP_SETTINGS) { in avrc_parse_notification_rsp()
167 p_rsp->param.player_setting.num_attr = AVRC_MAX_APP_SETTINGS; in avrc_parse_notification_rsp()
169 min_len += p_rsp->param.player_setting.num_attr * 2; in avrc_parse_notification_rsp()
171 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.cc522 uint8_t *p_rsp, *p_rsp_start, *p_rsp_param_len; in sdpu_build_n_send_error() local
531 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in sdpu_build_n_send_error()
533 UINT8_TO_BE_STREAM(p_rsp, SDP_PDU_ERROR_RESPONSE); in sdpu_build_n_send_error()
534 UINT16_TO_BE_STREAM(p_rsp, trans_num); in sdpu_build_n_send_error()
537 p_rsp_param_len = p_rsp; in sdpu_build_n_send_error()
538 p_rsp += 2; in sdpu_build_n_send_error()
540 UINT16_TO_BE_STREAM(p_rsp, error_code); in sdpu_build_n_send_error()
544 ARRAY_TO_BE_STREAM(p_rsp, p_error_text, (int)strlen(p_error_text)); in sdpu_build_n_send_error()
547 rsp_param_len = p_rsp - p_rsp_param_len - 2; in sdpu_build_n_send_error()
551 p_buf->len = p_rsp - p_rsp_start; in sdpu_build_n_send_error()
Dsdp_db.cc871 uint8_t* p_rsp; in SDP_ReadRecord() local
876 p_rsp = &p_data[3]; in SDP_ReadRecord()
879 rem_len = *p_data_len - (uint16_t)(p_rsp - p_data); in SDP_ReadRecord()
883 p_rsp = sdpu_build_attrib_entry(p_rsp, p_attr); in SDP_ReadRecord()
888 len = (int32_t)(p_rsp - p_data); in SDP_ReadRecord()
/system/bt/btif/src/
Dbtif_rc.cc278 tAVRC_GET_CAPS_RSP* p_rsp);
280 tAVRC_LIST_APP_ATTR_RSP* p_rsp);
282 tAVRC_LIST_APP_VALUES_RSP* p_rsp);
284 tAVRC_GET_CUR_APP_VALUE_RSP* p_rsp);
286 tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp);
288 tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp);
292 tAVRC_GET_PLAY_STATUS_RSP* p_rsp);
294 tAVRC_RSP* p_rsp);
298 tAVRC_GET_ATTRS_RSP* p_rsp);
300 tAVRC_RSP* p_rsp);
[all …]
/system/bt/stack/srvc/
Dsrvc_eng.cc204 tGATTS_RSP* p_rsp, tGATT_STATUS* p_status) { in srvc_eng_process_read_req() argument
208 if (p_data->is_long) p_rsp->attr_value.offset = p_data->offset; in srvc_eng_process_read_req()
210 p_rsp->attr_value.handle = p_data->handle; in srvc_eng_process_read_req()
213 act = dis_read_attr_value(clcb_idx, p_data->handle, &p_rsp->attr_value, in srvc_eng_process_read_req()
223 UNUSED_ATTR tGATTS_RSP* p_rsp, in srvc_eng_process_write_req() argument
416 void srvc_sr_rsp(uint8_t clcb_idx, tGATT_STATUS st, tGATTS_RSP* p_rsp) { in srvc_sr_rsp() argument
419 srvc_eng_cb.clcb[clcb_idx].trans_id, st, p_rsp); in srvc_sr_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 tGATTS_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()
283 if (p_rsp->offset == 0) p_rsp->offset = len + 2; in gatts_db_read_attr_value_by_type()
285 if (p_rsp->offset == len + 2) { in gatts_db_read_attr_value_by_type()
286 p_rsp->len += (len + 2); in gatts_db_read_attr_value_by_type()
Dgatt_sr.cc154 tGATTS_RSP* p_rsp = NULL; in process_read_multi_rsp() local
161 if (node != list_end(list)) p_rsp = (tGATTS_RSP*)list_node(node); in process_read_multi_rsp()
164 if (p_rsp != NULL) { in process_read_multi_rsp()
165 total_len = (p_buf->len + p_rsp->attr_value.len); in process_read_multi_rsp()
169 len = p_rsp->attr_value.len - (total_len - mtu); in process_read_multi_rsp()
173 p_rsp->attr_value.len); in process_read_multi_rsp()
175 len = p_rsp->attr_value.len; in process_read_multi_rsp()
178 if (p_rsp->attr_value.handle == p_cmd->multi_req.handles[ii]) { in process_read_multi_rsp()
179 memcpy(p, p_rsp->attr_value.value, len); in process_read_multi_rsp()
Dgatt_int.h558 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 tGATTS_SRV_CHG_RSP* p_rsp) { in bta_gatts_co_srv_chg() argument
/system/bt/stack/gap/
Dgap_ble.cc174 tGATTS_RSP* p_rsp) { in proc_read() argument
175 if (p_data->is_long) p_rsp->attr_value.offset = p_data->offset; in proc_read()
177 p_rsp->attr_value.handle = p_data->handle; in proc_read()
179 return read_attr_value(p_data->handle, &p_rsp->attr_value, p_data->is_long); in proc_read()
/system/bt/bta/gatt/
Dbta_gatts_api.cc276 p_buf->p_rsp = (tGATTS_RSP*)(p_buf + 1); in BTA_GATTS_SendRsp()
277 memcpy(p_buf->p_rsp, p_msg, sizeof(tGATTS_RSP)); in BTA_GATTS_SendRsp()
Dbta_gatts_act.cc45 tGATTS_SRV_CHG_RSP* p_rsp);
105 tGATTS_SRV_CHG_RSP* p_rsp) { in bta_gatts_nv_srv_chg_cback() argument
108 (tGATTS_SRV_CHG_RSP*)p_rsp); in bta_gatts_nv_srv_chg_cback()
356 (tGATTS_RSP*)p_msg->api_rsp.p_rsp) != GATT_SUCCESS) { in bta_gatts_send_rsp()
Dbta_gatts_int.h93 tGATTS_RSP* p_rsp; member
/system/nfc/src/nfa/ee/
Dnfa_ee_act.cc2133 tNFC_NFCEE_MODE_SET_REVT* p_rsp = p_data->mode_set_rsp.p_data; in nfa_ee_nci_mode_set_rsp() local
2136 "%s handle:0x%02x mode:%d", __func__, p_rsp->nfcee_id, p_rsp->mode); in nfa_ee_nci_mode_set_rsp()
2137 p_cb = nfa_ee_find_ecb(p_rsp->nfcee_id); in nfa_ee_nci_mode_set_rsp()
2140 p_rsp->nfcee_id); in nfa_ee_nci_mode_set_rsp()
2150 p_rsp->status); in nfa_ee_nci_mode_set_rsp()
2151 if (p_rsp->status == NFA_STATUS_OK) { in nfa_ee_nci_mode_set_rsp()
2152 if (p_rsp->mode == NFA_EE_MD_ACTIVATE) { in nfa_ee_nci_mode_set_rsp()
2172 } else if (p_rsp->mode == NFA_EE_MD_ACTIVATE) { in nfa_ee_nci_mode_set_rsp()
2177 p_rsp->status, p_cb->ecb_flags, nfa_ee_cb.ee_cfged, p_cb->ee_status); in nfa_ee_nci_mode_set_rsp()
2190 mode_set.status = p_rsp->status; in nfa_ee_nci_mode_set_rsp()
[all …]
/system/bt/stack/include/
Davrc_api.h685 extern tAVRC_STS AVRC_BldResponse(uint8_t handle, tAVRC_RESPONSE* p_rsp,
Dgatt_api.h638 tGATTS_SRV_CHG_RSP* p_rsp);
/system/nfc/src/nfa/hci/
Dnfa_hci_act.cc1772 uint8_t* p_rsp = data; in nfa_hci_handle_identity_mgmt_gate_pkt() local
1821 p_rsp = gate_rsp; in nfa_hci_handle_identity_mgmt_gate_pkt()
1849 p_rsp); in nfa_hci_handle_identity_mgmt_gate_pkt()