/external/bluetooth/bluedroid/stack/avct/ |
avct_l2c.c | 72 static BOOLEAN avct_l2c_is_passive (tAVCT_LCB *p_lcb) 80 if (p_ccb->allocated && (p_ccb->p_lcb == p_lcb)) 105 tAVCT_LCB *p_lcb; local 110 if ((p_lcb = avct_lcb_by_bd(bd_addr)) == NULL) 113 if ((p_lcb = avct_lcb_alloc(bd_addr)) == NULL) 122 if (!avct_l2c_is_passive (p_lcb) || (p_lcb->ch_state == AVCT_CH_OPEN)) 130 p_lcb->conflict_lcid = p_lcb->ch_lcid 178 tAVCT_LCB *p_lcb; local 239 tAVCT_LCB *p_lcb; local 289 tAVCT_LCB *p_lcb; local 339 tAVCT_LCB *p_lcb; local 369 tAVCT_LCB *p_lcb; local 398 tAVCT_LCB *p_lcb; local 420 tAVCT_LCB *p_lcb; local [all...] |
avct_lcb_act.c | 52 static BT_HDR *avct_lcb_msg_asmbl(tAVCT_LCB *p_lcb, BT_HDR *p_buf) 74 if (p_lcb->p_rx_msg != NULL) 76 GKI_freebuf(p_lcb->p_rx_msg); 77 p_lcb->p_rx_msg = NULL; 86 if (p_lcb->p_rx_msg != NULL) 88 GKI_freebuf(p_lcb->p_rx_msg); 91 p_lcb->p_rx_msg = p_buf; 97 p_lcb->p_rx_msg->offset += p_lcb->p_rx_msg->len; 100 p_lcb->p_rx_msg->len -= 1 [all...] |
avct_lcb.c | 193 void avct_lcb_event(tAVCT_LCB *p_lcb, UINT8 event, tAVCT_LCB_EVT *p_data) 200 AVCT_TRACE_EVENT3("LCB lcb=%d event=%s state=%s", p_lcb->allocated, avct_lcb_evt_str[event], avct_lcb_st_str[p_lcb->state]); 202 AVCT_TRACE_EVENT3("LCB lcb=%d event=%d state=%d", p_lcb->allocated, event, p_lcb->state); 206 state_table = avct_lcb_st_tbl[p_lcb->state]; 209 p_lcb->state = state_table[event][AVCT_LCB_NEXT_STATE]; 216 (*avct_lcb_action[action])(p_lcb, p_data); 281 tAVCT_LCB *p_lcb = &avct_cb.lcb[0]; local 284 for (i = 0; i < AVCT_NUM_LINKS; i++, p_lcb++ 316 tAVCT_LCB *p_lcb = &avct_cb.lcb[0]; local 396 tAVCT_LCB *p_lcb = &avct_cb.lcb[0]; local [all...] |
avct_int.h | 106 tAVCT_LCB *p_lcb; /* Associated LCB */ member in struct:__anon3028 145 extern void avct_lcb_event(tAVCT_LCB *p_lcb, UINT8 event, tAVCT_LCB_EVT *p_data); 148 extern void avct_close_bcb(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data); 150 extern tAVCT_BCB *avct_bcb_by_lcb(tAVCT_LCB *p_lcb); 156 extern void avct_lcb_dealloc(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data); 158 extern tAVCT_CCB *avct_lcb_has_pid(tAVCT_LCB *p_lcb, UINT16 pid); 159 extern BOOLEAN avct_lcb_last_ccb(tAVCT_LCB *p_lcb, tAVCT_CCB *p_ccb_last); 162 extern void avct_lcb_chnl_open(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data); 163 extern void avct_lcb_unbind_disc(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data); 164 extern void avct_lcb_open_ind(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data) [all...] |
avct_api.c | 134 tAVCT_LCB *p_lcb; local 152 if ((p_lcb = avct_lcb_by_bd(peer_addr)) == NULL) 154 if ((p_lcb = avct_lcb_alloc(peer_addr)) == NULL) 162 else if (avct_lcb_has_pid(p_lcb, p_cc->pid)) 171 p_ccb->p_lcb = p_lcb; 172 AVCT_TRACE_DEBUG1("ch_state: %d", p_lcb->ch_state); 173 avct_lcb_event(p_lcb, AVCT_LCB_UL_BIND_EVT, (tAVCT_LCB_EVT *) &p_ccb); 206 else if (p_ccb->p_lcb == NULL) 213 avct_lcb_event(p_ccb->p_lcb, AVCT_LCB_UL_UNBIND_EVT, (tAVCT_LCB_EVT *) &p_ccb) [all...] |
avct_ccb.c | 90 p_ccb->p_lcb = NULL;
|
/external/bluetooth/bluedroid/stack/l2cap/ |
l2c_link.c | 41 static BOOLEAN l2c_link_send_to_lower (tL2C_LCB *p_lcb, BT_HDR *p_buf); 61 tL2C_LCB *p_lcb; local 67 p_lcb = l2cu_find_lcb_by_bd_addr (bd_addr); 70 if (!p_lcb) 72 p_lcb = l2cu_allocate_lcb (bd_addr, FALSE); 73 if (!p_lcb) 85 if (p_lcb_cur == p_lcb) 91 p_lcb->link_role = HCI_ROLE_MASTER; 99 p_lcb->link_role = HCI_ROLE_SLAVE; 101 p_lcb->link_role = l2cu_get_conn_role(p_lcb) 157 tL2C_LCB *p_lcb; local 295 tL2C_LCB *p_lcb; local 359 tL2C_LCB *p_lcb; local 465 tL2C_LCB *p_lcb; local 678 tL2C_LCB *p_lcb; local 940 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0]; local 970 tL2C_LCB *p_lcb; local 1013 tL2C_LCB *p_lcb = l2cu_find_lcb_by_bd_addr (bd_addr); local 1378 tL2C_LCB *p_lcb; local 1506 tL2C_LCB *p_lcb; local 1640 tL2C_LCB *p_lcb; local 1678 tL2C_LCB *p_lcb; local [all...] |
l2c_ble.c | 48 tL2C_LCB *p_lcb; local 70 if ((p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda)) != NULL) 72 p_lcb->disc_reason = L2CAP_CONN_CANCEL; 73 l2cu_release_lcb (p_lcb); 98 tL2C_LCB *p_lcb; local 101 p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda); 104 if (!p_lcb) 111 if (!p_lcb->is_ble_link) 118 if (p_lcb->link_role == HCI_ROLE_MASTER) 119 btsnd_hcic_ble_upd_ll_conn_params (p_lcb->handle, min_int, max_int, latency, timeout, 0, 0) 140 tL2C_LCB *p_lcb; local 212 tL2C_LCB *p_lcb; local 230 tL2C_LCB *p_lcb; local 254 tL2C_LCB *p_lcb; local 354 tL2C_LCB *p_lcb; local [all...] |
l2c_api.c | 125 tL2C_LCB *p_lcb; local 132 p_lcb = &l2cb.lcb_pool[0]; 133 for (ii = 0; ii < MAX_L2CAP_LINKS; ii++, p_lcb++) 135 if (p_lcb->in_use) 137 if (((p_ccb = p_lcb->ccb_queue.p_first_ccb) == NULL) 138 || (p_lcb->link_state == LST_DISCONNECTING)) 231 tL2C_LCB *p_lcb; local 254 if ((p_lcb = l2cu_find_lcb_by_bd_addr (p_bd_addr)) == NULL) 257 if ( ((p_lcb = l2cu_allocate_lcb (p_bd_addr, FALSE)) == NULL) 258 || (l2cu_create_conn(p_lcb) == FALSE) 353 tL2C_LCB *p_lcb; local 587 tL2C_LCB *p_lcb; local 654 tL2C_LCB *p_lcb; local 719 tL2C_LCB *p_lcb; local 766 tL2C_LCB *p_lcb; local 779 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0]; local 863 tL2C_LCB *p_lcb; local 1090 tL2C_LCB *p_lcb; local 1195 tL2C_LCB *p_lcb; local 1231 tL2C_LCB *p_lcb = NULL; local 1309 tL2C_LCB *p_lcb; local 1391 tL2C_LCB *p_lcb; local 1464 tL2C_LCB *p_lcb; local 1522 tL2C_LCB *p_lcb; local 1614 tL2C_LCB *p_lcb; local 1716 tL2C_LCB *p_lcb; local [all...] |
l2c_utils.c | 52 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0]; local 54 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p_lcb++) 56 if (!p_lcb->in_use) 58 memset (p_lcb, 0, sizeof (tL2C_LCB)); 60 memcpy (p_lcb->remote_bd_addr, p_bd_addr, BD_ADDR_LEN); 62 p_lcb->in_use = TRUE; 63 p_lcb->link_state = LST_DISCONNECTED; 64 p_lcb->handle = HCI_INVALID_HANDLE; 65 p_lcb->link_flush_tout = 0xFFFF; 66 p_lcb->timer_entry.param = (TIMER_PARAM_TYPE)p_lcb 95 tL2C_LCB *p_lcb = l2cu_find_lcb_by_bd_addr (p_bd_addr); local 236 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0]; local 1500 tL2C_LCB *p_lcb = l2cu_find_lcb_by_handle(handle); local 1551 tL2C_LCB *p_lcb = p_ccb->p_lcb; local 1952 tL2C_LCB *p_lcb; local 2068 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0]; local 2180 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0]; local 2298 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0]; local 2327 tL2C_LCB *p_lcb; local 2377 tL2C_LCB *p_lcb; local 2449 tL2C_LCB *p_lcb; local 2819 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0]; local [all...] |
l2c_ucd.c | 328 tL2C_LCB *p_lcb; local 346 if (((p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda)) == NULL) 347 ||((p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID)) == NULL)) 364 if ((p_lcb)&&(p_lcb->link_state == LST_CONNECTED)) 368 p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID); 394 tL2C_LCB *p_lcb; local 414 if (((p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda)) == NULL) 415 ||((p_ccb = l2cu_find_ccb_by_cid (p_lcb, L2CAP_CONNECTIONLESS_CID)) == NULL)) 424 if (((p_lcb = l2cu_find_lcb_by_bd_addr (rem_bda)) == NULL 484 tL2C_LCB *p_lcb; local 517 tL2C_LCB *p_lcb; local 556 tL2C_LCB *p_lcb; local [all...] |
l2c_int.h | 287 struct t_l2c_linkcb *p_lcb; /* Link this CCB is assigned to */ member in struct:t_l2c_ccb 583 extern void l2cu_release_lcb (tL2C_LCB *p_lcb); 595 extern tL2C_CCB *l2cu_allocate_ccb (tL2C_LCB *p_lcb, UINT16 cid); 597 extern tL2C_CCB *l2cu_find_ccb_by_cid (tL2C_LCB *p_lcb, UINT16 local_cid); 598 extern tL2C_CCB *l2cu_find_ccb_by_remote_cid (tL2C_LCB *p_lcb, UINT16 remote_cid); 599 extern void l2cu_adj_id (tL2C_LCB *p_lcb, UINT8 adj_mask); 601 extern void l2cu_send_peer_cmd_reject (tL2C_LCB *p_lcb, UINT16 reason, 609 extern void l2cu_send_peer_disc_rsp (tL2C_LCB *p_lcb, UINT8 remote_id, UINT16 local_cid, UINT16 remote_cid); 610 extern void l2cu_send_peer_echo_req (tL2C_LCB *p_lcb, UINT8 *p_data, UINT16 data_len); 611 extern void l2cu_send_peer_echo_rsp (tL2C_LCB *p_lcb, UINT8 id, UINT8 *p_data, UINT16 data_len) [all...] |
l2c_main.c | 41 static void process_l2cap_cmd (tL2C_LCB *p_lcb, UINT8 *p, UINT16 pkt_len); 124 tL2C_LCB *p_lcb; local 138 if ((p_lcb = l2cu_find_lcb_by_handle (handle)) == NULL) 186 if (++p_lcb->link_pkts_unacked >= p_lcb->link_ack_thresh) 197 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, rcv_cid)) == NULL) 229 process_l2cap_cmd (p_lcb, p, l2cap_len); 234 /* process_connectionless_data (p_lcb); */ 242 tcs_proc_bcst_msg( p_lcb->remote_bd_addr, p_msg ) ; 250 if ( l2c_ucd_check_rx_pkts( p_lcb, p_msg ) [all...] |
l2c_csm.c | 169 btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, 170 p_ccb->p_lcb->handle, TRUE, &l2c_link_sec_comp, p_ccb); 176 || !btm_acl_notif_conn_collision(p_ccb->p_lcb->remote_bd_addr)) 200 BTM_SetPowerMode (BTM_PM_SET_ONLY_ID, p_ccb->p_lcb->remote_bd_addr, &settings); 203 BTM_CancelSniffMode (p_ccb->p_lcb->remote_bd_addr); 207 if (btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, 208 p_ccb->p_lcb->handle, TRUE, &l2c_link_sec_comp, p_ccb) == BTM_CMD_STARTED) 216 if (!p_ccb->p_lcb->w4_info_rsp) 240 btu_stop_timer (&p_ccb->p_lcb->timer_entry); 257 BTM_SetPowerMode (BTM_PM_SET_ONLY_ID, p_ccb->p_lcb->remote_bd_addr, &settings) [all...] |
l2c_fcr.c | 400 if ((p_ccb->p_lcb->sent_not_acked < 2)&&(l2cb.controller_xmit_window > 0)) 613 l2c_link_check_send_pkts (p_ccb->p_lcb, NULL, p_buf); [all...] |
/external/bluetooth/bluedroid/bta/av/ |
bta_av_act.c | 453 tBTA_AV_LCB *p_lcb = NULL; local 460 p_lcb = &p_cb->lcb[xx]; 469 return p_lcb; 487 tBTA_AV_LCB *p_lcb; local 544 p_lcb = &p_cb->lcb[BTA_AV_NUM_LINKS]; 545 bdcpy(p_lcb->addr, p_data->rc_conn_chg.peer_addr); 547 p_lcb->addr[0], p_lcb->addr[1], 548 p_lcb->addr[2], p_lcb->addr[3] 1163 tBTA_AV_LCB *p_lcb; local 1408 tBTA_AV_LCB *p_lcb = NULL; local 1517 tBTA_AV_LCB *p_lcb = NULL; local 1684 tBTA_AV_LCB *p_lcb; local 1788 tBTA_AV_LCB *p_lcb; local [all...] |
/external/bluetooth/bluedroid/stack/btm/ |
btm_pm.c | 790 tL2C_LCB *p_lcb; local 851 ((p_lcb = l2cu_find_lcb_by_bd_addr (p->remote_addr)) != NULL)) 856 l2c_link_check_send_pkts (p_lcb, NULL, NULL); 858 //btu_stop_timer (&p_lcb->timer_entry);
|
btm_sec.c | 2857 tL2C_LCB *p_lcb; local [all...] |