Home
last modified time | relevance | path

Searched refs:l2cb (Results 1 – 11 of 11) sorted by relevance

/system/bt/stack/l2cap/
Dl2c_link.c84 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()
[all …]
Dl2c_main.c54 tL2C_CB l2cb; variable
103 rcv_cid, cmd_code, list_length(l2cb.rcv_pending_q)); in l2c_rcv_acl_data()
105 list_append(l2cb.rcv_pending_q, p_msg); in l2c_rcv_acl_data()
107 if (list_length(l2cb.rcv_pending_q) == 1) { in l2c_rcv_acl_data()
108 alarm_set_on_queue(l2cb.receive_hold_timer, in l2c_rcv_acl_data()
118 cmd_code, list_length(l2cb.rcv_pending_q)); in l2c_rcv_acl_data()
209 (l2cb.fixed_reg[rcv_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb != NULL) ) in l2c_rcv_acl_data()
215 …l2cu_initialize_fixed_ccb (p_lcb, rcv_cid, &l2cb.fixed_reg[rcv_cid - L2CAP_FIRST_FIXED_CHNL].fixed… in l2c_rcv_acl_data()
222 (*l2cb.fixed_reg[rcv_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb) in l2c_rcv_acl_data()
762 if (list_is_empty(l2cb.rcv_pending_q)) in l2c_process_held_packets()
[all …]
Dl2c_utils.c57 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0]; in l2cu_allocate_lcb()
75 p_lcb->idle_timeout = l2cb.idle_timeout; in l2cu_allocate_lcb()
85 l2cb.num_ble_links_active++; in l2cu_allocate_lcb()
91 l2cb.num_links_active++; in l2cu_allocate_lcb()
169 l2cb.controller_le_xmit_window += p_lcb->sent_not_acked; in l2cu_release_lcb()
170 if (l2cb.controller_le_xmit_window > l2cb.num_lm_ble_bufs) in l2cu_release_lcb()
172 l2cb.controller_le_xmit_window = l2cb.num_lm_ble_bufs; in l2cu_release_lcb()
178 l2cb.controller_xmit_window += p_lcb->sent_not_acked; in l2cu_release_lcb()
179 if (l2cb.controller_xmit_window > l2cb.num_lm_acl_bufs) in l2cu_release_lcb()
181 l2cb.controller_xmit_window = l2cb.num_lm_acl_bufs; in l2cu_release_lcb()
[all …]
Dl2c_ble.c64 if (memcmp (rem_bda, l2cb.ble_connecting_bda, BD_ADDR_LEN)) in L2CA_CancelBleConnectReq()
67 …(l2cb.ble_connecting_bda[0]<<24)+(l2cb.ble_connecting_bda[1]<<16)+(l2cb.ble_connecting_bda[2]<<8)+ in L2CA_CancelBleConnectReq()
68 (l2cb.ble_connecting_bda[4]<<8)+l2cb.ble_connecting_bda[5], in L2CA_CancelBleConnectReq()
325 l2cb.is_ble_connecting = FALSE; in l2cble_scanner_conn_comp()
342 …if (!l2cu_initialize_fixed_ccb (p_lcb, L2CAP_ATT_CID, &l2cb.fixed_reg[L2CAP_ATT_CID - L2CAP_FIRST_… in l2cble_scanner_conn_comp()
418 …if (!l2cu_initialize_fixed_ccb (p_lcb, L2CAP_ATT_CID, &l2cb.fixed_reg[L2CAP_ATT_CID - L2CAP_FIRST_… in l2cble_advertiser_conn_comp()
458 if (l2cb.is_ble_connecting && memcmp(bda, l2cb.ble_connecting_bda, BD_ADDR_LEN) == 0) in l2cble_advertiser_conn_comp()
948 l2cb.is_ble_connecting = TRUE; in l2cble_init_direct_conn()
949 memcpy (l2cb.ble_connecting_bda, p_lcb->remote_bd_addr, BD_ADDR_LEN); in l2cble_init_direct_conn()
1009 l2cb.num_lm_acl_bufs -= L2C_DEF_NUM_BLE_BUF_SHARED; in l2c_link_processs_ble_num_bufs()
[all …]
Dl2c_api.c138 p_lcb = &l2cb.lcb_pool[0]; in L2CA_Deregister()
177 UINT16 psm = l2cb.dyn_psm; in L2CA_AllocatePSM()
201 l2cb.dyn_psm = psm; in L2CA_AllocatePSM()
429 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0]; in L2CA_DeregisterLECoc()
1019 l2cb.p_echo_data_cb = p_callback; in L2CA_Echo()
1037 l2cb.p_echo_data_cb = p_callback; in L2CA_Echo()
1087 l2cb.idle_timeout = timeout; in L2CA_SetIdleTimeout()
1148 tL2C_LCB *p_lcb = &l2cb.lcb_pool[0]; in L2CA_SetIdleTimeoutByBdAddr()
1178 l2cb.l2cap_trace_level = new_level; in L2CA_SetTraceLevel()
1180 return (l2cb.l2cap_trace_level); in L2CA_SetTraceLevel()
[all …]
Dl2c_ucd.c56 tL2C_RCB *p_rcb = &l2cb.rcb_pool[0]; in l2c_ucd_discover_cback()
129 tL2C_RCB *p_rcb = &l2cb.rcb_pool[0]; in l2c_ucd_congestion_status_cback()
285 p_rcb = &l2cb.rcb_pool[0]; in L2CA_UcdDeregister()
300 p_ccb = l2cb.ccb_pool; in L2CA_UcdDeregister()
669 tL2C_RCB *p_rcb = &l2cb.rcb_pool[0]; in l2c_ucd_check_pending_info_req()
Dl2c_int.h551 #define L2CAP_HIGH_PRI_MIN_XMIT_QUOTA_A (l2cb.high_pri_min_xmit_quota)
563 extern tL2C_CB l2cb;
566 #define l2cb (*l2c_cb_ptr)
Dl2c_csm.c1030 if (l2cb.fixed_reg[p_ccb->local_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb) in l2c_csm_config()
1031 (*l2cb.fixed_reg[p_ccb->local_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb) in l2c_csm_config()
1520 l2cb.check_round_robin = TRUE; in l2c_enqueue_peer_data()
Dl2c_fcr.c375 if ((p_ccb->p_lcb->sent_not_acked < 2)&&(l2cb.controller_xmit_window > 0)) in l2c_fcr_is_flow_controlled()
1524 if (l2cb.fixed_reg[p_ccb->local_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb) in do_sar_reassembly()
1525 (*l2cb.fixed_reg[p_ccb->local_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb) in do_sar_reassembly()
/system/bt/stack/btu/
Dbtu_task.c234 if (l2cb.controller_xmit_window == l2cb.num_lm_acl_bufs) in btu_check_bt_sleep()
/system/bt/include/
Dbt_trace.h243 #define L2CAP_TRACE_ERROR(...) {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_ERRO…
244 #define L2CAP_TRACE_WARNING(...) {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_WARN…
245 #define L2CAP_TRACE_API(...) {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_API)…
246 #define L2CAP_TRACE_EVENT(...) {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_EVEN…
247 #define L2CAP_TRACE_DEBUG(...) {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_DEBU…