Home
last modified time | relevance | path

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

12345678910>>...27

/openbmc/linux/drivers/char/hw_random/
H A 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 …]
/openbmc/qemu/fsdev/
H A D9p-iov-marshal.c25 size_t copied = 0; in v9fs_packunpack() local
43 copied += len; in v9fs_packunpack()
51 if (copied < req_size) { in v9fs_packunpack()
57 return copied; in v9fs_packunpack()
76 ssize_t copied = 0; in v9fs_iov_vunmarshal() local
83 copied = v9fs_unpack(valp, out_sg, out_num, offset, sizeof(*valp)); in v9fs_iov_vunmarshal()
89 copied = v9fs_unpack(&val, out_sg, out_num, offset, sizeof(val)); in v9fs_iov_vunmarshal()
90 if (copied <= 0) { in v9fs_iov_vunmarshal()
103 copied = v9fs_unpack(&val, out_sg, out_num, offset, sizeof(val)); in v9fs_iov_vunmarshal()
104 if (copied <= 0) { in v9fs_iov_vunmarshal()
[all …]
/openbmc/linux/net/ipv4/
H A 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()
61 copied += size; in bpf_tcp_ingress()
79 atomic_sub(copied, &sk->sk_rmem_alloc); in bpf_tcp_ingress()
229 int copied = 0; in tcp_bpf_recvmsg_parser()
259 copied = -EAGAIN; in tcp_bpf_recvmsg_parser()
265 copied in tcp_bpf_recvmsg_parser()
227 int copied = 0; tcp_bpf_recvmsg_parser() local
336 int copied, ret; tcp_bpf_recvmsg() local
383 tcp_bpf_send_verdict(struct sock * sk,struct sk_psock * psock,struct sk_msg * msg,int * copied,int flags) tcp_bpf_send_verdict() argument
496 int copied = 0, err = 0; tcp_bpf_sendmsg() local
[all...]
/openbmc/linux/arch/s390/mm/
H 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
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 …]
/openbmc/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A 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 …]
/openbmc/qemu/net/
H A Deth.c75 size_t copied; in eth_get_l3_proto() local
83 copied = iov_to_buf(l2hdr_iov, iovcnt, proto_offset, in eth_get_l3_proto()
86 return (copied == sizeof(proto)) ? be16_to_cpu(proto) : ETH_P_UNKNOWN; in eth_get_l3_proto()
95 size_t copied; in _eth_copy_chunk() local
101 copied = iov_to_buf(iov, iovcnt, offset, buffer, length); in _eth_copy_chunk()
103 if (copied < length) { in _eth_copy_chunk()
141 size_t copied; in eth_get_protocols() local
157 copied = iov_to_buf(iov, iovcnt, *l3hdr_off, iphdr, sizeof(*iphdr)); in eth_get_protocols()
158 if (copied < sizeof(*iphdr) || in eth_get_protocols()
229 size_t copied = iov_to_buf(iov, iovcnt, iovoff, in eth_strip_vlan() local
[all …]
/openbmc/linux/drivers/crypto/bcm/
H A 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 …]
/openbmc/linux/samples/kfifo/
H 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()
H 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()
H 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()
/openbmc/linux/crypto/
H 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()
/openbmc/linux/fs/
H 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()
/openbmc/linux/drivers/staging/vme_user/
H A 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 …]
/openbmc/linux/lib/
H 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
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 …]
/openbmc/linux/drivers/scsi/
H 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()
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 …]
/openbmc/linux/fs/iomap/
H A 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 …]
/openbmc/linux/drivers/media/pci/cobalt/
H 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()
/openbmc/linux/net/vmw_vsock/
H A 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()
/openbmc/linux/arch/arm/crypto/
H 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()
/openbmc/linux/net/core/
H A Ddatagram.c437 u32 p_off, p_len, copied; in __skb_datagram_iter() local
447 copy, p, p_off, p_len, copied) { in __skb_datagram_iter()
577 size_t copied; in skb_copy_datagram_from_iter() local
581 copied = copy_page_from_iter(skb_frag_page(frag), in skb_copy_datagram_from_iter()
584 if (copied != copy) in skb_copy_datagram_from_iter()
637 ssize_t copied; in __zerocopy_sg_from_iter() local
643 copied = iov_iter_get_pages2(from, pages, length, in __zerocopy_sg_from_iter()
645 if (copied < 0) in __zerocopy_sg_from_iter()
648 length -= copied; in __zerocopy_sg_from_iter()
650 truesize = PAGE_ALIGN(copied + start); in __zerocopy_sg_from_iter()
[all …]
/openbmc/linux/net/tls/
H A 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 …]
/openbmc/linux/fs/erofs/
H A 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()
/openbmc/linux/drivers/s390/char/
H 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()
/openbmc/linux/block/partitions/
H 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()
/openbmc/linux/fs/squashfs/
H 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()

12345678910>>...27