Home | History | Annotate | Download | only in gatt

Lines Matching defs:p_clcb

781     tGATT_CLCB    *p_clcb;
802 if ((p_clcb = gatt_clcb_alloc(conn_id)) != NULL)
804 p_clcb->p_tcb->payload_size = mtu;
805 p_clcb->operation = GATTC_OPTYPE_CONFIG;
807 ret = attp_send_cl_msg (p_clcb->p_tcb, p_clcb->clcb_idx, GATT_REQ_MTU, (tGATT_CL_MSG *)&mtu);
830 tGATT_CLCB *p_clcb;
854 if ((p_clcb = gatt_clcb_alloc(conn_id)) != NULL )
862 gatt_clcb_dealloc(p_clcb);
866 p_clcb->operation = GATTC_OPTYPE_DISCOVERY;
867 p_clcb->op_subtype = disc_type;
868 p_clcb->s_handle = p_param->s_handle;
869 p_clcb->e_handle = p_param->e_handle;
870 p_clcb->uuid = p_param->service;
872 gatt_act_discovery(p_clcb);
898 tGATT_CLCB *p_clcb;
920 if ( (p_clcb = gatt_clcb_alloc(conn_id)) != NULL )
922 p_clcb->operation = GATTC_OPTYPE_READ;
923 p_clcb->op_subtype = type;
924 p_clcb->auth_req = p_read->by_handle.auth_req;
925 p_clcb->counter = 0;
931 p_clcb->s_handle = p_read->service.s_handle;
932 p_clcb->e_handle = p_read->service.e_handle;
933 memcpy(&p_clcb->uuid, &p_read->service.uuid, sizeof(tBT_UUID));
936 p_clcb->s_handle = 0;
939 p_clcb->p_attr_buf = (UINT8*)p_read_multi;
943 memset(&p_clcb->uuid, 0, sizeof(tBT_UUID));
944 p_clcb->s_handle = p_read->by_handle.handle;
948 p_clcb->counter = p_read->partial.offset;
956 if (gatt_security_check_start(p_clcb) == FALSE)
959 gatt_clcb_dealloc(p_clcb);
986 tGATT_CLCB *p_clcb;
1006 if ((p_clcb = gatt_clcb_alloc(conn_id)) != NULL )
1008 p_clcb->operation = GATTC_OPTYPE_WRITE;
1009 p_clcb->op_subtype = type;
1010 p_clcb->auth_req = p_write->auth_req;
1012 if (( p_clcb->p_attr_buf = (UINT8 *)GKI_getbuf((UINT16)sizeof(tGATT_VALUE))) != NULL)
1014 memcpy(p_clcb->p_attr_buf, (void *)p_write, sizeof(tGATT_VALUE));
1016 p = (tGATT_VALUE *)p_clcb->p_attr_buf;
1019 p_clcb->start_offset = p_write->offset;
1023 if (gatt_security_check_start(p_clcb) == FALSE)
1034 gatt_clcb_dealloc(p_clcb);
1060 tGATT_CLCB *p_clcb;
1081 if ((p_clcb = gatt_clcb_alloc(conn_id)) != NULL)
1083 p_clcb->operation = GATTC_OPTYPE_EXE_WRITE;
1085 gatt_send_queue_write_cancel (p_clcb->p_tcb, p_clcb, flag);
1252 tGATT_CLCB *p_clcb;
1296 for (j = 0, p_clcb= &gatt_cb.clcb[j]; j < GATT_CL_MAX_LCB; j++, p_clcb++)
1298 if (p_clcb->in_use &&
1299 (p_clcb->p_reg->gatt_if == gatt_if) &&
1300 (p_clcb->p_tcb->tcb_idx == p_tcb->tcb_idx))
1302 btu_stop_timer(&p_clcb->rsp_timer_ent);
1303 gatt_clcb_dealloc (p_clcb);