Searched refs:mem1 (Results 1 – 2 of 2) sorted by relevance
/tools/testing/selftests/kvm/s390x/ |
D | memop.c | 18 static uint8_t mem1[65536]; variable 27 mem2[i] = mem1[i]; in guest_code() 46 if (maxsize > sizeof(mem1)) in main() 47 maxsize = sizeof(mem1); in main() 53 for (i = 0; i < sizeof(mem1); i++) in main() 54 mem1[i] = i * i + i; in main() 57 ksmo.gaddr = addr_gva2gpa(vm, (uintptr_t)mem1); in main() 61 ksmo.buf = (uintptr_t)mem1; in main() 83 TEST_ASSERT(!memcmp(mem1, mem2, maxsize), in main() 87 ksmo.gaddr = (uintptr_t)mem1; in main() [all …]
|
/tools/testing/selftests/powerpc/alignment/ |
D | alignment_handler.c | 233 void *mem0, *mem1, *ci0, *ci1; in do_test() local 261 rc = posix_memalign(&mem1, bufsize, bufsize); in do_test() 282 memcpy(ci1, mem1, bufsize); /* initialise output to the same */ in do_test() 288 r |= test_memcpy(mem1, mem0, width, offset, test_func); in do_test() 295 r |= test_memcmp(mem1, ci1, width, offset, test_name); in do_test() 311 free(mem1); in do_test()
|