Home
last modified time | relevance | path

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

/external/bluetooth/bluedroid/stack/avrc/
Davrc_bld_tg.c41 static tAVRC_STS avrc_bld_get_capability_rsp (tAVRC_GET_CAPS_RSP *p_rsp, BT_HDR *p_pkt) in avrc_bld_get_capability_rsp() argument
50 if (!(AVRC_IS_VALID_CAP_ID(p_rsp->capability_id))) in avrc_bld_get_capability_rsp()
52 AVRC_TRACE_ERROR("avrc_bld_get_capability_rsp bad parameter. p_rsp: %x", p_rsp); in avrc_bld_get_capability_rsp()
63 UINT8_TO_BE_STREAM(p_data, p_rsp->capability_id); in avrc_bld_get_capability_rsp()
68 *p_count = p_rsp->count; in avrc_bld_get_capability_rsp()
75 *p_count += p_rsp->count; in avrc_bld_get_capability_rsp()
78 if (p_rsp->capability_id == AVRC_CAP_COMPANY_ID) in avrc_bld_get_capability_rsp()
80 p_company_id = p_rsp->param.company_id; in avrc_bld_get_capability_rsp()
81 for (xx=0; xx< p_rsp->count; xx++) in avrc_bld_get_capability_rsp()
85 len += p_rsp->count * 3; in avrc_bld_get_capability_rsp()
[all …]
Davrc_api.c238 BT_HDR *p_rsp = NULL; in avrc_proc_vendor_command() local
332 p_rsp = p_pkt; in avrc_proc_vendor_command()
335 return p_rsp; in avrc_proc_vendor_command()
354 BT_HDR *p_rsp = NULL; in avrc_proc_far_msg() local
483 p_rsp = avrc_proc_vendor_command(handle, label, *pp_pkt, p_msg); in avrc_proc_far_msg()
484 if (p_rsp) in avrc_proc_far_msg()
486 AVCT_MsgReq( handle, label, AVCT_RSP, p_rsp); in avrc_proc_far_msg()
533 BT_HDR *p_rsp = NULL; in avrc_msg_cback() local
583 p_rsp = p_pkt; /* this also sets free = FALSE, drop = TRUE */ in avrc_msg_cback()
592 p_rsp->len = (UINT16) (p_rsp_data - (UINT8 *)(p_rsp + 1) - p_rsp->offset); in avrc_msg_cback()
[all …]
/external/bluetooth/bluedroid/stack/sdp/
Dsdp_server.c179 UINT8 *p_rsp, *p_rsp_start, *p_rsp_param_len; in process_service_search() local
264 p_rsp = p_rsp_start = (UINT8 *)(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()
282 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.c315 UINT8 *p_rsp, *p_rsp_start, *p_rsp_param_len; in sdpu_build_n_send_error() local
330 p_rsp = p_rsp_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in sdpu_build_n_send_error()
332 UINT8_TO_BE_STREAM (p_rsp, SDP_PDU_ERROR_RESPONSE); in sdpu_build_n_send_error()
333 UINT16_TO_BE_STREAM (p_rsp, trans_num); in sdpu_build_n_send_error()
336 p_rsp_param_len = p_rsp; in sdpu_build_n_send_error()
337 p_rsp += 2; in sdpu_build_n_send_error()
339 UINT16_TO_BE_STREAM (p_rsp, error_code); in sdpu_build_n_send_error()
343 ARRAY_TO_BE_STREAM (p_rsp, p_error_text, (int) strlen (p_error_text)); in sdpu_build_n_send_error()
346 rsp_param_len = p_rsp - p_rsp_param_len - 2; in sdpu_build_n_send_error()
350 p_buf->len = p_rsp - p_rsp_start; in sdpu_build_n_send_error()
Dsdp_db.c980 UINT8 *p_rsp; in SDP_ReadRecord() local
986 p_rsp = &p_data[3]; in SDP_ReadRecord()
990 rem_len = *p_data_len - (UINT16) (p_rsp - p_data); in SDP_ReadRecord()
995 p_rsp = sdpu_build_attrib_entry (p_rsp, p_attr); in SDP_ReadRecord()
1000 len = (INT32) (p_rsp - p_data); in SDP_ReadRecord()
/external/bluetooth/bluedroid/stack/srvc/
Dsrvc_eng.c217 UINT8 srvc_eng_process_read_req (UINT8 clcb_idx, tGATT_READ_REQ *p_data, tGATTS_RSP *p_rsp, tGATT_S… in srvc_eng_process_read_req() argument
223 p_rsp->attr_value.offset = p_data->offset; in srvc_eng_process_read_req()
225 p_rsp->attr_value.handle = p_data->handle; in srvc_eng_process_read_req()
228 …act = dis_read_attr_value(clcb_idx, p_data->handle, &p_rsp->attr_value, p_data->is_long, p_status); in srvc_eng_process_read_req()
231 …act = battery_s_read_attr_value(clcb_idx, p_data->handle, &p_rsp->attr_value, p_data->is_long, p_s… in srvc_eng_process_read_req()
240 UINT8 srvc_eng_process_write_req (UINT8 clcb_idx, tGATT_WRITE_REQ *p_data, tGATTS_RSP *p_rsp, tGATT… in srvc_eng_process_write_req() argument
243 UNUSED(p_rsp); in srvc_eng_process_write_req()
458 void srvc_sr_rsp(UINT8 clcb_idx, tGATT_STATUS st, tGATTS_RSP *p_rsp) in srvc_sr_rsp() argument
465 p_rsp); in srvc_sr_rsp()
Dsrvc_battery.c307 void Battery_Rsp (UINT8 app_id, tGATT_STATUS st, UINT8 event, tBA_RSP_DATA *p_rsp) in Battery_Rsp() argument
334 UINT16_TO_STREAM(pp, p_rsp->clt_cfg); in Battery_Rsp()
342 UINT8_TO_STREAM(pp, p_rsp->ba_level); in Battery_Rsp()
354 UINT8_TO_STREAM(pp, p_rsp->rpt_ref.rpt_id); in Battery_Rsp()
355 UINT8_TO_STREAM(pp, p_rsp->rpt_ref.rpt_type); in Battery_Rsp()
Dsrvc_eng_int.h81 extern void srvc_sr_rsp(UINT8 clcb_idx, tGATT_STATUS st, tGATTS_RSP *p_rsp);
/external/bluetooth/bluedroid/btif/co/
Dbta_gatts_co.c138 tBTA_GATTS_SRV_CHG_RSP *p_rsp) in bta_gatts_co_srv_chg() argument
142 UNUSED(p_rsp); in bta_gatts_co_srv_chg()
/external/bluetooth/bluedroid/stack/gatt/
Dgatt_sr.c126 tGATTS_RSP *p_rsp; in process_read_multi_rsp() local
172 p_rsp = (tGATTS_RSP *)GKI_getfirst (&p_cmd->multi_rsp_q); in process_read_multi_rsp()
176 p_rsp = (tGATTS_RSP *)GKI_getnext (p_rsp); in process_read_multi_rsp()
179 if (p_rsp != NULL) in process_read_multi_rsp()
182 total_len = (p_buf->len + p_rsp->attr_value.len); in process_read_multi_rsp()
187 len = p_rsp->attr_value.len - (total_len - mtu); in process_read_multi_rsp()
189 … GATT_TRACE_DEBUG ("multi read overflow available len=%d val_len=%d", len, p_rsp->attr_value.len ); in process_read_multi_rsp()
193 len = p_rsp->attr_value.len; in process_read_multi_rsp()
196 if (p_rsp->attr_value.handle == p_cmd->multi_req.handles[ii]) in process_read_multi_rsp()
198 memcpy (p, p_rsp->attr_value.value, len); in process_read_multi_rsp()
Dgatt_db.c329 BT_HDR *p_rsp, in gatts_db_read_attr_value_by_type() argument
342 UINT8 *p = (UINT8 *)(p_rsp + 1) + p_rsp->len + L2CAP_MIN_OFFSET; in gatts_db_read_attr_value_by_type()
391 if (p_rsp->offset == 0) in gatts_db_read_attr_value_by_type()
392 p_rsp->offset = len + 2; in gatts_db_read_attr_value_by_type()
394 if (p_rsp->offset == len + 2) in gatts_db_read_attr_value_by_type()
396 p_rsp->len += (len + 2); in gatts_db_read_attr_value_by_type()
Dgatt_int.h691 …value_by_type (tGATT_TCB *p_tcb, tGATT_SVC_DB *p_db, UINT8 op_code, BT_HDR *p_rsp, UINT16 s_handle,
/external/bluetooth/bluedroid/bta/include/
Dbta_gatts_co.h63 tBTA_GATTS_SRV_CHG_RSP *p_rsp);
/external/libnfc-nci/src/nfa/ee/
Dnfa_ee_act.c1431 tNFC_NFCEE_MODE_SET_REVT *p_rsp = p_data->mode_set_rsp.p_data; in nfa_ee_nci_mode_set_rsp() local
1433 …NFA_TRACE_DEBUG2 ("nfa_ee_nci_mode_set_rsp() handle:0x%02x mode:%d", p_rsp->nfcee_id, p_rsp->mode); in nfa_ee_nci_mode_set_rsp()
1434 p_cb = nfa_ee_find_ecb (p_rsp->nfcee_id); in nfa_ee_nci_mode_set_rsp()
1437 … NFA_TRACE_ERROR1 ("nfa_ee_nci_mode_set_rsp() Can not find cb for handle:0x%02x", p_rsp->nfcee_id); in nfa_ee_nci_mode_set_rsp()
1444 if (p_rsp->status == NFA_STATUS_OK) in nfa_ee_nci_mode_set_rsp()
1447 if (p_rsp->mode == NFA_EE_MD_ACTIVATE) in nfa_ee_nci_mode_set_rsp()
1469 p_rsp->status, p_cb->ecb_flags , nfa_ee_cb.ee_cfged, p_cb->ee_status); in nfa_ee_nci_mode_set_rsp()
1488 mode_set.status = p_rsp->status; in nfa_ee_nci_mode_set_rsp()
1489 mode_set.ee_handle = (tNFA_HANDLE)p_rsp->nfcee_id | NFA_HANDLE_GROUP_EE; in nfa_ee_nci_mode_set_rsp()
1542 tNFA_EE_NCI_WAIT_RSP *p_rsp = &p_data->wait_rsp; in nfa_ee_nci_wait_rsp() local
[all …]
/external/bluetooth/bluedroid/stack/gap/
Dgap_ble.c279 tGATT_STATUS gap_proc_read (tGATTS_REQ_TYPE type, tGATT_READ_REQ *p_data, tGATTS_RSP *p_rsp) in gap_proc_read() argument
285 p_rsp->attr_value.offset = p_data->offset; in gap_proc_read()
287 p_rsp->attr_value.handle = p_data->handle; in gap_proc_read()
289 status = gap_read_attr_value(p_data->handle, &p_rsp->attr_value, p_data->is_long); in gap_proc_read()
/external/bluetooth/bluedroid/bta/gatt/
Dbta_gatts_api.c443 p_buf->p_rsp = (tBTA_GATTS_RSP *)(p_buf + 1); in BTA_GATTS_SendRsp()
444 memcpy(p_buf->p_rsp, p_msg, sizeof(tBTA_GATTS_RSP)); in BTA_GATTS_SendRsp()
Dbta_gatts_act.c41 tGATTS_SRV_CHG_RSP *p_rsp);
95 tGATTS_SRV_CHG_REQ *p_req, tGATTS_SRV_CHG_RSP *p_rsp) in bta_gatts_nv_srv_chg_cback() argument
99 (tBTA_GATTS_SRV_CHG_RSP *) p_rsp); in bta_gatts_nv_srv_chg_cback()
621 (tGATTS_RSP *)p_msg->api_rsp.p_rsp) != GATT_SUCCESS) in bta_gatts_send_rsp()
Dbta_gatts_int.h130 tBTA_GATTS_RSP *p_rsp; member
/external/bluetooth/bluedroid/stack/include/
Dsrvc_api.h201 …GATT_API extern void Battery_Rsp (UINT8 app_id, tGATT_STATUS st, UINT8 event, tBA_RSP_DATA *p_rsp);
Davrc_api.h606 AVRC_API extern tAVRC_STS AVRC_BldResponse( UINT8 handle, tAVRC_RESPONSE *p_rsp, BT_HDR **pp_pkt);
Dgatt_api.h652 tGATTS_SRV_CHG_RSP *p_rsp);
/external/bluetooth/bluedroid/btif/src/
Dbtif_gatt_server.c490 btgatt_response_t *p_rsp = &p_cb->response; in btgatts_handle_event() local
491 btif_to_bta_response(&rsp_struct, p_rsp); in btgatts_handle_event()
/external/libnfc-nci/src/nfa/hci/
Dnfa_hci_act.c1811 UINT8 *p_rsp = data; in nfa_hci_handle_identity_mgmt_gate_pkt() local
1863 p_rsp = gate_rsp; in nfa_hci_handle_identity_mgmt_gate_pkt()
1892 nfa_hciu_send_msg (p_pipe->pipe_id, NFA_HCI_RESPONSE_TYPE, response, rsp_len, p_rsp); in nfa_hci_handle_identity_mgmt_gate_pkt()