Home
last modified time | relevance | path

Searched refs:cpy (Results 1 – 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/lib/lz4/
Dlz4_decompress.c88 BYTE *cpy; in LZ4_decompress_generic() local
221 cpy = op + length; in LZ4_decompress_generic()
224 if (((endOnInput) && ((cpy > oend - MFLIMIT) in LZ4_decompress_generic()
226 || ((!endOnInput) && (cpy > oend - WILDCOPYLENGTH))) { in LZ4_decompress_generic()
228 if (cpy > oend) { in LZ4_decompress_generic()
233 cpy = oend; in LZ4_decompress_generic()
247 && (cpy != oend)) { in LZ4_decompress_generic()
257 || (cpy > oend))) { in LZ4_decompress_generic()
279 if (!partialDecoding || (cpy == oend) || (ip >= (iend - 2))) in LZ4_decompress_generic()
283 LZ4_wildCopy(op, ip, cpy); in LZ4_decompress_generic()
[all …]
/kernel/linux/linux-5.10/tools/lib/perf/
Dmmap.c223 unsigned int len = min(sizeof(*event), size), cpy; in perf_mmap__read() local
227 cpy = min(map->mask + 1 - (offset & map->mask), len); in perf_mmap__read()
228 memcpy(dst, &data[offset & map->mask], cpy); in perf_mmap__read()
229 offset += cpy; in perf_mmap__read()
230 dst += cpy; in perf_mmap__read()
231 len -= cpy; in perf_mmap__read()
/kernel/liteos_a/syscall/
Dsyscall_pub.h111 __typeof(*ptr) ptr##cpy = {0}, *ptr##bak = ptr; \
113 if (LOS_ArchCopyFromUser((void*)&ptr##cpy, ptr##bak, sizeof(*ptr##bak)) != 0) { \
117 ptr = &ptr##cpy; \
168 __typeof(*ptr##_NONCONST) ptr##arr##cpy = ptr##cpybak, ptr##arr##cpybak = ptr##cpybak; \
169 __typeof(ptr##_NONCONST) ptr##arr = ptr ? &ptr##arr##cpy : NULL, ptr##arr##_NONCONST = NULL; \
211 NonConstType *ptr##_NONCONST = NULL, ptr##cpybak = ptr##cpy; \
216 __typeof(*ptr) *ptr##_NONCONST = NULL, ptr##cpybak = ptr##cpy;
/kernel/linux/linux-5.10/net/tipc/
Dmsg.c211 int mlen, cpy, rem = dlen; in tipc_msg_append() local
235 cpy = min_t(size_t, rem, mss - mlen); in tipc_msg_append()
236 if (cpy != copy_from_iter(skb->data + mlen, cpy, &m->msg_iter)) in tipc_msg_append()
238 msg_set_size(hdr, mlen + cpy); in tipc_msg_append()
239 skb_put(skb, cpy); in tipc_msg_append()
240 rem -= cpy; in tipc_msg_append()
677 bool tipc_msg_skb_clone(struct sk_buff_head *msg, struct sk_buff_head *cpy) in tipc_msg_skb_clone() argument
684 __skb_queue_purge(cpy); in tipc_msg_skb_clone()
688 __skb_queue_tail(cpy, _skb); in tipc_msg_skb_clone()
798 struct sk_buff_head *cpy) in tipc_msg_pskb_copy() argument
[all …]
Dmsg.h1202 struct sk_buff_head *cpy);
1205 bool tipc_msg_skb_clone(struct sk_buff_head *msg, struct sk_buff_head *cpy);
/kernel/linux/linux-5.10/fs/
Dfile.c57 unsigned int cpy, set; in copy_fd_bitmaps() local
59 cpy = count / BITS_PER_BYTE; in copy_fd_bitmaps()
61 memcpy(nfdt->open_fds, ofdt->open_fds, cpy); in copy_fd_bitmaps()
62 memset((char *)nfdt->open_fds + cpy, 0, set); in copy_fd_bitmaps()
63 memcpy(nfdt->close_on_exec, ofdt->close_on_exec, cpy); in copy_fd_bitmaps()
64 memset((char *)nfdt->close_on_exec + cpy, 0, set); in copy_fd_bitmaps()
66 cpy = BITBIT_SIZE(count); in copy_fd_bitmaps()
67 set = BITBIT_SIZE(nfdt->max_fds) - cpy; in copy_fd_bitmaps()
68 memcpy(nfdt->full_fds_bits, ofdt->full_fds_bits, cpy); in copy_fd_bitmaps()
69 memset((char *)nfdt->full_fds_bits + cpy, 0, set); in copy_fd_bitmaps()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/go7007/
Dsnd-go7007.c78 int cpy = runtime->dma_bytes - gosnd->w_idx; in parse_audio_stream_data() local
80 memcpy(runtime->dma_area + gosnd->w_idx, buf, cpy); in parse_audio_stream_data()
81 length -= cpy; in parse_audio_stream_data()
82 buf += cpy; in parse_audio_stream_data()
/kernel/linux/linux-5.10/drivers/infiniband/ulp/rtrs/
Drtrs.c424 char *cpy; in rtrs_str_to_sockaddr() local
428 cpy = kstrndup(addr + 3, len - 3, GFP_KERNEL); in rtrs_str_to_sockaddr()
429 err = cpy ? inet_pton_with_scope(&init_net, AF_UNSPEC, in rtrs_str_to_sockaddr()
430 cpy, port_str, dst) : -ENOMEM; in rtrs_str_to_sockaddr()
431 kfree(cpy); in rtrs_str_to_sockaddr()
/kernel/linux/linux-5.10/drivers/tty/serial/
Dsunhv.c449 unsigned int cpy = fill_con_write_page(s, n, in sunhv_console_write_paged() local
452 n -= cpy; in sunhv_console_write_paged()
453 s += cpy; in sunhv_console_write_paged()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
Dsh_css_params.c3154 ia_css_ptr cpy; in ia_css_dequeue_param_buffers() local
3169 cpy = (ia_css_ptr)0; in ia_css_dequeue_param_buffers()
3172 (uint32_t *)&cpy) == 0) { in ia_css_dequeue_param_buffers()
3182 IA_CSS_LOG("dequeued param set %x from %d, release ref", cpy, 0); in ia_css_dequeue_param_buffers()
3183 free_ia_css_isp_parameter_set_info(cpy); in ia_css_dequeue_param_buffers()
3184 cpy = (ia_css_ptr)0; in ia_css_dequeue_param_buffers()
3232 ia_css_ptr cpy; in sh_css_param_update_isp_params() local
3365 err = write_ia_css_isp_parameter_set_info_to_ddr(&isp_params_info, &cpy); in sh_css_param_update_isp_params()
3370 IA_CSS_LOG("queue param set %x to %d", cpy, thread_id); in sh_css_param_update_isp_params()
3372 err = ia_css_bufq_enqueue_buffer(thread_id, queue_id, (uint32_t)cpy); in sh_css_param_update_isp_params()
[all …]
/kernel/linux/linux-5.10/lib/
DKconfig.ubsan47 to the {str,mem}*cpy() family of functions (that is addressed
/kernel/linux/patches/linux-5.10/unionpi_tiger_pacth/
Dlinux-5.10.patch47814 +static int _verify_key_checksum(struct mmc_card *mmc, void *addr, int cpy)
47824 + blk = (blk >> bit) + cpy;
47838 + memcpy(&key_infos[cpy], checksum_info, sizeof(struct aml_key_info));
47840 + pr_info("calc %llx, store %llx\n", checksum, key_infos[cpy].checksum);
47843 + return !(checksum == key_infos[cpy].checksum);
47892 + int cpy = 1;
47899 + while (cpy >= 0) {
47902 + + cpy * EMMC_KEYAREA_SIZE) >> bit;
47907 + ret = _verify_key_checksum(mmc, addr, cpy);
47908 + if (!ret && key_infos[cpy].magic != 0)
[all …]
/kernel/linux/linux-5.10/arch/arm/
DKconfig1612 bool "Use kernel mem{cpy,set}() for {copy_to,clear}_user()"