Lines Matching defs:p_reg
1325 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
1327 if (!p_reg )
1329 GATT_TRACE_ERROR0 ("p_reg not found discard request");
1333 if ( p_reg->in_use &&
1334 p_reg->app_cb.p_req_cb)
1336 (*p_reg->app_cb.p_req_cb)(conn_id, trans_id, type, p_data);
1471 tGATT_REG *p_reg = NULL;
1476 p_reg = &gatt_cb.cl_rcb[ii];
1477 if ( (ii < GATT_MAX_APPS) && (p_reg->in_use) )
1478 return(p_reg);
1528 tGATT_REG *p_reg = gatt_get_regcb(gatt_if);
1539 p_clcb->p_reg = p_reg;
1896 *p_gatt_if = gatt_cb.clcb[i].p_reg->gatt_if;
2022 tGATT_CMPL_CBACK *p_cmpl_cb = (p_clcb->p_reg) ? p_clcb->p_reg->app_cb.p_cmpl_cb : NULL;
2024 tGATT_DISC_CMPL_CB *p_disc_cmpl_cb = (p_clcb->p_reg) ? p_clcb->p_reg->app_cb.p_disc_cmpl_cb : NULL;
2104 tGATT_REG *p_reg=NULL;
2134 p_reg = &gatt_cb.cl_rcb[i];
2135 if (p_reg->in_use && p_reg->app_cb.p_conn_cb)
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);
2297 BOOLEAN gatt_add_bg_dev_list(tGATT_REG *p_reg, BD_ADDR bd_addr, BOOLEAN is_initator)
2299 tGATT_IF gatt_if = p_reg->gatt_if;
2337 if (p_reg->listening == GATT_LISTEN_TO_ALL)
2338 p_reg->listening = GATT_LISTEN_TO_NONE;
2340 p_reg->listening ++;
2448 BOOLEAN gatt_remove_bg_dev_from_list(tGATT_REG *p_reg, BD_ADDR bd_addr, BOOLEAN is_initiator)
2450 tGATT_IF gatt_if = p_reg->gatt_if;
2484 p_reg->listening --;
2576 tGATT_REG *p_reg;
2581 if ((p_reg = gatt_get_regcb(gatt_if)) == NULL)
2589 ret = gatt_add_bg_dev_list(p_reg, bd_addr, is_initator);
2599 ret = gatt_remove_bg_dev_from_list(p_reg, bd_addr, is_initator);
2621 tGATT_REG *p_reg;
2635 if ((p_reg = gatt_get_regcb(gatt_if)) == NULL)
2644 if ( p_clcb->in_use && (p_clcb->p_reg == p_reg) && (p_clcb->p_tcb == p_tcb) )
2688 tGATT_REG *p_reg = &gatt_cb.cl_rcb[0];
2692 for (; ii < GATT_MAX_APPS; ii ++, p_reg ++)
2694 if ( p_reg->in_use && p_reg->listening > listening)
2696 listening = p_reg->listening;