Lines Matching full:tval
6 * - timers above the max TVAL value.
26 /* tval is a signed 32-bit int. */
357 static void test_timer_tval(enum arch_timer timer, int32_t tval, in test_timer_tval() argument
361 test_timer_xval(timer, (uint64_t) tval, TIMER_TVAL, wm, reset_state, in test_timer_tval()
387 static void test_tval_no_irq(enum arch_timer timer, int32_t tval, uint64_t usec, in test_tval_no_irq() argument
390 /* tval will be cast to an int32_t in test_xval_check_no_irq */ in test_tval_no_irq()
391 test_xval_check_no_irq(timer, (uint64_t) tval, usec, TIMER_TVAL, wm); in test_tval_no_irq()
460 * Set a timer for tval=delta_1_ms then reprogram it to
461 * tval=delta_2_ms. Check that we get the timer fired. There is no
506 int32_t tval = (int32_t) msec_to_cycles(test_args.wait_ms); in test_basic_functionality() local
514 test_timer_tval(timer, tval, wm, true, DEF_CNT); in test_basic_functionality()
520 * like: the relationship between cval and tval, tval down-counting.
536 /* tval in the past */ in timers_sanity_checks()
542 /* tval larger than TVAL_MAX. This requires programming with in timers_sanity_checks()
553 * tval larger than 2 * TVAL_MAX. in timers_sanity_checks()
554 * Twice the TVAL_MAX completely loops around the TVAL. in timers_sanity_checks()
564 /* negative tval that rollovers from 0. */ in timers_sanity_checks()
571 /* tval should keep down-counting from 0 to -1. */ in timers_sanity_checks()
615 * tval. If that was the case, setting a cval to "cval = now in test_timers_above_tval_max()
687 int32_t tval, uint64_t cnt_2, in test_set_cnt_after_tval() argument
690 test_set_cnt_after_xval(timer, cnt_1, tval, cnt_2, wm, TIMER_TVAL); in test_set_cnt_after_tval()
701 uint64_t cnt_1, int32_t tval, in test_set_cnt_after_tval_no_irq() argument
704 test_set_cnt_after_xval_no_irq(timer, cnt_1, tval, cnt_2, wm, in test_set_cnt_after_tval_no_irq()
720 int32_t tval; in test_move_counters_ahead_of_timers() local
728 /* Move counter ahead of negative tval. */ in test_move_counters_ahead_of_timers()
731 tval = TVAL_MAX; in test_move_counters_ahead_of_timers()
732 test_set_cnt_after_tval(timer, 0, tval, (uint64_t) tval + 1, in test_move_counters_ahead_of_timers()
744 * Program a timer, mask it, and then change the tval or counter to cancel it.
762 int32_t tval = -1 * (int32_t) msec_to_cycles(test_args.wait_ms); in test_timers_in_the_past() local
772 test_timer_tval(timer, tval, wm, true, DEF_CNT); in test_timers_in_the_past()
777 /* Set a time for tval=0 (now) */ in test_timers_in_the_past()
785 * Set the counter to wait_ms, and a tval to -wait_ms. There should be no in test_timers_in_the_past()
786 * IRQ as that tval means cval=CVAL_MAX-wait_ms. in test_timers_in_the_past()
792 test_tval_no_irq(timer, tval, TIMEOUT_NO_IRQ_US, sm); in test_timers_in_the_past()
798 int32_t tval = (int32_t) msec_to_cycles(test_args.long_wait_ms); in test_long_timer_delays() local
806 test_timer_tval(timer, tval, wm, true, DEF_CNT); in test_long_timer_delays()