Home
last modified time | relevance | path

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

12345678910>>...16

/linux/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()
79 copied += copy_from_registers(buf + copied, &res, in smccc_trng_read()
85 return copied; in smccc_trng_read()
88 return copied; in smccc_trng_read()
[all …]
/linux/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/net/ipv4/
A Dtcp_bpf.c18 u32 size, copied = 0; in bpf_tcp_ingress() local
34 if (!copied) in bpf_tcp_ingress()
41 copied += size; in bpf_tcp_ingress()
183 int copied; in tcp_bpf_recvmsg_parser() local
195 if (!copied) { in tcp_bpf_recvmsg_parser()
207 return copied; in tcp_bpf_recvmsg_parser()
230 if (!copied) { in tcp_bpf_recvmsg()
245 ret = copied; in tcp_bpf_recvmsg()
442 return copied ? copied : err; in tcp_bpf_sendmsg()
471 copied = size; in tcp_bpf_sendpage()
[all …]
/linux/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/fs/
A Dkernel_read_file.c40 size_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/drivers/staging/vme/devices/
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/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/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/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/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/fs/iomap/
A Ddirect-io.c240 size_t copied = 0; in iomap_dio_bio_iter() local
307 copied = ret = 0; in iomap_dio_bio_iter()
341 copied += n; in iomap_dio_bio_iter()
371 if (copied) in iomap_dio_bio_iter()
372 return copied; in iomap_dio_bio_iter()
395 size_t copied; in iomap_dio_inline_iter() local
406 if (copied) { in iomap_dio_inline_iter()
407 if (pos + copied > size) in iomap_dio_inline_iter()
414 dio->size += copied; in iomap_dio_inline_iter()
415 if (!copied) in iomap_dio_inline_iter()
[all …]
/linux/net/rds/
A Dmessage.c392 ssize_t copied; in rds_message_zcopy_from_user() local
396 if (copied < 0) { in rds_message_zcopy_from_user()
407 total_copied += copied; in rds_message_zcopy_from_user()
408 iov_iter_advance(from, copied); in rds_message_zcopy_from_user()
409 length -= copied; in rds_message_zcopy_from_user()
410 sg_set_page(sg, pages, copied, start); in rds_message_zcopy_from_user()
473 int copied; in rds_message_inc_copy_to_user() local
482 copied = 0; in rds_message_inc_copy_to_user()
484 while (iov_iter_count(to) && copied < len) { in rds_message_inc_copy_to_user()
496 copied += to_copy; in rds_message_inc_copy_to_user()
[all …]
/linux/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/mm/
A Duserfaultfd.c287 long copied; in __mcopy_atomic_hugetlb() local
307 copied = 0; in __mcopy_atomic_hugetlb()
420 BUG_ON(copied < 0); in __mcopy_atomic_hugetlb()
422 BUG_ON(!copied && !err); in __mcopy_atomic_hugetlb()
423 return copied ? copied : err; in __mcopy_atomic_hugetlb()
492 long copied; in __mcopy_atomic() local
508 copied = 0; in __mcopy_atomic()
630 copied += PAGE_SIZE; in __mcopy_atomic()
644 BUG_ON(copied < 0); in __mcopy_atomic()
646 BUG_ON(!copied && !err); in __mcopy_atomic()
[all …]
/linux/include/linux/
A Duio.h170 size_t copied = copy_from_iter(addr, bytes, i); in copy_from_iter_full() local
171 if (likely(copied == bytes)) in copy_from_iter_full()
173 iov_iter_revert(i, copied); in copy_from_iter_full()
189 size_t copied = copy_from_iter_nocache(addr, bytes, i); in copy_from_iter_full_nocache() local
190 if (likely(copied == bytes)) in copy_from_iter_full_nocache()
192 iov_iter_revert(i, copied); in copy_from_iter_full_nocache()
299 size_t copied = csum_and_copy_from_iter(addr, bytes, csum, i); in csum_and_copy_from_iter_full() local
300 if (likely(copied == bytes)) in csum_and_copy_from_iter_full()
302 iov_iter_revert(i, copied); in csum_and_copy_from_iter_full()
/linux/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/net/core/
A Ddatagram.c575 size_t copied; in skb_copy_datagram_from_iter() local
582 if (copied != copy) in skb_copy_datagram_from_iter()
628 ssize_t copied; in __zerocopy_sg_from_iter() local
637 if (copied < 0) in __zerocopy_sg_from_iter()
640 iov_iter_advance(from, copied); in __zerocopy_sg_from_iter()
641 length -= copied; in __zerocopy_sg_from_iter()
643 truesize = PAGE_ALIGN(copied + start); in __zerocopy_sg_from_iter()
644 skb->data_len += copied; in __zerocopy_sg_from_iter()
645 skb->len += copied; in __zerocopy_sg_from_iter()
654 for (refs = 0; copied != 0; start = 0) { in __zerocopy_sg_from_iter()
[all …]
A Dskmsg.c320 if (copied <= 0) { in sk_msg_zerocopy_from_iter()
326 bytes -= copied; in sk_msg_zerocopy_from_iter()
329 while (copied) { in sk_msg_zerocopy_from_iter()
337 copied -= use; in sk_msg_zerocopy_from_iter()
409 int i, copied = 0; in sk_msg_recvmsg() local
430 return copied ? copied : -EFAULT; in sk_msg_recvmsg()
432 copied += copy; in sk_msg_recvmsg()
450 return copied; in sk_msg_recvmsg()
473 return copied; in sk_msg_recvmsg()
529 copied = len; in sk_psock_skb_ingress_enqueue()
[all …]
/linux/net/tls/
A Dtls_sw.c916 size_t copied; in tls_sw_push_pending_record() local
923 if (!copied) in tls_sw_push_pending_record()
1136 copied = 0; in tls_sw_sendmsg()
1151 return copied > 0 ? copied : ret; in tls_sw_sendmsg()
1267 return copied > 0 ? copied : ret; in tls_sw_do_sendpage()
1717 copied = copied + chunk; in process_rx_list()
1748 return copied; in process_rx_list()
1793 copied = err; in tls_sw_recvmsg()
1962 copied = 0; in tls_sw_recvmsg()
1984 copied = 0; in tls_sw_recvmsg()
[all …]
/linux/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/fs/erofs/
A Dinode.c27 struct erofs_inode_extended *die, *copied = NULL; in erofs_read_inode() local
72 copied = kmalloc(vi->inode_isize, GFP_NOFS); in erofs_read_inode()
73 if (!copied) { in erofs_read_inode()
77 memcpy(copied, dic, gotten); in erofs_read_inode()
85 kfree(copied); in erofs_read_inode()
89 memcpy((u8 *)copied + gotten, page_address(page), *ofs); in erofs_read_inode()
90 die = copied; in erofs_read_inode()
129 kfree(copied); in erofs_read_inode()
130 copied = NULL; in erofs_read_inode()
211 kfree(copied); in erofs_read_inode()
/linux/drivers/tty/
A Dtty_buffer.c316 int copied = 0; in tty_insert_flip_string_fixed_flag() local
319 int goal = min_t(size_t, size - copied, TTY_BUFFER_PAGE); in tty_insert_flip_string_fixed_flag()
330 copied += space; in tty_insert_flip_string_fixed_flag()
335 } while (unlikely(size > copied)); in tty_insert_flip_string_fixed_flag()
336 return copied; in tty_insert_flip_string_fixed_flag()
355 int copied = 0; in tty_insert_flip_string_flags() local
358 int goal = min_t(size_t, size - copied, TTY_BUFFER_PAGE); in tty_insert_flip_string_flags()
367 copied += space; in tty_insert_flip_string_flags()
373 } while (unlikely(size > copied)); in tty_insert_flip_string_flags()
374 return copied; in tty_insert_flip_string_flags()
/linux/net/bluetooth/
A Daf_bluetooth.c257 size_t copied; in bt_sock_recvmsg() local
275 copied = skb->len; in bt_sock_recvmsg()
276 if (len < copied) { in bt_sock_recvmsg()
278 copied = len; in bt_sock_recvmsg()
297 copied = skblen; in bt_sock_recvmsg()
299 return err ? : copied; in bt_sock_recvmsg()
356 if (copied >= target) in bt_sock_stream_recvmsg()
381 if (!copied) in bt_sock_stream_recvmsg()
382 copied = -EFAULT; in bt_sock_stream_recvmsg()
385 copied += chunk; in bt_sock_stream_recvmsg()
[all …]

Completed in 57 milliseconds

12345678910>>...16