Lines Matching refs:PAGE_SIZE
64 kmem = kmalloc(PAGE_SIZE * 2, GFP_KERNEL); in test_user_copy_init()
68 user_addr = vm_mmap(NULL, 0, PAGE_SIZE * 2, in test_user_copy_init()
83 memset(kmem, 0x3a, PAGE_SIZE * 2); in test_user_copy_init()
84 ret |= test(copy_to_user(usermem, kmem, PAGE_SIZE), in test_user_copy_init()
86 memset(kmem, 0x0, PAGE_SIZE); in test_user_copy_init()
87 ret |= test(copy_from_user(kmem, usermem, PAGE_SIZE), in test_user_copy_init()
89 ret |= test(memcmp(kmem, kmem + PAGE_SIZE, PAGE_SIZE), in test_user_copy_init()
122 memset(kmem, 0x5a, PAGE_SIZE); in test_user_copy_init()
123 memset(kmem + PAGE_SIZE, 0, PAGE_SIZE); in test_user_copy_init()
126 ret |= test(!copy_from_user(kmem, (char __user *)(kmem + PAGE_SIZE), in test_user_copy_init()
127 PAGE_SIZE), in test_user_copy_init()
131 ret |= test(memcmp(kmem + PAGE_SIZE, kmem, PAGE_SIZE), in test_user_copy_init()
142 PAGE_SIZE), in test_user_copy_init()
145 ret |= test(!copy_to_user((char __user *)kmem, kmem + PAGE_SIZE, in test_user_copy_init()
146 PAGE_SIZE), in test_user_copy_init()
149 PAGE_SIZE), in test_user_copy_init()
175 vm_munmap(user_addr, PAGE_SIZE * 2); in test_user_copy_init()