Searched refs:COUNTER_BASE (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/tests/qtest/ |
H A D | sse-timer-test.c | 30 #define COUNTER_BASE 0x58100000 macro 72 writel(COUNTER_BASE + CNTCR, 0); in reset_counter_and_timer() 75 writel(COUNTER_BASE + CNTCV_LO, 0); in reset_counter_and_timer() 76 writel(COUNTER_BASE + CNTCV_HI, 0); in reset_counter_and_timer() 86 g_assert_cmpuint(readl(COUNTER_BASE + CNTCV_LO), ==, 0); in test_counter() 87 g_assert_cmpuint(readl(COUNTER_BASE + CNTCV_HI), ==, 0); in test_counter() 89 writel(COUNTER_BASE + CNTCR, 1); in test_counter() 91 g_assert_cmpuint(readl(COUNTER_BASE + CNTCV_LO), ==, 100); in test_counter() 92 g_assert_cmpuint(readl(COUNTER_BASE + CNTCV_HI), ==, 0); in test_counter() 94 writel(COUNTER_BASE + CNTCR, 0); in test_counter() [all …]
|
/openbmc/linux/net/bridge/netfilter/ |
H A D | ebtables.c | 40 #define COUNTER_BASE(c, n, cpu) ((struct ebt_counter *)(((char *)c) + \ macro 213 cb_base = COUNTER_BASE(private->counters, private->nentries, in ebt_do_table() 1001 counter_base = COUNTER_BASE(oldcounters, nentries, cpu); in get_counters()
|