Lines Matching refs:gatt_if
47 static void bta_gatts_conn_cback(tGATT_IF gatt_if, const RawAddress& bda,
55 static void bta_gatts_phy_update_cback(tGATT_IF gatt_if, uint16_t conn_id,
58 static void bta_gatts_conn_update_cback(tGATT_IF gatt_if, uint16_t conn_id,
160 GATT_Deregister(p_cb->rcb[i].gatt_if); in bta_gatts_api_disable()
213 cb_data.reg_oper.server_if = p_cb->rcb[first_unuse].gatt_if = in bta_gatts_register()
215 if (!p_cb->rcb[first_unuse].gatt_if) { in bta_gatts_register()
221 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if; in bta_gatts_register()
272 p_cb->rcb[i].gatt_if == p_msg->api_dereg.server_if) { in bta_gatts_deregister()
277 GATT_Deregister(p_cb->rcb[i].gatt_if); in bta_gatts_deregister()
307 cb_data.srvc_oper.server_if = p_rcb->gatt_if; in bta_gatts_delete_service()
310 if (GATTS_DeleteService(p_rcb->gatt_if, &p_srvc_cb->service_uuid, in bta_gatts_delete_service()
336 cb_data.srvc_oper.server_if = p_rcb->gatt_if; in bta_gatts_stop_service()
373 tGATT_IF gatt_if; in bta_gatts_indicate_handle() local
383 &gatt_if, remote_bda, &transport)) { in bta_gatts_indicate_handle()
384 p_rcb = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_indicate_handle()
437 if (GATT_Connect(p_rcb->gatt_if, p_msg->api_open.remote_bda, in bta_gatts_open()
442 if (GATT_GetConnIdIfConnected(p_rcb->gatt_if, p_msg->api_open.remote_bda, in bta_gatts_open()
473 if (!GATT_CancelConnect(p_rcb->gatt_if, p_msg->api_cancel_open.remote_bda, in bta_gatts_cancel_open()
501 tGATT_IF gatt_if; in bta_gatts_close() local
505 if (GATT_GetConnectionInfor(p_msg->hdr.layer_specific, &gatt_if, remote_bda, in bta_gatts_close()
514 p_rcb = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_close()
543 tGATT_IF gatt_if; in bta_gatts_send_request_cback() local
548 if (GATT_GetConnectionInfor(conn_id, &gatt_if, cb_data.req_data.remote_bda, in bta_gatts_send_request_cback()
550 p_rcb = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_send_request_cback()
568 LOG(ERROR) << "connection request on gatt_if=" << +gatt_if in bta_gatts_send_request_cback()
585 static void bta_gatts_conn_cback(tGATT_IF gatt_if, const RawAddress& bdaddr, in bta_gatts_conn_cback() argument
593 VLOG(1) << __func__ << " bda=" << bdaddr << " gatt_if= " << gatt_if in bta_gatts_conn_cback()
602 p_reg = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_conn_cback()
614 cb_data.conn.server_if = gatt_if; in bta_gatts_conn_cback()
620 LOG(ERROR) << __func__ << " server_if=" << +gatt_if << " not found"; in bta_gatts_conn_cback()
624 static void bta_gatts_phy_update_cback(tGATT_IF gatt_if, uint16_t conn_id, in bta_gatts_phy_update_cback() argument
627 tBTA_GATTS_RCB* p_reg = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_phy_update_cback()
629 LOG(ERROR) << __func__ << ": server_if=" << +gatt_if << " not found"; in bta_gatts_phy_update_cback()
635 cb_data.phy_update.server_if = gatt_if; in bta_gatts_phy_update_cback()
642 static void bta_gatts_conn_update_cback(tGATT_IF gatt_if, uint16_t conn_id, in bta_gatts_conn_update_cback() argument
645 tBTA_GATTS_RCB* p_reg = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_conn_update_cback()
647 LOG(ERROR) << __func__ << ": server_if=" << +gatt_if << " not found"; in bta_gatts_conn_update_cback()
653 cb_data.conn_update.server_if = gatt_if; in bta_gatts_conn_update_cback()
672 tGATT_IF gatt_if; in bta_gatts_cong_cback() local
676 if (GATT_GetConnectionInfor(conn_id, &gatt_if, cb_data.req_data.remote_bda, in bta_gatts_cong_cback()
678 p_rcb = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_cong_cback()