Lines Matching +full:write +full:- +full:to +full:- +full:write

1 // SPDX-License-Identifier: GPL-2.0-only
27 prop = fdt_get_property(dt_fdt(), fdtnode, "ibm,dec-bits", &plen); in cpu_dec_bits()
36 /* Check all CPU nodes have the same value of dec-bits */ in cpu_dec_bits()
38 assert(dec_bits == fdt32_to_cpu(*(uint32_t *)prop->data)); in cpu_dec_bits()
40 dec_bits = fdt32_to_cpu(*(uint32_t *)prop->data); in cpu_dec_bits()
93 regs->msr &= ~MSR_EE; in dec_handler()
108 if (tb2 - tb1 < dec_max - dec) in test_dec()
112 report_kfail(!host_is_tcg, tb2 - tb1 >= dec_max - dec, in test_dec()
120 report(tb2 - tb1 >= dec_max - dec, in test_dec()
133 mdelay(100); /* Give the timer a chance to run */ in test_dec()
149 mdelay(100); /* Give the timer a chance to run */ in test_dec()
154 report(got_interrupt, "DEC deal with set to 0"); in test_dec()
157 /* Test for level-triggered decrementer */ in test_dec()
158 mtspr(SPR_DEC, -1ULL); in test_dec()
163 report(got_interrupt, "interrupt on decrementer write MSB"); in test_dec()
170 mtspr(SPR_DEC, -1); in test_dec()
172 report(got_interrupt, "interrupt on decrementer write MSB with irqs on"); in test_dec()
181 "no interrupt after wrap to positive"); in test_dec()
206 report(tb2 - tb1 >= dec_max - hdec, "hdecrementer remains within TB"); in test_hdec()
213 report(tb2 - tb1 >= dec_max - hdec, "hdecrementer remains within TB after 1s"); in test_hdec()
224 mdelay(100); /* Give the timer a chance to run */ in test_hdec()
241 mtspr(SPR_HDEC, -1ULL); in test_hdec()
246 report(got_interrupt, "no interrupt on hdecrementer underflown write MSB"); in test_hdec()
250 mdelay(100); /* Give the timer a chance to run */ in test_hdec()
257 report(got_interrupt, "HDEC deal with set to 0"); in test_hdec()
264 mtspr(SPR_HDEC, -1ULL); in test_hdec()
266 report(got_interrupt, "interrupt on hdecrementer write MSB with irqs on"); in test_hdec()
277 report(got_interrupt, "got interrupt after wrap to positive"); in test_hdec()
280 mtspr(SPR_HDEC, -1ULL); in test_hdec()
288 mtspr(SPR_HDEC, -1ULL); in test_hdec()
291 report(got_interrupt, "edge re-armed after wrap to positive"); in test_hdec()
318 if (!strcmp(argv[i], "-w")) { in main()
326 dec_max = (1ULL << (dec_bits - 1)) - 1; in main()
327 dec_min = (1ULL << (dec_bits - 1)); in main()