Lines Matching refs:rcb
163 if (p_cb->rcb[i].in_use)
165 GATT_Deregister(p_cb->rcb[i].gatt_if);
199 if (p_cb->rcb[i].in_use)
201 if (bta_gatts_uuid_compare(p_cb->rcb[i].app_uuid, p_msg->api_reg.app_uuid))
214 if (first_unuse == 0xff && !p_cb->rcb[i].in_use)
229 p_cb->rcb[first_unuse].in_use = TRUE;
230 p_cb->rcb[first_unuse].p_cback = p_msg->api_reg.p_cback;
231 memcpy(&p_cb->rcb[first_unuse].app_uuid, &p_msg->api_reg.app_uuid, sizeof(tBT_UUID));
233 p_cb->rcb[first_unuse].gatt_if =
235 if ( !p_cb->rcb[first_unuse].gatt_if)
245 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if;
252 memset( &p_cb->rcb[first_unuse], 0 , sizeof(tBTA_GATTS_RCB));
312 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == p_msg->api_dereg.server_if)
314 p_cback = p_cb->rcb[i].p_cback;
318 GATT_Deregister(p_cb->rcb[i].gatt_if);
321 memset(&p_cb->rcb[i], 0, sizeof(tBTA_GATTS_RCB));
363 service_id = GATTS_CreateService (p_cb->rcb[rcb_idx].gatt_if,
382 cb_data.create.server_if = p_cb->rcb[rcb_idx].gatt_if;
395 if (p_cb->rcb[rcb_idx].p_cback)
396 (* p_cb->rcb[rcb_idx].p_cback)(BTA_GATTS_CREATE_EVT, &cb_data);
414 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx];
448 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx];
486 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx];
525 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx];
558 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx];
591 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx];
681 p_rcb && p_cb->rcb[p_srvc_cb->rcb_idx].p_cback)