Home
last modified time | relevance | path

Searched refs:memcpy (Results 1 – 25 of 54) sorted by relevance

123

/lib/
Dchacha.c80 memcpy(x, state, 64); in chacha_block()
106 memcpy(x, in, 64); in hchacha_block()
110 memcpy(&out[0], &x[0], 16); in hchacha_block()
111 memcpy(&out[4], &x[12], 16); in hchacha_block()
Dxxhash.c81 memcpy(dst, src, sizeof(*dst)); in xxh32_copy_state()
87 memcpy(dst, src, sizeof(*dst)); in xxh64_copy_state()
252 memcpy(statePtr, &state, sizeof(state)); in xxh32_reset()
266 memcpy(statePtr, &state, sizeof(state)); in xxh64_reset()
282 memcpy((uint8_t *)(state->mem32) + state->memsize, input, len); in xxh32_update()
290 memcpy((uint8_t *)(state->mem32) + state->memsize, input, in xxh32_update()
331 memcpy(state->mem32, p, (size_t)(b_end-p)); in xxh32_update()
388 memcpy(((uint8_t *)state->mem64) + state->memsize, input, len); in xxh64_update()
396 memcpy(((uint8_t *)p64) + state->memsize, input, in xxh64_update()
436 memcpy(state->mem64, p, (size_t)(b_end-p)); in xxh64_update()
Dtest-string_helpers.c80 memcpy(&in[p], s, len); in test_string_unescape()
88 memcpy(&out_test[q_test], s, len); in test_string_unescape()
95 memcpy(out_real, in, p); in test_string_unescape()
307 memcpy(&in[p], s2->in, len); in test_string_escape()
312 memcpy(&out_test[q_test], out, len); in test_string_escape()
Dnlattr.c528 memcpy(dst, src, len); in nla_strlcpy()
552 memcpy(dst, src, srclen); in nla_strdup()
574 memcpy(dest, nla_data(src), minlen); in nla_memcpy()
776 memcpy(nla_data(nla), data, attrlen); in __nla_put()
797 memcpy(nla_data(nla), data, attrlen); in __nla_put_64bit()
815 memcpy(start, data, attrlen); in __nla_put_nohdr()
Dtest_user_copy.c131 memcpy(expected, umem_src, ksize); in test_copy_struct_from_user()
143 memcpy(expected, umem_src, usize); in test_copy_struct_from_user()
164 memcpy(expected, umem_src, ksize); in test_copy_struct_from_user()
Ddecompress_unlzo.c164 memcpy(in_buf_save, in_buf, in_len); in unlzo()
233 memcpy(out_buf, in_buf, src_len); in unlzo()
Dtest_stackinit.c188 memcpy(check_buf, target_start, target_size); \
297 memcpy(check_buf, target_start, target_size); in __leaf_switch_none()
308 memcpy(check_buf, target_start, target_size); in __leaf_switch_none()
Dseq_buf.c151 memcpy(s->buffer + s->len, str, len); in seq_buf_puts()
198 memcpy(s->buffer + s->len, mem, len); in seq_buf_putmem()
Dstring.c147 memcpy(dest, src, len); in strlcpy()
344 memcpy(dest, src, len); in strlcat()
827 void *memcpy(void *dest, const void *src, size_t count) in memcpy() function
836 EXPORT_SYMBOL(memcpy);
Dkfifo.c104 memcpy(fifo->data + off, src, l); in kfifo_copy_in()
105 memcpy(fifo->data, src + l, len - l); in kfifo_copy_in()
143 memcpy(dst, fifo->data + off, l); in kfifo_copy_out()
144 memcpy(dst + l, fifo->data, len - l); in kfifo_copy_out()
Dtest_meminit.c227 memcpy(buf_copy, buf, size); in do_kmem_cache_size()
274 memcpy(buf_contents, buf, size); in do_kmem_cache_rcu_persistent()
Dchecksum.c174 memcpy(dst, src, len); in csum_partial_copy()
Dts_kmp.c113 memcpy(kmp->pattern, pattern, len); in kmp_init()
Dobjagg.c374 memcpy(objagg_obj->obj, obj, objagg->ops->obj_size); in objagg_obj_create()
617 memcpy(&objagg_stats->stats_info[i].stats, &objagg_obj->stats, in objagg_stats_get()
660 memcpy(hnode->obj, &objagg_obj->obj, obj_size); in objagg_hints_node_create()
1036 memcpy(&objagg_stats->stats_info[i], &hnode->stats_info, in objagg_hints_stats_get()
Dbch.c150 memcpy(pad, src, BCH_ECC_BYTES(bch)-4*nwords); in load_ecc8()
173 memcpy(dst, pad, BCH_ECC_BYTES(bch)-4*nwords); in store_ecc8()
228 memcpy(r, bch->ecc_buf, r_bytes); in encode_bch()
254 memcpy(bch->ecc_buf, r, r_bytes); in encode_bch()
383 memcpy(dst, src, GF_POLY_SZ(src->deg)); in gf_poly_copy()
766 memcpy(q->c, &a->c[b->deg], (1+q->deg)*sizeof(unsigned int)); in gf_poly_div()
Dparser.c305 memcpy(dest, src->from, len); in match_strlcpy()
/lib/lz4/
Dlz4_decompress.c153 memcpy(op, ip, endOnInput ? 16 : 8); in LZ4_decompress_generic()
172 memcpy(op + 0, match + 0, 8); in LZ4_decompress_generic()
173 memcpy(op + 8, match + 8, 8); in LZ4_decompress_generic()
174 memcpy(op + 16, match + 16, 2); in LZ4_decompress_generic()
263 memcpy(op, ip, length); in LZ4_decompress_generic()
350 memcpy(op, dictEnd - copySize, copySize); in LZ4_decompress_generic()
360 memcpy(op, lowPrefix, restSize); in LZ4_decompress_generic()
386 memcpy(op, match, mlen); in LZ4_decompress_generic()
400 memcpy(op + 4, match, 4); in LZ4_decompress_generic()
/lib/zstd/
Dhuf_decompress.c77 memcpy(&dtd, table, sizeof(dtd)); in HUF_getDTableDesc()
126 memcpy(DTable, &dtd, sizeof(dtd)); in HUF_readDTableX2_wksp()
401 memcpy(rankVal, rankValOrigin, sizeof(rankVal)); in HUF_fillDTableX4Level2()
448 memcpy(rankVal, rankValOrigin, sizeof(rankVal)); in HUF_fillDTableX4()
591 memcpy(DTable, &dtd, sizeof(dtd)); in HUF_readDTableX4_wksp()
598 memcpy(op, dt + val, 2); in HUF_decodeSymbolX4()
606 memcpy(op, dt + val, 1); in HUF_decodeLastSymbolX4()
909 memcpy(dst, cSrc, dstSize); in HUF_decompress4X_DCtx_wksp()
947 memcpy(dst, cSrc, dstSize); in HUF_decompress1X_DCtx_wksp()
Ddecompress.c52 static void ZSTD_copy4(void *dst, const void *src) { memcpy(dst, src, 4); } in ZSTD_copy4()
118 memcpy(dctx->entropy.rep, repStartValue, sizeof(repStartValue)); /* initial repcodes */ in ZSTD_decompressBegin()
136 memcpy(&dctx->customMem, &customMem, sizeof(customMem)); in ZSTD_createDCtx_advanced()
158 memcpy(dstDCtx, srcDCtx, sizeof(ZSTD_DCtx) - workSpaceSize); /* no need to copy workspace */ in ZSTD_copyDCtx()
416 memcpy(dst, src, srcSize); in ZSTD_copyRawBlock()
525 memcpy(dctx->litBuffer, istart + lhSize, litSize); in ZSTD_decodeLiteralsBlock()
1156 memcpy(op, litPtr, lastLLSize); in ZSTD_decompressSequences()
1438 memcpy(op, litPtr, lastLLSize); in ZSTD_decompressSequencesLong()
1756 memcpy(dctx->headerBuffer, src, ZSTD_frameHeaderSize_prefix); in ZSTD_decompressContinue()
1764 memcpy(dctx->headerBuffer, src, ZSTD_frameHeaderSize_prefix); in ZSTD_decompressContinue()
[all …]
/lib/mpi/
Dmpiutil.c97 memcpy(p, a->d, a->alloced * sizeof(mpi_limb_t)); in mpi_resize()
/lib/xz/
Dxz_dec_bcj.c404 memcpy(b->out + b->out_pos, s->temp.buf, copy_size); in bcj_flush()
451 memcpy(b->out + b->out_pos, s->temp.buf, s->temp.size); in xz_dec_bcj_run()
471 memcpy(s->temp.buf, b->out + b->out_pos, s->temp.size); in xz_dec_bcj_run()
Dxz_dec_lzma2.c390 memcpy(dict->buf + dict->pos, b->in + b->in_pos, copy_size); in dict_uncompressed()
400 memcpy(b->out + b->out_pos, b->in + b->in_pos, in dict_uncompressed()
424 memcpy(b->out + b->out_pos, dict->buf + dict->start, in dict_flush()
859 memcpy(s->temp.buf + s->temp.size, b->in + b->in_pos, tmp); in lzma2_lzma()
919 memcpy(s->temp.buf, b->in + b->in_pos, in_avail); in lzma2_lzma()
/lib/zlib_inflate/
Dinflate.c111 memcpy(state->window, strm->next_out - state->wsize, state->wsize); in zlib_updatewindow()
118 memcpy(state->window + state->write, strm->next_out - copy, dist); in zlib_updatewindow()
121 memcpy(state->window, strm->next_out - copy, copy); in zlib_updatewindow()
441 memcpy(put, next, copy); in zlib_inflate()
/lib/reed_solomon/
Ddecode_rs.c177 memcpy(lambda, t, (nroots + 1) * sizeof(t[0]));
198 memcpy(&reg[1], &lambda[1], nroots * sizeof(reg[0]));
/lib/842/
D842_decompress.c205 memcpy(p->out, &p->ostart[offset], size); in __do_index()
319 memcpy(p.out, p.out - 8, 8); in sw842_decompress()

123