Lines Matching refs:p_buf

130   tBTA_GATTC_API_OPEN* p_buf =  in BTA_GATTC_Open()  local
133 p_buf->hdr.event = BTA_GATTC_API_OPEN_EVT; in BTA_GATTC_Open()
134 p_buf->client_if = client_if; in BTA_GATTC_Open()
135 p_buf->is_direct = is_direct; in BTA_GATTC_Open()
136 p_buf->transport = transport; in BTA_GATTC_Open()
137 p_buf->initiating_phys = initiating_phys; in BTA_GATTC_Open()
138 p_buf->opportunistic = opportunistic; in BTA_GATTC_Open()
139 p_buf->remote_bda = remote_bda; in BTA_GATTC_Open()
141 bta_sys_sendmsg(p_buf); in BTA_GATTC_Open()
161 tBTA_GATTC_API_CANCEL_OPEN* p_buf = (tBTA_GATTC_API_CANCEL_OPEN*)osi_malloc( in BTA_GATTC_CancelOpen() local
164 p_buf->hdr.event = BTA_GATTC_API_CANCEL_OPEN_EVT; in BTA_GATTC_CancelOpen()
165 p_buf->client_if = client_if; in BTA_GATTC_CancelOpen()
166 p_buf->is_direct = is_direct; in BTA_GATTC_CancelOpen()
167 p_buf->remote_bda = remote_bda; in BTA_GATTC_CancelOpen()
169 bta_sys_sendmsg(p_buf); in BTA_GATTC_CancelOpen()
184 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); in BTA_GATTC_Close() local
186 p_buf->event = BTA_GATTC_API_CLOSE_EVT; in BTA_GATTC_Close()
187 p_buf->layer_specific = conn_id; in BTA_GATTC_Close()
189 bta_sys_sendmsg(p_buf); in BTA_GATTC_Close()
212 tBTA_GATTC_API_CFG_MTU* p_buf = in BTA_GATTC_ConfigureMTU() local
215 p_buf->hdr.event = BTA_GATTC_API_CFG_MTU_EVT; in BTA_GATTC_ConfigureMTU()
216 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_ConfigureMTU()
217 p_buf->mtu = mtu; in BTA_GATTC_ConfigureMTU()
218 p_buf->mtu_cb = callback; in BTA_GATTC_ConfigureMTU()
219 p_buf->mtu_cb_data = cb_data; in BTA_GATTC_ConfigureMTU()
221 bta_sys_sendmsg(p_buf); in BTA_GATTC_ConfigureMTU()
243 tBTA_GATTC_API_SEARCH* p_buf = (tBTA_GATTC_API_SEARCH*)osi_calloc(len); in BTA_GATTC_ServiceSearchRequest() local
245 p_buf->hdr.event = BTA_GATTC_API_SEARCH_EVT; in BTA_GATTC_ServiceSearchRequest()
246 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_ServiceSearchRequest()
248 p_buf->p_srvc_uuid = (Uuid*)(p_buf + 1); in BTA_GATTC_ServiceSearchRequest()
249 *p_buf->p_srvc_uuid = *p_srvc_uuid; in BTA_GATTC_ServiceSearchRequest()
251 p_buf->p_srvc_uuid = NULL; in BTA_GATTC_ServiceSearchRequest()
254 bta_sys_sendmsg(p_buf); in BTA_GATTC_ServiceSearchRequest()
366 tBTA_GATTC_API_READ* p_buf = in BTA_GATTC_ReadCharacteristic() local
369 p_buf->hdr.event = BTA_GATTC_API_READ_EVT; in BTA_GATTC_ReadCharacteristic()
370 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_ReadCharacteristic()
371 p_buf->auth_req = auth_req; in BTA_GATTC_ReadCharacteristic()
372 p_buf->handle = handle; in BTA_GATTC_ReadCharacteristic()
373 p_buf->read_cb = callback; in BTA_GATTC_ReadCharacteristic()
374 p_buf->read_cb_data = cb_data; in BTA_GATTC_ReadCharacteristic()
376 bta_sys_sendmsg(p_buf); in BTA_GATTC_ReadCharacteristic()
387 tBTA_GATTC_API_READ* p_buf = in BTA_GATTC_ReadUsingCharUuid() local
390 p_buf->hdr.event = BTA_GATTC_API_READ_EVT; in BTA_GATTC_ReadUsingCharUuid()
391 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_ReadUsingCharUuid()
392 p_buf->auth_req = auth_req; in BTA_GATTC_ReadUsingCharUuid()
393 p_buf->handle = 0; in BTA_GATTC_ReadUsingCharUuid()
394 p_buf->uuid = uuid; in BTA_GATTC_ReadUsingCharUuid()
395 p_buf->s_handle = s_handle; in BTA_GATTC_ReadUsingCharUuid()
396 p_buf->e_handle = e_handle; in BTA_GATTC_ReadUsingCharUuid()
397 p_buf->read_cb = callback; in BTA_GATTC_ReadUsingCharUuid()
398 p_buf->read_cb_data = cb_data; in BTA_GATTC_ReadUsingCharUuid()
400 bta_sys_sendmsg(p_buf); in BTA_GATTC_ReadUsingCharUuid()
418 tBTA_GATTC_API_READ* p_buf = in BTA_GATTC_ReadCharDescr() local
421 p_buf->hdr.event = BTA_GATTC_API_READ_EVT; in BTA_GATTC_ReadCharDescr()
422 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_ReadCharDescr()
423 p_buf->auth_req = auth_req; in BTA_GATTC_ReadCharDescr()
424 p_buf->handle = handle; in BTA_GATTC_ReadCharDescr()
425 p_buf->read_cb = callback; in BTA_GATTC_ReadCharDescr()
426 p_buf->read_cb_data = cb_data; in BTA_GATTC_ReadCharDescr()
428 bta_sys_sendmsg(p_buf); in BTA_GATTC_ReadCharDescr()
446 tBTA_GATTC_API_READ_MULTI* p_buf = in BTA_GATTC_ReadMultiple() local
449 p_buf->hdr.event = BTA_GATTC_API_READ_MULTI_EVT; in BTA_GATTC_ReadMultiple()
450 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_ReadMultiple()
451 p_buf->auth_req = auth_req; in BTA_GATTC_ReadMultiple()
452 p_buf->num_attr = p_read_multi->num_attr; in BTA_GATTC_ReadMultiple()
454 if (p_buf->num_attr > 0) in BTA_GATTC_ReadMultiple()
455 memcpy(p_buf->handles, p_read_multi->handles, in BTA_GATTC_ReadMultiple()
458 bta_sys_sendmsg(p_buf); in BTA_GATTC_ReadMultiple()
480 tBTA_GATTC_API_WRITE* p_buf = (tBTA_GATTC_API_WRITE*)osi_calloc( in BTA_GATTC_WriteCharValue() local
483 p_buf->hdr.event = BTA_GATTC_API_WRITE_EVT; in BTA_GATTC_WriteCharValue()
484 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_WriteCharValue()
485 p_buf->auth_req = auth_req; in BTA_GATTC_WriteCharValue()
486 p_buf->handle = handle; in BTA_GATTC_WriteCharValue()
487 p_buf->write_type = write_type; in BTA_GATTC_WriteCharValue()
488 p_buf->len = value.size(); in BTA_GATTC_WriteCharValue()
489 p_buf->write_cb = callback; in BTA_GATTC_WriteCharValue()
490 p_buf->write_cb_data = cb_data; in BTA_GATTC_WriteCharValue()
493 p_buf->p_value = (uint8_t*)(p_buf + 1); in BTA_GATTC_WriteCharValue()
494 memcpy(p_buf->p_value, value.data(), value.size()); in BTA_GATTC_WriteCharValue()
497 bta_sys_sendmsg(p_buf); in BTA_GATTC_WriteCharValue()
517 tBTA_GATTC_API_WRITE* p_buf = (tBTA_GATTC_API_WRITE*)osi_calloc( in BTA_GATTC_WriteCharDescr() local
520 p_buf->hdr.event = BTA_GATTC_API_WRITE_EVT; in BTA_GATTC_WriteCharDescr()
521 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_WriteCharDescr()
522 p_buf->auth_req = auth_req; in BTA_GATTC_WriteCharDescr()
523 p_buf->handle = handle; in BTA_GATTC_WriteCharDescr()
524 p_buf->write_type = GATT_WRITE; in BTA_GATTC_WriteCharDescr()
525 p_buf->write_cb = callback; in BTA_GATTC_WriteCharDescr()
526 p_buf->write_cb_data = cb_data; in BTA_GATTC_WriteCharDescr()
529 p_buf->p_value = (uint8_t*)(p_buf + 1); in BTA_GATTC_WriteCharDescr()
530 p_buf->len = value.size(); in BTA_GATTC_WriteCharDescr()
531 memcpy(p_buf->p_value, value.data(), value.size()); in BTA_GATTC_WriteCharDescr()
534 bta_sys_sendmsg(p_buf); in BTA_GATTC_WriteCharDescr()
555 tBTA_GATTC_API_WRITE* p_buf = (tBTA_GATTC_API_WRITE*)osi_calloc( in BTA_GATTC_PrepareWrite() local
558 p_buf->hdr.event = BTA_GATTC_API_WRITE_EVT; in BTA_GATTC_PrepareWrite()
559 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_PrepareWrite()
560 p_buf->auth_req = auth_req; in BTA_GATTC_PrepareWrite()
561 p_buf->handle = handle; in BTA_GATTC_PrepareWrite()
562 p_buf->write_cb = callback; in BTA_GATTC_PrepareWrite()
563 p_buf->write_cb_data = cb_data; in BTA_GATTC_PrepareWrite()
565 p_buf->write_type = BTA_GATTC_WRITE_PREPARE; in BTA_GATTC_PrepareWrite()
566 p_buf->offset = offset; in BTA_GATTC_PrepareWrite()
567 p_buf->len = value.size(); in BTA_GATTC_PrepareWrite()
570 p_buf->p_value = (uint8_t*)(p_buf + 1); in BTA_GATTC_PrepareWrite()
571 memcpy(p_buf->p_value, value.data(), value.size()); in BTA_GATTC_PrepareWrite()
574 bta_sys_sendmsg(p_buf); in BTA_GATTC_PrepareWrite()
591 tBTA_GATTC_API_EXEC* p_buf = in BTA_GATTC_ExecuteWrite() local
594 p_buf->hdr.event = BTA_GATTC_API_EXEC_EVT; in BTA_GATTC_ExecuteWrite()
595 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_ExecuteWrite()
596 p_buf->is_execute = is_execute; in BTA_GATTC_ExecuteWrite()
598 bta_sys_sendmsg(p_buf); in BTA_GATTC_ExecuteWrite()
614 tBTA_GATTC_API_CONFIRM* p_buf = in BTA_GATTC_SendIndConfirm() local
620 p_buf->hdr.event = BTA_GATTC_API_CONFIRM_EVT; in BTA_GATTC_SendIndConfirm()
621 p_buf->hdr.layer_specific = conn_id; in BTA_GATTC_SendIndConfirm()
622 p_buf->cid = cid; in BTA_GATTC_SendIndConfirm()
624 bta_sys_sendmsg(p_buf); in BTA_GATTC_SendIndConfirm()