Lines Matching refs:l2cb
54 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0];
70 p_lcb->idle_timeout = l2cb.idle_timeout;
78 l2cb.num_ble_links_active++;
84 l2cb.num_links_active++;
159 l2cb.controller_le_xmit_window += p_lcb->sent_not_acked;
160 if (l2cb.controller_le_xmit_window > l2cb.num_lm_ble_bufs)
162 l2cb.controller_le_xmit_window = l2cb.num_lm_ble_bufs;
168 l2cb.controller_xmit_window += p_lcb->sent_not_acked;
169 if (l2cb.controller_xmit_window > l2cb.num_lm_acl_bufs)
171 l2cb.controller_xmit_window = l2cb.num_lm_acl_bufs;
177 l2cb.is_ble_connecting = FALSE;
190 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(p_lcb->remote_bd_addr, FALSE, p_lcb->disc_reason, p_lcb->transport);
193 && (l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb != NULL) )
194 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(p_lcb->remote_bd_addr, FALSE, p_lcb->disc_reason, p_lcb->transport);
225 if (l2cb.num_ble_links_active >= 1)
226 l2cb.num_ble_links_active--;
233 if (l2cb.num_links_active >= 1)
234 l2cb.num_links_active--;
265 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0];
297 return l2cb.desire_role;
367 UINT16_TO_STREAM (p, p_lcb->handle | l2cb.non_flushable_pbf);
1133 && (l2cb.test_info_resp & (L2CAP_EXTFEA_ENH_RETRANS | L2CAP_EXTFEA_STREAM_MODE |
1168 && (l2cb.test_info_resp & ( L2CAP_EXTFEA_ENH_RETRANS | L2CAP_EXTFEA_STREAM_MODE
1187 UINT32_TO_STREAM (p, l2cb.test_info_resp);
1212 if (l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb != NULL)
1469 if (!l2cb.p_free_ccb_first)
1475 p_ccb = l2cb.p_free_ccb_first;
1476 l2cb.p_free_ccb_first = p_ccb->p_next_ccb;
1482 p_ccb = &l2cb.ccb_pool[cid - L2CAP_BASE_APPL_CID];
1484 if (p_ccb == l2cb.p_free_ccb_first)
1485 l2cb.p_free_ccb_first = p_ccb->p_next_ccb;
1488 for (p_prev = l2cb.p_free_ccb_first; p_prev != NULL; p_prev = p_prev->p_next_ccb)
1494 if (p_ccb == l2cb.p_free_ccb_last)
1495 l2cb.p_free_ccb_last = p_prev;
1513 p_ccb->local_cid = L2CAP_BASE_APPL_CID + (UINT16)(p_ccb - l2cb.ccb_pool);
1709 if (!l2cb.p_free_ccb_first)
1711 l2cb.p_free_ccb_first = p_ccb;
1712 l2cb.p_free_ccb_last = p_ccb;
1719 p_ccb->p_prev_ccb = l2cb.p_free_ccb_last;
1720 l2cb.p_free_ccb_last->p_next_ccb = p_ccb;
1721 l2cb.p_free_ccb_last = p_ccb;
1784 tL2C_RCB *p_rcb = &l2cb.rcb_pool[0];
1865 tL2C_RCB *p_rcb = &l2cb.rcb_pool[0];
2186 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0];
2196 l2cb.is_ble_connecting = FALSE;
2216 tL2C_LCB *p_lcb_cur = &l2cb.lcb_pool[0];
2242 for (xx = 0, p_lcb_cur = &l2cb.lcb_pool[0]; xx < MAX_L2CAP_LINKS; xx++, p_lcb_cur++)
2299 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0];
2338 l2cb.disallow_switch, num_acl, no_hi_prio_chs, p_lcb->is_bonding);
2342 if ( ((!l2cb.disallow_switch && (num_acl < 3)) || (p_lcb->is_bonding && (no_hi_prio_chs==0)))
2419 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0];
2453 p_lcb = &l2cb.lcb_pool[0];
2552 l2cb.non_flushable_pbf = (L2CAP_PKT_START_NON_FLUSHABLE << L2CAP_PKT_TYPE_SHIFT);
2554 l2cb.non_flushable_pbf = (L2CAP_PKT_START << L2CAP_PKT_TYPE_SHIFT);
2600 for (xx = 0, p_lcb = &l2cb.lcb_pool[0]; xx < MAX_L2CAP_LINKS; xx++, p_lcb++)
2628 l2cb.test_info_resp = mask;
2733 p_ccb->fixed_chnl_idle_tout = l2cb.fixed_reg[fixed_cid - L2CAP_FIRST_FIXED_CHNL].default_idle_tout;
2842 if (l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb != NULL)
2849 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(p_lcb->remote_bd_addr, TRUE, 0, p_lcb->transport);
2851 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(p_lcb->remote_bd_addr, TRUE, 0, BT_TRANSPORT_BR_EDR);
2857 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(p_lcb->remote_bd_addr, FALSE, p_lcb->disc_reason, p_lcb->transport);
2859 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(p_lcb->remote_bd_addr, FALSE, p_lcb->disc_reason, BT_TRANSPORT_BR_EDR);
2898 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(p_lcb->remote_bd_addr, FALSE, p_lcb->disc_reason, p_lcb->transport);
2900 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(p_lcb->remote_bd_addr, FALSE, p_lcb->disc_reason, BT_TRANSPORT_BR_EDR);
2905 && (l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb != NULL) )
2907 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(p_lcb->remote_bd_addr, FALSE, p_lcb->disc_reason, p_lcb->transport);
2909 (*l2cb
3001 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0];
3041 p_ccb = l2cb.ccb_pool + local_cid;
3058 p_ccb = l2cb.ccb_pool;
3380 UINT16_TO_STREAM (p, p_ccb->p_lcb->handle | l2cb.non_flushable_pbf);
3438 l2cb.is_cong_cback_context = TRUE;
3440 l2cb.is_cong_cback_context = FALSE;
3462 if (l2cb.fixed_reg[xx].pL2CA_FixedCong_Cb != NULL)
3463 (* l2cb.fixed_reg[xx].pL2CA_FixedCong_Cb)(p_ccb->p_lcb->remote_bd_addr, FALSE);
3504 if (l2cb.fixed_reg[xx].pL2CA_FixedCong_Cb != NULL)
3505 (* l2cb.fixed_reg[xx].pL2CA_FixedCong_Cb)(p_ccb->p_lcb->remote_bd_addr, TRUE);