• Home
  • Raw
  • Download

Lines Matching refs:p_buf

65     BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR));  in BTA_GATTC_Disable()  local
66 p_buf->event = BTA_GATTC_API_DISABLE_EVT; in BTA_GATTC_Disable()
68 bta_sys_sendmsg(p_buf); in BTA_GATTC_Disable()
87 tBTA_GATTC_API_REG *p_buf = in BTA_GATTC_AppRegister() local
93 p_buf->hdr.event = BTA_GATTC_API_REG_EVT; in BTA_GATTC_AppRegister()
95 memcpy(&p_buf->app_uuid, p_app_uuid, sizeof(tBT_UUID)); in BTA_GATTC_AppRegister()
96 p_buf->p_cback = p_client_cb; in BTA_GATTC_AppRegister()
98 bta_sys_sendmsg(p_buf); in BTA_GATTC_AppRegister()
115 tBTA_GATTC_API_DEREG *p_buf = in BTA_GATTC_AppDeregister() local
118 p_buf->hdr.event = BTA_GATTC_API_DEREG_EVT; in BTA_GATTC_AppDeregister()
119 p_buf->client_if = client_if; in BTA_GATTC_AppDeregister()
121 bta_sys_sendmsg(p_buf); in BTA_GATTC_AppDeregister()
142 tBTA_GATTC_API_OPEN *p_buf = in BTA_GATTC_Open() local
145 p_buf->hdr.event = BTA_GATTC_API_OPEN_EVT; in BTA_GATTC_Open()
146 p_buf->client_if = client_if; in BTA_GATTC_Open()
147 p_buf->is_direct = is_direct; in BTA_GATTC_Open()
148 p_buf->transport = transport; in BTA_GATTC_Open()
149 memcpy(p_buf->remote_bda, remote_bda, BD_ADDR_LEN); in BTA_GATTC_Open()
151 bta_sys_sendmsg(p_buf); in BTA_GATTC_Open()
170 tBTA_GATTC_API_CANCEL_OPEN *p_buf = in BTA_GATTC_CancelOpen() local
173 p_buf->hdr.event = BTA_GATTC_API_CANCEL_OPEN_EVT; in BTA_GATTC_CancelOpen()
174 p_buf->client_if = client_if; in BTA_GATTC_CancelOpen()
175 p_buf->is_direct = is_direct; in BTA_GATTC_CancelOpen()
176 memcpy(p_buf->remote_bda, remote_bda, BD_ADDR_LEN); in BTA_GATTC_CancelOpen()
178 bta_sys_sendmsg(p_buf); in BTA_GATTC_CancelOpen()
194 BT_HDR *p_buf = (BT_HDR *)osi_malloc(sizeof(BT_HDR)); in BTA_GATTC_Close() local
196 p_buf->event = BTA_GATTC_API_CLOSE_EVT; in BTA_GATTC_Close()
197 p_buf->layer_specific = conn_id; in BTA_GATTC_Close()
199 bta_sys_sendmsg(p_buf); in BTA_GATTC_Close()
217 tBTA_GATTC_API_CFG_MTU *p_buf = in BTA_GATTC_ConfigureMTU() local
220 p_buf->hdr.event = BTA_GATTC_API_CFG_MTU_EVT; in BTA_GATTC_ConfigureMTU()
221 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_ConfigureMTU()
222 p_buf->mtu = mtu; in BTA_GATTC_ConfigureMTU()
224 bta_sys_sendmsg(p_buf); in BTA_GATTC_ConfigureMTU()
246 tBTA_GATTC_API_SEARCH *p_buf = (tBTA_GATTC_API_SEARCH *)osi_calloc(len); in BTA_GATTC_ServiceSearchRequest() local
248 p_buf->hdr.event = BTA_GATTC_API_SEARCH_EVT; in BTA_GATTC_ServiceSearchRequest()
249 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_ServiceSearchRequest()
251 p_buf->p_srvc_uuid = (tBT_UUID *)(p_buf + 1); in BTA_GATTC_ServiceSearchRequest()
252 memcpy(p_buf->p_srvc_uuid, p_srvc_uuid, sizeof(tBT_UUID)); in BTA_GATTC_ServiceSearchRequest()
254 p_buf->p_srvc_uuid = NULL; in BTA_GATTC_ServiceSearchRequest()
257 bta_sys_sendmsg(p_buf); in BTA_GATTC_ServiceSearchRequest()
339 tBTA_GATTC_API_READ *p_buf = in BTA_GATTC_ReadCharacteristic() local
342 p_buf->hdr.event = BTA_GATTC_API_READ_EVT; in BTA_GATTC_ReadCharacteristic()
343 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_ReadCharacteristic()
344 p_buf->auth_req = auth_req; in BTA_GATTC_ReadCharacteristic()
345 p_buf->handle = handle; in BTA_GATTC_ReadCharacteristic()
346 p_buf->cmpl_evt = BTA_GATTC_READ_CHAR_EVT; in BTA_GATTC_ReadCharacteristic()
348 bta_sys_sendmsg(p_buf); in BTA_GATTC_ReadCharacteristic()
365 tBTA_GATTC_API_READ *p_buf = in BTA_GATTC_ReadCharDescr() local
368 p_buf->hdr.event = BTA_GATTC_API_READ_EVT; in BTA_GATTC_ReadCharDescr()
369 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_ReadCharDescr()
370 p_buf->auth_req = auth_req; in BTA_GATTC_ReadCharDescr()
371 p_buf->handle = handle; in BTA_GATTC_ReadCharDescr()
372 p_buf->cmpl_evt = BTA_GATTC_READ_DESCR_EVT; in BTA_GATTC_ReadCharDescr()
374 bta_sys_sendmsg(p_buf); in BTA_GATTC_ReadCharDescr()
393 tBTA_GATTC_API_READ_MULTI *p_buf = in BTA_GATTC_ReadMultiple() local
396 p_buf->hdr.event = BTA_GATTC_API_READ_MULTI_EVT; in BTA_GATTC_ReadMultiple()
397 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_ReadMultiple()
398 p_buf->auth_req = auth_req; in BTA_GATTC_ReadMultiple()
399 p_buf->num_attr = p_read_multi->num_attr; in BTA_GATTC_ReadMultiple()
401 if (p_buf->num_attr > 0) in BTA_GATTC_ReadMultiple()
402 memcpy(p_buf->handles, p_read_multi->handles, sizeof(UINT16) * p_read_multi->num_attr); in BTA_GATTC_ReadMultiple()
404 bta_sys_sendmsg(p_buf); in BTA_GATTC_ReadMultiple()
429 tBTA_GATTC_API_WRITE *p_buf = in BTA_GATTC_WriteCharValue() local
432 p_buf->hdr.event = BTA_GATTC_API_WRITE_EVT; in BTA_GATTC_WriteCharValue()
433 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_WriteCharValue()
434 p_buf->auth_req = auth_req; in BTA_GATTC_WriteCharValue()
435 p_buf->handle = handle; in BTA_GATTC_WriteCharValue()
436 p_buf->cmpl_evt = BTA_GATTC_WRITE_CHAR_EVT; in BTA_GATTC_WriteCharValue()
437 p_buf->write_type = write_type; in BTA_GATTC_WriteCharValue()
438 p_buf->len = len; in BTA_GATTC_WriteCharValue()
441 p_buf->p_value = (UINT8 *)(p_buf + 1); in BTA_GATTC_WriteCharValue()
442 memcpy(p_buf->p_value, p_value, len); in BTA_GATTC_WriteCharValue()
445 bta_sys_sendmsg(p_buf); in BTA_GATTC_WriteCharValue()
473 tBTA_GATTC_API_WRITE *p_buf = (tBTA_GATTC_API_WRITE *)osi_calloc(len); in BTA_GATTC_WriteCharDescr() local
474 p_buf->hdr.event = BTA_GATTC_API_WRITE_EVT; in BTA_GATTC_WriteCharDescr()
475 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_WriteCharDescr()
476 p_buf->auth_req = auth_req; in BTA_GATTC_WriteCharDescr()
477 p_buf->handle = handle; in BTA_GATTC_WriteCharDescr()
478 p_buf->cmpl_evt = BTA_GATTC_WRITE_DESCR_EVT; in BTA_GATTC_WriteCharDescr()
479 p_buf->write_type = write_type; in BTA_GATTC_WriteCharDescr()
482 p_buf->p_value = (UINT8 *)(p_buf + 1); in BTA_GATTC_WriteCharDescr()
483 p_buf->len = p_data->len; in BTA_GATTC_WriteCharDescr()
485 memcpy(p_buf->p_value, p_data->p_value, p_data->len); in BTA_GATTC_WriteCharDescr()
488 bta_sys_sendmsg(p_buf); in BTA_GATTC_WriteCharDescr()
510 tBTA_GATTC_API_WRITE *p_buf = in BTA_GATTC_PrepareWrite() local
513 p_buf->hdr.event = BTA_GATTC_API_WRITE_EVT; in BTA_GATTC_PrepareWrite()
514 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_PrepareWrite()
515 p_buf->auth_req = auth_req; in BTA_GATTC_PrepareWrite()
516 p_buf->handle = handle; in BTA_GATTC_PrepareWrite()
518 p_buf->write_type = BTA_GATTC_WRITE_PREPARE; in BTA_GATTC_PrepareWrite()
519 p_buf->offset = offset; in BTA_GATTC_PrepareWrite()
520 p_buf->len = len; in BTA_GATTC_PrepareWrite()
523 p_buf->p_value = (UINT8 *)(p_buf + 1); in BTA_GATTC_PrepareWrite()
524 memcpy(p_buf->p_value, p_value, len); in BTA_GATTC_PrepareWrite()
527 bta_sys_sendmsg(p_buf); in BTA_GATTC_PrepareWrite()
544 tBTA_GATTC_API_EXEC *p_buf = in BTA_GATTC_ExecuteWrite() local
547 p_buf->hdr.event = BTA_GATTC_API_EXEC_EVT; in BTA_GATTC_ExecuteWrite()
548 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_ExecuteWrite()
549 p_buf->is_execute = is_execute; in BTA_GATTC_ExecuteWrite()
551 bta_sys_sendmsg(p_buf); in BTA_GATTC_ExecuteWrite()
568 tBTA_GATTC_API_CONFIRM *p_buf = in BTA_GATTC_SendIndConfirm() local
573 p_buf->hdr.event = BTA_GATTC_API_CONFIRM_EVT; in BTA_GATTC_SendIndConfirm()
574 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_SendIndConfirm()
575 p_buf->handle = handle; in BTA_GATTC_SendIndConfirm()
577 bta_sys_sendmsg(p_buf); in BTA_GATTC_SendIndConfirm()
707 tBTA_GATTC_API_OPEN *p_buf = in BTA_GATTC_Refresh() local
710 p_buf->hdr.event = BTA_GATTC_API_REFRESH_EVT; in BTA_GATTC_Refresh()
711 memcpy(p_buf->remote_bda, remote_bda, BD_ADDR_LEN); in BTA_GATTC_Refresh()
713 bta_sys_sendmsg(p_buf); in BTA_GATTC_Refresh()
733 tBTA_GATTC_API_LISTEN *p_buf = in BTA_GATTC_Listen() local
736 p_buf->hdr.event = BTA_GATTC_API_LISTEN_EVT; in BTA_GATTC_Listen()
737 p_buf->client_if = client_if; in BTA_GATTC_Listen()
738 p_buf->start = start; in BTA_GATTC_Listen()
740 p_buf->remote_bda = (UINT8*)(p_buf + 1); in BTA_GATTC_Listen()
741 memcpy(p_buf->remote_bda, target_bda, BD_ADDR_LEN); in BTA_GATTC_Listen()
743 p_buf->remote_bda = NULL; in BTA_GATTC_Listen()
746 bta_sys_sendmsg(p_buf); in BTA_GATTC_Listen()
763 tBTA_GATTC_API_LISTEN *p_buf = in BTA_GATTC_Broadcast() local
766 p_buf->hdr.event = BTA_GATTC_API_BROADCAST_EVT; in BTA_GATTC_Broadcast()
767 p_buf->client_if = client_if; in BTA_GATTC_Broadcast()
768 p_buf->start = start; in BTA_GATTC_Broadcast()
770 bta_sys_sendmsg(p_buf); in BTA_GATTC_Broadcast()