HomeSort by relevance Sort by last modified time
    Searched refs:p_tcb (Results 1 - 10 of 10) sorted by null

  /external/bluetooth/bluedroid/stack/gatt/
gatt_main.c 58 static void gatt_send_conn_cback (tGATT_TCB *p_tcb);
149 BOOLEAN gatt_connect (BD_ADDR rem_bda, tGATT_TCB *p_tcb, tBT_TRANSPORT transport)
153 if (gatt_get_ch_state(p_tcb) != GATT_CH_OPEN)
154 gatt_set_ch_state(p_tcb, GATT_CH_CONN);
158 p_tcb->att_lcid = L2CAP_ATT_CID;
163 if ((p_tcb->att_lcid = L2CA_ConnectReq(BT_PSM_ATT, rem_bda)) != 0)
176 ** Parameter p_tcb: pointer to the TCB to disconnect.
182 BOOLEAN gatt_disconnect (tGATT_TCB *p_tcb)
188 if (p_tcb != NULL)
191 if ( (ch_state = gatt_get_ch_state(p_tcb)) != GATT_CH_CLOSING
325 tGATT_TCB *p_tcb; local
386 tGATT_TCB *p_tcb = gatt_find_tcb_by_addr(bd_addr, transport); local
503 tGATT_TCB *p_tcb = gatt_find_tcb_by_addr(remote_bda, BT_TRANSPORT_LE); local
529 tGATT_TCB *p_tcb; local
565 tGATT_TCB *p_tcb = gatt_find_tcb_by_addr(bd_addr, BT_TRANSPORT_BR_EDR); local
617 tGATT_TCB *p_tcb; local
669 tGATT_TCB *p_tcb; local
725 tGATT_TCB *p_tcb; local
781 tGATT_TCB *p_tcb; local
818 tGATT_TCB *p_tcb; local
853 tGATT_TCB *p_tcb; local
877 tGATT_TCB *p_tcb = gatt_find_tcb_by_cid(lcid); local
1136 tGATT_TCB *p_tcb; local
    [all...]
gatt_auth.c 48 UINT16 payload_size = p_clcb->p_tcb->payload_size;
53 gatt_set_sec_act(p_clcb->p_tcb, GATT_SEC_OK);
69 if (BTM_BleDataSignature(p_clcb->p_tcb->peer_bda,
75 gatt_set_ch_state(p_clcb->p_tcb, GATT_CH_OPEN);
99 void gatt_verify_signature(tGATT_TCB *p_tcb, BT_HDR *p_buf)
110 if (BTM_BleVerifySignature(p_tcb->peer_bda, p_orig, cmd_len, counter, p))
113 gatt_server_handle_client_req (p_tcb, op_code, (UINT16)(p_buf->len - 1), p_orig);
134 if (p_clcb && p_clcb->p_tcb && GKI_queue_is_empty(&p_clcb->p_tcb->pending_enc_clcb))
135 gatt_set_sec_act(p_clcb->p_tcb, GATT_SEC_NONE)
161 tGATT_TCB *p_tcb; local
230 tGATT_TCB *p_tcb; local
317 tGATT_TCB *p_tcb = p_clcb->p_tcb; local
477 tGATT_TCB *p_tcb = p_clcb->p_tcb; local
    [all...]
gatt_sr.c 46 UINT32 gatt_sr_enqueue_cmd (tGATT_TCB *p_tcb, UINT8 op_code, UINT16 handle)
48 tGATT_SR_CMD *p_cmd = &p_tcb->sr_cmd;
59 trans_id = ++p_tcb->trans_id;
63 p_cmd->trans_id = ++p_tcb->trans_id;
67 p_tcb->trans_id %= GATT_TRANS_ID_MAX;
84 BOOLEAN gatt_sr_cmd_empty (tGATT_TCB *p_tcb)
86 return(p_tcb->sr_cmd.op_code == 0);
98 void gatt_dequeue_sr_cmd (tGATT_TCB *p_tcb)
102 if (p_tcb->sr_cmd.p_rsp_msg)
104 GATT_TRACE_ERROR("free p_tcb->sr_cmd.p_rsp_msg = %d", p_tcb->sr_cmd.p_rsp_msg)
    [all...]
gatt_cl.c 48 void gatt_send_prepare_write(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb);
116 st = attp_send_cl_msg(p_clcb->p_tcb, p_clcb->clcb_idx, op_code, &cl_req);
138 tGATT_TCB *p_tcb = p_clcb->p_tcb; local
207 rt = attp_send_cl_msg(p_tcb, p_clcb->clcb_idx, op_code, &msg);
226 tGATT_TCB *p_tcb = p_clcb->p_tcb; local
237 rt = gatt_send_write_msg(p_tcb,
247 if (p_attr->len <= (p_tcb->payload_size - GATT_HDR_SIZE))
251 rt = gatt_send_write_msg(p_tcb,
    [all...]
gatt_api.c 606 tGATT_TCB *p_tcb = gatt_get_tcb_by_idx(tcb_idx); local
610 if ( (p_reg == NULL) || (p_tcb == NULL))
625 if (GATT_HANDLE_IS_VALID(p_tcb->indicate_handle))
628 if ((p_buf = gatt_add_pending_ind(p_tcb, &indication)) !=NULL)
640 if ( (p_msg = attp_build_sr_msg (p_tcb, GATT_HANDLE_VALUE_IND, (tGATT_SR_MSG *)&indication)) != NULL)
642 cmd_status = attp_send_sr_msg (p_tcb, p_msg);
646 p_tcb->indicate_handle = indication.handle;
647 gatt_start_conf_timer(p_tcb);
677 tGATT_TCB *p_tcb = gatt_get_tcb_by_idx(tcb_idx); local
681 if ( (p_reg == NULL) || (p_tcb == NULL)
726 tGATT_TCB *p_tcb = gatt_get_tcb_by_idx(tcb_idx); local
778 tGATT_TCB *p_tcb = gatt_get_tcb_by_idx(tcb_idx); local
833 tGATT_TCB *p_tcb = gatt_get_tcb_by_idx(tcb_idx); local
902 tGATT_TCB *p_tcb = gatt_get_tcb_by_idx(tcb_idx); local
990 tGATT_TCB *p_tcb = gatt_get_tcb_by_idx(tcb_idx); local
1064 tGATT_TCB *p_tcb = gatt_get_tcb_by_idx(tcb_idx); local
1111 tGATT_TCB *p_tcb=gatt_get_tcb_by_idx(GATT_GET_TCB_IDX(conn_id)); local
1162 tGATT_TCB *p_tcb; local
1247 tGATT_TCB *p_tcb; local
1332 tGATT_TCB *p_tcb; local
1417 tGATT_TCB *p_tcb; local
1496 tGATT_TCB *p_tcb=NULL; local
1538 tGATT_TCB *p_tcb= gatt_get_tcb_by_idx(tcb_idx); local
1573 tGATT_TCB *p_tcb= gatt_find_tcb_by_addr(bd_addr, transport); local
    [all...]
gatt_utils.c 92 void gatt_free_pending_ind(tGATT_TCB *p_tcb)
96 while (p_tcb->pending_ind_q.p_first)
97 GKI_freebuf (GKI_dequeue (&p_tcb->pending_ind_q));
109 void gatt_free_pending_enc_queue(tGATT_TCB *p_tcb)
113 while (p_tcb->pending_enc_clcb.p_first)
114 GKI_freebuf (GKI_dequeue (&p_tcb->pending_enc_clcb));
215 tGATT_VALUE *gatt_add_pending_ind(tGATT_TCB *p_tcb, tGATT_VALUE *p_ind)
223 GKI_enqueue (&p_tcb->pending_ind_q, p_buf);
744 BOOLEAN gatt_is_srv_chg_ind_pending (tGATT_TCB *p_tcb)
746 tGATT_VALUE *p_buf = (tGATT_VALUE *)GKI_getfirst(&p_tcb->pending_ind_q)
865 tGATT_TCB *p_tcb = NULL; local
884 tGATT_TCB *p_tcb = NULL; local
928 tGATT_TCB *p_tcb = NULL; local
1267 tGATT_TCB * p_tcb = (tGATT_TCB *)p_tle->param; local
1619 tGATT_TCB *p_tcb = gatt_get_tcb_by_idx(tcb_idx); local
1671 tGATT_TCB *p_tcb = NULL; local
1946 tGATT_TCB *p_tcb=NULL; local
2194 tGATT_TCB *p_tcb = NULL; local
2472 tGATT_TCB *p_tcb = gatt_find_tcb_by_addr(bd_addr, BT_TRANSPORT_LE); local
2694 tGATT_TCB *p_tcb = gatt_find_tcb_by_addr(bd_addr, BT_TRANSPORT_LE); local
    [all...]
att_protocol.c 355 tGATT_STATUS attp_send_msg_to_l2cap(tGATT_TCB *p_tcb, BT_HDR *p_toL2CAP)
360 if (p_tcb->att_lcid == L2CAP_ATT_CID)
361 l2cap_ret = L2CA_SendFixedChnlData (L2CAP_ATT_CID, p_tcb->peer_bda, p_toL2CAP);
363 l2cap_ret = (UINT16) L2CA_DataWrite (p_tcb->att_lcid, p_toL2CAP);
386 BT_HDR *attp_build_sr_msg(tGATT_TCB *p_tcb, UINT8 op_code, tGATT_SR_MSG *p_msg)
405 p_cmd = attp_build_value_cmd(p_tcb->payload_size,
447 ** Parameter p_tcb: pointer to the connecton control block.
454 tGATT_STATUS attp_send_sr_msg (tGATT_TCB *p_tcb, BT_HDR *p_msg)
458 if (p_tcb != NULL)
463 cmd_sent = attp_send_msg_to_l2cap (p_tcb, p_msg)
    [all...]
gatt_int.h 397 tGATT_TCB *p_tcb; /* associated TCB of this CLCB */ member in struct:__anon5917
438 tGATT_TCB *p_tcb; member in struct:__anon5920
554 extern BOOLEAN gatt_disconnect (tGATT_TCB *p_tcb);
556 extern BOOLEAN gatt_connect (BD_ADDR rem_bda, tGATT_TCB *p_tcb, tBT_TRANSPORT transport);
557 extern void gatt_data_process (tGATT_TCB *p_tcb, BT_HDR *p_buf);
558 extern void gatt_update_app_use_link_flag ( tGATT_IF gatt_if, tGATT_TCB *p_tcb, BOOLEAN is_add, BOOLEAN check_acl_link);
561 extern void gatt_set_ch_state(tGATT_TCB *p_tcb, tGATT_CH_STATE ch_state);
562 extern tGATT_CH_STATE gatt_get_ch_state(tGATT_TCB *p_tcb);
574 extern tGATT_STATUS attp_send_cl_msg (tGATT_TCB *p_tcb, UINT16 clcb_idx, UINT8 op_code, tGATT_CL_MSG *p_msg);
575 extern BT_HDR *attp_build_sr_msg(tGATT_TCB *p_tcb, UINT8 op_code, tGATT_SR_MSG *p_msg)
    [all...]
gatt_db.c 47 static tGATT_STATUS gatts_send_app_read_request(tGATT_TCB *p_tcb, UINT8 op_code,
326 tGATT_STATUS gatts_db_read_attr_value_by_type (tGATT_TCB *p_tcb,
384 status = gatts_send_app_read_request(p_tcb, op_code, p_attr->handle, 0, trans_id);
417 if (BTM_GetSecurityFlags(p_tcb->peer_bda, &flag))
419 if ((p_tcb->att_lcid == L2CAP_ATT_CID) && (status == GATT_PENDING) &&
426 p = btm_bda_to_acl(p_tcb->peer_bda, BT_TRANSPORT_LE);
430 btm_ble_set_encryption(p_tcb->peer_bda, &sec_act, p->link_role);
638 tGATT_STATUS gatts_read_attr_value_by_handle(tGATT_TCB *p_tcb,
666 status = gatts_send_app_read_request(p_tcb, op_code, p_attr->handle, offset, trans_id);
    [all...]
  /external/bluetooth/bluedroid/bta/gatt/
bta_gattc_utils.c 387 tBTA_GATTC_SERV *p_tcb = &bta_gattc_cb.known_server[0], local
392 for (i = 0; i < BTA_GATTC_KNOWN_SR_MAX; i ++, p_tcb ++)
394 if (!p_tcb->in_use)
399 else if (!p_tcb->connected)
401 p_recycle = p_tcb;
407 p_tcb = NULL;
409 p_tcb = p_recycle;
411 if (p_tcb != NULL)
413 while (p_tcb->cache_buffer.p_first)
414 GKI_freebuf (GKI_dequeue (&p_tcb->cache_buffer))
    [all...]

Completed in 369 milliseconds