Lines Matching refs:l2cb
54 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()
766 alarm_cancel(l2cb.receive_hold_timer); in l2c_process_held_packets()
772 for (const list_node_t *node = list_begin(l2cb.rcv_pending_q); in l2c_process_held_packets()
773 node != list_end(l2cb.rcv_pending_q);) { in l2c_process_held_packets()
777 list_remove(l2cb.rcv_pending_q, p_buf); in l2c_process_held_packets()
784 if (!list_is_empty(l2cb.rcv_pending_q)) { in l2c_process_held_packets()
785 alarm_set_on_queue(l2cb.receive_hold_timer, BT_1SEC_TIMEOUT_MS, in l2c_process_held_packets()
805 memset (&l2cb, 0, sizeof (tL2C_CB)); in l2c_init()
807 l2cb.dyn_psm = 0xFFF; in l2c_init()
812 l2cb.ccb_pool[xx].p_next_ccb = &l2cb.ccb_pool[xx + 1]; in l2c_init()
817 l2cb.non_flushable_pbf = L2CAP_PKT_START << L2CAP_PKT_TYPE_SHIFT; in l2c_init()
820 l2cb.p_free_ccb_first = &l2cb.ccb_pool[0]; in l2c_init()
821 l2cb.p_free_ccb_last = &l2cb.ccb_pool[MAX_L2CAP_CHANNELS - 1]; in l2c_init()
824 l2cb.desire_role = L2CAP_DESIRED_LINK_ROLE; in l2c_init()
826 l2cb.desire_role = HCI_ROLE_SLAVE; in l2c_init()
830 l2cb.idle_timeout = L2CAP_LINK_INACTIVITY_TOUT; in l2c_init()
833 l2cb.l2cap_trace_level = L2CAP_INITIAL_TRACE_LEVEL; in l2c_init()
835 l2cb.l2cap_trace_level = BT_TRACE_LEVEL_NONE; /* No traces */ in l2c_init()
840 l2cb.test_info_resp = L2CAP_EXTFEA_SUPPORTED_MASK; in l2c_init()
845 l2cb.high_pri_min_xmit_quota = L2CAP_HIGH_PRI_MIN_XMIT_QUOTA; in l2c_init()
849 l2cb.l2c_ble_fixed_chnls_mask = in l2c_init()
853 l2cb.rcv_pending_q = list_new(NULL); in l2c_init()
854 if (l2cb.rcv_pending_q == NULL) in l2c_init()
856 l2cb.receive_hold_timer = alarm_new("l2c.receive_hold_timer"); in l2c_init()
860 list_free(l2cb.rcv_pending_q); in l2c_free()
861 l2cb.rcv_pending_q = NULL; in l2c_free()