Home | History | Annotate | Download | only in gatt

Lines Matching refs:p_clcb

1524     tGATT_CLCB      *p_clcb = NULL;
1534 p_clcb = &gatt_cb.clcb[i];
1536 p_clcb->in_use = TRUE;
1537 p_clcb->conn_id = conn_id;
1538 p_clcb->clcb_idx = i;
1539 p_clcb->p_reg = p_reg;
1540 p_clcb->p_tcb = p_tcb;
1544 return p_clcb;
1556 void gatt_clcb_dealloc (tGATT_CLCB *p_clcb)
1558 if (p_clcb && p_clcb->in_use)
1560 memset(p_clcb, 0, sizeof(tGATT_CLCB));
1946 tGATT_CLCB *p_clcb = NULL;
1950 p_clcb = &gatt_cb.clcb[p_cmd->clcb_idx];
1958 return p_clcb;
2019 void gatt_end_operation(tGATT_CLCB *p_clcb, tGATT_STATUS status, void *p_data)
2022 tGATT_CMPL_CBACK *p_cmpl_cb = (p_clcb->p_reg) ? p_clcb->p_reg->app_cb.p_cmpl_cb : NULL;
2023 UINT8 op = p_clcb->operation, disc_type=GATT_DISC_MAX;
2024 tGATT_DISC_CMPL_CB *p_disc_cmpl_cb = (p_clcb->p_reg) ? p_clcb->p_reg->app_cb.p_disc_cmpl_cb : NULL;
2029 status, p_clcb->operation, p_clcb->op_subtype);
2031 if (p_cmpl_cb != NULL && p_clcb->operation != 0)
2033 if (p_clcb->operation == GATTC_OPTYPE_READ)
2036 cb_data.att_value.handle = p_clcb->s_handle;
2037 cb_data.att_value.len = p_clcb->counter;
2042 if (p_clcb->operation == GATTC_OPTYPE_WRITE)
2046 cb_data.att_value.handle = p_clcb->s_handle;
2047 if (p_clcb->op_subtype == GATT_WRITE_PREPARE)
2060 if (p_clcb->operation == GATTC_OPTYPE_CONFIG)
2061 cb_data.mtu = p_clcb->p_tcb->payload_size;
2063 if (p_clcb->operation == GATTC_OPTYPE_DISCOVERY)
2065 disc_type = p_clcb->op_subtype;
2069 if (p_clcb->p_attr_buf)
2071 GKI_freebuf(p_clcb->p_attr_buf);
2074 operation = p_clcb->operation;
2075 conn_id = p_clcb->conn_id;
2077 gatt_clcb_dealloc(p_clcb);
2101 tGATT_CLCB *p_clcb;
2114 p_clcb = &gatt_cb.clcb[i];
2115 if (p_clcb->in_use && p_clcb->p_tcb == p_tcb)
2117 GATT_TRACE_DEBUG2 ("found p_clcb conn_id=%d clcb_idx=%d", p_clcb->conn_id, p_clcb->clcb_idx);
2118 if (p_clcb->operation != GATTC_OPTYPE_NONE)
2119 gatt_end_operation(p_clcb, GATT_ERROR, NULL);
2121 gatt_clcb_dealloc(p_clcb);
2622 tGATT_CLCB *p_clcb;
2642 for (i = 0, p_clcb = gatt_cb.clcb; i < GATT_CL_MAX_LCB; i++, p_clcb++)
2644 if ( p_clcb->in_use && (p_clcb->p_reg == p_reg) && (p_clcb->p_tcb == p_tcb) )
2646 return(p_clcb->conn_id);
2663 tGATT_PENDING_ENC_CLCB* gatt_add_pending_enc_channel_clcb(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb )
2671 p_buf->p_clcb = p_clcb;