Searched refs:l2cb (Results 1 – 9 of 9) sorted by relevance
79 for (xx = 0, p_lcb_cur = &l2cb.lcb_pool[0]; xx < MAX_L2CAP_LINKS; in l2c_link_hci_conn_req()424 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)( in l2c_link_hci_disc_comp()676 uint16_t controller_xmit_quota = l2cb.num_lm_acl_bufs; in l2c_link_adjust_allocation()680 if (l2cb.num_links_active == 0) { in l2c_link_adjust_allocation()681 l2cb.controller_xmit_window = l2cb.num_lm_acl_bufs; in l2c_link_adjust_allocation()682 l2cb.round_robin_quota = l2cb.round_robin_unacked = 0; in l2c_link_adjust_allocation()687 for (yy = 0, p_lcb = &l2cb.lcb_pool[0]; yy < MAX_L2CAP_LINKS; yy++, p_lcb++) { in l2c_link_adjust_allocation()711 l2cb.round_robin_quota = low_quota; in l2c_link_adjust_allocation()716 l2cb.round_robin_quota = 0; in l2c_link_adjust_allocation()717 l2cb.round_robin_unacked = 0; in l2c_link_adjust_allocation()[all …]
52 tL2C_CB l2cb; variable113 list_length(l2cb.rcv_pending_q)); in l2c_rcv_acl_data()124 list_length(l2cb.rcv_pending_q)); in l2c_rcv_acl_data()126 list_append(l2cb.rcv_pending_q, p_msg); in l2c_rcv_acl_data()128 if (list_length(l2cb.rcv_pending_q) == 1) { in l2c_rcv_acl_data()129 alarm_set_on_mloop(l2cb.receive_hold_timer, BT_1SEC_TIMEOUT_MS, in l2c_rcv_acl_data()190 (l2cb.fixed_reg[rcv_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb != in l2c_rcv_acl_data()197 &l2cb.fixed_reg[rcv_cid - L2CAP_FIRST_FIXED_CHNL] in l2c_rcv_acl_data()209 (*l2cb.fixed_reg[rcv_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb)( in l2c_rcv_acl_data()824 if (list_is_empty(l2cb.rcv_pending_q)) return; in l2c_process_held_packets()[all …]
54 if (!l2cb.lcb_pool[i].in_use) return true; in l2cu_can_allocate_lcb()71 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in l2cu_allocate_lcb()87 p_lcb->idle_timeout = l2cb.idle_timeout; in l2cu_allocate_lcb()96 l2cb.num_ble_links_active++; in l2cu_allocate_lcb()99 l2cb.num_links_active++; in l2cu_allocate_lcb()161 l2cb.controller_le_xmit_window += p_lcb->sent_not_acked; in l2cu_release_lcb()162 if (l2cb.controller_le_xmit_window > l2cb.num_lm_ble_bufs) { in l2cu_release_lcb()163 l2cb.controller_le_xmit_window = l2cb.num_lm_ble_bufs; in l2cu_release_lcb()166 l2cb.controller_xmit_window += p_lcb->sent_not_acked; in l2cu_release_lcb()167 if (l2cb.controller_xmit_window > l2cb.num_lm_acl_bufs) { in l2cu_release_lcb()[all …]
135 p_lcb = &l2cb.lcb_pool[0]; in L2CA_Deregister()173 uint16_t psm = l2cb.dyn_psm; in L2CA_AllocatePSM()192 l2cb.dyn_psm = psm; in L2CA_AllocatePSM()208 uint16_t psm = l2cb.le_dyn_psm; in L2CA_AllocateLePSM()224 if (!l2cb.le_dyn_psm_assigned[psm - LE_DYNAMIC_PSM_START]) { in L2CA_AllocateLePSM()232 l2cb.le_dyn_psm_assigned[psm - LE_DYNAMIC_PSM_START] = true; in L2CA_AllocateLePSM()238 l2cb.le_dyn_psm = psm; in L2CA_AllocateLePSM()260 if (!l2cb.le_dyn_psm_assigned[psm - LE_DYNAMIC_PSM_START]) { in L2CA_FreeLePSM()263 l2cb.le_dyn_psm_assigned[psm - LE_DYNAMIC_PSM_START] = false; in L2CA_FreeLePSM()476 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in L2CA_DeregisterLECoc()[all …]
284 &l2cb.fixed_reg[L2CAP_ATT_CID - L2CAP_FIRST_FIXED_CHNL] in l2cble_conn_comp()790 l2cb.num_lm_acl_bufs -= L2C_DEF_NUM_BLE_BUF_SHARED; in l2c_link_processs_ble_num_bufs()793 l2cb.num_lm_ble_bufs = l2cb.controller_le_xmit_window = num_lm_ble_bufs; in l2c_link_processs_ble_num_bufs()817 uint16_t controller_xmit_quota = l2cb.num_lm_ble_bufs; in l2c_ble_link_adjust_allocation()821 if (l2cb.num_ble_links_active == 0) { in l2c_ble_link_adjust_allocation()822 l2cb.controller_le_xmit_window = l2cb.num_lm_ble_bufs; in l2c_ble_link_adjust_allocation()823 l2cb.ble_round_robin_quota = l2cb.ble_round_robin_unacked = 0; in l2c_ble_link_adjust_allocation()828 for (yy = 0, p_lcb = &l2cb.lcb_pool[0]; yy < MAX_L2CAP_LINKS; yy++, p_lcb++) { in l2c_ble_link_adjust_allocation()852 l2cb.ble_round_robin_quota = low_quota; in l2c_ble_link_adjust_allocation()857 l2cb.ble_round_robin_quota = 0; in l2c_ble_link_adjust_allocation()[all …]
940 if (l2cb.fixed_reg[p_ccb->local_cid - L2CAP_FIRST_FIXED_CHNL] in l2c_csm_config()942 (*l2cb.fixed_reg[p_ccb->local_cid - L2CAP_FIRST_FIXED_CHNL] in l2c_csm_config()1399 if (p_ccb->p_lcb->link_xmit_quota == 0) l2cb.check_round_robin = true; in l2c_enqueue_peer_data()
564 #define L2CAP_HIGH_PRI_MIN_XMIT_QUOTA_A (l2cb.high_pri_min_xmit_quota)570 extern tL2C_CB l2cb;
389 (l2cb.controller_xmit_window > 0)) in l2c_fcr_is_flow_controlled()1533 if (l2cb.fixed_reg[p_ccb->local_cid - L2CAP_FIRST_FIXED_CHNL] in do_sar_reassembly()1535 (*l2cb.fixed_reg[p_ccb->local_cid - L2CAP_FIRST_FIXED_CHNL] in do_sar_reassembly()
256 if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_ERROR) \261 if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_WARNING) \266 if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_API) \271 if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_EVENT) \276 if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_DEBUG) \