Lines Matching refs:p_conn
798 tBTA_GATTC_CONN *p_conn = &bta_gattc_cb.conn_track[0];
800 for (i_conn = 0; i_conn < BTA_GATTC_CONN_MAX; i_conn++, p_conn ++)
802 if (!p_conn->in_use)
807 p_conn->in_use = TRUE;
808 bdcpy(p_conn->remote_bda, remote_bda);
809 return p_conn;
827 tBTA_GATTC_CONN *p_conn = &bta_gattc_cb.conn_track[0];
829 for (i_conn = 0; i_conn < BTA_GATTC_CONN_MAX; i_conn++, p_conn ++)
831 if (p_conn->in_use && bdcmp(remote_bda, p_conn->remote_bda) == 0)
836 return p_conn;
854 tBTA_GATTC_CONN *p_conn = bta_gattc_conn_find (remote_bda);
856 if (p_conn == NULL)
858 p_conn = bta_gattc_conn_alloc(remote_bda);
860 return p_conn;
874 tBTA_GATTC_CONN *p_conn = bta_gattc_conn_find (remote_bda);
876 if (p_conn != NULL)
878 p_conn->in_use = FALSE;
879 memset(p_conn->remote_bda, 0, BD_ADDR_LEN);