Lines Matching full:gatt_if
1324 tGATT_IF gatt_if = GATT_GET_GATT_IF(conn_id);
1325 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
1468 tGATT_REG *gatt_get_regcb (tGATT_IF gatt_if)
1470 UINT8 ii = (UINT8)gatt_if;
1525 tGATT_IF gatt_if=GATT_GET_GATT_IF(conn_id);
1528 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
1782 void gatt_sr_update_cback_cnt(tGATT_TCB *p_tcb, tGATT_IF gatt_if, BOOLEAN is_inc, BOOLEAN is_reset_first)
1785 UINT8 idx = ((UINT8) gatt_if) - 1 ;
1817 void gatt_sr_update_prep_cnt(tGATT_TCB *p_tcb, tGATT_IF gatt_if, BOOLEAN is_inc, BOOLEAN is_reset_first)
1819 UINT8 idx = ((UINT8) gatt_if) - 1 ;
1821 GATT_TRACE_DEBUG4("gatt_sr_update_prep_cnt tcb idx=%d gatt_if=%d is_inc=%d is_reset_first=%d",
1822 p_tcb->tcb_idx, gatt_if, is_inc, is_reset_first);
1852 BOOLEAN gatt_cancel_open(tGATT_IF gatt_if, BD_ADDR bda)
1867 gatt_update_app_use_link_flag(gatt_if, p_tcb, FALSE, FALSE);
1896 *p_gatt_if = gatt_cb.clcb[i].p_reg->gatt_if;
2137 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if);
2138 GATT_TRACE_DEBUG3 ("found p_reg tcb_idx=%d gatt_if=%d conn_id=0x%x", p_tcb->tcb_idx, p_reg->gatt_if, conn_id);
2139 (*p_reg->app_cb.p_conn_cb)(p_reg->gatt_if, bda, conn_id, FALSE, reason);
2225 BOOLEAN gatt_is_bg_dev_for_app(tGATT_BG_CONN_DEV *p_dev, tGATT_IF gatt_if)
2231 if (p_dev->in_use && (p_dev->gatt_if[i] == gatt_if))
2299 tGATT_IF gatt_if = p_reg->gatt_if;
2315 if (p_dev->gatt_if[i] == gatt_if)
2320 else if (p_dev->gatt_if[i] == 0)
2322 p_dev->gatt_if[i] = gatt_if;
2330 if (p_dev->listen_gif[i] == gatt_if)
2341 p_dev->listen_gif[i] = gatt_if;
2367 BOOLEAN gatt_remove_bg_dev_for_app(tGATT_IF gatt_if, BD_ADDR bd_addr)
2373 gatt_update_app_use_link_flag(gatt_if, p_tcb, FALSE, FALSE);
2374 status = gatt_update_auto_connect_dev(gatt_if, FALSE, bd_addr, TRUE);
2398 if (p_dev->gatt_if[i])
2427 if (p_dev->gatt_if[i] != 0 )
2429 *p_gatt_if = p_dev->gatt_if[i];
2450 tGATT_IF gatt_if = p_reg->gatt_if;
2460 for (i = 0; i < GATT_MAX_APPS && (p_dev->gatt_if[i] > 0 || p_dev->listen_gif[i]); i ++)
2464 if (p_dev->gatt_if[i] == gatt_if)
2466 p_dev->gatt_if[i] = 0;
2469 p_dev->gatt_if[j - 1] = p_dev->gatt_if[j];
2471 if (p_dev->gatt_if[0] == 0)
2481 if (p_dev->listen_gif[i] == gatt_if)
2498 if (i != GATT_MAX_APPS && p_dev->gatt_if[0] == 0 && p_dev->listen_gif[0] == 0)
2514 void gatt_deregister_bgdev_list(tGATT_IF gatt_if)
2525 if (p_dev_list->gatt_if[j] == 0)
2527 else if (p_dev_list->gatt_if[j] == gatt_if)
2530 p_dev_list->gatt_if[k - 1] = p_dev_list->gatt_if[k];
2532 if (p_dev_list->gatt_if[0] == 0)
2566 ** Parameters gatt_if: Application ID.
2573 BOOLEAN gatt_update_auto_connect_dev (tGATT_IF gatt_if, BOOLEAN add, BD_ADDR bd_addr, BOOLEAN is_initator)
2581 if ((p_reg = gatt_get_regcb(gatt_if)) == NULL)
2583 GATT_TRACE_ERROR1("gatt_update_auto_connect_dev - gatt_if is not registered", gatt_if);
2594 gatt_update_app_use_link_flag(gatt_if, p_tcb, TRUE, TRUE);
2613 ** Parameters gatt_if: client interface.
2619 UINT16 gatt_get_conn_id (tGATT_IF gatt_if, BD_ADDR bd_addr)
2626 GATT_TRACE_API1 ("GATTC_GetConnIfConnected gatt_if=%d", gatt_if);
2635 if ((p_reg = gatt_get_regcb(gatt_if)) == NULL)
2637 GATT_TRACE_ERROR1("GATTC_GetConnIfConnected - gatt_if is not registered", gatt_if);
2651 GATT_TRACE_ERROR1 ("gatt_get_conn_id: not connected- gatt_if: %u", gatt_if);