• Home
  • Raw
  • Download

Lines Matching refs:p_msg

178 void bta_gatts_register(tBTA_GATTS_CB* p_cb, tBTA_GATTS_DATA* p_msg) {  in bta_gatts_register()  argument
189 if (p_cb->rcb[i].app_uuid == p_msg->api_reg.app_uuid) { in bta_gatts_register()
206 cb_data.reg_oper.uuid = p_msg->api_reg.app_uuid; in bta_gatts_register()
211 p_cb->rcb[first_unuse].p_cback = p_msg->api_reg.p_cback; in bta_gatts_register()
212 p_cb->rcb[first_unuse].app_uuid = p_msg->api_reg.app_uuid; in bta_gatts_register()
214 GATT_Register(p_msg->api_reg.app_uuid, &bta_gatts_cback); in bta_gatts_register()
230 if (p_msg->api_reg.p_cback) in bta_gatts_register()
231 (*p_msg->api_reg.p_cback)(BTA_GATTS_REG_EVT, &cb_data); in bta_gatts_register()
244 tBTA_GATTS_DATA* p_msg) { in bta_gatts_start_if() argument
245 if (bta_gatts_find_app_rcb_by_app_if(p_msg->int_start_if.server_if)) { in bta_gatts_start_if()
246 GATT_StartIf(p_msg->int_start_if.server_if); in bta_gatts_start_if()
249 << +p_msg->int_start_if.server_if; in bta_gatts_start_if()
261 void bta_gatts_deregister(tBTA_GATTS_CB* p_cb, tBTA_GATTS_DATA* p_msg) { in bta_gatts_deregister() argument
267 cb_data.reg_oper.server_if = p_msg->api_dereg.server_if; in bta_gatts_deregister()
272 p_cb->rcb[i].gatt_if == p_msg->api_dereg.server_if) { in bta_gatts_deregister()
303 tBTA_GATTS_DATA* p_msg) { in bta_gatts_delete_service() argument
331 UNUSED_ATTR tBTA_GATTS_DATA* p_msg) { in bta_gatts_stop_service() argument
353 tBTA_GATTS_DATA* p_msg) { in bta_gatts_send_rsp() argument
354 if (GATTS_SendRsp(p_msg->api_rsp.hdr.layer_specific, p_msg->api_rsp.trans_id, in bta_gatts_send_rsp()
355 p_msg->api_rsp.status, in bta_gatts_send_rsp()
356 (tGATTS_RSP*)p_msg->api_rsp.p_rsp) != GATT_SUCCESS) { in bta_gatts_send_rsp()
369 void bta_gatts_indicate_handle(tBTA_GATTS_CB* p_cb, tBTA_GATTS_DATA* p_msg) { in bta_gatts_indicate_handle() argument
379 bta_gatts_find_srvc_cb_by_attr_id(p_cb, p_msg->api_indicate.attr_id); in bta_gatts_indicate_handle()
382 if (GATT_GetConnectionInfor(p_msg->api_indicate.hdr.layer_specific, in bta_gatts_indicate_handle()
386 if (p_msg->api_indicate.need_confirm) in bta_gatts_indicate_handle()
389 p_msg->api_indicate.hdr.layer_specific, p_msg->api_indicate.attr_id, in bta_gatts_indicate_handle()
390 p_msg->api_indicate.len, p_msg->api_indicate.value); in bta_gatts_indicate_handle()
393 p_msg->api_indicate.hdr.layer_specific, p_msg->api_indicate.attr_id, in bta_gatts_indicate_handle()
394 p_msg->api_indicate.len, p_msg->api_indicate.value); in bta_gatts_indicate_handle()
403 << loghex(p_msg->api_indicate.hdr.layer_specific) in bta_gatts_indicate_handle()
407 if ((status != GATT_SUCCESS || !p_msg->api_indicate.need_confirm) && in bta_gatts_indicate_handle()
410 cb_data.req_data.conn_id = p_msg->api_indicate.hdr.layer_specific; in bta_gatts_indicate_handle()
416 << loghex(p_msg->api_indicate.attr_id); in bta_gatts_indicate_handle()
429 void bta_gatts_open(UNUSED_ATTR tBTA_GATTS_CB* p_cb, tBTA_GATTS_DATA* p_msg) { in bta_gatts_open() argument
434 p_rcb = bta_gatts_find_app_rcb_by_app_if(p_msg->api_open.server_if); in bta_gatts_open()
437 if (GATT_Connect(p_rcb->gatt_if, p_msg->api_open.remote_bda, in bta_gatts_open()
438 p_msg->api_open.is_direct, p_msg->api_open.transport, in bta_gatts_open()
442 if (GATT_GetConnIdIfConnected(p_rcb->gatt_if, p_msg->api_open.remote_bda, in bta_gatts_open()
443 &conn_id, p_msg->api_open.transport)) { in bta_gatts_open()
448 LOG(ERROR) << "Inavlid server_if=" << p_msg->api_open.server_if; in bta_gatts_open()
467 tBTA_GATTS_DATA* p_msg) { in bta_gatts_cancel_open() argument
471 p_rcb = bta_gatts_find_app_rcb_by_app_if(p_msg->api_cancel_open.server_if); in bta_gatts_cancel_open()
473 if (!GATT_CancelConnect(p_rcb->gatt_if, p_msg->api_cancel_open.remote_bda, in bta_gatts_cancel_open()
474 p_msg->api_cancel_open.is_direct)) { in bta_gatts_cancel_open()
480 LOG(ERROR) << "Inavlid server_if=" << +p_msg->api_cancel_open.server_if; in bta_gatts_cancel_open()
498 void bta_gatts_close(UNUSED_ATTR tBTA_GATTS_CB* p_cb, tBTA_GATTS_DATA* p_msg) { in bta_gatts_close() argument
505 if (GATT_GetConnectionInfor(p_msg->hdr.layer_specific, &gatt_if, remote_bda, in bta_gatts_close()
507 if (GATT_Disconnect(p_msg->hdr.layer_specific) != GATT_SUCCESS) { in bta_gatts_close()
509 << ": fail conn_id=" << loghex(p_msg->hdr.layer_specific); in bta_gatts_close()
525 LOG(ERROR) << "Unknown connection_id=" << loghex(p_msg->hdr.layer_specific); in bta_gatts_close()