Lines Matching full:pattern

355 static bool test_ro_pattern_32(void *address, u32 pattern, u32 orig)  in test_ro_pattern_32()  argument
359 writel(pattern, address); in test_ro_pattern_32()
370 u32 orig, pattern; in test_readonly_32() local
376 pattern = 0xffffffff; in test_readonly_32()
377 if (orig != pattern) { in test_readonly_32()
378 if (!test_ro_pattern_32(address, pattern, orig)) in test_readonly_32()
382 pattern = 0xa5a55a5a; in test_readonly_32()
383 if (orig != pattern) { in test_readonly_32()
384 if (!test_ro_pattern_32(address, pattern, orig)) in test_readonly_32()
388 pattern = 0; in test_readonly_32()
389 if (orig != pattern) { in test_readonly_32()
390 if (!test_ro_pattern_32(address, pattern, orig)) in test_readonly_32()
413 * @pattern contains the value already in the register.
415 static void test_byte_access(void *base_addr, u32 pattern, u32 mask) in test_byte_access() argument
420 res = (reg == (BYTE(pattern, 1) & (mask >> 8))); in test_byte_access()
423 report_info("byte 1 of 0x%08"PRIx32" => 0x%02"PRIx32, pattern & mask, reg); in test_byte_access()
425 pattern = REPLACE_BYTE(pattern, 2, 0x1f); in test_byte_access()
426 writeb(BYTE(pattern, 2), base_addr + 2); in test_byte_access()
428 res = (reg == (pattern & mask)); in test_byte_access()
432 BYTE(pattern, 2), reg); in test_byte_access()
438 u32 pri_mask, pattern; in test_priorities() local
463 pattern = 0; in test_priorities()
464 writel(pattern, first_spi); in test_priorities()
465 report(readl(first_spi) == pattern, "clearing priorities"); in test_priorities()
472 writel(pattern, priptr + nr_irqs - 4); in test_priorities()
473 report(readl(priptr + nr_irqs - 4) == (pattern & pri_mask), in test_priorities()
476 pattern = 0xff7fbf3f; in test_priorities()
477 writel(pattern, first_spi); in test_priorities()
478 report(readl(first_spi) == (pattern & pri_mask), in test_priorities()
482 test_byte_access(first_spi, pattern, pri_mask); in test_priorities()
494 u32 pattern, reg; in test_targets() local
516 pattern = 0x0103020f; in test_targets()
517 writel(pattern, targetsptr + GIC_FIRST_SPI); in test_targets()
519 report(reg == (pattern & cpu_mask), "register content preserved"); in test_targets()
520 if (reg != (pattern & cpu_mask)) in test_targets()
522 pattern & cpu_mask, reg); in test_targets()
525 test_byte_access(targetsptr + GIC_FIRST_SPI, pattern, cpu_mask); in test_targets()