• Home
  • Raw
  • Download

Lines Matching refs:ret

49 	int ret = 0;  in test_check_nonzero_user()  local
87 ret |= test(copy_to_user(umem, kmem, size), in test_check_nonzero_user()
96 ret |= test(retval != expected, in test_check_nonzero_user()
102 return ret; in test_check_nonzero_user()
108 int ret = 0; in test_copy_struct_from_user() local
113 ret = test(umem_src == NULL, "kmalloc failed"); in test_copy_struct_from_user()
114 if (ret) in test_copy_struct_from_user()
118 ret = test(expected == NULL, "kmalloc failed"); in test_copy_struct_from_user()
119 if (ret) in test_copy_struct_from_user()
124 ret |= test(copy_to_user(umem, umem_src, size), in test_copy_struct_from_user()
134 ret |= test(copy_struct_from_user(kmem, ksize, umem, usize), in test_copy_struct_from_user()
136 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user()
147 ret |= test(copy_struct_from_user(kmem, ksize, umem, usize), in test_copy_struct_from_user()
149 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user()
157 ret |= test(copy_struct_from_user(kmem, ksize, umem, usize) != -E2BIG, in test_copy_struct_from_user()
165 ret |= test(clear_user(umem + ksize, usize - ksize), in test_copy_struct_from_user()
169 ret |= test(copy_struct_from_user(kmem, ksize, umem, usize), in test_copy_struct_from_user()
171 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user()
177 return ret; in test_copy_struct_from_user()
182 int ret = 0; in test_user_copy_init() local
214 ret |= test(copy_to_user(usermem, kmem, 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()
225 ret |= test(put_user(val_##size, (size __user *)usermem), \ in test_user_copy_init()
228 ret |= test(get_user(val_##size, (size __user *)usermem), \ in test_user_copy_init()
230 ret |= test(val_##size != check, \ 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()
261 ret |= test(!copy_from_user(kmem, (char __user *)(kmem + PAGE_SIZE), in test_user_copy_init()
266 ret |= test(memcmp(kmem + PAGE_SIZE, kmem, PAGE_SIZE), in test_user_copy_init()
276 ret |= test(!copy_from_user(bad_usermem, (char __user *)kmem, in test_user_copy_init()
280 ret |= test(!copy_to_user((char __user *)kmem, kmem + PAGE_SIZE, in test_user_copy_init()
283 ret |= test(!copy_to_user((char __user *)kmem, bad_usermem, in test_user_copy_init()
290 ret |= test(!get_user(val_##size, (size __user *)kmem), \ in test_user_copy_init()
292 ret |= test(val_##size != (size)0, \ in test_user_copy_init()
298 ret |= test(!put_user(val_##size, (size __user *)kmem), \ in test_user_copy_init()
313 if (ret == 0) { in test_user_copy_init()