Lines Matching refs:l2cb
48 tL2C_CB l2cb; variable
114 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()
878 for (const list_node_t* node = list_begin(l2cb.rcv_pending_q); in l2c_process_held_packets()
879 node != list_end(l2cb.rcv_pending_q);) { in l2c_process_held_packets()
884 list_remove(l2cb.rcv_pending_q, p_buf); in l2c_process_held_packets()
891 if (!list_is_empty(l2cb.rcv_pending_q)) { in l2c_process_held_packets()
892 alarm_set_on_mloop(l2cb.receive_hold_timer, BT_1SEC_TIMEOUT_MS, in l2c_process_held_packets()
915 memset(&l2cb, 0, sizeof(tL2C_CB)); in l2c_init()
918 l2cb.le_dyn_psm = LE_DYNAMIC_PSM_START - 1; in l2c_init()
922 l2cb.ccb_pool[xx].p_next_ccb = &l2cb.ccb_pool[xx + 1]; in l2c_init()
926 l2cb.non_flushable_pbf = L2CAP_PKT_START << L2CAP_PKT_TYPE_SHIFT; in l2c_init()
928 l2cb.p_free_ccb_first = &l2cb.ccb_pool[0]; in l2c_init()
929 l2cb.p_free_ccb_last = &l2cb.ccb_pool[MAX_L2CAP_CHANNELS - 1]; in l2c_init()
932 l2cb.idle_timeout = L2CAP_LINK_INACTIVITY_TOUT; in l2c_init()
935 l2cb.l2cap_trace_level = L2CAP_INITIAL_TRACE_LEVEL; in l2c_init()
937 l2cb.l2cap_trace_level = BT_TRACE_LEVEL_NONE; /* No traces */ in l2c_init()
942 l2cb.test_info_resp = L2CAP_EXTFEA_SUPPORTED_MASK; in l2c_init()
947 l2cb.l2c_ble_fixed_chnls_mask = L2CAP_FIXED_CHNL_ATT_BIT | in l2c_init()
951 l2cb.rcv_pending_q = list_new(NULL); in l2c_init()
952 CHECK(l2cb.rcv_pending_q != NULL); in l2c_init()
954 l2cb.receive_hold_timer = alarm_new("l2c.receive_hold_timer"); in l2c_init()
963 list_free(l2cb.rcv_pending_q); in l2c_free()
964 l2cb.rcv_pending_q = NULL; in l2c_free()