Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/stack/avrc/
Davrc_bld_tg.cc59 static tAVRC_STS avrc_bld_get_capability_rsp(tAVRC_GET_CAPS_RSP* p_rsp, in avrc_bld_get_capability_rsp() argument
68 if (!(AVRC_IS_VALID_CAP_ID(p_rsp->capability_id))) { in avrc_bld_get_capability_rsp()
69 log::error("bad parameter. p_rsp: {}", fmt::ptr(p_rsp)); in avrc_bld_get_capability_rsp()
80 UINT8_TO_BE_STREAM(p_data, p_rsp->capability_id); in avrc_bld_get_capability_rsp()
84 *p_count = p_rsp->count; in avrc_bld_get_capability_rsp()
89 *p_count += p_rsp->count; in avrc_bld_get_capability_rsp()
92 if (p_rsp->capability_id == AVRC_CAP_COMPANY_ID) { in avrc_bld_get_capability_rsp()
93 p_company_id = p_rsp->param.company_id; in avrc_bld_get_capability_rsp()
94 for (xx = 0; xx < p_rsp->count; xx++) { in avrc_bld_get_capability_rsp()
97 len += p_rsp->count * 3; in avrc_bld_get_capability_rsp()
[all …]
Davrc_api.cc379 BT_HDR* p_rsp = NULL; in avrc_proc_vendor_command() local
451 p_rsp = (BT_HDR*)osi_calloc(BT_DEFAULT_BUFFER_SIZE); in avrc_proc_vendor_command()
452 p_rsp->offset = p_pkt->offset; in avrc_proc_vendor_command()
453 p_data = (uint8_t*)(p_rsp + 1) + p_pkt->offset; in avrc_proc_vendor_command()
459 p_rsp->len = AVRC_VENDOR_HDR_SIZE + 5; in avrc_proc_vendor_command()
462 return p_rsp; in avrc_proc_vendor_command()
481 BT_HDR* p_rsp = NULL; in avrc_proc_far_msg() local
596 p_rsp = avrc_proc_vendor_command(handle, label, *pp_pkt, p_msg); in avrc_proc_far_msg()
597 if (p_rsp) { in avrc_proc_far_msg()
598 AVCT_MsgReq(handle, label, AVCT_RSP, p_rsp); in avrc_proc_far_msg()
[all …]
Davrc_pars_ct.cc135 tAVRC_REG_NOTIF_RSP* p_rsp) { in avrc_parse_notification_rsp() argument
139 BE_STREAM_TO_UINT8(p_rsp->event_id, p_stream); in avrc_parse_notification_rsp()
140 switch (p_rsp->event_id) { in avrc_parse_notification_rsp()
144 BE_STREAM_TO_UINT8(p_rsp->param.play_status, p_stream); in avrc_parse_notification_rsp()
150 BE_STREAM_TO_ARRAY(p_stream, p_rsp->param.track, 8); in avrc_parse_notification_rsp()
156 BE_STREAM_TO_UINT8(p_rsp->param.player_setting.num_attr, p_stream); in avrc_parse_notification_rsp()
157 if (p_rsp->param.player_setting.num_attr > AVRC_MAX_APP_SETTINGS) { in avrc_parse_notification_rsp()
158 p_rsp->param.player_setting.num_attr = AVRC_MAX_APP_SETTINGS; in avrc_parse_notification_rsp()
160 min_len += p_rsp->param.player_setting.num_attr * 2; in avrc_parse_notification_rsp()
162 for (int index = 0; index < p_rsp->param.player_setting.num_attr; in avrc_parse_notification_rsp()
[all …]
/packages/modules/Bluetooth/system/stack/sdp/
Dsdp_server.cc193 uint8_t *p_rsp, *p_rsp_start, *p_rsp_param_len; in process_service_search() local
271 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_search()
274 UINT8_TO_BE_STREAM(p_rsp, SDP_PDU_SERVICE_SEARCH_RSP); in process_service_search()
275 UINT16_TO_BE_STREAM(p_rsp, trans_num); in process_service_search()
278 p_rsp_param_len = p_rsp; in process_service_search()
279 p_rsp += 2; in process_service_search()
282 UINT16_TO_BE_STREAM(p_rsp, num_rsp_handles); in process_service_search()
283 UINT16_TO_BE_STREAM(p_rsp, cur_handles); in process_service_search()
290 UINT32_TO_BE_STREAM(p_rsp, rsp_handles[xx]); in process_service_search()
293 UINT8_TO_BE_STREAM(p_rsp, SDP_CONTINUATION_LEN); in process_service_search()
[all …]
Dsdp_utils.cc710 uint8_t *p_rsp, *p_rsp_start, *p_rsp_param_len; in sdpu_build_n_send_error() local
719 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in sdpu_build_n_send_error()
721 UINT8_TO_BE_STREAM(p_rsp, SDP_PDU_ERROR_RESPONSE); in sdpu_build_n_send_error()
722 UINT16_TO_BE_STREAM(p_rsp, trans_num); in sdpu_build_n_send_error()
725 p_rsp_param_len = p_rsp; in sdpu_build_n_send_error()
726 p_rsp += 2; in sdpu_build_n_send_error()
728 UINT16_TO_BE_STREAM(p_rsp, error_code); in sdpu_build_n_send_error()
732 ARRAY_TO_BE_STREAM(p_rsp, p_error_text, (int)strlen(p_error_text)); in sdpu_build_n_send_error()
735 rsp_param_len = p_rsp - p_rsp_param_len - 2; in sdpu_build_n_send_error()
739 p_buf->len = p_rsp - p_rsp_start; in sdpu_build_n_send_error()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_rc.cc307 tAVRC_GET_CAPS_RSP* p_rsp);
309 tAVRC_LIST_APP_ATTR_RSP* p_rsp);
311 tAVRC_LIST_APP_VALUES_RSP* p_rsp);
313 tAVRC_GET_CUR_APP_VALUE_RSP* p_rsp);
315 tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp);
317 tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp);
321 tAVRC_GET_PLAY_STATUS_RSP* p_rsp);
323 tAVRC_RSP* p_rsp);
327 tAVRC_GET_ATTRS_RSP* p_rsp);
329 tAVRC_RSP* p_rsp);
[all …]
/packages/modules/Bluetooth/system/stack/gatt/
Dgatt_db.cc278 BT_HDR* p_rsp, uint16_t s_handle, uint16_t /* e_handle */, const Uuid& type, in gatts_db_read_attr_value_by_type() argument
283 uint8_t* p = (uint8_t*)(p_rsp + 1) + p_rsp->len + L2CAP_MIN_OFFSET; in gatts_db_read_attr_value_by_type()
305 if (p_rsp->offset == 0) p_rsp->offset = len + 2; in gatts_db_read_attr_value_by_type()
307 if (p_rsp->offset == len + 2) { in gatts_db_read_attr_value_by_type()
308 p_rsp->len += (len + 2); in gatts_db_read_attr_value_by_type()
Dgatt_sr.cc185 tGATTS_RSP* p_rsp = NULL; in build_read_multi_rsp() local
192 if (node != list_end(list)) p_rsp = (tGATTS_RSP*)list_node(node); in build_read_multi_rsp()
195 if (p_rsp != NULL) { in build_read_multi_rsp()
206 len = std::min((size_t) p_rsp->attr_value.len, mtu - total_len); in build_read_multi_rsp()
213 if (len < p_rsp->attr_value.len) { in build_read_multi_rsp()
216 p_rsp->attr_value.len); in build_read_multi_rsp()
224 if (p_rsp->attr_value.handle == p_cmd->multi_req.handles[ii]) { in build_read_multi_rsp()
225 ARRAY_TO_STREAM(p, p_rsp->attr_value.value, (uint16_t) len); in build_read_multi_rsp()
Dgatt_attr.cc275 tGATT_READ_REQ* p_data, tGATTS_RSP* p_rsp) { in proc_read_req() argument
276 if (p_data->is_long) p_rsp->attr_value.offset = p_data->offset; in proc_read_req()
278 p_rsp->attr_value.handle = p_data->handle; in proc_read_req()
280 return read_attr_value(conn_id, p_data->handle, &p_rsp->attr_value, in proc_read_req()
Dgatt_int.h673 BT_HDR* p_rsp, uint16_t s_handle, uint16_t e_handle,
/packages/modules/Bluetooth/system/stack/srvc/
Dsrvc_eng.cc191 tGATTS_RSP* p_rsp, in srvc_eng_process_read_req() argument
196 if (p_data->is_long) p_rsp->attr_value.offset = p_data->offset; in srvc_eng_process_read_req()
198 p_rsp->attr_value.handle = p_data->handle; in srvc_eng_process_read_req()
201 act = dis_read_attr_value(clcb_idx, p_data->handle, &p_rsp->attr_value, in srvc_eng_process_read_req()
/packages/modules/Bluetooth/system/stack/gap/
Dgap_ble.cc188 tGATTS_RSP* p_rsp) { in proc_read() argument
189 if (p_data->is_long) p_rsp->attr_value.offset = p_data->offset; in proc_read()
191 p_rsp->attr_value.handle = p_data->handle; in proc_read()
193 return read_attr_value(p_data->handle, &p_rsp->attr_value, p_data->is_long); in proc_read()
/packages/modules/Bluetooth/system/bta/gatt/
Dbta_gatts_api.cc292 p_buf->p_rsp = (tGATTS_RSP*)(p_buf + 1); in BTA_GATTS_SendRsp()
293 memcpy(p_buf->p_rsp, p_msg, sizeof(tGATTS_RSP)); in BTA_GATTS_SendRsp()
Dbta_gatts_act.cc47 tGATTS_SRV_CHG_RSP* p_rsp);
111 tGATTS_SRV_CHG_RSP* p_rsp) { in bta_gatts_nv_srv_chg_cback() argument
350 (tGATTS_RSP*)p_msg->api_rsp.p_rsp) != GATT_SUCCESS) { in bta_gatts_send_rsp()
Dbta_gatts_int.h100 tGATTS_RSP* p_rsp; member
/packages/modules/Bluetooth/system/stack/include/
Davrc_api.h778 tAVRC_STS AVRC_BldResponse(uint8_t handle, tAVRC_RESPONSE* p_rsp,
Dgatt_api.h804 tGATTS_SRV_CHG_RSP* p_rsp);
/packages/modules/Bluetooth/system/stack/test/gatt/
Dgatt_sr_test.cc86 BT_HDR* p_rsp, uint16_t s_handle, uint16_t e_handle, const Uuid& type, in gatts_db_read_attr_value_by_type() argument