• Home
  • Raw
  • Download

Lines Matching refs:p_tle

654 void GKI_init_timer_list_entry (TIMER_LIST_ENT  *p_tle)  in GKI_init_timer_list_entry()  argument
656 p_tle->p_next = NULL; in GKI_init_timer_list_entry()
657 p_tle->p_prev = NULL; in GKI_init_timer_list_entry()
658 p_tle->ticks = GKI_UNUSED_LIST_ENTRY; in GKI_init_timer_list_entry()
659 p_tle->in_use = FALSE; in GKI_init_timer_list_entry()
683 TIMER_LIST_ENT *p_tle; in GKI_update_timer_list() local
688 p_tle = p_timer_listq->p_first; in GKI_update_timer_list()
692 while ((p_tle) && (p_tle->ticks <= 0)) in GKI_update_timer_list()
695 p_tle = p_tle->p_next; in GKI_update_timer_list()
702 while ((p_tle != NULL) && (rem_ticks > 0)) in GKI_update_timer_list()
704 temp_ticks = p_tle->ticks; in GKI_update_timer_list()
705 p_tle->ticks -= rem_ticks; in GKI_update_timer_list()
708 if (p_tle->ticks <= 0) in GKI_update_timer_list()
712 p_tle->ticks = 0; in GKI_update_timer_list()
718 p_tle = p_tle->p_next; in GKI_update_timer_list()
751 TIMER_LIST_ENT *p_tle; in GKI_get_remaining_ticks() local
756 p_tle = p_timer_listq->p_first; in GKI_get_remaining_ticks()
759 while ((p_tle)&&(p_tle != p_target_tle)) in GKI_get_remaining_ticks()
761 rem_ticks += p_tle->ticks; in GKI_get_remaining_ticks()
762 p_tle = p_tle->p_next; in GKI_get_remaining_ticks()
766 if (p_tle == p_target_tle) in GKI_get_remaining_ticks()
768 rem_ticks += p_tle->ticks; in GKI_get_remaining_ticks()
800 void GKI_add_to_timer_list (TIMER_LIST_Q *p_timer_listq, TIMER_LIST_ENT *p_tle) in GKI_add_to_timer_list() argument
805 if (p_tle == NULL || p_timer_listq == NULL) { in GKI_add_to_timer_list()
806 …ACE_3("%s: invalid argument %x, %x****************************<<", __func__, p_timer_listq, p_tle); in GKI_add_to_timer_list()
812 if (p_tle->ticks >= 0) in GKI_add_to_timer_list()
815 if (p_tle->ticks >= p_timer_listq->last_ticks) in GKI_add_to_timer_list()
819 p_timer_listq->p_first = p_tle; in GKI_add_to_timer_list()
824 p_timer_listq->p_last->p_next = p_tle; in GKI_add_to_timer_list()
826 p_tle->p_prev = p_timer_listq->p_last; in GKI_add_to_timer_list()
829 p_tle->p_next = NULL; in GKI_add_to_timer_list()
830 p_timer_listq->p_last = p_tle; in GKI_add_to_timer_list()
831 nr_ticks_total = p_tle->ticks; in GKI_add_to_timer_list()
832 p_tle->ticks -= p_timer_listq->last_ticks; in GKI_add_to_timer_list()
840 while (p_tle->ticks > p_temp->ticks) in GKI_add_to_timer_list()
844 p_tle->ticks -= p_temp->ticks; in GKI_add_to_timer_list()
852 p_tle->p_next = p_timer_listq->p_first; in GKI_add_to_timer_list()
853 p_timer_listq->p_first->p_prev = p_tle; in GKI_add_to_timer_list()
854 p_timer_listq->p_first = p_tle; in GKI_add_to_timer_list()
858 p_temp->p_prev->p_next = p_tle; in GKI_add_to_timer_list()
859 p_tle->p_prev = p_temp->p_prev; in GKI_add_to_timer_list()
860 p_temp->p_prev = p_tle; in GKI_add_to_timer_list()
861 p_tle->p_next = p_temp; in GKI_add_to_timer_list()
863 p_temp->ticks -= p_tle->ticks; in GKI_add_to_timer_list()
866 p_tle->in_use = TRUE; in GKI_add_to_timer_list()
903 void GKI_remove_from_timer_list (TIMER_LIST_Q *p_timer_listq, TIMER_LIST_ENT *p_tle) in GKI_remove_from_timer_list() argument
908 if (p_tle == NULL || p_tle->in_use == FALSE || p_timer_listq->p_first == NULL) in GKI_remove_from_timer_list()
916 if (p_tle->p_next != NULL) in GKI_remove_from_timer_list()
918 p_tle->p_next->ticks += p_tle->ticks; in GKI_remove_from_timer_list()
922 p_timer_listq->last_ticks -= p_tle->ticks; in GKI_remove_from_timer_list()
927 if (p_timer_listq->p_first == p_tle) in GKI_remove_from_timer_list()
929 p_timer_listq->p_first = p_tle->p_next; in GKI_remove_from_timer_list()
934 if (p_timer_listq->p_last == p_tle) in GKI_remove_from_timer_list()
939 if (p_timer_listq->p_last == p_tle) in GKI_remove_from_timer_list()
941 p_timer_listq->p_last = p_tle->p_prev; in GKI_remove_from_timer_list()
948 if (p_tle->p_next != NULL && p_tle->p_next->p_prev == p_tle) in GKI_remove_from_timer_list()
949 p_tle->p_next->p_prev = p_tle->p_prev; in GKI_remove_from_timer_list()
956 if (p_tle->p_prev != NULL && p_tle->p_prev->p_next == p_tle) in GKI_remove_from_timer_list()
957 p_tle->p_prev->p_next = p_tle->p_next; in GKI_remove_from_timer_list()
966 p_tle->p_next = p_tle->p_prev = NULL; in GKI_remove_from_timer_list()
967 p_tle->ticks = GKI_UNUSED_LIST_ENTRY; in GKI_remove_from_timer_list()
968 p_tle->in_use = FALSE; in GKI_remove_from_timer_list()