Lines Matching refs:p_rcb
303 tBTA_GATTS_RCB* p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; in bta_gatts_delete_service() local
306 cb_data.srvc_oper.server_if = p_rcb->gatt_if; in bta_gatts_delete_service()
309 if (GATTS_DeleteService(p_rcb->gatt_if, &p_srvc_cb->service_uuid, in bta_gatts_delete_service()
317 if (p_rcb->p_cback) (*p_rcb->p_cback)(BTA_GATTS_DELELTE_EVT, &cb_data); in bta_gatts_delete_service()
331 tBTA_GATTS_RCB* p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; in bta_gatts_stop_service() local
335 cb_data.srvc_oper.server_if = p_rcb->gatt_if; in bta_gatts_stop_service()
340 if (p_rcb->p_cback) (*p_rcb->p_cback)(BTA_GATTS_STOP_EVT, &cb_data); in bta_gatts_stop_service()
370 tBTA_GATTS_RCB* p_rcb = NULL; in bta_gatts_indicate_handle() local
383 p_rcb = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_indicate_handle()
407 p_rcb && p_cb->rcb[p_srvc_cb->rcb_idx].p_cback) { in bta_gatts_indicate_handle()
411 (*p_rcb->p_cback)(BTA_GATTS_CONF_EVT, &cb_data); in bta_gatts_indicate_handle()
429 tBTA_GATTS_RCB* p_rcb = NULL; in bta_gatts_open() local
433 p_rcb = bta_gatts_find_app_rcb_by_app_if(p_msg->api_open.server_if); in bta_gatts_open()
434 if (p_rcb != NULL) { in bta_gatts_open()
436 if (GATT_Connect(p_rcb->gatt_if, p_msg->api_open.remote_bda, in bta_gatts_open()
441 if (GATT_GetConnIdIfConnected(p_rcb->gatt_if, p_msg->api_open.remote_bda, in bta_gatts_open()
450 if (p_rcb && p_rcb->p_cback) { in bta_gatts_open()
453 (*p_rcb->p_cback)(BTA_GATTS_OPEN_EVT, &bta_gatts); in bta_gatts_open()
467 tBTA_GATTS_RCB* p_rcb; in bta_gatts_cancel_open() local
470 p_rcb = bta_gatts_find_app_rcb_by_app_if(p_msg->api_cancel_open.server_if); in bta_gatts_cancel_open()
471 if (p_rcb != NULL) { 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()
482 if (p_rcb && p_rcb->p_cback) { in bta_gatts_cancel_open()
485 (*p_rcb->p_cback)(BTA_GATTS_CANCEL_OPEN_EVT, &bta_gatts); in bta_gatts_cancel_open()
498 tBTA_GATTS_RCB* p_rcb; in bta_gatts_close() local
513 p_rcb = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_close()
515 if (p_rcb && p_rcb->p_cback) { in bta_gatts_close()
521 (*p_rcb->p_cback)(BTA_GATTS_CLOSE_EVT, &bta_gatts); in bta_gatts_close()
541 tBTA_GATTS_RCB* p_rcb; in bta_gatts_send_request_cback() local
549 p_rcb = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_send_request_cback()
554 if (p_rcb && p_rcb->p_cback) { in bta_gatts_send_request_cback()
565 (*p_rcb->p_cback)(req_type, &cb_data); in bta_gatts_send_request_cback()
668 tBTA_GATTS_RCB* p_rcb; in bta_gatts_cong_cback() local
675 p_rcb = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_cong_cback()
677 if (p_rcb && p_rcb->p_cback) { in bta_gatts_cong_cback()
681 (*p_rcb->p_cback)(BTA_GATTS_CONGEST_EVT, &cb_data); in bta_gatts_cong_cback()