Home
last modified time | relevance | path

Searched refs:memset (Results 1 – 25 of 64) sorted by relevance

123

/lib/
Dtest_user_copy.c81 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 …]
Dtest_stackinit.c108 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()
Dtest_hexdump.c133 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()
Dtest_string.c18 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()
Dtest_bitmap.c180 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()
Dtest_kasan.c425 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()
Dusercopy.c26 memset(to + (n - res), 0, res); in _copy_from_user()
Dsyscall.c15 memset(info, 0, sizeof(*info)); in collect_syscall()
Dtest_blackhole_dev.c46 memset(__skb_put(skb, data_len), 0xf, data_len); in test_blackholedev_init()
Dscatterlist.c126 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()
Dbch.c262 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()
Dtest_strscpy.c47 memset(buf, POISON, sizeof(buf)); in tc()
Dnlattr.c576 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()
Dtest_parman.c106 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()
Dlru_cache.c137 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()
Dstring.c269 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);
Dirq_poll.c181 memset(iop, 0, sizeof(*iop)); in irq_poll_init()
/lib/zlib_dfltcc/
Ddfltcc.c41 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()
Ddfltcc_inflate.c61 memset(&dfltcc_state->af, 0, sizeof(dfltcc_state->af)); in dfltcc_inflate_disable()
/lib/raid6/test/
Dtest.c56 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/
Dtest_rslib.c169 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/
Dxz_private.h41 # define memzero(buf, size) memset(buf, 0, size)
/lib/crypto/
Dpoly1305.c67 memset(desc->buf + desc->buflen, 0, in poly1305_final_generic()
/lib/zstd/
Dhuf_compress.c320 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()
Dfse_compress.c331 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()

123