Lines Matching defs:p_reg
317 BOOLEAN gatt_act_connect (tGATT_REG *p_reg, BD_ADDR bd_addr)
357 GATT_TRACE_ERROR1("Max TCB for gatt_if [%d] reached.", p_reg->gatt_if);
363 gatt_update_app_use_link_flag(p_reg->gatt_if, p_tcb, TRUE, FALSE);
829 tGATT_REG *p_reg;
836 for (i = 0, p_reg = gatt_cb.cl_rcb ; i < GATT_MAX_APPS; i++, p_reg++)
838 if (p_reg->in_use)
840 if (p_bg_dev && gatt_is_bg_dev_for_app(p_bg_dev, p_reg->gatt_if))
841 gatt_update_app_use_link_flag(p_reg->gatt_if, p_tcb, TRUE, TRUE);
843 if (p_reg->app_cb.p_conn_cb)
845 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if);
846 (*p_reg->app_cb.p_conn_cb)(p_reg->gatt_if, p_tcb->peer_bda, conn_id, TRUE, 0);