Lines Matching refs:null_off
411 int null_off) { in usercopy_test_strlcpy_from_user_inner() argument
428 usercopy_test_init_buf(src_kbuf1, src_kbuf2, SRC_DATA, null_off); in usercopy_test_strlcpy_from_user_inner()
439 null_off, copy_size); in usercopy_test_strlcpy_from_user_inner()
445 null_off, copy_size); in usercopy_test_strlcpy_from_user_inner()
454 " null_off=%d, copy_size=%d\n", null_off, copy_size); in usercopy_test_strlcpy_from_user_inner()
458 null_off < TEST_BUF1_SIZE)) { in usercopy_test_strlcpy_from_user_inner()
465 EXPECT_EQ(null_off - TEST_BUF_COPY_START, ret, in usercopy_test_strlcpy_from_user_inner()
467 null_off, copy_size); in usercopy_test_strlcpy_from_user_inner()
468 EXPECT_EQ(MIN(null_off - TEST_BUF_COPY_START, copy_len), dest_len, in usercopy_test_strlcpy_from_user_inner()
469 " null_off=%d, copy_size=%d\n", null_off, copy_size); in usercopy_test_strlcpy_from_user_inner()
476 EXPECT_EQ(ERR_FAULT, ret, " null_off=%d, copy_size=%d\n", null_off, in usercopy_test_strlcpy_from_user_inner()
479 EXPECT_EQ(0, dest_len, " null_off=%d, copy_size=%d\n", null_off, in usercopy_test_strlcpy_from_user_inner()
483 " null_off=%d, copy_size=%d\n", null_off, copy_size); in usercopy_test_strlcpy_from_user_inner()
489 if (null_off < TEST_BUF1_SIZE) { in usercopy_test_strlcpy_from_user_inner()
490 EXPECT_EQ(0, checkbuf(src_kbuf1, SRC_DATA, null_off)); in usercopy_test_strlcpy_from_user_inner()
491 EXPECT_EQ('\0', src_kbuf1[null_off]); in usercopy_test_strlcpy_from_user_inner()
492 EXPECT_EQ(0, checkbuf(src_kbuf1 + null_off + 1, SRC_DATA, in usercopy_test_strlcpy_from_user_inner()
493 TEST_BUF1_SIZE - null_off - 1)); in usercopy_test_strlcpy_from_user_inner()
499 if (null_off >= TEST_BUF1_SIZE) { in usercopy_test_strlcpy_from_user_inner()
500 size_t null_off2 = null_off - TEST_BUF1_SIZE; in usercopy_test_strlcpy_from_user_inner()
522 int null_off; in TEST_P() local
528 for (null_off = TEST_BUF_COPY_START; null_off < TEST_BUF_SIZE; in TEST_P()
529 null_off++) { in TEST_P()
532 null_off); in TEST_P()