Lines Matching refs:t
300 void start_one_shot_timer(struct fast_timer *t, in start_one_shot_timer() argument
314 do_gettimeofday_fast(&t->tv_set); in start_one_shot_timer()
320 if (tmp == t) in start_one_shot_timer()
335 t->delay_us = delay_us; in start_one_shot_timer()
336 t->function = function; in start_one_shot_timer()
337 t->data = data; in start_one_shot_timer()
338 t->name = name; in start_one_shot_timer()
340 t->tv_expires.tv_usec = t->tv_set.tv_usec + delay_us % 1000000; in start_one_shot_timer()
341 t->tv_expires.tv_sec = t->tv_set.tv_sec + delay_us / 1000000; in start_one_shot_timer()
342 if (t->tv_expires.tv_usec > 1000000) in start_one_shot_timer()
344 t->tv_expires.tv_usec -= 1000000; in start_one_shot_timer()
345 t->tv_expires.tv_sec++; in start_one_shot_timer()
348 timer_added_log[fast_timers_added % NUM_TIMER_STATS] = *t; in start_one_shot_timer()
353 if (tmp == NULL || timeval_cmp(&t->tv_expires, &tmp->tv_expires) < 0) in start_one_shot_timer()
356 t->prev = NULL; in start_one_shot_timer()
357 t->next = fast_timer_list; in start_one_shot_timer()
360 fast_timer_list->prev = t; in start_one_shot_timer()
362 fast_timer_list = t; in start_one_shot_timer()
364 timer_started_log[fast_timers_started % NUM_TIMER_STATS] = *t; in start_one_shot_timer()
370 timeval_cmp(&t->tv_expires, &tmp->next->tv_expires) > 0) in start_one_shot_timer()
375 t->prev = tmp; in start_one_shot_timer()
376 t->next = tmp->next; in start_one_shot_timer()
379 tmp->next->prev = t; in start_one_shot_timer()
381 tmp->next = t; in start_one_shot_timer()
389 static inline int detach_fast_timer (struct fast_timer *t) in detach_fast_timer() argument
392 if (!fast_timer_pending(t)) in detach_fast_timer()
394 next = t->next; in detach_fast_timer()
395 prev = t->prev; in detach_fast_timer()
406 int del_fast_timer(struct fast_timer * t) in del_fast_timer() argument
413 ret = detach_fast_timer(t); in del_fast_timer()
414 t->next = t->prev = NULL; in del_fast_timer()
427 struct fast_timer *t; in timer1_handler() local
450 t = fast_timer_list; in timer1_handler()
451 while (t) in timer1_handler()
459 if (timeval_cmp(&t->tv_expires, &tv) <= 0) in timer1_handler()
463 timer_expired_log[fast_timers_expired % NUM_TIMER_STATS] = *t; in timer1_handler()
470 if (t->prev) in timer1_handler()
472 t->prev->next = t->next; in timer1_handler()
476 fast_timer_list = t->next; in timer1_handler()
478 if (t->next) in timer1_handler()
480 t->next->prev = t->prev; in timer1_handler()
482 t->prev = NULL; in timer1_handler()
483 t->next = NULL; in timer1_handler()
486 if (t->function != NULL) in timer1_handler()
488 t->function(t->data); in timer1_handler()
503 if ((t = fast_timer_list) != NULL) in timer1_handler()
510 us = ((t->tv_expires.tv_sec - tv.tv_sec) * 1000000 + in timer1_handler()
511 t->tv_expires.tv_usec - tv.tv_usec); in timer1_handler()
517 timer_started_log[fast_timers_started % NUM_TIMER_STATS] = *t; in timer1_handler()
535 if (!t) in timer1_handler()
556 struct fast_timer t; in schedule_usleep() local
570 start_one_shot_timer(&t, wake_up_func, (unsigned long)&sleep_wait, us, in schedule_usleep()
619 struct fast_timer *t, *nextt; in proc_fasttimer_read() local
693 t = &timer_started_log[cur]; in proc_fasttimer_read()
697 t->name, in proc_fasttimer_read()
698 (unsigned long)t->tv_set.tv_sec, in proc_fasttimer_read()
699 (unsigned long)t->tv_set.tv_usec, in proc_fasttimer_read()
700 (unsigned long)t->tv_expires.tv_sec, in proc_fasttimer_read()
701 (unsigned long)t->tv_expires.tv_usec, in proc_fasttimer_read()
702 t->delay_us, in proc_fasttimer_read()
703 t->data in proc_fasttimer_read()
715 t = &timer_added_log[(fast_timers_added - i - 1) % NUM_TIMER_STATS]; in proc_fasttimer_read()
719 t->name, in proc_fasttimer_read()
720 (unsigned long)t->tv_set.tv_sec, in proc_fasttimer_read()
721 (unsigned long)t->tv_set.tv_usec, in proc_fasttimer_read()
722 (unsigned long)t->tv_expires.tv_sec, in proc_fasttimer_read()
723 (unsigned long)t->tv_expires.tv_usec, in proc_fasttimer_read()
724 t->delay_us, in proc_fasttimer_read()
725 t->data in proc_fasttimer_read()
735 t = &timer_expired_log[(fast_timers_expired - i - 1) % NUM_TIMER_STATS]; in proc_fasttimer_read()
739 t->name, in proc_fasttimer_read()
740 (unsigned long)t->tv_set.tv_sec, in proc_fasttimer_read()
741 (unsigned long)t->tv_set.tv_usec, in proc_fasttimer_read()
742 (unsigned long)t->tv_expires.tv_sec, in proc_fasttimer_read()
743 (unsigned long)t->tv_expires.tv_usec, in proc_fasttimer_read()
744 t->delay_us, in proc_fasttimer_read()
745 t->data in proc_fasttimer_read()
754 t = fast_timer_list; in proc_fasttimer_read()
755 while (t != NULL && (used+100 < BIG_BUF_SIZE)) in proc_fasttimer_read()
757 nextt = t->next; in proc_fasttimer_read()
763 t->name, in proc_fasttimer_read()
764 (unsigned long)t->tv_set.tv_sec, in proc_fasttimer_read()
765 (unsigned long)t->tv_set.tv_usec, in proc_fasttimer_read()
766 (unsigned long)t->tv_expires.tv_sec, in proc_fasttimer_read()
767 (unsigned long)t->tv_expires.tv_usec, in proc_fasttimer_read()
768 t->delay_us, in proc_fasttimer_read()
769 t->data in proc_fasttimer_read()
773 if (t->next != nextt) in proc_fasttimer_read()
777 t = nextt; in proc_fasttimer_read()
920 struct fast_timer *t = &tr[j]; in fast_timer_test() local
923 t->name, in fast_timer_test()
924 t->tv_set.tv_sec, in fast_timer_test()
925 t->tv_set.tv_usec, in fast_timer_test()
926 t->tv_expires.tv_sec, in fast_timer_test()
927 t->tv_expires.tv_usec, in fast_timer_test()
928 t->data, in fast_timer_test()
929 t->function in fast_timer_test()
933 t->delay_us, in fast_timer_test()
937 … (tv_exp[j].tv_sec - t->tv_expires.tv_sec)*1000000 + tv_exp[j].tv_usec - t->tv_expires.tv_usec); in fast_timer_test()