Home | History | Annotate | Download | only in gatt

Lines Matching defs: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;
2332 if (p_dev->listen_gif[i] == gatt_if)
2343 p_dev->listen_gif[i] = gatt_if;
2371 BOOLEAN gatt_remove_bg_dev_for_app(tGATT_IF gatt_if, BD_ADDR bd_addr)
2377 gatt_update_app_use_link_flag(gatt_if, p_tcb, FALSE, FALSE);
2378 status = gatt_update_auto_connect_dev(gatt_if, FALSE, bd_addr, TRUE);
2402 if (p_dev->gatt_if[i])
2431 if (p_dev->gatt_if[i] != 0 )
2433 *p_gatt_if = p_dev->gatt_if[i];
2454 tGATT_IF gatt_if = p_reg->gatt_if;
2464 for (i = 0; i < GATT_MAX_APPS && (p_dev->gatt_if[i] > 0 || p_dev->listen_gif[i]); i ++)
2468 if (p_dev->gatt_if[i] == gatt_if)
2470 p_dev->gatt_if[i] = 0;
2473 p_dev->gatt_if[j - 1] = p_dev->gatt_if[j];
2475 if (p_dev->gatt_if[0] == 0)
2485 if (p_dev->listen_gif[i] == gatt_if)
2502 if (i != GATT_MAX_APPS && p_dev->gatt_if[0] == 0 && p_dev->listen_gif[0] == 0)
2518 void gatt_deregister_bgdev_list(tGATT_IF gatt_if)
2522 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
2531 if (p_dev_list->gatt_if[j] == 0 && p_dev_list->listen_gif[j] == 0)
2534 if (p_dev_list->gatt_if[j] == gatt_if)
2537 p_dev_list->gatt_if[k - 1] = p_dev_list->gatt_if[k];
2539 if (p_dev_list->gatt_if[0] == 0)
2543 if (p_dev_list->listen_gif[j] == gatt_if)
2584 ** Parameters gatt_if: Application ID.
2591 BOOLEAN gatt_update_auto_connect_dev (tGATT_IF gatt_if, BOOLEAN add, BD_ADDR bd_addr, BOOLEAN is_initator)
2599 if ((p_reg = gatt_get_regcb(gatt_if)) == NULL)
2601 GATT_TRACE_ERROR1("gatt_update_auto_connect_dev - gatt_if is not registered", gatt_if);
2612 gatt_update_app_use_link_flag(gatt_if, p_tcb, TRUE, TRUE);
2631 ** Parameters gatt_if: client interface.
2637 UINT16 gatt_get_conn_id (tGATT_IF gatt_if, BD_ADDR bd_addr)
2644 GATT_TRACE_API1 ("GATTC_GetConnIfConnected gatt_if=%d", gatt_if);
2653 if ((p_reg = gatt_get_regcb(gatt_if)) == NULL)
2655 GATT_TRACE_ERROR1("GATTC_GetConnIfConnected - gatt_if is not registered", gatt_if);
2669 GATT_TRACE_ERROR1 ("gatt_get_conn_id: not connected- gatt_if: %u", gatt_if);