Lines Matching refs:PAGE_SIZE
52 if (test(size < 2 * PAGE_SIZE, "buffer too small")) in test_check_nonzero_user()
62 start = PAGE_SIZE - (size / 2); in test_check_nonzero_user()
194 kmem = kmalloc(PAGE_SIZE * 2, GFP_KERNEL); in test_user_copy_init()
198 user_addr = vm_mmap(NULL, 0, PAGE_SIZE * 2, in test_user_copy_init()
213 memset(kmem, 0x3a, PAGE_SIZE * 2); in test_user_copy_init()
214 ret |= test(copy_to_user(usermem, kmem, PAGE_SIZE), in test_user_copy_init()
216 memset(kmem, 0x0, PAGE_SIZE); in test_user_copy_init()
217 ret |= test(copy_from_user(kmem, usermem, PAGE_SIZE), in test_user_copy_init()
219 ret |= test(memcmp(kmem, kmem + PAGE_SIZE, PAGE_SIZE), in test_user_copy_init()
248 ret |= test_check_nonzero_user(kmem, usermem, 2 * PAGE_SIZE); in test_user_copy_init()
250 ret |= test_copy_struct_from_user(kmem, usermem, 2 * PAGE_SIZE); in test_user_copy_init()
257 memset(kmem, 0x5a, PAGE_SIZE); in test_user_copy_init()
258 memset(kmem + PAGE_SIZE, 0, PAGE_SIZE); in test_user_copy_init()
261 ret |= test(!copy_from_user(kmem, (char __user *)(kmem + PAGE_SIZE), in test_user_copy_init()
262 PAGE_SIZE), in test_user_copy_init()
266 ret |= test(memcmp(kmem + PAGE_SIZE, kmem, PAGE_SIZE), in test_user_copy_init()
277 PAGE_SIZE), in test_user_copy_init()
280 ret |= test(!copy_to_user((char __user *)kmem, kmem + PAGE_SIZE, in test_user_copy_init()
281 PAGE_SIZE), in test_user_copy_init()
284 PAGE_SIZE), in test_user_copy_init()
310 vm_munmap(user_addr, PAGE_SIZE * 2); in test_user_copy_init()