Lines Matching refs:dest_buf

253     char dest_buf[TEST_BUF_SIZE];  in TEST_P()  local
259 memset(dest_buf, DEST_DATA, sizeof(dest_buf)); in TEST_P()
275 EXPECT_EQ(0, checkbuf(dest_buf, DEST_DATA, TEST_BUF_SIZE)); in TEST_P()
278 ret = copy_from_user(dest_buf + TEST_BUF_COPY_START, in TEST_P()
298 !dest_buf[TEST_BUF_COPY_START]) { in TEST_P()
306 EXPECT_EQ(0, checkbuf(dest_buf + TEST_BUF_COPY_START, expect1, in TEST_P()
308 EXPECT_EQ(0, checkbuf(dest_buf + TEST_BUF1_SIZE, expect2, in TEST_P()
312 EXPECT_EQ(DEST_DATA, dest_buf[0]); in TEST_P()
313 EXPECT_EQ(DEST_DATA, dest_buf[TEST_BUF_SIZE - 1]); in TEST_P()
336 char dest_buf[TEST_BUF_SIZE]; in TEST_P() local
342 memset(dest_buf, DEST_DATA, sizeof(dest_buf)); in TEST_P()
358 EXPECT_EQ(0, checkbuf(dest_buf, DEST_DATA, TEST_BUF_SIZE)); in TEST_P()
361 ret = copy_from_anywhere(dest_buf + TEST_BUF_COPY_START, in TEST_P()
389 EXPECT_EQ(0, checkbuf(dest_buf + TEST_BUF_COPY_START, expect1, in TEST_P()
391 EXPECT_EQ(0, checkbuf(dest_buf + TEST_BUF1_SIZE, expect2, in TEST_P()
395 EXPECT_EQ(DEST_DATA, dest_buf[0]); in TEST_P()
396 EXPECT_EQ(DEST_DATA, dest_buf[TEST_BUF_SIZE - 1]); in TEST_P()
413 char dest_buf[TEST_BUF_SIZE]; in usercopy_test_strlcpy_from_user_inner() local
419 memset(dest_buf, DEST_DATA, sizeof(dest_buf)); in usercopy_test_strlcpy_from_user_inner()
430 ret = strlcpy_from_user(dest_buf + TEST_BUF_COPY_START, in usercopy_test_strlcpy_from_user_inner()
433 dest_len = strnlen(dest_buf + TEST_BUF_COPY_START, TEST_BUF_COPY_SIZE); in usercopy_test_strlcpy_from_user_inner()
453 EXPECT_EQ(0, checkbuf(dest_buf + TEST_BUF_COPY_START, SRC_DATA, dest_len), in usercopy_test_strlcpy_from_user_inner()
511 EXPECT_EQ(DEST_DATA, dest_buf[0]); in usercopy_test_strlcpy_from_user_inner()
512 EXPECT_EQ(DEST_DATA, dest_buf[TEST_BUF_COPY_START + copy_size]); in usercopy_test_strlcpy_from_user_inner()
513 EXPECT_EQ(DEST_DATA, dest_buf[TEST_BUF_SIZE - 1]); in usercopy_test_strlcpy_from_user_inner()