Lines Matching refs:l2cb
84 for (xx = 0, p_lcb_cur = &l2cb.lcb_pool[0]; xx < MAX_L2CAP_LINKS; xx++, p_lcb_cur++) in l2c_link_hci_conn_req()
441 l2cb.is_ble_connecting = FALSE; in l2c_link_hci_disc_comp()
464 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(xx + L2CAP_FIRST_FIXED_CHNL, in l2c_link_hci_disc_comp()
467 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)(xx + L2CAP_FIRST_FIXED_CHNL, in l2c_link_hci_disc_comp()
583 l2cb.is_ble_connecting == TRUE) in l2c_link_timeout()
585 L2CA_CancelBleConnectReq(l2cb.ble_connecting_bda); in l2c_link_timeout()
750 UINT16 controller_xmit_quota = l2cb.num_lm_acl_bufs; in l2c_link_adjust_allocation()
754 if (l2cb.num_links_active == 0) in l2c_link_adjust_allocation()
756 l2cb.controller_xmit_window = l2cb.num_lm_acl_bufs; in l2c_link_adjust_allocation()
757 l2cb.round_robin_quota = l2cb.round_robin_unacked = 0; in l2c_link_adjust_allocation()
762 for (yy = 0, p_lcb = &l2cb.lcb_pool[0]; yy < MAX_L2CAP_LINKS; yy++, p_lcb++) in l2c_link_adjust_allocation()
787 l2cb.round_robin_quota = low_quota; in l2c_link_adjust_allocation()
793 l2cb.round_robin_quota = 0; in l2c_link_adjust_allocation()
794 l2cb.round_robin_unacked = 0; in l2c_link_adjust_allocation()
801 l2cb.round_robin_quota = 0; in l2c_link_adjust_allocation()
802 l2cb.round_robin_unacked = 0; in l2c_link_adjust_allocation()
808 l2cb.round_robin_quota, qq); in l2c_link_adjust_allocation()
811 for (yy = 0, p_lcb = &l2cb.lcb_pool[0]; yy < MAX_L2CAP_LINKS; yy++, p_lcb++) in l2c_link_adjust_allocation()
825 l2cb.round_robin_unacked += p_lcb->sent_not_acked; in l2c_link_adjust_allocation()
839 p_lcb->sent_not_acked, l2cb.round_robin_unacked); in l2c_link_adjust_allocation()
879 tL2C_CCB *p_ccb = l2cb.ccb_pool + xx; in l2c_link_adjust_chnl_allocation()
909 l2cb.num_lm_acl_bufs = l2cb.controller_xmit_window = num_lm_acl_bufs; in l2c_link_processs_num_bufs()
966 for (xx = 0, p_lcb = &l2cb.lcb_pool[0]; xx < MAX_L2CAP_LINKS; xx++, p_lcb++) in l2c_link_role_changed()
1087 l2cb.ble_check_round_robin = TRUE; in l2c_link_check_send_pkts()
1090 l2cb.check_round_robin = TRUE; in l2c_link_check_send_pkts()
1097 if (l2cb.is_cong_cback_context) in l2c_link_check_send_pkts()
1106 p_lcb = l2cb.lcb_pool; in l2c_link_check_send_pkts()
1114 if (((l2cb.controller_xmit_window == 0 || in l2c_link_check_send_pkts()
1115 (l2cb.round_robin_unacked >= l2cb.round_robin_quota)) in l2c_link_check_send_pkts()
1120 (l2cb.ble_round_robin_unacked >= l2cb.ble_round_robin_quota || in l2c_link_check_send_pkts()
1121 l2cb.controller_le_xmit_window == 0 ))) in l2c_link_check_send_pkts()
1129 if (p_lcb == &l2cb.lcb_pool[MAX_L2CAP_LINKS]) in l2c_link_check_send_pkts()
1130 p_lcb = &l2cb.lcb_pool[0]; in l2c_link_check_send_pkts()
1158 if ( (l2cb.controller_xmit_window > 0) in l2c_link_check_send_pkts()
1159 && (l2cb.round_robin_unacked < l2cb.round_robin_quota) in l2c_link_check_send_pkts()
1164 l2cb.check_round_robin = FALSE; in l2c_link_check_send_pkts()
1167 if ( (l2cb.controller_le_xmit_window > 0) in l2c_link_check_send_pkts()
1168 && (l2cb.ble_round_robin_unacked < l2cb.ble_round_robin_quota) in l2c_link_check_send_pkts()
1170 l2cb.ble_check_round_robin = FALSE; in l2c_link_check_send_pkts()
1183 while ( ((l2cb.controller_xmit_window != 0 && (p_lcb->transport == BT_TRANSPORT_BR_EDR)) || in l2c_link_check_send_pkts()
1184 (l2cb.controller_le_xmit_window != 0 && (p_lcb->transport == BT_TRANSPORT_LE))) in l2c_link_check_send_pkts()
1187 while ( (l2cb.controller_xmit_window != 0) in l2c_link_check_send_pkts()
1204 … while ( ((l2cb.controller_xmit_window != 0 && (p_lcb->transport == BT_TRANSPORT_BR_EDR)) || in l2c_link_check_send_pkts()
1205 (l2cb.controller_le_xmit_window != 0 && (p_lcb->transport == BT_TRANSPORT_LE))) in l2c_link_check_send_pkts()
1208 … while ((l2cb.controller_xmit_window != 0) && (p_lcb->sent_not_acked < p_lcb->link_xmit_quota)) in l2c_link_check_send_pkts()
1259 l2cb.ble_round_robin_unacked++; in l2c_link_send_to_lower()
1262 l2cb.round_robin_unacked++; in l2c_link_send_to_lower()
1270 l2cb.controller_le_xmit_window--; in l2c_link_send_to_lower()
1276 l2cb.controller_xmit_window--; in l2c_link_send_to_lower()
1286 xmit_window = l2cb.controller_le_xmit_window; in l2c_link_send_to_lower()
1293 xmit_window = l2cb.controller_xmit_window; in l2c_link_send_to_lower()
1324 l2cb.controller_le_xmit_window -= num_segs; in l2c_link_send_to_lower()
1326 l2cb.ble_round_robin_unacked += num_segs; in l2c_link_send_to_lower()
1331 l2cb.controller_xmit_window -= num_segs; in l2c_link_send_to_lower()
1334 l2cb.round_robin_unacked += num_segs; in l2c_link_send_to_lower()
1355 l2cb.controller_le_xmit_window, in l2c_link_send_to_lower()
1358 l2cb.ble_round_robin_quota, l2cb.ble_round_robin_unacked); in l2c_link_send_to_lower()
1364 l2cb.controller_xmit_window, in l2c_link_send_to_lower()
1367 l2cb.round_robin_quota, l2cb.round_robin_unacked); in l2c_link_send_to_lower()
1413 l2cb.controller_le_xmit_window += num_sent; in l2c_link_process_num_completed_pkts()
1418 l2cb.controller_xmit_window += num_sent; in l2c_link_process_num_completed_pkts()
1427 if (l2cb.ble_round_robin_unacked > num_sent) in l2c_link_process_num_completed_pkts()
1428 l2cb.ble_round_robin_unacked -= num_sent; in l2c_link_process_num_completed_pkts()
1430 l2cb.ble_round_robin_unacked = 0; in l2c_link_process_num_completed_pkts()
1436 if (l2cb.round_robin_unacked > num_sent) in l2c_link_process_num_completed_pkts()
1437 l2cb.round_robin_unacked -= num_sent; in l2c_link_process_num_completed_pkts()
1439 l2cb.round_robin_unacked = 0; in l2c_link_process_num_completed_pkts()
1453 && (l2cb.check_round_robin) in l2c_link_process_num_completed_pkts()
1454 && (l2cb.round_robin_unacked < l2cb.round_robin_quota) ) in l2c_link_process_num_completed_pkts()
1461 && ((l2cb.ble_check_round_robin) in l2c_link_process_num_completed_pkts()
1462 && (l2cb.ble_round_robin_unacked < l2cb.ble_round_robin_quota))) in l2c_link_process_num_completed_pkts()
1476 l2cb.controller_le_xmit_window, in l2c_link_process_num_completed_pkts()
1478 l2cb.ble_check_round_robin, l2cb.ble_round_robin_unacked); in l2c_link_process_num_completed_pkts()
1484 l2cb.controller_xmit_window, in l2c_link_process_num_completed_pkts()
1486 l2cb.check_round_robin, l2cb.round_robin_unacked); in l2c_link_process_num_completed_pkts()
1494 l2cb.controller_xmit_window, in l2c_link_process_num_completed_pkts()
1495 l2cb.controller_le_xmit_window, in l2c_link_process_num_completed_pkts()
1497 l2cb.ble_check_round_robin, l2cb.ble_round_robin_unacked); in l2c_link_process_num_completed_pkts()
1500 l2cb.controller_xmit_window, in l2c_link_process_num_completed_pkts()
1502 l2cb.check_round_robin, l2cb.round_robin_unacked); in l2c_link_process_num_completed_pkts()