Lines Matching refs:btu_cb
144 tBTU_CB btu_cb;
333 if (btu_cb.timer_queue.p_first == NULL)
354 if (btu_cb.event_reg[i].event_cb == NULL)
357 if (mask == btu_cb.event_reg[i].event_range)
359 if (btu_cb.event_reg[i].event_cb)
361 btu_cb.event_reg[i].event_cb(p_msg);
380 GKI_update_timer_list (&btu_cb.timer_queue, 1);
382 while ((btu_cb.timer_queue.p_first) && (!btu_cb.timer_queue.p_first->ticks))
384 p_tle = btu_cb.timer_queue.p_first;
385 GKI_remove_from_timer_list (&btu_cb.timer_queue, p_tle);
511 if (btu_cb.timer_reg[i].timer_cb == NULL)
513 btu_cb.timer_reg[i].p_tle == p_tle)
515 btu_cb.timer_reg[i].timer_cb(p_tle);
524 if (btu_cb.timer_queue.p_first == NULL)
584 if (btu_cb.timer_queue.p_first == NULL)
603 GKI_remove_from_timer_list (&btu_cb.timer_queue, p_tle);
608 GKI_add_to_timer_list (&btu_cb.timer_queue, p_tle);
622 return(GKI_get_remaining_ticks (&btu_cb.timer_queue, p_tle));
637 GKI_remove_from_timer_list (&btu_cb.timer_queue, p_tle);
652 if (btu_cb.timer_queue.p_first == NULL)
678 if (btu_cb.quick_timer_queue.p_first == NULL)
694 GKI_remove_from_timer_list (&btu_cb.quick_timer_queue, p_tle);
699 GKI_add_to_timer_list (&btu_cb.quick_timer_queue, p_tle);
714 GKI_remove_from_timer_list (&btu_cb.quick_timer_queue, p_tle);
717 if (btu_cb.quick_timer_queue.p_first == NULL)
734 process_quick_timer_evt(&btu_cb.quick_timer_queue);
737 if (btu_cb.quick_timer_queue.p_first == NULL)
785 if (btu_cb.timer_reg[i].p_tle == NULL && first < 0)
787 if (btu_cb.timer_reg[i].p_tle == p_tle)
789 btu_cb.timer_reg[i].timer_cb = timer_cb;
798 btu_cb.timer_reg[first].timer_cb = timer_cb;
799 btu_cb.timer_reg[first].p_tle = p_tle;
812 if (btu_cb.timer_reg[i].p_tle == p_tle)
815 btu_cb.timer_reg[i].timer_cb = NULL;
816 btu_cb.timer_reg[i].p_tle = NULL;
829 if (btu_cb.event_reg[i].event_cb == NULL && first < 0)
832 if (btu_cb.event_reg[i].event_range == start)
834 btu_cb.event_reg[i].event_cb = event_cb;
837 btu_cb.event_reg[i].event_range = 0;
846 btu_cb.event_reg[first].event_range = start;
847 btu_cb.event_reg[first].event_cb = event_cb;
869 if ((btu_cb.hci_cmd_cb[LOCAL_BR_EDR_CONTROLLER_ID].cmd_cmpl_q.count == 0)
870 &&(btu_cb.hci_cmd_cb[LOCAL_BR_EDR_CONTROLLER_ID].cmd_xmit_q.count == 0))