Searched refs:TIMER_BASE (Results 1 – 4 of 4) sorted by relevance
/qemu/tests/qtest/ |
H A D | sse-timer-test.c | 24 #define TIMER_BASE 0x48000000 macro 73 writel(TIMER_BASE + CNTP_CTL, 0); in reset_counter_and_timer() 74 writel(TIMER_BASE + CNTP_AIVAL_CTL, 0); in reset_counter_and_timer() 123 writel(TIMER_BASE + CNTP_CTL, 1); in test_timer() 132 writel(TIMER_BASE + CNTP_CVAL_HI, 0); in test_timer() 144 writel(TIMER_BASE + CNTP_AIVAL_CTL, 1); in test_timer() 165 writel(TIMER_BASE + CNTP_AIVAL_CTL, 1); in test_timer() 181 writel(TIMER_BASE + CNTP_AIVAL_CTL, 0); in test_timer() 187 writel(TIMER_BASE + CNTP_AIVAL_CTL, 1); in test_timer() 202 writel(TIMER_BASE + CNTP_CTL, 1); in test_timer_scale_change() [all …]
|
H A D | cmsdk-apb-dualtimer-test.c | 21 #define TIMER_BASE 0x40002000 macro 50 g_assert_true(readl(TIMER_BASE + TIMER1RIS) == 0); in test_dualtimer() 53 writel(TIMER_BASE + TIMER1LOAD, 1000); in test_dualtimer() 59 g_assert_cmpuint(readl(TIMER_BASE + TIMER1RIS), ==, 0); in test_dualtimer() 75 writel(TIMER_BASE + TIMER1INTCLR, 1); in test_dualtimer() 79 writel(TIMER_BASE + TIMER1CONTROL, 0); in test_dualtimer() 84 g_assert_true(readl(TIMER_BASE + TIMER2RIS) == 0); in test_prescale() 87 writel(TIMER_BASE + TIMER2LOAD, 1000); in test_prescale() 89 writel(TIMER_BASE + TIMER2CONTROL, in test_prescale() 107 writel(TIMER_BASE + TIMER2INTCLR, 1); in test_prescale() [all …]
|
H A D | cmsdk-apb-timer-test.c | 21 #define TIMER_BASE 0x40000000 macro 30 g_assert_true(readl(TIMER_BASE + INTSTATUS) == 0); in test_timer() 33 writel(TIMER_BASE + RELOAD, 1000); in test_timer() 34 writel(TIMER_BASE + CTRL, 9); in test_timer() 38 g_assert_cmpuint(readl(TIMER_BASE + INTSTATUS), ==, 0); in test_timer() 39 g_assert_cmpuint(readl(TIMER_BASE + VALUE), ==, 500); in test_timer() 44 g_assert_cmpuint(readl(TIMER_BASE + VALUE), ==, 0); in test_timer() 48 g_assert_cmpuint(readl(TIMER_BASE + VALUE), ==, 1000); in test_timer() 51 writel(TIMER_BASE + INTSTATUS, 0); in test_timer() 53 writel(TIMER_BASE + INTSTATUS, 1); in test_timer() [all …]
|
/qemu/hw/timer/ |
H A D | grlib_gptimer.c | 59 #define TIMER_BASE 0x10 macro 209 timer_addr = (addr % TIMER_BASE); in grlib_gptimer_read() 210 id = (addr - TIMER_BASE) / TIMER_BASE; in grlib_gptimer_read() 273 timer_addr = (addr % TIMER_BASE); in grlib_gptimer_write() 274 id = (addr - TIMER_BASE) / TIMER_BASE; in grlib_gptimer_write()
|