Lines Matching refs:expected
94 int expected = is_zeroed(kmem + start, len); in test_check_nonzero_user() local
96 ret |= test(retval != expected, in test_check_nonzero_user()
98 retval, expected, start, end); in test_check_nonzero_user()
109 char *umem_src = NULL, *expected = NULL; in test_copy_struct_from_user() local
117 expected = kmalloc(size, GFP_KERNEL); in test_copy_struct_from_user()
118 ret = test(expected == NULL, "kmalloc failed"); in test_copy_struct_from_user()
131 memcpy(expected, umem_src, ksize); in test_copy_struct_from_user()
136 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user()
143 memcpy(expected, umem_src, usize); in test_copy_struct_from_user()
144 memset(expected + usize, 0x0, ksize - usize); in test_copy_struct_from_user()
149 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user()
164 memcpy(expected, umem_src, ksize); in test_copy_struct_from_user()
171 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user()
175 kfree(expected); in test_copy_struct_from_user()