Lines Matching refs:p_reg
373 BOOLEAN gatt_act_connect (tGATT_REG *p_reg, BD_ADDR bd_addr, tBT_TRANSPORT transport) in gatt_act_connect() argument
415 GATT_TRACE_ERROR("Max TCB for gatt_if [%d] reached.", p_reg->gatt_if); in gatt_act_connect()
421 gatt_update_app_use_link_flag(p_reg->gatt_if, p_tcb, TRUE, FALSE); in gatt_act_connect()
523 tGATT_REG *p_reg=NULL; in gatt_channel_congestion() local
532 for (i = 0, p_reg = gatt_cb.cl_rcb ; i < GATT_MAX_APPS; i++, p_reg++) in gatt_channel_congestion()
534 if (p_reg->in_use) in gatt_channel_congestion()
536 if (p_reg->app_cb.p_congestion_cb) in gatt_channel_congestion()
538 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_channel_congestion()
539 (*p_reg->app_cb.p_congestion_cb)(conn_id, congested); in gatt_channel_congestion()
952 tGATT_REG *p_reg; in gatt_send_conn_cback() local
959 for (i = 0, p_reg = gatt_cb.cl_rcb ; i < GATT_MAX_APPS; i++, p_reg++) in gatt_send_conn_cback()
961 if (p_reg->in_use) in gatt_send_conn_cback()
963 if (p_bg_dev && gatt_is_bg_dev_for_app(p_bg_dev, p_reg->gatt_if)) in gatt_send_conn_cback()
964 gatt_update_app_use_link_flag(p_reg->gatt_if, p_tcb, TRUE, TRUE); in gatt_send_conn_cback()
966 if (p_reg->app_cb.p_conn_cb) in gatt_send_conn_cback()
968 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_reg->gatt_if); in gatt_send_conn_cback()
969 (*p_reg->app_cb.p_conn_cb)(p_reg->gatt_if, p_tcb->peer_bda, conn_id, in gatt_send_conn_cback()