Lines Matching refs:rcb
148 if (p_cb->rcb[i].in_use)
150 if (bta_gatts_uuid_compare(p_cb->rcb[i].app_uuid, p_msg->api_reg.app_uuid))
163 if (first_unuse == 0xff && !p_cb->rcb[i].in_use)
178 p_cb->rcb[first_unuse].in_use = TRUE;
179 p_cb->rcb[first_unuse].p_cback = p_msg->api_reg.p_cback;
180 memcpy(&p_cb->rcb[first_unuse].app_uuid, &p_msg->api_reg.app_uuid, sizeof(tBT_UUID));
182 p_cb->rcb[first_unuse].gatt_if = GATT_Register(&p_msg->api_reg.app_uuid, &bta_gatts_cback);
183 if ( !p_cb->rcb[first_unuse].gatt_if)
192 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if;
199 memset( &p_cb->rcb[first_unuse], 0 , sizeof(tBTA_GATTS_RCB));
256 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == p_msg->api_dereg.server_if)
258 p_cback = p_cb->rcb[i].p_cback;
262 GATT_Deregister(p_cb->rcb[i].gatt_if);
265 memset(&p_cb->rcb[i], 0, sizeof(tBTA_GATTS_RCB));
307 service_id = GATTS_CreateService (p_cb->rcb[rcb_idx].gatt_if,
325 cb_data.create.server_if = p_cb->rcb[rcb_idx].gatt_if;
338 if (p_cb->rcb[rcb_idx].p_cback)
339 (* p_cb->rcb[rcb_idx].p_cback)(BTA_GATTS_CREATE_EVT, &cb_data);
357 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx];
391 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx];
429 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx];
468 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx];
501 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx];
534 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx];
601 p_cb->rcb[p_srvc_cb->rcb_idx].p_cback)
603 (*p_cb->rcb[p_srvc_cb->rcb_idx].p_cback)(BTA_GATTS_CONF_EVT, (tBTA_GATTS *)&status);