• Home
  • Raw
  • Download

Lines Matching refs:p_tle

608 void GKI_init_timer_list_entry(TIMER_LIST_ENT* p_tle) {  in GKI_init_timer_list_entry()  argument
609 p_tle->p_next = nullptr; in GKI_init_timer_list_entry()
610 p_tle->p_prev = nullptr; in GKI_init_timer_list_entry()
611 p_tle->ticks = GKI_UNUSED_LIST_ENTRY; in GKI_init_timer_list_entry()
612 p_tle->in_use = false; in GKI_init_timer_list_entry()
638 TIMER_LIST_ENT* p_tle; in GKI_update_timer_list() local
643 p_tle = p_timer_listq->p_first; in GKI_update_timer_list()
647 while ((p_tle) && (p_tle->ticks <= 0)) { in GKI_update_timer_list()
649 p_tle = p_tle->p_next; in GKI_update_timer_list()
656 while ((p_tle != nullptr) && (rem_ticks > 0)) { in GKI_update_timer_list()
657 temp_ticks = p_tle->ticks; in GKI_update_timer_list()
658 p_tle->ticks -= rem_ticks; in GKI_update_timer_list()
661 if (p_tle->ticks <= 0) { in GKI_update_timer_list()
664 p_tle->ticks = 0; in GKI_update_timer_list()
670 p_tle = p_tle->p_next; in GKI_update_timer_list()
703 TIMER_LIST_ENT* p_tle; in GKI_get_remaining_ticks() local
707 p_tle = p_timer_listq->p_first; in GKI_get_remaining_ticks()
710 while ((p_tle) && (p_tle != p_target_tle)) { in GKI_get_remaining_ticks()
711 rem_ticks += p_tle->ticks; in GKI_get_remaining_ticks()
712 p_tle = p_tle->p_next; in GKI_get_remaining_ticks()
716 if (p_tle == p_target_tle) { in GKI_get_remaining_ticks()
717 rem_ticks += p_tle->ticks; in GKI_get_remaining_ticks()
749 void GKI_add_to_timer_list(TIMER_LIST_Q* p_timer_listq, TIMER_LIST_ENT* p_tle) { in GKI_add_to_timer_list() argument
753 if (p_tle == nullptr || p_timer_listq == nullptr) { in GKI_add_to_timer_list()
756 p_timer_listq, p_tle); in GKI_add_to_timer_list()
761 if (p_tle->ticks >= 0) { in GKI_add_to_timer_list()
763 if (p_tle->ticks >= p_timer_listq->last_ticks) { in GKI_add_to_timer_list()
766 p_timer_listq->p_first = p_tle; in GKI_add_to_timer_list()
770 p_timer_listq->p_last->p_next = p_tle; in GKI_add_to_timer_list()
772 p_tle->p_prev = p_timer_listq->p_last; in GKI_add_to_timer_list()
775 p_tle->p_next = nullptr; in GKI_add_to_timer_list()
776 p_timer_listq->p_last = p_tle; in GKI_add_to_timer_list()
777 nr_ticks_total = p_tle->ticks; in GKI_add_to_timer_list()
778 p_tle->ticks -= p_timer_listq->last_ticks; in GKI_add_to_timer_list()
785 while (p_tle->ticks > p_temp->ticks) { in GKI_add_to_timer_list()
787 if (p_temp->ticks > 0) p_tle->ticks -= p_temp->ticks; in GKI_add_to_timer_list()
794 p_tle->p_next = p_timer_listq->p_first; in GKI_add_to_timer_list()
795 p_timer_listq->p_first->p_prev = p_tle; in GKI_add_to_timer_list()
796 p_timer_listq->p_first = p_tle; in GKI_add_to_timer_list()
798 p_temp->p_prev->p_next = p_tle; in GKI_add_to_timer_list()
799 p_tle->p_prev = p_temp->p_prev; in GKI_add_to_timer_list()
800 p_temp->p_prev = p_tle; in GKI_add_to_timer_list()
801 p_tle->p_next = p_temp; in GKI_add_to_timer_list()
803 p_temp->ticks -= p_tle->ticks; in GKI_add_to_timer_list()
806 p_tle->in_use = true; in GKI_add_to_timer_list()
839 TIMER_LIST_ENT* p_tle) { in GKI_remove_from_timer_list() argument
843 if (p_tle == nullptr || p_tle->in_use == false || in GKI_remove_from_timer_list()
851 if (p_tle->p_next != nullptr) { in GKI_remove_from_timer_list()
852 p_tle->p_next->ticks += p_tle->ticks; in GKI_remove_from_timer_list()
854 p_timer_listq->last_ticks -= p_tle->ticks; in GKI_remove_from_timer_list()
859 if (p_timer_listq->p_first == p_tle) { in GKI_remove_from_timer_list()
860 p_timer_listq->p_first = p_tle->p_next; in GKI_remove_from_timer_list()
864 if (p_timer_listq->p_last == p_tle) p_timer_listq->p_last = nullptr; in GKI_remove_from_timer_list()
866 if (p_timer_listq->p_last == p_tle) { in GKI_remove_from_timer_list()
867 p_timer_listq->p_last = p_tle->p_prev; in GKI_remove_from_timer_list()
871 if (p_tle->p_next != nullptr && p_tle->p_next->p_prev == p_tle) in GKI_remove_from_timer_list()
872 p_tle->p_next->p_prev = p_tle->p_prev; in GKI_remove_from_timer_list()
878 if (p_tle->p_prev != nullptr && p_tle->p_prev->p_next == p_tle) in GKI_remove_from_timer_list()
879 p_tle->p_prev->p_next = p_tle->p_next; in GKI_remove_from_timer_list()
887 p_tle->p_next = p_tle->p_prev = nullptr; in GKI_remove_from_timer_list()
888 p_tle->ticks = GKI_UNUSED_LIST_ENTRY; in GKI_remove_from_timer_list()
889 p_tle->in_use = false; in GKI_remove_from_timer_list()