Lines Matching refs:l2cb
84 for (xx = 0, p_lcb_cur = &l2cb.lcb_pool[0]; xx < MAX_L2CAP_LINKS; xx++, p_lcb_cur++)
442 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(p_lcb->remote_bd_addr, FALSE,
445 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(p_lcb->remote_bd_addr, FALSE,
549 l2cb.is_ble_connecting == TRUE)
551 L2CA_CancelBleConnectReq(l2cb.ble_connecting_bda);
708 UINT16 controller_xmit_quota = l2cb.num_lm_acl_bufs;
712 if (l2cb.num_links_active == 0)
714 l2cb.controller_xmit_window = l2cb.num_lm_acl_bufs;
715 l2cb.round_robin_quota = l2cb.round_robin_unacked = 0;
720 for (yy = 0, p_lcb = &l2cb.lcb_pool[0]; yy < MAX_L2CAP_LINKS; yy++, p_lcb++)
745 l2cb.round_robin_quota = low_quota;
751 l2cb.round_robin_quota = 0;
752 l2cb.round_robin_unacked = 0;
759 l2cb.round_robin_quota = 0;
760 l2cb.round_robin_unacked = 0;
766 l2cb.round_robin_quota, qq);
769 for (yy = 0, p_lcb = &l2cb.lcb_pool[0]; yy < MAX_L2CAP_LINKS; yy++, p_lcb++)
783 l2cb.round_robin_unacked += p_lcb->sent_not_acked;
794 p_lcb->link_ack_thresh = L2CAP_HOST_FC_ACL_BUFS / l2cb.num_links_active;
800 p_lcb->sent_not_acked, l2cb.round_robin_unacked);
850 p_ccb = l2cb.ccb_pool + xx;
902 p_ccb = l2cb.ccb_pool + xx;
943 l2cb.num_lm_acl_bufs = l2cb
966 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0];
1017 for (xx = 0, p_lcb = &l2cb.lcb_pool[0]; xx < MAX_L2CAP_LINKS; xx++, p_lcb++)
1135 l2cb.ble_check_round_robin = TRUE;
1138 l2cb.check_round_robin = TRUE;
1145 if (l2cb.is_cong_cback_context)
1154 p_lcb = l2cb.lcb_pool;
1162 if ( (l2cb.controller_xmit_window == 0
1168 || (p_lcb->transport == BT_TRANSPORT_LE && l2cb.controller_le_xmit_window == 0 )
1170 || (l2cb.round_robin_unacked >= l2cb.round_robin_quota) )
1174 if (p_lcb == &l2cb.lcb_pool[MAX_L2CAP_LINKS])
1175 p_lcb = &l2cb.lcb_pool[0];
1202 if ( (l2cb.controller_xmit_window > 0)
1203 && (l2cb.round_robin_unacked < l2cb.round_robin_quota)
1208 l2cb.check_round_robin = FALSE;
1211 if ( (l2cb.controller_le_xmit_window > 0)
1212 && (l2cb.ble_round_robin_unacked < l2cb.ble_round_robin_quota)
1214 l2cb.ble_check_round_robin = FALSE;
1227 while ( ((l2cb.controller_xmit_window != 0 && (p_lcb->transport == BT_TRANSPORT_BR_EDR)) ||
1228 (l2cb.controller_le_xmit_window != 0 && (p_lcb->transport == BT_TRANSPORT_LE)))
1231 while ( (l2cb.controller_xmit_window != 0)
1246 while ( ((l2cb.controller_xmit_window != 0 && (p_lcb->transport == BT_TRANSPORT_BR_EDR)) ||
1247 (l2cb.controller_le_xmit_window != 0 && (p_lcb->transport == BT_TRANSPORT_LE)))
1250 while ((l2cb.controller_xmit_window != 0) && (p_lcb->sent_not_acked < p_lcb->link_xmit_quota))
1297 l2cb.ble_round_robin_unacked++;
1300 l2cb.round_robin_unacked++;
1308 l2cb.controller_le_xmit_window--;
1314 l2cb.controller_xmit_window--;
1324 xmit_window = l2cb.controller_le_xmit_window;
1331 xmit_window = l2cb.controller_xmit_window;
1362 l2cb.controller_le_xmit_window -= num_segs;
1364 l2cb.ble_round_robin_unacked += num_segs;
1369 l2cb.controller_xmit_window -= num_segs;
1372 l2cb.round_robin_unacked += num_segs;
1393 l2cb.controller_le_xmit_window,
1396 l2cb.ble_round_robin_quota, l2cb.ble_round_robin_unacked);
1402 l2cb.controller_xmit_window,
1405 l2cb.round_robin_quota, l2cb.round_robin_unacked);
1451 l2cb.controller_le_xmit_window += num_sent;
1456 l2cb.controller_xmit_window += num_sent;
1465 if (l2cb.ble_round_robin_unacked > num_sent)
1466 l2cb.ble_round_robin_unacked -= num_sent;
1468 l2cb.ble_round_robin_unacked = 0;
1474 if (l2cb.round_robin_unacked > num_sent)
1475 l2cb.round_robin_unacked -= num_sent;
1477 l2cb.round_robin_unacked = 0;
1491 && (l2cb.check_round_robin)
1492 && (l2cb.round_robin_unacked < l2cb.round_robin_quota) )
1499 && ((l2cb.ble_check_round_robin)
1500 && (l2cb.ble_round_robin_unacked < l2cb.ble_round_robin_quota)))
1514 l2cb.controller_le_xmit_window,
1516 l2cb.ble_check_round_robin, l2cb.ble_round_robin_unacked);
1522 l2cb.controller_xmit_window,
1524 l2cb.check_round_robin, l2cb.round_robin_unacked);
1532 l2cb.controller_xmit_window,
1533 l2cb.controller_le_xmit_window,
1535 l2cb.ble_check_round_robin, l2cb.ble_round_robin_unacked);
1538 l2cb.controller_xmit_window,
1540 l2cb.check_round_robin, l2cb.round_robin_unacked);
1598 l2cb.p_cur_hcit_lcb = NULL;
1622 l2cb.p_cur_hcit_lcb = p_lcb;
1642 l2cb.p_cur_hcit_lcb = p_lcb;
1713 if (((p_lcb = l2cb.p_cur_hcit_lcb) == NULL) || ((p_buf = p_lcb->p_hcit_rcv_acl) == NULL))