Lines Matching defs:p_timer_listq

627 ** Parameters       p_timer_listq   - (input) pointer to the timer list queue object
632 void GKI_init_timer_list (TIMER_LIST_Q *p_timer_listq)
634 p_timer_listq->p_first = NULL;
635 p_timer_listq->p_last = NULL;
636 p_timer_listq->last_ticks = 0;
671 ** Parameters p_timer_listq - (input) pointer to the timer list queue object
681 UINT16 GKI_update_timer_list (TIMER_LIST_Q *p_timer_listq, INT32 num_units_since_last_update)
688 p_tle = p_timer_listq->p_first;
721 if (p_timer_listq->last_ticks > 0)
723 p_timer_listq->last_ticks -= num_units_since_last_update;
728 if (p_timer_listq->last_ticks < 0)
729 p_timer_listq->last_ticks = 0;
742 ** Parameters p_timer_listq - (input) pointer to the timer list queue object
749 UINT32 GKI_get_remaining_ticks (TIMER_LIST_Q *p_timer_listq, TIMER_LIST_ENT *p_target_tle)
756 p_tle = p_timer_listq->p_first;
794 ** Parameters p_timer_listq - (input) pointer to the timer list queue object
800 void GKI_add_to_timer_list (TIMER_LIST_Q *p_timer_listq, TIMER_LIST_ENT *p_tle)
805 if (p_tle == NULL || p_timer_listq == NULL) {
806 GKI_TRACE_3("%s: invalid argument %x, %x****************************<<", __func__, p_timer_listq, p_tle);
815 if (p_tle->ticks >= p_timer_listq->last_ticks)
818 if (p_timer_listq->p_first == NULL)
819 p_timer_listq->p_first = p_tle;
823 if (p_timer_listq->p_last != NULL)
824 p_timer_listq->p_last->p_next = p_tle;
826 p_tle->p_prev = p_timer_listq->p_last;
830 p_timer_listq->p_last = p_tle;
832 p_tle->ticks -= p_timer_listq->last_ticks;
834 p_timer_listq->last_ticks = nr_ticks_total;
839 p_temp = p_timer_listq->p_first;
850 if (p_temp == p_timer_listq->p_first)
852 p_tle->p_next = p_timer_listq->p_first;
853 p_timer_listq->p_first->p_prev = p_tle;
854 p_timer_listq->p_first = p_tle;
871 if (gki_cb.com.timer_queues[tt] == p_timer_listq)
882 gki_cb.com.timer_queues[tt] = p_timer_listq;
897 ** Parameters p_timer_listq - (input) pointer to the timer list queue object
903 void GKI_remove_from_timer_list (TIMER_LIST_Q *p_timer_listq, TIMER_LIST_ENT *p_tle)
908 if (p_tle == NULL || p_tle->in_use == FALSE || p_timer_listq->p_first == NULL)
922 p_timer_listq->last_ticks -= p_tle->ticks;
927 if (p_timer_listq->p_first == p_tle)
929 p_timer_listq->p_first = p_tle->p_next;
931 if (p_timer_listq->p_first != NULL)
932 p_timer_listq->p_first->p_prev = NULL;
934 if (p_timer_listq->p_last == p_tle)
935 p_timer_listq->p_last = NULL;
939 if (p_timer_listq->p_last == p_tle)
941 p_timer_listq->p_last = p_tle->p_prev;
943 if (p_timer_listq->p_last != NULL)
944 p_timer_listq->p_last->p_next = NULL;
971 if (p_timer_listq->p_first == NULL && p_timer_listq->p_last == NULL)
975 if (gki_cb.com.timer_queues[tt] == p_timer_listq)