Lines Matching full:mirror

4  * the linux kernel to help device drivers mirror a process address space in
39 void *mirror; member
188 cmd.ptr = (__u64)buffer->mirror; in hmm_dmirror_cmd()
212 free(buffer->mirror); in hmm_buffer_free()
311 buffer->mirror = malloc(size); in TEST_F()
312 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
343 ptr = buffer->mirror; in TEST_F()
374 buffer->mirror = malloc(size); in TEST_F()
375 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
387 /* Initialize mirror buffer so we can verify it isn't written. */ in TEST_F()
388 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
406 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
433 buffer->mirror = malloc(size); in TEST_F()
434 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
443 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
481 buffer->mirror = malloc(size); in TEST_F()
482 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
497 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
549 buffer->mirror = malloc(size); in TEST_F()
550 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
563 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
582 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
585 /* The child process needs its own mirror to its own mm. */ in TEST_F()
627 buffer->mirror = malloc(size); in TEST_F()
628 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
641 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
660 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
663 /* The child process needs its own mirror to its own mm. */ in TEST_F()
702 buffer->mirror = malloc(size); in TEST_F()
703 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
720 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
820 buffer->mirror = malloc(size); in TEST_F()
821 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
824 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
868 buffer->mirror = malloc(size); in TEST_F()
869 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
872 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
874 len = pwrite(fd, buffer->mirror, size, 0); in TEST_F()
876 memset(buffer->mirror, 0, size); in TEST_F()
891 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
923 buffer->mirror = malloc(size); in TEST_F()
924 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
933 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
947 len = pread(fd, buffer->mirror, size, 0); in TEST_F()
949 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
976 buffer->mirror = malloc(size); in TEST_F()
977 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
995 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
1024 buffer->mirror = malloc(size); in TEST_F()
1025 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
1043 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
1056 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
1080 buffer->mirror = malloc(size); in TEST_F()
1081 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
1097 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
1130 buffer->mirror = malloc(size); in TEST_F()
1131 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
1167 buffer->mirror = malloc(size); in TEST_F()
1168 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
1261 buffer->mirror = malloc(size); in TEST_F()
1262 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
1280 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
1320 buffer->mirror = malloc(size); in TEST_F()
1321 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
1341 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
1386 buffer->mirror = malloc(size); in TEST_F()
1387 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
1410 for (i = 0, ptr = buffer->mirror; in TEST_F()
1440 buffer->mirror = malloc(npages); in TEST_F()
1441 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
1457 m = buffer->mirror; in TEST_F()
1485 buffer->mirror = malloc(npages); in TEST_F()
1486 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
1544 m = buffer->mirror; in TEST_F()
1602 buffer->mirror = malloc(npages); in TEST_F()
1603 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
1615 m = buffer->mirror; in TEST_F()
1630 m = buffer->mirror; in TEST_F()
1660 buffer->mirror = malloc(size); in TEST_F()
1661 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
1685 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
1695 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
1709 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
1736 buffer->mirror = malloc(size); in TEST_F()
1737 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
1755 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
1790 buffer->mirror = malloc(size); in TEST_F()
1791 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
1809 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
1843 buffer->mirror = malloc(size); in TEST_F()
1844 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
1921 buffer->mirror = malloc(size); in TEST_F()
1922 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
1939 for (i = 0, ptr = buffer->mirror; i < size / sizeof(*ptr); ++i) in TEST_F()
1959 m = buffer->mirror; in TEST_F()
2007 buffer->mirror = malloc(size); in TEST_F()
2008 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
2053 m = buffer->mirror; in TEST_F()