Lines Matching refs:btm_cb
33 tBTM_CB btm_cb; variable
50 memset(&btm_cb, 0, sizeof(tBTM_CB)); in btm_init()
51 btm_cb.page_queue = fixed_queue_new(SIZE_MAX); in btm_init()
52 btm_cb.sec_pending_q = fixed_queue_new(SIZE_MAX); in btm_init()
53 btm_cb.sec_collision_timer = alarm_new("btm.sec_collision_timer"); in btm_init()
54 btm_cb.pairing_timer = alarm_new("btm.pairing_timer"); in btm_init()
57 btm_cb.trace_level = BTM_INITIAL_TRACE_LEVEL; in btm_init()
59 btm_cb.trace_level = BT_TRACE_LEVEL_NONE; /* No traces */ in btm_init()
71 btm_cb.sec_dev_rec = list_new(osi_free); in btm_init()
78 fixed_queue_free(btm_cb.page_queue, NULL); in btm_free()
79 btm_cb.page_queue = NULL; in btm_free()
81 fixed_queue_free(btm_cb.sec_pending_q, NULL); in btm_free()
82 btm_cb.sec_pending_q = NULL; in btm_free()
84 list_node_t* end = list_end(btm_cb.sec_dev_rec); in btm_free()
85 list_node_t* node = list_begin(btm_cb.sec_dev_rec); in btm_free()
94 list_free(btm_cb.sec_dev_rec); in btm_free()
95 btm_cb.sec_dev_rec = NULL; in btm_free()
97 alarm_free(btm_cb.sec_collision_timer); in btm_free()
98 btm_cb.sec_collision_timer = NULL; in btm_free()
100 alarm_free(btm_cb.pairing_timer); in btm_free()
101 btm_cb.pairing_timer = NULL; in btm_free()