Home | History | Annotate | Download | only in l2cap

Lines Matching refs:l2cb

83         for (xx = 0, p_lcb_cur = &l2cb.lcb_pool[0]; xx < MAX_L2CAP_LINKS; xx++, p_lcb_cur++)
422 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(p_lcb->remote_bd_addr, FALSE, p_lcb->disc_reason);
525 l2cb.is_ble_connecting == TRUE)
527 L2CA_CancelBleConnectReq(l2cb.ble_connecting_bda);
682 UINT16 controller_xmit_quota = l2cb.num_lm_acl_bufs;
686 if (l2cb.num_links_active == 0)
688 l2cb.controller_xmit_window = l2cb.num_lm_acl_bufs;
689 l2cb.round_robin_quota = l2cb.round_robin_unacked = 0;
694 for (yy = 0, p_lcb = &l2cb.lcb_pool[0]; yy < MAX_L2CAP_LINKS; yy++, p_lcb++)
719 l2cb.round_robin_quota = low_quota;
725 l2cb.round_robin_quota = 0;
726 l2cb.round_robin_unacked = 0;
733 l2cb.round_robin_quota = 0;
734 l2cb.round_robin_unacked = 0;
740 l2cb.round_robin_quota, qq);
743 for (yy = 0, p_lcb = &l2cb.lcb_pool[0]; yy < MAX_L2CAP_LINKS; yy++, p_lcb++)
757 l2cb.round_robin_unacked += p_lcb->sent_not_acked;
768 p_lcb->link_ack_thresh = L2CAP_HOST_FC_ACL_BUFS / l2cb.num_links_active;
774 p_lcb->sent_not_acked, l2cb.round_robin_unacked);
824 p_ccb = l2cb.ccb_pool + xx;
876 p_ccb = l2cb.ccb_pool + xx;
917 l2cb.num_lm_acl_bufs = l2cb.controller_xmit_window = num_lm_acl_bufs;
940 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0];
989 for (xx = 0, p_lcb = &l2cb.lcb_pool[0]; xx < MAX_L2CAP_LINKS; xx++, p_lcb++)
1104 l2cb.check_round_robin = TRUE;
1110 if (l2cb.is_cong_cback_context)
1119 p_lcb = l2cb.lcb_pool;
1127 if ( (l2cb.controller_xmit_window == 0
1133 || (p_lcb->is_ble_link && l2cb.controller_le_xmit_window == 0 )
1135 || (l2cb.round_robin_unacked >= l2cb.round_robin_quota) )
1139 if (p_lcb == &l2cb.lcb_pool[MAX_L2CAP_LINKS])
1140 p_lcb = &l2cb.lcb_pool[0];
1168 if ( ((l2cb.controller_xmit_window > 0 && !p_lcb->is_ble_link) ||
1169 (l2cb.controller_le_xmit_window > 0 && p_lcb->is_ble_link))
1170 && (l2cb.round_robin_unacked < l2cb.round_robin_quota) )
1172 if ( (l2cb.controller_xmit_window > 0)
1173 && (l2cb.round_robin_unacked < l2cb.round_robin_quota) )
1176 l2cb.check_round_robin = FALSE;
1188 while ( ((l2cb.controller_xmit_window != 0 && !p_lcb->is_ble_link) ||
1189 (l2cb.controller_le_xmit_window != 0 && p_lcb->is_ble_link))
1192 while ( (l2cb.controller_xmit_window != 0)
1207 while ( ((l2cb.controller_xmit_window != 0 && !p_lcb->is_ble_link) ||
1208 (l2cb.controller_le_xmit_window != 0 && p_lcb->is_ble_link))
1211 while ((l2cb.controller_xmit_window != 0) && (p_lcb->sent_not_acked < p_lcb->link_xmit_quota))
1253 l2cb.round_robin_unacked++;
1261 l2cb.controller_le_xmit_window--;
1267 l2cb.controller_xmit_window--;
1277 xmit_window = l2cb.controller_le_xmit_window;
1284 xmit_window = l2cb.controller_xmit_window;
1315 l2cb.controller_le_xmit_window -= num_segs;
1320 l2cb.controller_xmit_window -= num_segs;
1323 l2cb.round_robin_unacked += num_segs;
1343 l2cb.controller_le_xmit_window,
1346 l2cb.round_robin_quota, l2cb.round_robin_unacked);
1352 l2cb.controller_xmit_window,
1355 l2cb.round_robin_quota, l2cb.round_robin_unacked);
1402 l2cb.controller_le_xmit_window += num_sent;
1408 l2cb.controller_xmit_window += num_sent;
1414 if (l2cb.round_robin_unacked > num_sent)
1415 l2cb.round_robin_unacked -= num_sent;
1417 l2cb.round_robin_unacked = 0;
1430 && (l2cb.check_round_robin)
1431 && (l2cb.round_robin_unacked < l2cb.round_robin_quota) )
1444 l2cb.controller_le_xmit_window,
1446 l2cb.check_round_robin, l2cb.round_robin_unacked);
1452 l2cb.controller_xmit_window,
1454 l2cb.check_round_robin, l2cb.round_robin_unacked);
1462 l2cb.controller_xmit_window,
1463 l2cb.controller_le_xmit_window,
1465 l2cb.check_round_robin, l2cb.round_robin_unacked);
1468 l2cb.controller_xmit_window,
1470 l2cb.check_round_robin, l2cb.round_robin_unacked);
1528 l2cb.p_cur_hcit_lcb = NULL;
1552 l2cb.p_cur_hcit_lcb = p_lcb;
1572 l2cb.p_cur_hcit_lcb = p_lcb;
1643 if (((p_lcb = l2cb.p_cur_hcit_lcb) == NULL) || ((p_buf = p_lcb->p_hcit_rcv_acl) == NULL))