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