Lines Matching defs:count
14 * @count: Size of destination buffer, argument to strscpy_pad()
25 static void tc(struct kunit *test, char *src, int count, int expected,
42 max_expected = count - 1; /* Space for the null */
44 KUNIT_ASSERT_LE_MSG(test, count, max_count,
45 "count (%d) is too big (%d) ... aborting", count, max_count);
50 written = strscpy_pad(buf, src, count);
53 if (count && written == -E2BIG) {
54 KUNIT_ASSERT_EQ_MSG(test, 0, strncmp(buf, src, count - 1),
56 KUNIT_ASSERT_EQ_MSG(test, buf[count - 1], '\0',
65 KUNIT_ASSERT_EQ_MSG(test, buf[count - 1], '\0',
90 * strings up to a maximum of 4 characters long and 'count'
95 /* tc(test, src, count, expected, chars, terminator, pad) */