/lib/ |
D | test_user_copy.c | 81 memset(kmem, 0x0, size); in test_check_nonzero_user() 123 memset(umem_src, 0x3e, size); in test_copy_struct_from_user() 133 memset(kmem, 0x0, size); in test_copy_struct_from_user() 144 memset(expected + usize, 0x0, ksize - usize); in test_copy_struct_from_user() 146 memset(kmem, 0x0, size); in test_copy_struct_from_user() 156 memset(kmem, 0x0, size); in test_copy_struct_from_user() 168 memset(kmem, 0x0, size); in test_copy_struct_from_user() 213 memset(kmem, 0x3a, PAGE_SIZE * 2); in test_user_copy_init() 216 memset(kmem, 0x0, PAGE_SIZE); in test_user_copy_init() 257 memset(kmem, 0x5a, PAGE_SIZE); in test_user_copy_init() [all …]
|
D | test_stackinit.c | 108 memset(&zero, 0x00, sizeof(zero)); \ 110 memset(check_buf, 0x00, sizeof(check_buf)); \ 122 memset(check_buf, 0x00, sizeof(check_buf)); \ 175 memset(buf, (char)(sp & 0xff), sizeof(buf)); \ 180 memset(fill_start, \ 291 memset(fill_start, forced_mask | 0x55, fill_size); in __leaf_switch_none() 302 memset(fill_start, forced_mask | 0xaa, fill_size); in __leaf_switch_none()
|
D | test_hexdump.c | 133 memset(real, FILL_CHAR, sizeof(real)); in test_hexdump() 137 memset(test, FILL_CHAR, sizeof(test)); in test_hexdump() 172 memset(buf, FILL_CHAR, sizeof(buf)); in test_hexdump_overflow() 193 memset(test + f, FILL_CHAR, sizeof(test) - f); in test_hexdump_overflow()
|
D | test_string.c | 18 memset(p, 0xa1, 256 * 2 * sizeof(v)); in memset16_selftest() 54 memset(p, 0xa1, 256 * 2 * sizeof(v)); in memset32_selftest() 90 memset(p, 0xa1, 256 * 2 * sizeof(v)); in memset64_selftest()
|
D | test_bitmap.c | 180 memset(bmap, 0xff, 128); in test_zero_clear() 209 memset(bmap, 0x00, 128); in test_fill_set() 475 memset(arr, 0xa5, sizeof(arr)); in test_bitmap_arr32() 503 memset(bmap1, 0x5a, sizeof(bmap1)); in test_mem_optimisations() 504 memset(bmap2, 0x5a, sizeof(bmap2)); in test_mem_optimisations()
|
D | test_kasan.c | 425 KUNIT_EXPECT_KASAN_FAIL(test, memset(ptr + 7 + OOB_TAG_OFF, 0, 2)); in kmalloc_oob_memset_2() 437 KUNIT_EXPECT_KASAN_FAIL(test, memset(ptr + 5 + OOB_TAG_OFF, 0, 4)); in kmalloc_oob_memset_4() 450 KUNIT_EXPECT_KASAN_FAIL(test, memset(ptr + 1 + OOB_TAG_OFF, 0, 8)); in kmalloc_oob_memset_8() 462 KUNIT_EXPECT_KASAN_FAIL(test, memset(ptr + 1 + OOB_TAG_OFF, 0, 16)); in kmalloc_oob_memset_16() 474 KUNIT_EXPECT_KASAN_FAIL(test, memset(ptr, 0, size + 5 + OOB_TAG_OFF)); in kmalloc_oob_in_memset() 487 memset((char *)ptr, 0, 64); in kmalloc_memmove_invalid_size() 515 KUNIT_EXPECT_KASAN_FAIL(test, memset(ptr, 0, size)); in kmalloc_uaf_memset() 844 memset(arr, 0, sizeof(arr)); in kasan_memcmp()
|
D | usercopy.c | 26 memset(to + (n - res), 0, res); in _copy_from_user()
|
D | syscall.c | 15 memset(info, 0, sizeof(*info)); in collect_syscall()
|
D | test_blackhole_dev.c | 46 memset(__skb_put(skb, data_len), 0xf, data_len); in test_blackholedev_init()
|
D | scatterlist.c | 126 memset(sgl, 0, sizeof(*sgl) * nents); in sg_init_table() 276 memset(table, 0, sizeof(*table)); in __sg_alloc_table() 758 memset(miter, 0, sizeof(struct sg_mapping_iter)); in sg_miter_start() 1052 memset(miter.addr, 0, len); in sg_zero_buffer()
|
D | bch.c | 262 memset(bch->ecc_buf, 0, r_bytes); in bch_encode() 418 memset(syn, 0, 2*t*sizeof(*syn)); in compute_syndromes() 454 memset(pelp, 0, GF_POLY_SZ(2*t)); in compute_error_locator_polynomial() 455 memset(elp, 0, GF_POLY_SZ(2*t)); in compute_error_locator_polynomial() 875 memset(out, 0, GF_POLY_SZ(f->deg)); in compute_trace_bk_mod() 1156 memset(bch->mod8_tab, 0, 4*256*l*sizeof(*bch->mod8_tab)); in build_mod8_tables() 1200 memset(xi, 0, sizeof(xi)); in build_deg2_base() 1253 memset(roots , 0, (bch->n+1)*sizeof(*roots)); in compute_generator_polynomial()
|
D | test_strscpy.c | 47 memset(buf, POISON, sizeof(buf)); in tc()
|
D | nlattr.c | 576 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in __nla_validate_parse() 737 memset(dst, 0, dstsize); in nla_strlcpy() 786 memset(dest + minlen, 0, count - minlen); in nla_memcpy() 854 memset((unsigned char *) nla + nla->nla_len, 0, nla_padlen(attrlen)); in __nla_reserve()
|
D | test_parman.c | 106 memset(&prio_array[old_count], 0, in test_parman_resize() 121 memset(&prio_array[from_index], 0, ITEM_PTRS_SIZE(count)); in test_parman_move()
|
D | lru_cache.c | 137 memset(p, 0, lc->element_size); in lc_create() 209 memset(lc->lc_slot, 0, sizeof(struct hlist_head) * lc->nr_elements); in lc_reset() 215 memset(p, 0, lc->element_size); in lc_reset()
|
D | string.c | 269 memset(dest + written + 1, 0, count - written - 1); in strscpy_pad() 797 void *memset(void *s, int c, size_t count) in memset() function 805 EXPORT_SYMBOL(memset);
|
D | irq_poll.c | 181 memset(iop, 0, sizeof(*iop)); in irq_poll_init()
|
/lib/zlib_dfltcc/ |
D | dfltcc.c | 41 memset(&dfltcc_state->af, 0, sizeof(dfltcc_state->af)); in dfltcc_reset() 44 memset(&dfltcc_state->param, 0, sizeof(dfltcc_state->param)); in dfltcc_reset()
|
D | dfltcc_inflate.c | 61 memset(&dfltcc_state->af, 0, sizeof(dfltcc_state->af)); in dfltcc_inflate_disable()
|
/lib/raid6/test/ |
D | test.c | 56 memset(recovi, 0xf0, PAGE_SIZE); in test_disks() 57 memset(recovj, 0xba, PAGE_SIZE); in test_disks() 112 memset(data[NDISKS-2], 0xee, 2*PAGE_SIZE); in main()
|
/lib/reed_solomon/ |
D | test_rslib.c | 169 memset(c + dlen, 0, nroots * sizeof(*c)); in get_rcw_we() 174 memset(errlocs, 0, len * sizeof(*errlocs)); in get_rcw_we() 175 memset(derrlocs, 0, nroots * sizeof(*derrlocs)); in get_rcw_we() 395 memset(corr, 0, nroots * sizeof(*corr)); in test_bc()
|
/lib/xz/ |
D | xz_private.h | 41 # define memzero(buf, size) memset(buf, 0, size)
|
/lib/crypto/ |
D | poly1305.c | 67 memset(desc->buf + desc->buflen, 0, in poly1305_final_generic()
|
/lib/zstd/ |
D | huf_compress.c | 320 memset(rankLast, 0xF0, sizeof(rankLast)); in HUF_setMaxHeight() 394 memset(rank, 0, sizeof(rank)); in HUF_sort() 436 memset(huffNode0, 0, sizeof(huffNodeTable)); in HUF_buildCTable_wksp() 719 memset(CTable + maxSymbolValue + 1, 0, CTableSize - (maxSymbolValue + 1) * sizeof(HUF_CElt)); in HUF_compress_internal()
|
D | fse_compress.c | 331 memset(count, 0, (maxSymbolValue + 1) * sizeof(*count)); in FSE_count_simple() 369 memset(Counting1, 0, 4 * 256 * sizeof(unsigned)); in FSE_count_parallel_wksp() 373 memset(count, 0, maxSymbolValue + 1); in FSE_count_parallel_wksp()
|