• Home
  • Raw
  • Download

Lines Matching refs:l2cb

88     for (xx = 0, p_lcb_cur = &l2cb.lcb_pool[0]; xx < MAX_L2CAP_LINKS;  in l2c_link_hci_conn_req()
406 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)( in l2c_link_hci_disc_comp()
607 uint16_t controller_xmit_quota = l2cb.num_lm_acl_bufs; in l2c_link_adjust_allocation()
610 (l2cb.num_lm_ble_bufs == L2C_DEF_NUM_BLE_BUF_SHARED) ? true : false; in l2c_link_adjust_allocation()
613 if (l2cb.num_used_lcbs == 0) { in l2c_link_adjust_allocation()
614 l2cb.controller_xmit_window = l2cb.num_lm_acl_bufs; in l2c_link_adjust_allocation()
615 l2cb.round_robin_quota = l2cb.round_robin_unacked = 0; in l2c_link_adjust_allocation()
620 for (yy = 0, p_lcb = &l2cb.lcb_pool[0]; yy < MAX_L2CAP_LINKS; yy++, p_lcb++) { in l2c_link_adjust_allocation()
645 l2cb.round_robin_quota = low_quota; in l2c_link_adjust_allocation()
650 l2cb.round_robin_quota = 0; in l2c_link_adjust_allocation()
651 l2cb.round_robin_unacked = 0; in l2c_link_adjust_allocation()
657 l2cb.round_robin_quota = 0; in l2c_link_adjust_allocation()
658 l2cb.round_robin_unacked = 0; in l2c_link_adjust_allocation()
665 num_hipri_links, num_lowpri_links, low_quota, l2cb.round_robin_quota, qq); in l2c_link_adjust_allocation()
668 for (yy = 0, p_lcb = &l2cb.lcb_pool[0]; yy < MAX_L2CAP_LINKS; yy++, p_lcb++) { in l2c_link_adjust_allocation()
680 l2cb.round_robin_unacked += p_lcb->sent_not_acked; in l2c_link_adjust_allocation()
694 p_lcb->sent_not_acked, l2cb.round_robin_unacked); in l2c_link_adjust_allocation()
727 tL2C_CCB* p_ccb = l2cb.ccb_pool + xx; in l2c_link_adjust_chnl_allocation()
752 l2cb.num_lm_acl_bufs = controller->get_acl_buffer_count_classic(); in l2c_link_init()
753 l2cb.controller_xmit_window = controller->get_acl_buffer_count_classic(); in l2c_link_init()
787 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in l2c_link_role_changed()
886 l2cb.ble_check_round_robin = true; in l2c_link_check_send_pkts()
888 l2cb.check_round_robin = true; in l2c_link_check_send_pkts()
896 if (l2cb.is_cong_cback_context) { in l2c_link_check_send_pkts()
907 p_lcb = l2cb.lcb_pool; in l2c_link_check_send_pkts()
915 if (p_lcb == &l2cb.lcb_pool[MAX_L2CAP_LINKS]) p_lcb = &l2cb.lcb_pool[0]; in l2c_link_check_send_pkts()
918 if (((l2cb.controller_xmit_window == 0 || in l2c_link_check_send_pkts()
919 (l2cb.round_robin_unacked >= l2cb.round_robin_quota)) && in l2c_link_check_send_pkts()
922 (l2cb.ble_round_robin_unacked >= l2cb.ble_round_robin_quota || in l2c_link_check_send_pkts()
923 l2cb.controller_le_xmit_window == 0))) { in l2c_link_check_send_pkts()
958 if ((l2cb.controller_xmit_window > 0) && in l2c_link_check_send_pkts()
959 (l2cb.round_robin_unacked < l2cb.round_robin_quota) && in l2c_link_check_send_pkts()
961 l2cb.check_round_robin = false; in l2c_link_check_send_pkts()
963 if ((l2cb.controller_le_xmit_window > 0) && in l2c_link_check_send_pkts()
964 (l2cb.ble_round_robin_unacked < l2cb.ble_round_robin_quota) && in l2c_link_check_send_pkts()
966 l2cb.ble_check_round_robin = false; in l2c_link_check_send_pkts()
979 p_lcb->transport, l2cb.controller_xmit_window, in l2c_link_check_send_pkts()
980 l2cb.controller_le_xmit_window, p_lcb->sent_not_acked, in l2c_link_check_send_pkts()
984 while (((l2cb.controller_xmit_window != 0 && in l2c_link_check_send_pkts()
986 (l2cb.controller_le_xmit_window != 0 && in l2c_link_check_send_pkts()
1002 while (((l2cb.controller_xmit_window != 0 && in l2c_link_check_send_pkts()
1004 (l2cb.controller_le_xmit_window != 0 && in l2c_link_check_send_pkts()
1058 l2cb.round_robin_unacked++; in l2c_link_send_to_lower_br_edr()
1062 l2cb.controller_xmit_window--; in l2c_link_send_to_lower_br_edr()
1074 if (num_segs > l2cb.controller_xmit_window) { in l2c_link_send_to_lower_br_edr()
1075 num_segs = l2cb.controller_xmit_window; in l2c_link_send_to_lower_br_edr()
1087 l2cb.controller_xmit_window -= num_segs; in l2c_link_send_to_lower_br_edr()
1088 if (p_lcb->link_xmit_quota == 0) l2cb.round_robin_unacked += num_segs; in l2c_link_send_to_lower_br_edr()
1092 l2cb.controller_xmit_window, p_lcb->Handle(), in l2c_link_send_to_lower_br_edr()
1094 l2cb.round_robin_quota, l2cb.round_robin_unacked); in l2c_link_send_to_lower_br_edr()
1105 l2cb.ble_round_robin_unacked++; in l2c_link_send_to_lower_ble()
1109 l2cb.controller_le_xmit_window--; in l2c_link_send_to_lower_ble()
1121 if (num_segs > l2cb.controller_le_xmit_window) { in l2c_link_send_to_lower_ble()
1122 num_segs = l2cb.controller_le_xmit_window; in l2c_link_send_to_lower_ble()
1134 l2cb.controller_le_xmit_window -= num_segs; in l2c_link_send_to_lower_ble()
1135 if (p_lcb->link_xmit_quota == 0) l2cb.ble_round_robin_unacked += num_segs; in l2c_link_send_to_lower_ble()
1139 l2cb.controller_le_xmit_window, p_lcb->Handle(), in l2c_link_send_to_lower_ble()
1141 l2cb.ble_round_robin_quota, l2cb.ble_round_robin_unacked); in l2c_link_send_to_lower_ble()
1193 l2cb.controller_le_xmit_window += num_sent; in l2c_link_process_num_completed_pkts()
1196 l2cb.controller_xmit_window += num_sent; in l2c_link_process_num_completed_pkts()
1202 if (l2cb.ble_round_robin_unacked > num_sent) in l2c_link_process_num_completed_pkts()
1203 l2cb.ble_round_robin_unacked -= num_sent; in l2c_link_process_num_completed_pkts()
1205 l2cb.ble_round_robin_unacked = 0; in l2c_link_process_num_completed_pkts()
1208 if (l2cb.round_robin_unacked > num_sent) in l2c_link_process_num_completed_pkts()
1209 l2cb.round_robin_unacked -= num_sent; in l2c_link_process_num_completed_pkts()
1211 l2cb.round_robin_unacked = 0; in l2c_link_process_num_completed_pkts()
1225 (l2cb.check_round_robin) && in l2c_link_process_num_completed_pkts()
1226 (l2cb.round_robin_unacked < l2cb.round_robin_quota)) { in l2c_link_process_num_completed_pkts()
1231 ((l2cb.ble_check_round_robin) && in l2c_link_process_num_completed_pkts()
1232 (l2cb.ble_round_robin_unacked < l2cb.ble_round_robin_quota))) { in l2c_link_process_num_completed_pkts()
1240 l2cb.controller_le_xmit_window, p_lcb->Handle(), in l2c_link_process_num_completed_pkts()
1241 p_lcb->sent_not_acked, l2cb.ble_check_round_robin, in l2c_link_process_num_completed_pkts()
1242 l2cb.ble_round_robin_unacked); in l2c_link_process_num_completed_pkts()
1245 l2cb.controller_xmit_window, p_lcb->Handle(), in l2c_link_process_num_completed_pkts()
1246 p_lcb->sent_not_acked, l2cb.check_round_robin, in l2c_link_process_num_completed_pkts()
1247 l2cb.round_robin_unacked); in l2c_link_process_num_completed_pkts()
1251 l2cb.controller_xmit_window, l2cb.controller_le_xmit_window, in l2c_link_process_num_completed_pkts()
1252 handle, l2cb.ble_check_round_robin, in l2c_link_process_num_completed_pkts()
1253 l2cb.ble_round_robin_unacked); in l2c_link_process_num_completed_pkts()
1268 l2cb.controller_xmit_window += num_sent; in l2c_packets_completed()
1270 l2cb.update_outstanding_classic_packets(num_sent); in l2c_packets_completed()
1273 l2cb.controller_le_xmit_window += num_sent; in l2c_packets_completed()
1275 l2cb.update_outstanding_le_packets(num_sent); in l2c_packets_completed()
1287 if (l2cb.ble_check_round_robin && in l2c_packets_completed()
1288 l2cb.is_ble_round_robin_quota_available()) in l2c_packets_completed()
1292 if (l2cb.check_round_robin && in l2c_packets_completed()
1293 l2cb.is_classic_round_robin_quota_available()) { in l2c_packets_completed()