/external/bluetooth/bluedroid/stack/avrc/ |
D | avrc_bld_tg.c | 40 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 49 if (!(AVRC_IS_VALID_CAP_ID(p_rsp->capability_id))) in avrc_bld_get_capability_rsp() 51 AVRC_TRACE_ERROR1("avrc_bld_get_capability_rsp bad parameter. p_rsp: %x", p_rsp); in avrc_bld_get_capability_rsp() 62 UINT8_TO_BE_STREAM(p_data, p_rsp->capability_id); in avrc_bld_get_capability_rsp() 67 *p_count = p_rsp->count; in avrc_bld_get_capability_rsp() 74 *p_count += p_rsp->count; in avrc_bld_get_capability_rsp() 77 if (p_rsp->capability_id == AVRC_CAP_COMPANY_ID) in avrc_bld_get_capability_rsp() 79 p_company_id = p_rsp->param.company_id; in avrc_bld_get_capability_rsp() 80 for (xx=0; xx< p_rsp->count; xx++) in avrc_bld_get_capability_rsp() 84 len += p_rsp->count * 3; in avrc_bld_get_capability_rsp() [all …]
|
D | avrc_api.c | 238 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/ |
D | sdp_server.c | 174 UINT8 *p_rsp, *p_rsp_start, *p_rsp_param_len; in process_service_search() local 250 p_rsp = p_rsp_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_search() 253 UINT8_TO_BE_STREAM (p_rsp, SDP_PDU_SERVICE_SEARCH_RSP); in process_service_search() 254 UINT16_TO_BE_STREAM (p_rsp, trans_num); in process_service_search() 257 p_rsp_param_len = p_rsp; in process_service_search() 258 p_rsp += 2; in process_service_search() 261 UINT16_TO_BE_STREAM (p_rsp, num_rsp_handles); in process_service_search() 262 UINT16_TO_BE_STREAM (p_rsp, cur_handles); in process_service_search() 268 UINT32_TO_BE_STREAM (p_rsp, rsp_handles[xx]); in process_service_search() 272 UINT8_TO_BE_STREAM (p_rsp, SDP_CONTINUATION_LEN); in process_service_search() [all …]
|
D | sdp_utils.c | 315 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()
|
D | sdp_db.c | 980 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/ |
D | srvc_eng.c | 207 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 213 p_rsp->attr_value.offset = p_data->offset; in srvc_eng_process_read_req() 215 p_rsp->attr_value.handle = p_data->handle; in srvc_eng_process_read_req() 218 …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() 221 …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() 230 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 439 void srvc_sr_rsp(UINT8 clcb_idx, tGATT_STATUS st, tGATTS_RSP *p_rsp) in srvc_sr_rsp() argument 446 p_rsp); in srvc_sr_rsp()
|
D | srvc_battery.c | 301 void Battery_Rsp (UINT8 app_id, tGATT_STATUS st, UINT8 event, tBA_RSP_DATA *p_rsp) in Battery_Rsp() argument 328 UINT16_TO_STREAM(pp, p_rsp->clt_cfg); in Battery_Rsp() 336 UINT8_TO_STREAM(pp, p_rsp->ba_level); in Battery_Rsp() 348 UINT8_TO_STREAM(pp, p_rsp->rpt_ref.rpt_id); in Battery_Rsp() 349 UINT8_TO_STREAM(pp, p_rsp->rpt_ref.rpt_type); in Battery_Rsp()
|
D | srvc_eng_int.h | 81 extern void srvc_sr_rsp(UINT8 clcb_idx, tGATT_STATUS st, tGATTS_RSP *p_rsp);
|
/external/bluetooth/bluedroid/btif/co/ |
D | bta_gatts_co.c | 65 tBTA_GATTS_SRV_CHG_RSP *p_rsp) in btif_gatts_srv_chg() argument 134 p_rsp->num_clients = p_cb->num_clients; in btif_gatts_srv_chg() 141 memcpy(&p_rsp->srv_chg, &p_cb->srv_chg[idx], sizeof(tBTA_GATTS_SRV_CHG)); in btif_gatts_srv_chg() 226 tBTA_GATTS_SRV_CHG_RSP *p_rsp) in bta_gatts_co_srv_chg() argument
|
/external/bluetooth/bluedroid/stack/gatt/ |
D | gatt_sr.c | 125 tGATTS_RSP *p_rsp; in process_read_multi_rsp() local 171 p_rsp = (tGATTS_RSP *)GKI_getfirst (&p_cmd->multi_rsp_q); in process_read_multi_rsp() 175 p_rsp = (tGATTS_RSP *)GKI_getnext (p_rsp); in process_read_multi_rsp() 178 if (p_rsp != NULL) in process_read_multi_rsp() 181 total_len = (p_buf->len + p_rsp->attr_value.len); in process_read_multi_rsp() 186 len = p_rsp->attr_value.len - (total_len - mtu); in process_read_multi_rsp() 188 …GATT_TRACE_DEBUG2 ("multi read overflow available len=%d val_len=%d", len, p_rsp->attr_value.len ); in process_read_multi_rsp() 192 len = p_rsp->attr_value.len; in process_read_multi_rsp() 195 if (p_rsp->attr_value.handle == p_cmd->multi_req.handles[ii]) in process_read_multi_rsp() 197 memcpy (p, p_rsp->attr_value.value, len); in process_read_multi_rsp()
|
D | gatt_db.c | 318 BT_HDR *p_rsp, in gatts_db_read_attr_value_by_type() argument 331 UINT8 *p = (UINT8 *)(p_rsp + 1) + p_rsp->len + L2CAP_MIN_OFFSET; in gatts_db_read_attr_value_by_type() 372 if (p_rsp->offset == 0) in gatts_db_read_attr_value_by_type() 373 p_rsp->offset = len + 2; in gatts_db_read_attr_value_by_type() 375 if (p_rsp->offset == len + 2) in gatts_db_read_attr_value_by_type() 377 p_rsp->len += (len + 2); in gatts_db_read_attr_value_by_type()
|
D | gatt_int.h | 671 …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/ |
D | bta_gatts_co.h | 63 tBTA_GATTS_SRV_CHG_RSP *p_rsp);
|
/external/libnfc-nci/src/nfa/ee/ |
D | nfa_ee_act.c | 1189 tNFC_NFCEE_MODE_SET_REVT *p_rsp = p_data->mode_set_rsp.p_data; in nfa_ee_nci_mode_set_rsp() local 1191 …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() 1192 p_cb = nfa_ee_find_ecb (p_rsp->nfcee_id); in nfa_ee_nci_mode_set_rsp() 1195 … 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() 1202 if (p_rsp->status == NFA_STATUS_OK) in nfa_ee_nci_mode_set_rsp() 1205 if (p_rsp->mode == NFA_EE_MD_ACTIVATE) in nfa_ee_nci_mode_set_rsp() 1227 p_rsp->status, p_cb->ecb_flags , nfa_ee_cb.ee_cfged, p_cb->ee_status); in nfa_ee_nci_mode_set_rsp() 1246 mode_set.status = p_rsp->status; in nfa_ee_nci_mode_set_rsp() 1247 mode_set.ee_handle = (tNFA_HANDLE)p_rsp->nfcee_id | NFA_HANDLE_GROUP_EE; in nfa_ee_nci_mode_set_rsp()
|
/external/bluetooth/bluedroid/stack/gap/ |
D | gap_ble.c | 345 tGATT_STATUS gap_proc_read (tGATTS_REQ_TYPE type, tGATT_READ_REQ *p_data, tGATTS_RSP *p_rsp) in gap_proc_read() argument 350 p_rsp->attr_value.offset = p_data->offset; in gap_proc_read() 352 p_rsp->attr_value.handle = p_data->handle; in gap_proc_read() 354 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/ |
D | bta_gatts_act.c | 40 …tts_nv_srv_chg_cback(tGATTS_SRV_CHG_CMD cmd, tGATTS_SRV_CHG_REQ *p_req, tGATTS_SRV_CHG_RSP *p_rsp); 88 …atts_nv_srv_chg_cback(tGATTS_SRV_CHG_CMD cmd, tGATTS_SRV_CHG_REQ *p_req, tGATTS_SRV_CHG_RSP *p_rsp) in bta_gatts_nv_srv_chg_cback() argument 92 (tBTA_GATTS_SRV_CHG_RSP *) p_rsp); in bta_gatts_nv_srv_chg_cback() 606 (tGATTS_RSP *)p_msg->api_rsp.p_rsp) != GATT_SUCCESS) in bta_gatts_send_rsp()
|
D | bta_gatts_api.c | 445 p_buf->p_rsp = (tBTA_GATTS_RSP *)(p_buf + 1); in BTA_GATTS_SendRsp() 446 memcpy(p_buf->p_rsp, p_msg, sizeof(tBTA_GATTS_RSP)); in BTA_GATTS_SendRsp()
|
D | bta_gatts_int.h | 130 tBTA_GATTS_RSP *p_rsp; member
|
/external/bluetooth/bluedroid/stack/include/ |
D | srvc_api.h | 200 …GATT_API extern void Battery_Rsp (UINT8 app_id, tGATT_STATUS st, UINT8 event, tBA_RSP_DATA *p_rsp);
|
D | avrc_api.h | 606 AVRC_API extern tAVRC_STS AVRC_BldResponse( UINT8 handle, tAVRC_RESPONSE *p_rsp, BT_HDR **pp_pkt);
|
D | gatt_api.h | 646 …TS_NV_SRV_CHG_CBACK)(tGATTS_SRV_CHG_CMD cmd, tGATTS_SRV_CHG_REQ *p_req, tGATTS_SRV_CHG_RSP *p_rsp);
|
/external/bluetooth/bluedroid/btif/src/ |
D | btif_gatt_server.c | 453 btgatt_response_t *p_rsp = &p_cb->response; in btgatts_handle_event() local 454 btif_to_bta_response(&rsp_struct, p_rsp); in btgatts_handle_event()
|
/external/libnfc-nci/src/nfa/hci/ |
D | nfa_hci_act.c | 1761 UINT8 *p_rsp = data; in nfa_hci_handle_identity_mgmt_gate_pkt() local 1813 p_rsp = gate_rsp; in nfa_hci_handle_identity_mgmt_gate_pkt() 1842 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()
|