• Home
  • Raw
  • Download

Lines Matching refs:l2cb

72   tL2C_LCB* p_lcb = &l2cb.lcb_pool[0];  in l2cu_allocate_lcb()
88 p_lcb->idle_timeout = l2cb.idle_timeout; in l2cu_allocate_lcb()
100 l2cb.num_ble_links_active++; in l2cu_allocate_lcb()
103 l2cb.num_used_lcbs++; in l2cu_allocate_lcb()
173 l2cb.controller_le_xmit_window += p_lcb->sent_not_acked; in l2cu_release_lcb()
174 if (l2cb.controller_le_xmit_window > l2cb.num_lm_ble_bufs) { in l2cu_release_lcb()
175 l2cb.controller_le_xmit_window = l2cb.num_lm_ble_bufs; in l2cu_release_lcb()
178 l2cb.controller_xmit_window += p_lcb->sent_not_acked; in l2cu_release_lcb()
179 if (l2cb.controller_xmit_window > l2cb.num_lm_acl_bufs) { in l2cu_release_lcb()
180 l2cb.controller_xmit_window = l2cb.num_lm_acl_bufs; in l2cu_release_lcb()
210 if (l2cb.num_ble_links_active >= 1) { in l2cu_release_lcb()
211 l2cb.num_ble_links_active--; in l2cu_release_lcb()
216 if (l2cb.num_used_lcbs >= 1) { in l2cu_release_lcb()
217 l2cb.num_used_lcbs--; in l2cu_release_lcb()
252 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in l2cu_find_lcb_by_bd_addr()
318 UINT16_TO_STREAM(p, p_lcb->Handle() | l2cb.non_flushable_pbf); in l2cu_build_header()
1061 (l2cb.test_info_resp & in l2cu_send_peer_info_rsp()
1092 (l2cb.test_info_resp & in l2cu_send_peer_info_rsp()
1106 UINT32_TO_STREAM(p, l2cb.test_info_resp); in l2cu_send_peer_info_rsp()
1131 if (l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb != NULL) { in l2cu_send_peer_info_rsp()
1355 if (!l2cb.p_free_ccb_first) { in l2cu_allocate_ccb()
1362 p_ccb = l2cb.p_free_ccb_first; in l2cu_allocate_ccb()
1363 l2cb.p_free_ccb_first = p_ccb->p_next_ccb; in l2cu_allocate_ccb()
1367 p_ccb = &l2cb.ccb_pool[cid - L2CAP_BASE_APPL_CID]; in l2cu_allocate_ccb()
1369 if (p_ccb == l2cb.p_free_ccb_first) { in l2cu_allocate_ccb()
1370 l2cb.p_free_ccb_first = p_ccb->p_next_ccb; in l2cu_allocate_ccb()
1372 for (p_prev = l2cb.p_free_ccb_first; p_prev != nullptr; p_prev = p_prev->p_next_ccb) { in l2cu_allocate_ccb()
1376 if (p_ccb == l2cb.p_free_ccb_last) { in l2cu_allocate_ccb()
1377 l2cb.p_free_ccb_last = p_prev; in l2cu_allocate_ccb()
1395 p_ccb->local_cid = L2CAP_BASE_APPL_CID + (uint16_t)(p_ccb - l2cb.ccb_pool); in l2cu_allocate_ccb()
1599 if (!l2cb.p_free_ccb_first) { in l2cu_release_ccb()
1600 l2cb.p_free_ccb_first = p_ccb; in l2cu_release_ccb()
1601 l2cb.p_free_ccb_last = p_ccb; in l2cu_release_ccb()
1606 p_ccb->p_prev_ccb = l2cb.p_free_ccb_last; in l2cu_release_ccb()
1607 l2cb.p_free_ccb_last->p_next_ccb = p_ccb; in l2cu_release_ccb()
1608 l2cb.p_free_ccb_last = p_ccb; in l2cu_release_ccb()
1664 (*l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb)( in l2cu_fixed_channel_data_cb()
1707 tL2C_RCB* p_rcb = &l2cb.rcb_pool[0]; in l2cu_allocate_rcb()
1733 tL2C_RCB* p_rcb = &l2cb.ble_rcb_pool[0]; in l2cu_allocate_ble_rcb()
1816 tL2C_RCB* p_rcb = &l2cb.rcb_pool[0]; in l2cu_find_rcb_by_psm()
1840 tL2C_RCB* p_rcb = &l2cb.ble_rcb_pool[0]; in l2cu_find_ble_rcb_by_psm()
2134 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in l2cu_device_reset()
2163 tL2C_LCB* p_lcb_cur = &l2cb.lcb_pool[0]; in l2cu_create_conn_br_edr()
2228 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in l2cu_find_lcb_by_state()
2257 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in l2cu_lcb_disconnecting()
2578 l2cb.non_flushable_pbf = (L2CAP_PKT_START_NON_FLUSHABLE << L2CAP_PKT_TYPE_SHIFT); in l2cu_set_non_flushable_pbf()
2580 l2cb.non_flushable_pbf = (L2CAP_PKT_START << L2CAP_PKT_TYPE_SHIFT); in l2cu_set_non_flushable_pbf()
2618 for (xx = 0, p_lcb = &l2cb.lcb_pool[0]; xx < MAX_L2CAP_LINKS; xx++, p_lcb++) { in l2cu_resubmit_pending_sec_req()
2641 void l2cu_set_info_rsp_mask(uint32_t mask) { l2cb.test_info_resp = mask; } in l2cu_set_info_rsp_mask()
2744 l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].default_idle_tout; in l2cu_initialize_fixed_ccb()
2845 p_lcb->peer_chnl_mask[0] = l2cb.l2c_ble_fixed_chnls_mask; in l2cu_process_fixed_chnl_resp()
2865 if (!l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb) { in l2cu_process_fixed_chnl_resp()
2873 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(channel_id, p_lcb->remote_bd_addr, true, 0, in l2cu_process_fixed_chnl_resp()
2876 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(channel_id, p_lcb->remote_bd_addr, false, in l2cu_process_fixed_chnl_resp()
2913 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(xx + L2CAP_FIRST_FIXED_CHNL, p_lcb->remote_bd_addr, in l2cu_process_fixed_disc_cback()
2918 (l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb != NULL)) { in l2cu_process_fixed_disc_cback()
2919 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(xx + L2CAP_FIRST_FIXED_CHNL, p_lcb->remote_bd_addr, in l2cu_process_fixed_disc_cback()
3440 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in l2cu_find_lcb_by_handle()
3473 p_ccb = l2cb.ccb_pool + local_cid; in l2cu_find_ccb_by_cid()
3525 UINT16_TO_STREAM(p, p_ccb->p_lcb->Handle() | l2cb.non_flushable_pbf); in l2cu_set_acl_hci_header()
3551 l2cb.is_cong_cback_context = true; in send_congestion_status_to_all_clients()
3557 l2cb.is_cong_cback_context = false; in send_congestion_status_to_all_clients()
3562 if (l2cb.fixed_reg[xx].pL2CA_FixedCong_Cb != NULL) { in send_congestion_status_to_all_clients()
3563 (*l2cb.fixed_reg[xx].pL2CA_FixedCong_Cb)(p_ccb->p_lcb->remote_bd_addr, status); in send_congestion_status_to_all_clients()