Lines Matching defs:p_tcb
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;
169 if ((p_tcb = gatt_find_tcb_by_addr(bd_addr, transport)) != NULL)
171 if (gatt_get_sec_act(p_tcb) == GATT_SEC_ENC_PENDING)
174 if ((p_buf = (tGATT_PENDING_ENC_CLCB *)GKI_dequeue (&p_tcb->pending_enc_clcb)) != NULL)
178 if (gatt_get_sec_act(p_tcb) == GATT_SEC_ENCRYPT_MITM )
192 gatt_sec_check_complete(status , p_buf->p_clcb, p_tcb->sec_act);
195 count = p_tcb->pending_enc_clcb.count;
198 if ((p_buf = (tGATT_PENDING_ENC_CLCB *)GKI_dequeue (&p_tcb->pending_enc_clcb)) != NULL)
230 tGATT_TCB *p_tcb;
235 if ((p_tcb = gatt_find_tcb_by_addr(bd_addr, BT_TRANSPORT_LE)) != NULL)
245 if (gatt_get_sec_act(p_tcb) == GATT_SEC_ENC_PENDING)
247 gatt_set_sec_act(p_tcb, GATT_SEC_NONE);
249 count = p_tcb->pending_enc_clcb.count;
253 if ((p_buf = (tGATT_PENDING_ENC_CLCB *)GKI_dequeue (&p_tcb->pending_enc_clcb)) != NULL)
278 void gatt_set_sec_act(tGATT_TCB *p_tcb, tGATT_SEC_ACTION sec_act)
280 if (p_tcb)
282 p_tcb->sec_act = sec_act;
294 tGATT_SEC_ACTION gatt_get_sec_act(tGATT_TCB *p_tcb)
297 if (p_tcb)
299 sec_act = p_tcb->sec_act;
317 tGATT_TCB *p_tcb = p_clcb->p_tcb;
328 BTM_GetSecurityFlagsByTransport(p_tcb->peer_bda, &sec_flag, p_clcb->p_tcb->transport);
330 btm_ble_link_sec_check(p_tcb->peer_bda, auth_req, &sec_act);
369 if (p_tcb->transport == BT_TRANSPORT_LE &&
377 btm_ble_get_enc_key_type(p_tcb->peer_bda, &key_type);
417 tGATT_STATUS gatt_get_link_encrypt_status(tGATT_TCB *p_tcb)
422 BTM_GetSecurityFlagsByTransport(p_tcb->peer_bda, &sec_flag, p_tcb->transport);
477 tGATT_TCB *p_tcb = p_clcb->p_tcb;
482 tGATT_SEC_ACTION sec_act_old = gatt_get_sec_act(p_tcb);
487 gatt_set_sec_act(p_tcb, gatt_sec_act);
502 btm_status = BTM_SetEncryption(p_tcb->peer_bda, p_tcb->transport , gatt_enc_cmpl_cback, &btm_ble_sec_act);
510 gatt_add_pending_enc_channel_clcb (p_tcb, p_clcb);
513 gatt_add_pending_enc_channel_clcb (p_tcb, p_clcb);
523 gatt_set_sec_act(p_tcb, GATT_SEC_NONE);
524 gatt_set_ch_state(p_tcb, GATT_CH_OPEN);