Home | History | Annotate | Download | only in gatt

Lines Matching refs:p_sreg

1313     tGATT_SR_REG    *p_sreg;
1316 for (i_rcb = 0, p_sreg = gatt_cb.sr_reg; i_rcb < GATT_MAX_SR_PROFILES; i_rcb++, p_sreg++)
1318 if ( p_sreg->in_use )
1320 p_this_uuid = gatts_get_service_uuid (p_sreg->p_db);
1323 gatt_uuid_compare (*p_app_uuid128, p_sreg->app_uuid ) &&
1325 (svc_inst == p_sreg->service_instance))
1348 tGATT_SR_REG *p_sreg = NULL;
1351 for (ii = 0, p_sreg = gatt_cb.sr_reg; ii < GATT_MAX_SR_PROFILES; ii++, p_sreg++)
1353 if (!p_sreg->in_use)
1355 memset (p_sreg, 0, sizeof(tGATT_SR_REG));
1357 p_sreg->in_use = TRUE;
1358 memcpy (&p_sreg->app_uuid, &p_list->asgn_range.app_uuid128, sizeof(tBT_UUID));
1360 p_sreg->service_instance = p_list->asgn_range.svc_inst;
1361 p_sreg->type = p_list->asgn_range.is_primary ? GATT_UUID_PRI_SERVICE: GATT_UUID_SEC_SERVICE;
1362 p_sreg->s_hdl = p_list->asgn_range.s_handle;
1363 p_sreg->e_hdl = p_list->asgn_range.e_handle;
1364 p_sreg->p_db = &p_list->svc_db;
1366 GATT_TRACE_DEBUG ("total GKI buffer in db [%d]",p_sreg->p_db->svc_buffer.count);