Lines Matching full:ps
241 unsigned int ps = 5; in test_oneshot_ps5() local
246 tim_write_tcsr(td, CEN | PRESCALE(ps)); in test_oneshot_ps5()
247 g_assert_cmphex(tim_read_tcsr(td), ==, CEN | CACT | PRESCALE(ps)); in test_oneshot_ps5()
250 clock_step(tim_calculate_step(count, ps) - 1); in test_oneshot_ps5()
252 g_assert_cmphex(tim_read_tcsr(td), ==, CEN | CACT | PRESCALE(ps)); in test_oneshot_ps5()
258 g_assert_cmphex(tim_read_tcsr(td), ==, PRESCALE(ps)); in test_oneshot_ps5()
269 clock_step(2 * tim_calculate_step(count, ps)); in test_oneshot_ps5()
279 unsigned int ps = 0; in test_oneshot_ps0() local
284 tim_write_tcsr(td, CEN | PRESCALE(ps)); in test_oneshot_ps0()
285 g_assert_cmphex(tim_read_tcsr(td), ==, CEN | CACT | PRESCALE(ps)); in test_oneshot_ps0()
288 clock_step(tim_calculate_step(count, ps) - 1); in test_oneshot_ps0()
290 g_assert_cmphex(tim_read_tcsr(td), ==, CEN | CACT | PRESCALE(ps)); in test_oneshot_ps0()
296 g_assert_cmphex(tim_read_tcsr(td), ==, PRESCALE(ps)); in test_oneshot_ps0()
307 unsigned int ps = 255; in test_oneshot_ps255() local
312 tim_write_tcsr(td, CEN | PRESCALE(ps)); in test_oneshot_ps255()
313 g_assert_cmphex(tim_read_tcsr(td), ==, CEN | CACT | PRESCALE(ps)); in test_oneshot_ps255()
316 clock_step(tim_calculate_step(count, ps) - 1); in test_oneshot_ps255()
318 g_assert_cmphex(tim_read_tcsr(td), ==, CEN | CACT | PRESCALE(ps)); in test_oneshot_ps255()
324 g_assert_cmphex(tim_read_tcsr(td), ==, PRESCALE(ps)); in test_oneshot_ps255()
335 unsigned int ps = 7; in test_oneshot_interrupt() local
340 tim_write_tcsr(td, IE | CEN | MODE_ONESHOT | PRESCALE(ps)); in test_oneshot_interrupt()
356 unsigned int ps = 1; in test_pause_resume() local
361 tim_write_tcsr(td, IE | CEN | MODE_ONESHOT | PRESCALE(ps)); in test_pause_resume()
364 clock_step(tim_calculate_step(count / 2, ps)); in test_pause_resume()
365 tim_write_tcsr(td, IE | MODE_ONESHOT | PRESCALE(ps)); in test_pause_resume()
369 clock_step(2 * tim_calculate_step(count, ps)); in test_pause_resume()
375 tim_write_tcsr(td, IE | CEN | MODE_ONESHOT | PRESCALE(ps)); in test_pause_resume()
376 clock_step(tim_calculate_step(count / 2, ps) - 1); in test_pause_resume()
392 unsigned int ps = 5; in test_prescaler_change() local
397 tim_write_tcsr(td, CEN | MODE_ONESHOT | PRESCALE(ps)); in test_prescaler_change()
400 clock_step(tim_calculate_step(count / 4, ps)); in test_prescaler_change()
402 ps = 2; in test_prescaler_change()
403 tim_write_tcsr(td, CEN | MODE_ONESHOT | PRESCALE(ps)); in test_prescaler_change()
408 clock_step(tim_calculate_step(count / 4, ps)); in test_prescaler_change()
410 ps = 8; in test_prescaler_change()
411 tim_write_tcsr(td, CEN | MODE_ONESHOT | PRESCALE(ps)); in test_prescaler_change()
416 clock_step(tim_calculate_step(count / 4, ps)); in test_prescaler_change()
418 ps = 0; in test_prescaler_change()
419 tim_write_tcsr(td, CEN | MODE_ONESHOT | PRESCALE(ps)); in test_prescaler_change()
424 clock_step(tim_calculate_step(count / 4, ps) - 1); in test_prescaler_change()
438 unsigned int ps = 3; in test_periodic_no_interrupt() local
444 tim_write_tcsr(td, CEN | MODE_PERIODIC | PRESCALE(ps)); in test_periodic_no_interrupt()
464 unsigned int ps = 2; in test_periodic_interrupt() local
470 tim_write_tcsr(td, CEN | IE | MODE_PERIODIC | PRESCALE(ps)); in test_periodic_interrupt()
493 unsigned int ps = 255; in test_disable_on_expiration() local
498 tim_write_tcsr(td, CEN | MODE_ONESHOT | PRESCALE(ps)); in test_disable_on_expiration()
500 clock_step(tim_calculate_step(count, ps) - 1); in test_disable_on_expiration()
502 tim_write_tcsr(td, MODE_ONESHOT | PRESCALE(ps)); in test_disable_on_expiration()
503 tim_write_tcsr(td, CEN | MODE_ONESHOT | PRESCALE(ps)); in test_disable_on_expiration()
505 tim_write_tcsr(td, MODE_ONESHOT | PRESCALE(ps)); in test_disable_on_expiration()