• Home
  • Raw
  • Download

Lines Matching refs:p_clcb

592   tGATT_CLCB* p_clcb = gatt_clcb_alloc(conn_id);  in GATTC_ConfigureMTU()  local
593 if (!p_clcb) return GATT_NO_RESOURCES; in GATTC_ConfigureMTU()
595 p_clcb->p_tcb->payload_size = mtu; in GATTC_ConfigureMTU()
596 p_clcb->operation = GATTC_OPTYPE_CONFIG; in GATTC_ConfigureMTU()
599 return attp_send_cl_msg(*p_clcb->p_tcb, p_clcb, GATT_REQ_MTU, &gatt_cl_msg); in GATTC_ConfigureMTU()
649 tGATT_CLCB* p_clcb = gatt_clcb_alloc(conn_id); in GATTC_Discover() local
650 if (!p_clcb) return GATT_NO_RESOURCES; in GATTC_Discover()
652 p_clcb->operation = GATTC_OPTYPE_DISCOVERY; in GATTC_Discover()
653 p_clcb->op_subtype = disc_type; in GATTC_Discover()
654 p_clcb->s_handle = start_handle; in GATTC_Discover()
655 p_clcb->e_handle = end_handle; in GATTC_Discover()
656 p_clcb->uuid = uuid; in GATTC_Discover()
658 gatt_act_discovery(p_clcb); in GATTC_Discover()
704 tGATT_CLCB* p_clcb = gatt_clcb_alloc(conn_id); in GATTC_Read() local
705 if (!p_clcb) return GATT_NO_RESOURCES; in GATTC_Read()
707 p_clcb->operation = GATTC_OPTYPE_READ; in GATTC_Read()
708 p_clcb->op_subtype = type; in GATTC_Read()
709 p_clcb->auth_req = p_read->by_handle.auth_req; in GATTC_Read()
710 p_clcb->counter = 0; in GATTC_Read()
715 p_clcb->s_handle = p_read->service.s_handle; in GATTC_Read()
716 p_clcb->e_handle = p_read->service.e_handle; in GATTC_Read()
717 p_clcb->uuid = p_read->service.uuid; in GATTC_Read()
720 p_clcb->s_handle = 0; in GATTC_Read()
724 p_clcb->p_attr_buf = (uint8_t*)p_read_multi; in GATTC_Read()
730 p_clcb->uuid = Uuid::kEmpty; in GATTC_Read()
731 p_clcb->s_handle = p_read->by_handle.handle; in GATTC_Read()
734 p_clcb->counter = p_read->partial.offset; in GATTC_Read()
743 if (gatt_security_check_start(p_clcb)) p_tcb->pending_enc_clcb.push(p_clcb); in GATTC_Read()
781 tGATT_CLCB* p_clcb = gatt_clcb_alloc(conn_id); in GATTC_Write() local
782 if (!p_clcb) return GATT_NO_RESOURCES; in GATTC_Write()
784 p_clcb->operation = GATTC_OPTYPE_WRITE; in GATTC_Write()
785 p_clcb->op_subtype = type; in GATTC_Write()
786 p_clcb->auth_req = p_write->auth_req; in GATTC_Write()
788 p_clcb->p_attr_buf = (uint8_t*)osi_malloc(sizeof(tGATT_VALUE)); in GATTC_Write()
789 memcpy(p_clcb->p_attr_buf, (void*)p_write, sizeof(tGATT_VALUE)); in GATTC_Write()
791 tGATT_VALUE* p = (tGATT_VALUE*)p_clcb->p_attr_buf; in GATTC_Write()
793 p_clcb->start_offset = p_write->offset; in GATTC_Write()
797 if (gatt_security_check_start(p_clcb)) p_tcb->pending_enc_clcb.push(p_clcb); in GATTC_Write()
834 tGATT_CLCB* p_clcb = gatt_clcb_alloc(conn_id); in GATTC_ExecuteWrite() local
835 if (!p_clcb) return GATT_NO_RESOURCES; in GATTC_ExecuteWrite()
837 p_clcb->operation = GATTC_OPTYPE_EXE_WRITE; in GATTC_ExecuteWrite()
840 gatt_send_queue_write_cancel(*p_clcb->p_tcb, p_clcb, flag); in GATTC_ExecuteWrite()
1025 tGATT_CLCB* p_clcb; in GATT_Deregister() local
1026 for (j = 0, p_clcb = &gatt_cb.clcb[j]; j < GATT_CL_MAX_LCB; j++, p_clcb++) { in GATT_Deregister()
1027 if (p_clcb->in_use && (p_clcb->p_reg->gatt_if == gatt_if) && in GATT_Deregister()
1028 (p_clcb->p_tcb->tcb_idx == p_tcb->tcb_idx)) { in GATT_Deregister()
1029 alarm_cancel(p_clcb->gatt_rsp_timer_ent); in GATT_Deregister()
1030 gatt_clcb_dealloc(p_clcb); in GATT_Deregister()