Searched refs:expected (Results 1 – 8 of 8) sorted by relevance
/lib/ |
D | test_user_copy.c | 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() [all …]
|
D | globtest.c | 16 bool expected; member 19 static bool __pure __init test(char const *pat, char const *str, bool expected) in test() argument 22 bool success = match == expected; in test() 144 bool expected = *p++ & 1; in glob_init() local 148 successes += test(pat, p, expected); in glob_init()
|
D | percpu_test.c | 5 #define CHECK(native, pcp, expected) \ argument 7 WARN((native) != (expected), \ 10 (long long)(expected), (long long)(expected)); \ 11 WARN(__this_cpu_read(pcp) != (expected), \ 14 (long long)(expected), (long long)(expected)); \
|
D | test_strscpy.c | 29 static int __init tc(char *src, int count, int expected, in tc() argument 55 if (expected > max_expected) { in tc() 57 expected, max_expected); in tc() 61 if ((written) != (expected)) { in tc() 62 pr_err("%d != %d (written, expected)\n", written, expected); in tc()
|
D | test_bitmap.c | 214 const unsigned long *expected; member 318 if (!err && ptest.expected in __test_bitmap_parselist() 319 && !__bitmap_equal(bmap, ptest.expected, ptest.nbits)) { in __test_bitmap_parselist() 322 *ptest.expected); in __test_bitmap_parselist()
|
D | test_rhashtable.c | 144 bool expected = !(i % 2); in test_rht_lookup() local 150 expected = false; in test_rht_lookup() 154 if (expected && !obj) { in test_rht_lookup() 157 } else if (!expected && obj) { in test_rht_lookup() 161 } else if (expected && obj) { in test_rht_lookup()
|
D | locking-selftest.c | 1137 static void dotest(void (*testcase_fn)(void), int expected, int lockclass_mask) in dotest() argument 1148 if (expected == FAILURE && debug_locks) { in dotest() 1154 if (debug_locks != expected) { in dotest() 1165 lockclass_mask, debug_locks, expected); in dotest()
|
/lib/zstd/ |
D | decompress.c | 87 size_t expected; member 108 dctx->expected = ZSTD_frameHeaderSize_prefix; in ZSTD_decompressBegin() 1721 size_t ZSTD_nextSrcSizeToDecompress(ZSTD_DCtx *dctx) { return dctx->expected; } in ZSTD_nextSrcSizeToDecompress() 1746 if (srcSize != dctx->expected) in ZSTD_decompressContinue() 1757 …dctx->expected = ZSTD_skippableHeaderSize - ZSTD_frameHeaderSize_prefix; /* magic number + skippab… in ZSTD_decompressContinue() 1766 dctx->expected = dctx->headerSize - ZSTD_frameHeaderSize_prefix; in ZSTD_decompressContinue() 1770 dctx->expected = 0; /* not necessary to copy more */ in ZSTD_decompressContinue() 1774 memcpy(dctx->headerBuffer + ZSTD_frameHeaderSize_prefix, src, dctx->expected); in ZSTD_decompressContinue() 1776 dctx->expected = ZSTD_blockHeaderSize; in ZSTD_decompressContinue() 1785 dctx->expected = cBlockSize; in ZSTD_decompressContinue() [all …]
|