/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 | 87 memset(&var.four, 0, \ 108 memset(&zero, 0x00, sizeof(zero)); \ 110 memset(check_buf, 0x00, sizeof(check_buf)); \ 122 memset(check_buf, 0x00, sizeof(check_buf)); \ 174 memset(buf, (char)(sp & 0xff), sizeof(buf)); \ 179 memset(fill_start, \ 295 memset(fill_start, forced_mask | 0x55, fill_size); in __leaf_switch_none() 306 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_bitmap.c | 117 memset(bmap, 0xff, 128); in test_zero_clear() 146 memset(bmap, 0x00, 128); in test_fill_set() 350 memset(arr, 0xa5, sizeof(arr)); in test_bitmap_arr32() 378 memset(bmap1, 0x5a, sizeof(bmap1)); in test_mem_optimisations() 379 memset(bmap2, 0x5a, sizeof(bmap2)); in test_mem_optimisations()
|
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_kasan.c | 217 memset(ptr+7, 0, 2); in kmalloc_oob_memset_2() 233 memset(ptr+5, 0, 4); in kmalloc_oob_memset_4() 250 memset(ptr+1, 0, 8); in kmalloc_oob_memset_8() 266 memset(ptr+1, 0, 16); in kmalloc_oob_memset_16() 282 memset(ptr, 0, size+5); in kmalloc_oob_in_memset() 315 memset(ptr, 0, size); in kmalloc_uaf_memset() 620 memset(arr, 0, sizeof(arr)); in kasan_memcmp()
|
D | syscall.c | 14 memset(info, 0, sizeof(*info)); in collect_syscall()
|
D | usercopy.c | 17 memset(to + (n - res), 0, res); in _copy_from_user()
|
D | test_blackhole_dev.c | 46 memset(__skb_put(skb, data_len), 0xf, data_len); in test_blackholedev_init()
|
D | nlattr.c | 367 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in __nla_validate_parse() 527 memset(dst, 0, dstsize); in nla_strlcpy() 576 memset(dest + minlen, 0, count - minlen); in nla_memcpy() 644 memset((unsigned char *) nla + nla->nla_len, 0, nla_padlen(attrlen)); in __nla_reserve()
|
D | scatterlist.c | 126 memset(sgl, 0, sizeof(*sgl) * nents); in sg_init_table() 276 memset(table, 0, sizeof(*table)); in __sg_alloc_table() 677 memset(miter, 0, sizeof(struct sg_mapping_iter)); in sg_miter_start() 971 memset(miter.addr, 0, len); in sg_zero_buffer()
|
D | bch.c | 211 memset(bch->ecc_buf, 0, r_bytes); in encode_bch() 361 memset(syn, 0, 2*t*sizeof(*syn)); in compute_syndromes() 397 memset(pelp, 0, GF_POLY_SZ(2*t)); in compute_error_locator_polynomial() 398 memset(elp, 0, GF_POLY_SZ(2*t)); in compute_error_locator_polynomial() 818 memset(out, 0, GF_POLY_SZ(f->deg)); in compute_trace_bk_mod() 1097 memset(bch->mod8_tab, 0, 4*256*l*sizeof(*bch->mod8_tab)); in build_mod8_tables() 1141 memset(xi, 0, sizeof(xi)); in build_deg2_base() 1194 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 | 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() 740 void *memset(void *s, int c, size_t count) in memset() function 748 EXPORT_SYMBOL(memset);
|
D | irq_poll.c | 181 memset(iop, 0, sizeof(*iop)); in irq_poll_init()
|
D | checksum.c | 159 memset(dst + len - missing, 0, missing); in csum_partial_copy_from_user()
|
D | digsig.c | 162 memset(out1, 0, head); in digsig_verify_rsa()
|
/lib/raid6/test/ |
D | test.c | 57 memset(recovi, 0xf0, PAGE_SIZE); in test_disks() 58 memset(recovj, 0xba, PAGE_SIZE); in test_disks() 113 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/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()
|
D | entropy_common.c | 203 memset(rankStats, 0, (HUF_TABLELOG_MAX + 1) * sizeof(U32)); in HUF_readStats_wksp()
|