Lines Matching refs:p_buf

64   BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID));  in BTA_GATTS_Disable()  local
65 p_buf->event = BTA_GATTS_API_DISABLE_EVT; in BTA_GATTS_Disable()
66 bta_sys_sendmsg(p_buf); in BTA_GATTS_Disable()
85 tBTA_GATTS_API_REG* p_buf = in BTA_GATTS_AppRegister() local
92 p_buf->hdr.event = BTA_GATTS_API_REG_EVT; in BTA_GATTS_AppRegister()
93 p_buf->app_uuid = app_uuid; in BTA_GATTS_AppRegister()
94 p_buf->p_cback = p_cback; in BTA_GATTS_AppRegister()
95 p_buf->eatt_support = eatt_support; in BTA_GATTS_AppRegister()
97 bta_sys_sendmsg(p_buf); in BTA_GATTS_AppRegister()
112 tBTA_GATTS_API_DEREG* p_buf = in BTA_GATTS_AppDeregister() local
115 p_buf->hdr.event = BTA_GATTS_API_DEREG_EVT; in BTA_GATTS_AppDeregister()
116 p_buf->server_if = server_if; in BTA_GATTS_AppDeregister()
118 bta_sys_sendmsg(p_buf); in BTA_GATTS_AppDeregister()
196 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); in BTA_GATTS_DeleteService() local
198 p_buf->event = BTA_GATTS_API_DEL_SRVC_EVT; in BTA_GATTS_DeleteService()
199 p_buf->layer_specific = service_id; in BTA_GATTS_DeleteService()
201 bta_sys_sendmsg(p_buf); in BTA_GATTS_DeleteService()
216 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); in BTA_GATTS_StopService() local
218 p_buf->event = BTA_GATTS_API_STOP_SRVC_EVT; in BTA_GATTS_StopService()
219 p_buf->layer_specific = service_id; in BTA_GATTS_StopService()
221 bta_sys_sendmsg(p_buf); in BTA_GATTS_StopService()
243 tBTA_GATTS_API_INDICATION* p_buf = in BTA_GATTS_HandleValueIndication() local
246 p_buf->hdr.event = BTA_GATTS_API_INDICATION_EVT; in BTA_GATTS_HandleValueIndication()
247 p_buf->hdr.layer_specific = conn_id; in BTA_GATTS_HandleValueIndication()
248 p_buf->attr_id = attr_id; in BTA_GATTS_HandleValueIndication()
249 p_buf->need_confirm = need_confirm; in BTA_GATTS_HandleValueIndication()
251 p_buf->len = value.size(); in BTA_GATTS_HandleValueIndication()
252 memcpy(p_buf->value, value.data(), value.size()); in BTA_GATTS_HandleValueIndication()
255 bta_sys_sendmsg(p_buf); in BTA_GATTS_HandleValueIndication()
275 tBTA_GATTS_API_RSP* p_buf = (tBTA_GATTS_API_RSP*)osi_calloc(len); in BTA_GATTS_SendRsp() local
277 p_buf->hdr.event = BTA_GATTS_API_RSP_EVT; in BTA_GATTS_SendRsp()
278 p_buf->hdr.layer_specific = conn_id; in BTA_GATTS_SendRsp()
279 p_buf->trans_id = trans_id; in BTA_GATTS_SendRsp()
280 p_buf->status = status; in BTA_GATTS_SendRsp()
282 p_buf->p_rsp = (tGATTS_RSP*)(p_buf + 1); in BTA_GATTS_SendRsp()
283 memcpy(p_buf->p_rsp, p_msg, sizeof(tGATTS_RSP)); in BTA_GATTS_SendRsp()
286 bta_sys_sendmsg(p_buf); in BTA_GATTS_SendRsp()
307 tBTA_GATTS_API_OPEN* p_buf = in BTA_GATTS_Open() local
310 p_buf->hdr.event = BTA_GATTS_API_OPEN_EVT; in BTA_GATTS_Open()
311 p_buf->server_if = server_if; in BTA_GATTS_Open()
312 p_buf->is_direct = is_direct; in BTA_GATTS_Open()
313 p_buf->transport = transport; in BTA_GATTS_Open()
314 p_buf->remote_bda = remote_bda; in BTA_GATTS_Open()
316 bta_sys_sendmsg(p_buf); in BTA_GATTS_Open()
335 tBTA_GATTS_API_CANCEL_OPEN* p_buf = (tBTA_GATTS_API_CANCEL_OPEN*)osi_malloc( in BTA_GATTS_CancelOpen() local
338 p_buf->hdr.event = BTA_GATTS_API_CANCEL_OPEN_EVT; in BTA_GATTS_CancelOpen()
339 p_buf->server_if = server_if; in BTA_GATTS_CancelOpen()
340 p_buf->is_direct = is_direct; in BTA_GATTS_CancelOpen()
341 p_buf->remote_bda = remote_bda; in BTA_GATTS_CancelOpen()
343 bta_sys_sendmsg(p_buf); in BTA_GATTS_CancelOpen()
358 BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); in BTA_GATTS_Close() local
360 p_buf->event = BTA_GATTS_API_CLOSE_EVT; in BTA_GATTS_Close()
361 p_buf->layer_specific = conn_id; in BTA_GATTS_Close()
363 bta_sys_sendmsg(p_buf); in BTA_GATTS_Close()