Home
last modified time | relevance | path

Searched refs:copied (Results 1 – 25 of 417) sorted by relevance

12345678910>>...17

/linux-6.6.21/drivers/char/hw_random/
Darm_smccc_trng.c39 unsigned int chunk, copied; in copy_from_registers() local
46 copied = chunk; in copy_from_registers()
47 if (copied >= bytes) in copy_from_registers()
48 return copied; in copy_from_registers()
50 chunk = min((bytes - copied), sizeof(long)); in copy_from_registers()
51 memcpy(&buf[copied], &res->a2, chunk); in copy_from_registers()
52 copied += chunk; in copy_from_registers()
53 if (copied >= bytes) in copy_from_registers()
54 return copied; in copy_from_registers()
56 chunk = min((bytes - copied), sizeof(long)); in copy_from_registers()
[all …]
/linux-6.6.21/net/ipv4/
Dtcp_bpf.c17 int copied; in tcp_eat_skb() local
26 copied = tcp->copied_seq + skb->len; in tcp_eat_skb()
27 WRITE_ONCE(tcp->copied_seq, copied); in tcp_eat_skb()
37 u32 size, copied = 0; in bpf_tcp_ingress() local
53 if (!copied) in bpf_tcp_ingress()
60 copied += size; in bpf_tcp_ingress()
228 int copied = 0; in tcp_bpf_recvmsg_parser() local
256 copied = -EAGAIN; in tcp_bpf_recvmsg_parser()
262 copied = sk_msg_recvmsg(sk, psock, msg, len, flags); in tcp_bpf_recvmsg_parser()
268 if (copied == -EFAULT) { in tcp_bpf_recvmsg_parser()
[all …]
Dudp_bpf.c66 int copied, ret; in udp_bpf_recvmsg() local
84 copied = sk_msg_recvmsg(sk, psock, msg, len, flags); in udp_bpf_recvmsg()
85 if (!copied) { in udp_bpf_recvmsg()
97 copied = -EAGAIN; in udp_bpf_recvmsg()
99 ret = copied; in udp_bpf_recvmsg()
/linux-6.6.21/arch/s390/mm/
Dmaccess.c68 long copied; in s390_kernel_write() local
72 copied = s390_kernel_write_odd(tmp, src, size); in s390_kernel_write()
73 tmp += copied; in s390_kernel_write()
74 src += copied; in s390_kernel_write()
75 size -= copied; in s390_kernel_write()
84 size_t len, copied, res = 0; in memcpy_real_iter() local
102 copied = copy_to_iter(chunk, len, iter); in memcpy_real_iter()
105 count -= copied; in memcpy_real_iter()
106 src += copied; in memcpy_real_iter()
107 res += copied; in memcpy_real_iter()
[all …]
/linux-6.6.21/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_io.c1018 int copied = 0; in chtls_sendmsg() local
1197 copied += copy; in chtls_sendmsg()
1222 if (copied) in chtls_sendmsg()
1226 return copied; in chtls_sendmsg()
1234 if (copied) in chtls_sendmsg()
1239 copied = sk_stream_error(sk, flags, err); in chtls_sendmsg()
1312 static void chtls_cleanup_rbuf(struct sock *sk, int copied) in chtls_cleanup_rbuf() argument
1351 int copied = 0; in chtls_pt_recvmsg() local
1362 chtls_cleanup_rbuf(sk, copied); in chtls_pt_recvmsg()
1370 if (copied) in chtls_pt_recvmsg()
[all …]
/linux-6.6.21/drivers/crypto/bcm/
Dutil.c53 size_t copied; in sg_copy_part_to_buf() local
56 copied = sg_pcopy_to_buffer(src, nents, dest, len, skip); in sg_copy_part_to_buf()
57 if (copied != len) { in sg_copy_part_to_buf()
59 __func__, (u32)copied, len); in sg_copy_part_to_buf()
72 size_t copied; in sg_copy_part_from_buf() local
75 copied = sg_pcopy_from_buffer(dest, nents, src, len, skip); in sg_copy_part_from_buf()
76 if (copied != len) { in sg_copy_part_from_buf()
78 __func__, (u32)copied, len); in sg_copy_part_from_buf()
145 u32 copied = 0; /* number of bytes copied so far */ in spu_msg_sg_add() local
153 frag_len = min(entry_len, length - copied); in spu_msg_sg_add()
[all …]
/linux-6.6.21/samples/kfifo/
Dinttype-example.c110 unsigned int copied; in fifo_write() local
115 ret = kfifo_from_user(&test, buf, count, &copied); in fifo_write()
121 return copied; in fifo_write()
128 unsigned int copied; in fifo_read() local
133 ret = kfifo_to_user(&test, buf, count, &copied); in fifo_read()
139 return copied; in fifo_read()
Drecord-example.c124 unsigned int copied; in fifo_write() local
129 ret = kfifo_from_user(&test, buf, count, &copied); in fifo_write()
135 return copied; in fifo_write()
142 unsigned int copied; in fifo_read() local
147 ret = kfifo_to_user(&test, buf, count, &copied); in fifo_read()
153 return copied; in fifo_read()
Dbytestream-example.c117 unsigned int copied; in fifo_write() local
122 ret = kfifo_from_user(&test, buf, count, &copied); in fifo_write()
128 return copied; in fifo_write()
135 unsigned int copied; in fifo_read() local
140 ret = kfifo_to_user(&test, buf, count, &copied); in fifo_read()
146 return copied; in fifo_read()
/linux-6.6.21/crypto/
Dcurve25519-generic.c30 int copied, nbytes; in curve25519_compute_value() local
34 copied = sg_copy_to_buffer(req->src, in curve25519_compute_value()
38 if (copied != CURVE25519_KEY_SIZE) in curve25519_compute_value()
49 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in curve25519_compute_value()
52 if (copied != nbytes) in curve25519_compute_value()
/linux-6.6.21/fs/
Dkernel_read_file.c40 ssize_t copied; in kernel_read_file() local
87 copied = 0; in kernel_read_file()
88 while (copied < buf_size) { in kernel_read_file()
90 size_t wanted = min_t(size_t, buf_size - copied, in kernel_read_file()
93 bytes = kernel_read(file, *buf + copied, wanted, &pos); in kernel_read_file()
101 copied += bytes; in kernel_read_file()
123 return ret == 0 ? copied : ret; in kernel_read_file()
/linux-6.6.21/drivers/staging/vme_user/
Dvme_user.c122 ssize_t copied = 0; in resource_to_user() local
127 copied = vme_master_read(image[minor].resource, image[minor].kern_buf, in resource_to_user()
129 if (copied < 0) in resource_to_user()
130 return (int)copied; in resource_to_user()
132 if (copy_to_user(buf, image[minor].kern_buf, (unsigned long)copied)) in resource_to_user()
135 return copied; in resource_to_user()
296 unsigned long copied; in vme_user_ioctl() local
306 copied = copy_from_user(&irq_req, argp, in vme_user_ioctl()
308 if (copied) { in vme_user_ioctl()
332 copied = copy_to_user(argp, &master, in vme_user_ioctl()
[all …]
/linux-6.6.21/lib/
Dkfifo.c177 unsigned int *copied) in kfifo_copy_from_user() argument
205 *copied = len - ret * esize; in kfifo_copy_from_user()
211 unsigned long len, unsigned int *copied) in __kfifo_from_user() argument
225 ret = kfifo_copy_from_user(fifo, from, len, fifo->in, copied); in __kfifo_from_user()
237 unsigned int len, unsigned int off, unsigned int *copied) in kfifo_copy_to_user() argument
265 *copied = len - ret * esize; in kfifo_copy_to_user()
271 unsigned long len, unsigned int *copied) in __kfifo_to_user() argument
284 ret = kfifo_copy_to_user(fifo, to, len, fifo->out, copied); in __kfifo_to_user()
500 unsigned long len, unsigned int *copied, size_t recsize) in __kfifo_from_user_r() argument
507 *copied = 0; in __kfifo_from_user_r()
[all …]
/linux-6.6.21/drivers/scsi/
Dlibiscsi_tcp.c169 segment->copied = 0; in iscsi_tcp_segment_splice_digest()
192 unsigned copied) in iscsi_tcp_segment_done() argument
198 segment->copied, copied, segment->size, in iscsi_tcp_segment_done()
200 if (segment->hash && copied) { in iscsi_tcp_segment_done()
209 sg_set_page(&sg, sg_page(segment->sg), copied, in iscsi_tcp_segment_done()
210 segment->copied + segment->sg_offset + in iscsi_tcp_segment_done()
213 sg_init_one(&sg, segment->data + segment->copied, in iscsi_tcp_segment_done()
214 copied); in iscsi_tcp_segment_done()
215 ahash_request_set_crypt(segment->hash, &sg, NULL, copied); in iscsi_tcp_segment_done()
219 segment->copied += copied; in iscsi_tcp_segment_done()
[all …]
/linux-6.6.21/fs/iomap/
Ddirect-io.c288 size_t copied = 0; in iomap_dio_bio_iter() local
374 iov_iter_revert(dio->submit.iter, copied); in iomap_dio_bio_iter()
375 copied = ret = 0; in iomap_dio_bio_iter()
408 copied += n; in iomap_dio_bio_iter()
437 iov_iter_reexpand(dio->submit.iter, orig_count - copied); in iomap_dio_bio_iter()
438 if (copied) in iomap_dio_bio_iter()
439 return copied; in iomap_dio_bio_iter()
462 size_t copied; in iomap_dio_inline_iter() local
472 copied = copy_from_iter(inline_data, length, iter); in iomap_dio_inline_iter()
473 if (copied) { in iomap_dio_inline_iter()
[all …]
/linux-6.6.21/drivers/media/pci/cobalt/
Dcobalt-omnitek.c158 unsigned copied = 0; in descriptor_list_create() local
194 copy_bytes - copied); in descriptor_list_create()
206 copied += d->bytes; in descriptor_list_create()
231 copied += bytes; in descriptor_list_create()
234 if (copied == copy_bytes) { in descriptor_list_create()
235 while (copied < stride) { in descriptor_list_create()
237 stride - copied); in descriptor_list_create()
238 copied += bytes; in descriptor_list_create()
246 copied = 0; in descriptor_list_create()
/linux-6.6.21/arch/arm/crypto/
Dcurve25519-glue.c70 int copied, nbytes; in curve25519_compute_value() local
74 copied = sg_copy_to_buffer(req->src, in curve25519_compute_value()
78 if (copied != CURVE25519_KEY_SIZE) in curve25519_compute_value()
89 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in curve25519_compute_value()
92 if (copied != nbytes) in curve25519_compute_value()
/linux-6.6.21/net/vmw_vsock/
Dvsock_bpf.c80 int copied; in vsock_bpf_recvmsg() local
93 copied = sk_msg_recvmsg(sk, psock, msg, len, flags); in vsock_bpf_recvmsg()
94 while (copied == 0) { in vsock_bpf_recvmsg()
98 copied = -EAGAIN; in vsock_bpf_recvmsg()
108 copied = sk_msg_recvmsg(sk, psock, msg, len, flags); in vsock_bpf_recvmsg()
114 return copied; in vsock_bpf_recvmsg()
/linux-6.6.21/drivers/s390/char/
Dsclp_ctl.c59 unsigned long copied; in sclp_ctl_ioctl_sccb() local
69 copied = PAGE_SIZE - in sclp_ctl_ioctl_sccb()
72 sizeof(sccb->length) > copied || sccb->length > copied) { in sclp_ctl_ioctl_sccb()
/linux-6.6.21/net/tls/
Dtls_sw.c844 ssize_t *copied, int flags) in bpf_exec_tx_verdict() argument
861 *copied -= sk_msg_free(sk, msg); in bpf_exec_tx_verdict()
890 *copied -= sk_msg_free(sk, msg); in bpf_exec_tx_verdict()
911 *copied -= sk_msg_free_nocharge(sk, &msg_redir); in bpf_exec_tx_verdict()
926 *copied -= (send + delta); in bpf_exec_tx_verdict()
960 size_t copied; in tls_sw_push_pending_record() local
966 copied = msg_pl->sg.size; in tls_sw_push_pending_record()
967 if (!copied) in tls_sw_push_pending_record()
971 &copied, flags); in tls_sw_push_pending_record()
976 ssize_t *copied) in tls_sw_sendmsg_splice() argument
[all …]
/linux-6.6.21/fs/squashfs/
Dsymlink.c43 int bytes, copied; in squashfs_symlink_read_folio() local
71 for (bytes = 0; bytes < length; offset = 0, bytes += copied) { in squashfs_symlink_read_folio()
82 copied = squashfs_copy_data(pageaddr + bytes, entry, offset, in squashfs_symlink_read_folio()
84 if (copied == length - bytes) in squashfs_symlink_read_folio()
/linux-6.6.21/block/partitions/
Daix.c88 int copied = 512; in read_lba() local
93 if (copied > count) in read_lba()
94 copied = count; in read_lba()
95 memcpy(buffer, data, copied); in read_lba()
97 buffer += copied; in read_lba()
98 totalreadcount += copied; in read_lba()
99 count -= copied; in read_lba()
/linux-6.6.21/mm/
Duserfaultfd.c368 long copied; in mfill_atomic_hugetlb() local
388 copied = 0; in mfill_atomic_hugetlb()
494 copied += vma_hpagesize; in mfill_atomic_hugetlb()
508 BUG_ON(copied < 0); in mfill_atomic_hugetlb()
510 BUG_ON(!copied && !err); in mfill_atomic_hugetlb()
511 return copied ? copied : err; in mfill_atomic_hugetlb()
578 long copied; in mfill_atomic() local
593 copied = 0; in mfill_atomic()
716 copied += PAGE_SIZE; in mfill_atomic()
730 BUG_ON(copied < 0); in mfill_atomic()
[all …]
/linux-6.6.21/net/rds/
Dmessage.c391 ssize_t copied; in rds_message_zcopy_from_user() local
393 copied = iov_iter_get_pages2(from, &pages, PAGE_SIZE, in rds_message_zcopy_from_user()
395 if (copied < 0) { in rds_message_zcopy_from_user()
406 length -= copied; in rds_message_zcopy_from_user()
407 sg_set_page(sg, pages, copied, start); in rds_message_zcopy_from_user()
470 int copied; in rds_message_inc_copy_to_user() local
479 copied = 0; in rds_message_inc_copy_to_user()
481 while (iov_iter_count(to) && copied < len) { in rds_message_inc_copy_to_user()
484 to_copy = min_t(unsigned long, to_copy, len - copied); in rds_message_inc_copy_to_user()
493 copied += to_copy; in rds_message_inc_copy_to_user()
[all …]
/linux-6.6.21/fs/erofs/
Dinode.c22 struct erofs_inode_extended *die, *copied = NULL; in erofs_read_inode() local
64 copied = kmalloc(vi->inode_isize, GFP_NOFS); in erofs_read_inode()
65 if (!copied) { in erofs_read_inode()
69 memcpy(copied, dic, gotten); in erofs_read_inode()
75 kfree(copied); in erofs_read_inode()
79 memcpy((u8 *)copied + gotten, kaddr, *ofs); in erofs_read_inode()
80 die = copied; in erofs_read_inode()
119 kfree(copied); in erofs_read_inode()
120 copied = NULL; in erofs_read_inode()
199 kfree(copied); in erofs_read_inode()

12345678910>>...17