Lines Matching refs:ulong

238 static int memory_post_addrline(ulong *testaddr, ulong *base, ulong size)  in memory_post_addrline()
240 ulong *target; in memory_post_addrline()
241 ulong *end; in memory_post_addrline()
242 ulong readback; in memory_post_addrline()
243 ulong xor; in memory_post_addrline()
246 end = (ulong *)((ulong)base + size); /* pointer arith! */ in memory_post_addrline()
248 for(xor = sizeof(ulong); xor > 0; xor <<= 1) { in memory_post_addrline()
249 target = (ulong *)((ulong)testaddr ^ xor); in memory_post_addrline()
275 ulong *mem = (ulong *) start; in memory_post_test1()
276 ulong readback; in memory_post_test1()
279 for (i = 0; i < size / sizeof (ulong); i++) { in memory_post_test1()
285 for (i = 0; i < size / sizeof (ulong) && !ret; i++) { in memory_post_test1()
305 ulong *mem = (ulong *) start; in memory_post_test2()
306 ulong readback; in memory_post_test2()
309 for (i = 0; i < size / sizeof (ulong); i++) { in memory_post_test2()
315 for (i = 0; i < size / sizeof (ulong) && !ret; i++) { in memory_post_test2()
335 ulong *mem = (ulong *) start; in memory_post_test3()
336 ulong readback; in memory_post_test3()
339 for (i = 0; i < size / sizeof (ulong); i++) { in memory_post_test3()
345 for (i = 0; i < size / sizeof (ulong) && !ret; i++) { in memory_post_test3()
365 ulong *mem = (ulong *) start; in memory_post_test4()
366 ulong readback; in memory_post_test4()
369 for (i = 0; i < size / sizeof (ulong); i++) { in memory_post_test4()
375 for (i = 0; i < size / sizeof (ulong) && !ret; i++) { in memory_post_test4()
399 ret = memory_post_addrline((ulong *)start, (ulong *)start, in memory_post_test_lines()
403 ret = memory_post_addrline((ulong *)(start+size-8), in memory_post_test_lines()
404 (ulong *)start, size); in memory_post_test_lines()
479 if ((*vstart) + (*size) > (ulong)bd) in arch_memory_test_prepare()
480 *size = (ulong)bd - *vstart; in arch_memory_test_prepare()