Home | History | Annotate | Download | only in gatt

Lines Matching refs:p_clcb

774     tGATT_CLCB    *p_clcb;
792 if ((p_clcb = gatt_clcb_alloc(conn_id)) != NULL)
794 p_clcb->p_tcb->payload_size = mtu;
795 p_clcb->operation = GATTC_OPTYPE_CONFIG;
797 ret = attp_send_cl_msg (p_clcb->p_tcb, p_clcb->clcb_idx, GATT_REQ_MTU, (tGATT_CL_MSG *)&mtu);
820 tGATT_CLCB *p_clcb;
844 if ((p_clcb = gatt_clcb_alloc(conn_id)) != NULL )
852 gatt_clcb_dealloc(p_clcb);
856 p_clcb->operation = GATTC_OPTYPE_DISCOVERY;
857 p_clcb->op_subtype = disc_type;
858 p_clcb->s_handle = p_param->s_handle;
859 p_clcb->e_handle = p_param->e_handle;
860 p_clcb->uuid = p_param->service;
862 gatt_act_discovery(p_clcb);
888 tGATT_CLCB *p_clcb;
910 if ( (p_clcb = gatt_clcb_alloc(conn_id)) != NULL )
912 p_clcb->operation = GATTC_OPTYPE_READ;
913 p_clcb
914 p_clcb->auth_req = p_read->by_handle.auth_req;
915 p_clcb->counter = 0;
921 p_clcb->s_handle = p_read->service.s_handle;
922 p_clcb->e_handle = p_read->service.e_handle;
923 memcpy(&p_clcb->uuid, &p_read->service.uuid, sizeof(tBT_UUID));
926 p_clcb->s_handle = 0;
929 p_clcb->p_attr_buf = (UINT8*)p_read_multi;
933 memset(&p_clcb->uuid, 0, sizeof(tBT_UUID));
934 p_clcb->s_handle = p_read->by_handle.handle;
938 p_clcb->counter = p_read->partial.offset;
946 if (gatt_security_check_start(p_clcb) == FALSE)
949 gatt_clcb_dealloc(p_clcb);
976 tGATT_CLCB *p_clcb;
996 if ((p_clcb = gatt_clcb_alloc(conn_id)) != NULL )
998 p_clcb->operation = GATTC_OPTYPE_WRITE;
999 p_clcb->op_subtype = type;
1000 p_clcb->auth_req = p_write->auth_req;
1002 if (( p_clcb->p_attr_buf = (UINT8 *)GKI_getbuf((UINT16)sizeof(tGATT_VALUE))) != NULL)
1004 memcpy(p_clcb->p_attr_buf, (void *)p_write, sizeof(tGATT_VALUE));
1006 p = (tGATT_VALUE *)p_clcb->p_attr_buf;
1009 p_clcb->start_offset = p_write->offset;
1013 if (gatt_security_check_start(p_clcb) == FALSE)
1024 gatt_clcb_dealloc(p_clcb);
1050 tGATT_CLCB *p_clcb;
1071 if ((p_clcb = gatt_clcb_alloc(conn_id)) != NULL)
1073 p_clcb->operation = GATTC_OPTYPE_EXE_WRITE;
1075 gatt_send_queue_write_cancel (p_clcb->p_tcb, p_clcb, flag);
1238 tGATT_CLCB *p_clcb;
1282 for (j = 0, p_clcb= &gatt_cb.clcb[j]; j < GATT_CL_MAX_LCB; j++, p_clcb++)
1284 if (p_clcb->in_use &&
1285 (p_clcb->p_reg->gatt_if == gatt_if) &&
1286 (p_clcb->p_tcb->tcb_idx == p_tcb->tcb_idx))
1288 gatt_clcb_dealloc (p_clcb);