Lines Matching defs:btu_cb
145 tBTU_CB btu_cb;
337 if (GKI_timer_queue_is_empty(&btu_cb.timer_queue)) {
344 if (!GKI_timer_queue_is_empty(&btu_cb.timer_queue_oneshot)) {
345 TIMER_LIST_ENT *tle = GKI_timer_getfirst(&btu_cb.timer_queue_oneshot);
355 if (GKI_timer_queue_is_empty(&btu_cb.timer_queue_oneshot)) {
377 if (btu_cb.event_reg[i].event_cb == NULL)
380 if (mask == btu_cb.event_reg[i].event_range)
382 if (btu_cb.event_reg[i].event_cb)
384 btu_cb.event_reg[i].event_cb(p_msg);
400 GKI_update_timer_list (&btu_cb.timer_queue, 1);
402 while (!GKI_timer_queue_is_empty(&btu_cb.timer_queue)) {
403 TIMER_LIST_ENT *p_tle = GKI_timer_getfirst(&btu_cb.timer_queue);
407 GKI_remove_from_timer_list(&btu_cb.timer_queue, p_tle);
532 if (btu_cb.timer_reg[i].timer_cb == NULL)
534 if (btu_cb.timer_reg[i].p_tle == p_tle)
536 btu_cb.timer_reg[i].timer_cb(p_tle);
545 if (btu_cb.timer_queue.p_first == NULL)
585 if (!GKI_timer_queue_is_empty(&btu_cb.timer_queue_oneshot)) {
586 TIMER_LIST_ENT *p_tle = GKI_timer_getfirst(&btu_cb.timer_queue_oneshot);
587 INT32 ticks_since_last_update = GKI_timer_ticks_getinitial(GKI_timer_getfirst(&btu_cb.timer_queue_oneshot));
588 GKI_update_timer_list(&btu_cb.timer_queue_oneshot, ticks_since_last_update);
591 while (!GKI_timer_queue_is_empty(&btu_cb.timer_queue_oneshot)) {
592 TIMER_LIST_ENT *p_tle = GKI_timer_getfirst(&btu_cb.timer_queue_oneshot);
596 GKI_remove_from_timer_list(&btu_cb.timer_queue_oneshot, p_tle);
621 if (!GKI_timer_queue_is_empty(&btu_cb.timer_queue_oneshot)) {
622 TIMER_LIST_ENT *p_tle = GKI_timer_getfirst(&btu_cb.timer_queue_oneshot);
653 if (btu_cb.timer_queue.p_first == NULL)
672 GKI_remove_from_timer_list (&btu_cb.timer_queue, p_tle);
678 GKI_add_to_timer_list (&btu_cb.timer_queue, p_tle);
693 return(GKI_get_remaining_ticks (&btu_cb.timer_queue, p_tle));
709 GKI_remove_from_timer_list (&btu_cb.timer_queue, p_tle);
724 if (btu_cb.timer_queue.p_first == NULL)
752 if (btu_cb.quick_timer_queue.p_first == NULL)
768 GKI_remove_from_timer_list (&btu_cb.quick_timer_queue, p_tle);
774 GKI_add_to_timer_list (&btu_cb.quick_timer_queue, p_tle);
791 GKI_remove_from_timer_list (&btu_cb.quick_timer_queue, p_tle);
794 if (btu_cb.quick_timer_queue.p_first == NULL)
812 process_quick_timer_evt(&btu_cb.quick_timer_queue);
815 if (btu_cb.quick_timer_queue.p_first == NULL)
862 if (GKI_timer_queue_is_empty(&btu_cb.timer_queue_oneshot)) {
865 GKI_remove_from_timer_list(&btu_cb.timer_queue_oneshot, p_tle);
871 GKI_add_to_timer_list(&btu_cb.timer_queue_oneshot, p_tle);
882 TIMER_LIST_ENT *tle = GKI_timer_getfirst(&btu_cb.timer_queue_oneshot);
890 GKI_remove_from_timer_list(&btu_cb.timer_queue_oneshot, p_tle);
900 if (GKI_timer_queue_is_empty(&btu_cb.timer_queue_oneshot)) {
922 if ((btu_cb.hci_cmd_cb[LOCAL_BR_EDR_CONTROLLER_ID].cmd_cmpl_q.count == 0)
923 &&(btu_cb.hci_cmd_cb[LOCAL_BR_EDR_CONTROLLER_ID].cmd_xmit_q.count == 0))