• Home
  • Raw
  • Download

Lines Matching refs:p_msg

176 void bta_gatts_register(tBTA_GATTS_CB* p_cb, tBTA_GATTS_DATA* p_msg) {  in bta_gatts_register()  argument
187 if (p_cb->rcb[i].app_uuid == p_msg->api_reg.app_uuid) { in bta_gatts_register()
204 cb_data.reg_oper.uuid = p_msg->api_reg.app_uuid; in bta_gatts_register()
209 p_cb->rcb[first_unuse].p_cback = p_msg->api_reg.p_cback; in bta_gatts_register()
210 p_cb->rcb[first_unuse].app_uuid = p_msg->api_reg.app_uuid; in bta_gatts_register()
212 GATT_Register(p_msg->api_reg.app_uuid, "GattServer", &bta_gatts_cback, in bta_gatts_register()
213 p_msg->api_reg.eatt_support); in bta_gatts_register()
229 if (p_msg->api_reg.p_cback) in bta_gatts_register()
230 (*p_msg->api_reg.p_cback)(BTA_GATTS_REG_EVT, &cb_data); in bta_gatts_register()
243 tBTA_GATTS_DATA* p_msg) { in bta_gatts_start_if() argument
244 if (bta_gatts_find_app_rcb_by_app_if(p_msg->int_start_if.server_if)) { in bta_gatts_start_if()
245 GATT_StartIf(p_msg->int_start_if.server_if); in bta_gatts_start_if()
248 << +p_msg->int_start_if.server_if; in bta_gatts_start_if()
260 void bta_gatts_deregister(tBTA_GATTS_CB* p_cb, tBTA_GATTS_DATA* p_msg) { in bta_gatts_deregister() argument
266 cb_data.reg_oper.server_if = p_msg->api_dereg.server_if; in bta_gatts_deregister()
271 p_cb->rcb[i].gatt_if == p_msg->api_dereg.server_if) { in bta_gatts_deregister()
302 tBTA_GATTS_DATA* p_msg) { in bta_gatts_delete_service() argument
330 UNUSED_ATTR tBTA_GATTS_DATA* p_msg) { in bta_gatts_stop_service() argument
352 tBTA_GATTS_DATA* p_msg) { in bta_gatts_send_rsp() argument
353 if (GATTS_SendRsp(p_msg->api_rsp.hdr.layer_specific, p_msg->api_rsp.trans_id, in bta_gatts_send_rsp()
354 p_msg->api_rsp.status, in bta_gatts_send_rsp()
355 (tGATTS_RSP*)p_msg->api_rsp.p_rsp) != GATT_SUCCESS) { in bta_gatts_send_rsp()
368 void bta_gatts_indicate_handle(tBTA_GATTS_CB* p_cb, tBTA_GATTS_DATA* p_msg) { in bta_gatts_indicate_handle() argument
378 bta_gatts_find_srvc_cb_by_attr_id(p_cb, p_msg->api_indicate.attr_id); in bta_gatts_indicate_handle()
381 if (GATT_GetConnectionInfor(p_msg->api_indicate.hdr.layer_specific, in bta_gatts_indicate_handle()
385 if (p_msg->api_indicate.need_confirm) in bta_gatts_indicate_handle()
388 p_msg->api_indicate.hdr.layer_specific, p_msg->api_indicate.attr_id, in bta_gatts_indicate_handle()
389 p_msg->api_indicate.len, p_msg->api_indicate.value); in bta_gatts_indicate_handle()
392 p_msg->api_indicate.hdr.layer_specific, p_msg->api_indicate.attr_id, in bta_gatts_indicate_handle()
393 p_msg->api_indicate.len, p_msg->api_indicate.value); in bta_gatts_indicate_handle()
402 << loghex(p_msg->api_indicate.hdr.layer_specific) in bta_gatts_indicate_handle()
406 if ((status != GATT_SUCCESS || !p_msg->api_indicate.need_confirm) && in bta_gatts_indicate_handle()
409 cb_data.req_data.conn_id = p_msg->api_indicate.hdr.layer_specific; in bta_gatts_indicate_handle()
415 << loghex(p_msg->api_indicate.attr_id); in bta_gatts_indicate_handle()
428 void bta_gatts_open(UNUSED_ATTR tBTA_GATTS_CB* p_cb, tBTA_GATTS_DATA* p_msg) { in bta_gatts_open() argument
433 p_rcb = bta_gatts_find_app_rcb_by_app_if(p_msg->api_open.server_if); in bta_gatts_open()
436 if (GATT_Connect(p_rcb->gatt_if, p_msg->api_open.remote_bda, in bta_gatts_open()
437 p_msg->api_open.is_direct, p_msg->api_open.transport, in bta_gatts_open()
441 if (GATT_GetConnIdIfConnected(p_rcb->gatt_if, p_msg->api_open.remote_bda, in bta_gatts_open()
442 &conn_id, p_msg->api_open.transport)) { in bta_gatts_open()
447 LOG(ERROR) << "Inavlid server_if=" << p_msg->api_open.server_if; in bta_gatts_open()
466 tBTA_GATTS_DATA* p_msg) { in bta_gatts_cancel_open() argument
470 p_rcb = bta_gatts_find_app_rcb_by_app_if(p_msg->api_cancel_open.server_if); in bta_gatts_cancel_open()
472 if (!GATT_CancelConnect(p_rcb->gatt_if, p_msg->api_cancel_open.remote_bda, in bta_gatts_cancel_open()
473 p_msg->api_cancel_open.is_direct)) { in bta_gatts_cancel_open()
479 LOG(ERROR) << "Inavlid server_if=" << +p_msg->api_cancel_open.server_if; in bta_gatts_cancel_open()
497 void bta_gatts_close(UNUSED_ATTR tBTA_GATTS_CB* p_cb, tBTA_GATTS_DATA* p_msg) { in bta_gatts_close() argument
504 if (GATT_GetConnectionInfor(p_msg->hdr.layer_specific, &gatt_if, remote_bda, in bta_gatts_close()
506 if (GATT_Disconnect(p_msg->hdr.layer_specific) != GATT_SUCCESS) { in bta_gatts_close()
508 << ": fail conn_id=" << loghex(p_msg->hdr.layer_specific); in bta_gatts_close()
524 LOG(ERROR) << "Unknown connection_id=" << loghex(p_msg->hdr.layer_specific); in bta_gatts_close()