Lines Matching refs:pattern
32 static void __init reserve_bad_mem(u64 pattern, phys_addr_t start_bad, phys_addr_t end_bad) in reserve_bad_mem() argument
35 cpu_to_be64(pattern), &start_bad, &end_bad); in reserve_bad_mem()
40 static void __init memtest(u64 pattern, phys_addr_t start_phys, phys_addr_t size) in memtest() argument
45 const size_t incr = sizeof(pattern); in memtest()
54 WRITE_ONCE(*p, pattern); in memtest()
57 if (READ_ONCE(*p) == pattern) in memtest()
64 reserve_bad_mem(pattern, start_bad, last_bad + incr); in memtest()
68 reserve_bad_mem(pattern, start_bad, last_bad + incr); in memtest()
73 static void __init do_one_pass(u64 pattern, phys_addr_t start, phys_addr_t end) in do_one_pass() argument
84 &this_start, &this_end, cpu_to_be64(pattern)); in do_one_pass()
85 memtest(pattern, this_start, this_end - this_start); in do_one_pass()