Home
last modified time | relevance | path

Searched refs:memset (Results 1 – 25 of 66) 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.c127 #define ZERO_CLONE_SCALAR(zero) memset(&(zero), 0x00, sizeof(zero))
128 #define ZERO_CLONE_STRING(zero) memset(&(zero), 0x00, sizeof(zero))
135 memset(&(zero), 0xFF, sizeof(zero)); \
216 memset(check_buf, 0x00, sizeof(check_buf)); \
228 memset(check_buf, 0x00, sizeof(check_buf)); \
282 memset(buf, (char)(sp & 0xff), sizeof(buf)); \
287 memset(fill_start, \
410 memset(fill_start, forced_mask | 0x55, fill_size); in __leaf_switch_none()
421 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()
Dcmdline_kunit.c114 memset(r, 0, sizeof(r)); in cmdline_do_one_range_test()
121 memset(r, 0, sizeof(r)); in cmdline_do_one_range_test()
Dtest_bitmap.c198 memset(bmap, 0xff, 128); in test_zero_clear()
227 memset(bmap, 0x00, 128); in test_fill_set()
532 memset(arr, 0xa5, sizeof(arr)); in test_bitmap_arr32()
560 memset(bmap1, 0x5a, sizeof(bmap1)); in test_mem_optimisations()
561 memset(bmap2, 0x5a, sizeof(bmap2)); in test_mem_optimisations()
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()
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()
Dscatterlist.c126 memset(sgl, 0, sizeof(*sgl) * nents); in sg_init_table()
292 memset(table, 0, sizeof(*table)); in __sg_alloc_table()
789 memset(miter, 0, sizeof(struct sg_mapping_iter)); in sg_miter_start()
1082 memset(miter.addr, 0, len); in sg_zero_buffer()
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.c138 memset(p, 0, lc->element_size); in lc_create()
210 memset(lc->lc_slot, 0, sizeof(struct hlist_head) * lc->nr_elements); in lc_reset()
216 memset(p, 0, lc->element_size); in lc_reset()
Dstring.c269 memset(dest + written + 1, 0, count - written - 1); in strscpy_pad()
795 void *memset(void *s, int c, size_t count) in memset() function
803 EXPORT_SYMBOL(memset);
Dnlattr.c576 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in __nla_validate_parse()
751 memset(dst + len, 0, dstsize - len); in nla_strscpy()
798 memset(dest + minlen, 0, count - minlen); in nla_memcpy()
866 memset((unsigned char *) nla + nla->nla_len, 0, nla_padlen(attrlen)); in __nla_reserve()
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/crypto/
Dblake2s.c52 memset(state->buf + state->buflen, 0, in blake2s_final()
Dpoly1305.c67 memset(desc->buf + desc->buflen, 0, in poly1305_final_generic()
/lib/xz/
Dxz_private.h44 # define memzero(buf, size) memset(buf, 0, size)
/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()
720 memset(CTable + maxSymbolValue + 1, 0, CTableSize - (maxSymbolValue + 1) * sizeof(HUF_CElt)); in HUF_compress_internal()

123