Home
last modified time | relevance | path

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

12345678910>>...17

/linux-6.3-rc2/drivers/char/hw_random/
A Darm_smccc_trng.c46 copied = chunk; in copy_from_registers()
47 if (copied >= bytes) in copy_from_registers()
48 return copied; 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()
59 return copied + chunk; in copy_from_registers()
77 copied += copy_from_registers(buf + copied, &res, in smccc_trng_read()
83 return copied; in smccc_trng_read()
86 return copied; in smccc_trng_read()
[all …]
/linux-6.3-rc2/arch/s390/mm/
A 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
101 copied = copy_to_iter(chunk, len, iter); in memcpy_real_iter()
104 count -= copied; in memcpy_real_iter()
105 src += copied; in memcpy_real_iter()
106 res += copied; in memcpy_real_iter()
[all …]
/linux-6.3-rc2/net/ipv4/
A Dtcp_bpf.c19 u32 size, copied = 0; in bpf_tcp_ingress() local
35 if (!copied) in bpf_tcp_ingress()
42 copied += size; in bpf_tcp_ingress()
184 int copied; in tcp_bpf_recvmsg_parser() local
199 if (!copied) { in tcp_bpf_recvmsg_parser()
238 return copied; in tcp_bpf_recvmsg_parser()
264 if (!copied) { in tcp_bpf_recvmsg()
279 ret = copied; in tcp_bpf_recvmsg()
484 return copied ? copied : err; in tcp_bpf_sendmsg()
513 copied = size; in tcp_bpf_sendpage()
[all …]
A 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.3-rc2/drivers/net/ethernet/chelsio/inline_crypto/chtls/
A Dchtls_io.c1209 if (copied) in chtls_sendmsg()
1213 return copied; in chtls_sendmsg()
1221 if (copied) in chtls_sendmsg()
1240 copied = 0; in chtls_sendpage()
1322 if (copied) in chtls_sendpage()
1326 return copied; in chtls_sendpage()
1329 if (copied) in chtls_sendpage()
1456 if (copied) in chtls_pt_recvmsg()
1634 if (copied) in peekmsg()
1650 if (copied) in peekmsg()
[all …]
/linux-6.3-rc2/drivers/crypto/bcm/
A Dutil.c53 size_t copied; in sg_copy_part_to_buf() local
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
76 if (copied != len) { in sg_copy_part_from_buf()
78 __func__, (u32)copied, len); in sg_copy_part_from_buf()
153 frag_len = min(entry_len, length - copied); in spu_msg_sg_add()
157 copied += frag_len; in spu_msg_sg_add()
158 if (copied == entry_len) { in spu_msg_sg_add()
162 if (copied == length) in spu_msg_sg_add()
[all …]
/linux-6.3-rc2/samples/kfifo/
A 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()
A 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()
A 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.3-rc2/crypto/
A 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.3-rc2/fs/
A 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.3-rc2/drivers/staging/vme_user/
A Dvme_user.c122 ssize_t copied = 0; in resource_to_user() local
129 if (copied < 0) in resource_to_user()
130 return (int)copied; in resource_to_user()
135 return copied; in resource_to_user()
296 unsigned long copied; in vme_user_ioctl() local
308 if (copied) { in vme_user_ioctl()
334 if (copied) { in vme_user_ioctl()
349 if (copied) { in vme_user_ioctl()
377 copied = copy_to_user(argp, &slave, in vme_user_ioctl()
379 if (copied) { in vme_user_ioctl()
[all …]
/linux-6.3-rc2/lib/
A 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
265 *copied = len - ret * esize; in kfifo_copy_to_user()
271 unsigned long len, unsigned int *copied) in __kfifo_to_user() argument
500 unsigned long len, unsigned int *copied, size_t recsize) in __kfifo_from_user_r() argument
507 *copied = 0; in __kfifo_from_user_r()
515 *copied = 0; in __kfifo_from_user_r()
524 unsigned long len, unsigned int *copied, size_t recsize) in __kfifo_to_user_r() argument
530 *copied = 0; in __kfifo_to_user_r()
[all …]
/linux-6.3-rc2/drivers/scsi/
A 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()
214 copied); in iscsi_tcp_segment_done()
219 segment->copied += copied; in iscsi_tcp_segment_done()
226 segment->copied = 0; in iscsi_tcp_segment_done()
299 if (copied == len) { in iscsi_tcp_segment_recv()
305 copy = min(len - copied, segment->size - segment->copied); in iscsi_tcp_segment_recv()
307 memcpy(segment->data + segment->copied, ptr + copied, copy); in iscsi_tcp_segment_recv()
308 copied += copy; in iscsi_tcp_segment_recv()
[all …]
/linux-6.3-rc2/fs/iomap/
A Ddirect-io.c245 size_t copied = 0; in iomap_dio_bio_iter() local
312 copied = ret = 0; in iomap_dio_bio_iter()
345 copied += n; in iomap_dio_bio_iter()
375 if (copied) in iomap_dio_bio_iter()
376 return copied; in iomap_dio_bio_iter()
399 size_t copied; in iomap_dio_inline_iter() local
410 if (copied) { in iomap_dio_inline_iter()
411 if (pos + copied > size) in iomap_dio_inline_iter()
418 dio->size += copied; in iomap_dio_inline_iter()
419 if (!copied) in iomap_dio_inline_iter()
[all …]
/linux-6.3-rc2/drivers/media/pci/cobalt/
A 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.3-rc2/arch/arm/crypto/
A 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.3-rc2/drivers/s390/char/
A 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.3-rc2/fs/squashfs/
A 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.3-rc2/block/partitions/
A 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.3-rc2/mm/
A Duserfaultfd.c325 long copied; in __mcopy_atomic_hugetlb() local
345 copied = 0; in __mcopy_atomic_hugetlb()
459 BUG_ON(copied < 0); in __mcopy_atomic_hugetlb()
461 BUG_ON(!copied && !err); in __mcopy_atomic_hugetlb()
462 return copied ? copied : err; in __mcopy_atomic_hugetlb()
531 long copied; in __mcopy_atomic() local
547 copied = 0; in __mcopy_atomic()
671 copied += PAGE_SIZE; in __mcopy_atomic()
685 BUG_ON(copied < 0); in __mcopy_atomic()
687 BUG_ON(!copied && !err); in __mcopy_atomic()
[all …]
/linux-6.3-rc2/net/rds/
A 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.3-rc2/fs/erofs/
A Dinode.c22 struct erofs_inode_extended *die, *copied = NULL; in erofs_read_inode() local
67 copied = kmalloc(vi->inode_isize, GFP_NOFS); in erofs_read_inode()
68 if (!copied) { in erofs_read_inode()
72 memcpy(copied, dic, gotten); in erofs_read_inode()
78 kfree(copied); in erofs_read_inode()
82 memcpy((u8 *)copied + gotten, kaddr, *ofs); in erofs_read_inode()
83 die = copied; in erofs_read_inode()
122 kfree(copied); in erofs_read_inode()
123 copied = NULL; in erofs_read_inode()
204 kfree(copied); in erofs_read_inode()
/linux-6.3-rc2/net/bluetooth/
A Daf_bluetooth.c258 size_t copied; in bt_sock_recvmsg() local
276 copied = skb->len; in bt_sock_recvmsg()
277 if (len < copied) { in bt_sock_recvmsg()
279 copied = len; in bt_sock_recvmsg()
298 copied = skblen; in bt_sock_recvmsg()
300 return err ? : copied; in bt_sock_recvmsg()
357 if (copied >= target) in bt_sock_stream_recvmsg()
382 if (!copied) in bt_sock_stream_recvmsg()
383 copied = -EFAULT; in bt_sock_stream_recvmsg()
386 copied += chunk; in bt_sock_stream_recvmsg()
[all …]
/linux-6.3-rc2/net/core/
A Ddatagram.c569 size_t copied; in skb_copy_datagram_from_iter() local
576 if (copied != copy) in skb_copy_datagram_from_iter()
628 ssize_t copied; in __zerocopy_sg_from_iter() local
635 copied = iov_iter_get_pages2(from, pages, length, in __zerocopy_sg_from_iter()
637 if (copied < 0) in __zerocopy_sg_from_iter()
640 length -= copied; in __zerocopy_sg_from_iter()
642 truesize = PAGE_ALIGN(copied + start); in __zerocopy_sg_from_iter()
643 skb->data_len += copied; in __zerocopy_sg_from_iter()
644 skb->len += copied; in __zerocopy_sg_from_iter()
653 for (refs = 0; copied != 0; start = 0) { in __zerocopy_sg_from_iter()
[all …]

Completed in 39 milliseconds

12345678910>>...17