Searched refs:l2cb (Results 1 – 12 of 12) sorted by relevance
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()[all …]
48 tL2C_CB l2cb; variable114 list_length(l2cb.rcv_pending_q)); in l2c_rcv_acl_data()125 list_length(l2cb.rcv_pending_q)); in l2c_rcv_acl_data()127 list_append(l2cb.rcv_pending_q, p_msg); in l2c_rcv_acl_data()129 if (list_length(l2cb.rcv_pending_q) == 1) { in l2c_rcv_acl_data()130 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()207 (*l2cb.fixed_reg[rcv_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb)( in l2c_rcv_acl_data()869 if (list_is_empty(l2cb.rcv_pending_q)) return; in l2c_process_held_packets()872 alarm_cancel(l2cb.receive_hold_timer); in l2c_process_held_packets()[all …]
59 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in l2cu_allocate_lcb()74 p_lcb->idle_timeout = l2cb.idle_timeout; in l2cu_allocate_lcb()87 l2cb.num_ble_links_active++; in l2cu_allocate_lcb()90 l2cb.num_used_lcbs++; in l2cu_allocate_lcb()166 l2cb.controller_le_xmit_window += p_lcb->sent_not_acked; in l2cu_release_lcb()167 if (l2cb.controller_le_xmit_window > l2cb.num_lm_ble_bufs) { in l2cu_release_lcb()168 l2cb.controller_le_xmit_window = l2cb.num_lm_ble_bufs; in l2cu_release_lcb()171 l2cb.controller_xmit_window += p_lcb->sent_not_acked; in l2cu_release_lcb()172 if (l2cb.controller_xmit_window > l2cb.num_lm_acl_bufs) { in l2cu_release_lcb()173 l2cb.controller_xmit_window = l2cb.num_lm_acl_bufs; in l2cu_release_lcb()[all …]
172 p_lcb = &l2cb.lcb_pool[0]; in L2CA_Deregister()213 uint16_t psm = l2cb.le_dyn_psm; in L2CA_AllocateLePSM()229 if (!l2cb.le_dyn_psm_assigned[psm - LE_DYNAMIC_PSM_START]) { in L2CA_AllocateLePSM()237 l2cb.le_dyn_psm_assigned[psm - LE_DYNAMIC_PSM_START] = true; in L2CA_AllocateLePSM()243 l2cb.le_dyn_psm = psm; in L2CA_AllocateLePSM()269 if (!l2cb.le_dyn_psm_assigned[psm - LE_DYNAMIC_PSM_START]) { in L2CA_FreeLePSM()272 l2cb.le_dyn_psm_assigned[psm - LE_DYNAMIC_PSM_START] = false; in L2CA_FreeLePSM()466 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in L2CA_DeregisterLECoc()961 tL2C_LCB* p_lcb = &l2cb.lcb_pool[0]; in L2CA_SetIdleTimeoutByBdAddr()986 if (new_level != 0xFF) l2cb.l2cap_trace_level = new_level; in L2CA_SetTraceLevel()[all …]
1085 l2cb.num_lm_acl_bufs -= L2C_DEF_NUM_BLE_BUF_SHARED; in l2c_link_processs_ble_num_bufs()1088 l2cb.num_lm_ble_bufs = num_lm_ble_bufs; in l2c_link_processs_ble_num_bufs()1089 l2cb.controller_le_xmit_window = num_lm_ble_bufs; in l2c_link_processs_ble_num_bufs()1113 uint16_t controller_xmit_quota = l2cb.num_lm_ble_bufs; in l2c_ble_link_adjust_allocation()1117 if (l2cb.num_ble_links_active == 0) { in l2c_ble_link_adjust_allocation()1118 l2cb.controller_le_xmit_window = l2cb.num_lm_ble_bufs; in l2c_ble_link_adjust_allocation()1119 l2cb.ble_round_robin_quota = l2cb.ble_round_robin_unacked = 0; in l2c_ble_link_adjust_allocation()1124 for (yy = 0, p_lcb = &l2cb.lcb_pool[0]; yy < MAX_L2CAP_LINKS; yy++, p_lcb++) { in l2c_ble_link_adjust_allocation()1148 l2cb.ble_round_robin_quota = low_quota; in l2c_ble_link_adjust_allocation()1153 l2cb.ble_round_robin_quota = 0; in l2c_ble_link_adjust_allocation()[all …]
1100 if (l2cb.fixed_reg[p_ccb->local_cid - L2CAP_FIRST_FIXED_CHNL] in l2c_csm_config()1103 (*l2cb.fixed_reg[p_ccb->local_cid - L2CAP_FIRST_FIXED_CHNL] in l2c_csm_config()1594 if (p_ccb->p_lcb->link_xmit_quota == 0) l2cb.check_round_robin = true; in l2c_enqueue_peer_data()
659 extern tL2C_CB l2cb;
1243 if (l2cb.fixed_reg[p_ccb->local_cid - L2CAP_FIRST_FIXED_CHNL] in do_sar_reassembly()1245 (*l2cb.fixed_reg[p_ccb->local_cid - L2CAP_FIRST_FIXED_CHNL] in do_sar_reassembly()
301 if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_ERROR) \306 if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_WARNING) \311 if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_API) \316 if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_EVENT) \321 if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_DEBUG) \
43 tL2C_CB l2cb; variable
64 tL2C_CB l2cb; variable
893 extern tL2C_CB l2cb;897 const tL2C_LCB& lcb = l2cb.lcb_pool[i]; in DumpsysL2cap()