Home | History | Annotate | Download | only in gatt

Lines Matching refs:p_tcb

386     tBTA_GATTC_SERV *p_tcb = &bta_gattc_cb.known_server[0],
391 for (i = 0; i < BTA_GATTC_KNOWN_SR_MAX; i ++, p_tcb ++)
393 if (!p_tcb->in_use)
398 else if (!p_tcb->connected)
400 p_recycle = p_tcb;
406 p_tcb = NULL;
408 p_tcb = p_recycle;
410 if (p_tcb != NULL)
412 if (p_tcb->p_srvc_cache != NULL)
413 list_free(p_tcb->p_srvc_cache);
415 osi_free_and_reset((void **)&p_tcb->p_srvc_list);
416 memset(p_tcb, 0 , sizeof(tBTA_GATTC_SERV));
418 p_tcb->in_use = TRUE;
419 bdcpy(p_tcb->server_bda, bda);
421 return p_tcb;