Lines Matching refs:p_rcb
530 tGATT_SR_REG *p_rcb;
543 p_rcb = GATT_GET_SR_REG_PTR(p_srv->i_sreg);
545 if (p_rcb->in_use &&
546 p_rcb->s_hdl >= s_hdl &&
547 p_rcb->s_hdl <= e_hdl &&
548 p_rcb->type == GATT_UUID_PRI_SERVICE)
550 if ((p_uuid = gatts_get_service_uuid (p_rcb->p_db)) != NULL)
575 UINT16_TO_STREAM(p, p_rcb->s_hdl);
585 UINT16_TO_STREAM(p, p_rcb->e_hdl);
617 static tGATT_STATUS gatt_build_find_info_rsp(tGATT_SR_REG *p_rcb, BT_HDR *p_msg, UINT16 *p_len,
626 if (!p_rcb->p_db || !p_rcb->p_db->p_attr_list)
630 p_attr = (tGATT_ATTR16 *) p_rcb->p_db->p_attr_list;
838 tGATT_SR_REG *p_rcb;
867 p_rcb = GATT_GET_SR_REG_PTR(p_srv->i_sreg);
869 if (p_rcb->in_use &&
870 !(p_rcb->s_hdl > e_hdl ||
871 p_rcb->e_hdl < s_hdl))
873 reason = gatt_build_find_info_rsp(p_rcb, p_msg, &buf_len, s_hdl, e_hdl);
979 tGATT_SR_REG *p_rcb;
1027 p_rcb = GATT_GET_SR_REG_PTR(p_srv->i_sreg);
1029 if (p_rcb->in_use &&
1030 !(p_rcb->s_hdl > e_hdl ||
1031 p_rcb->e_hdl < s_hdl))
1039 p_rcb->p_db,
1184 static void gatts_process_read_req(tGATT_TCB *p_tcb, tGATT_SR_REG *p_rcb, UINT8 op_code,
1217 p_rcb->p_db,
1259 tGATT_SR_REG *p_rcb = gatt_cb.sr_reg;
1288 for (i = 0; i < GATT_MAX_SR_PROFILES; i ++, p_rcb ++)
1290 if (p_rcb->in_use && p_rcb->s_hdl <= handle && p_rcb->e_hdl >= handle)
1292 p_attr = (tGATT_ATTR16 *)p_rcb->p_db->p_attr_list;
1302 gatts_process_read_req(p_tcb, p_rcb, op_code, handle, len, p);
1420 tGATT_SR_REG *p_rcb = gatt_cb.sr_reg;
1432 for (i = 0; i < GATT_MAX_SR_PROFILES; i ++, p_rcb ++)
1434 if (p_rcb->in_use && p_rcb->s_hdl <= handle && p_rcb->e_hdl >= handle)
1437 conn_id = GATT_CREATE_CONN_ID(p_tcb->tcb_idx, p_rcb->gatt_if);