Searched refs:copied (Results 1 - 25 of 278) sorted by relevance

1234567891011>>

/linux-master/drivers/char/hw_random/
H A Darm_smccc_trng.c39 unsigned int chunk, copied; local
46 copied = chunk;
47 if (copied >= bytes)
48 return copied;
50 chunk = min((bytes - copied), sizeof(long));
51 memcpy(&buf[copied], &res->a2, chunk);
52 copied += chunk;
53 if (copied >= bytes)
54 return copied;
56 chunk = min((bytes - copied), sizeo
66 unsigned int copied = 0; local
[all...]
/linux-master/arch/riscv/lib/
H A Driscv_v_helpers.c22 size_t remain, copied; local
33 copied = n - remain;
34 dst += copied;
35 src += copied;
/linux-master/arch/s390/mm/
H A Dmaccess.c68 long copied; local
72 copied = s390_kernel_write_odd(tmp, src, size);
73 tmp += copied;
74 src += copied;
75 size -= copied;
84 size_t len, copied, res = 0; local
102 copied = copy_to_iter(chunk, len, iter);
105 count -= copied;
106 src += copied;
107 res += copied;
[all...]
/linux-master/crypto/
H A Dcurve25519-generic.c30 int copied, nbytes; local
34 copied = sg_copy_to_buffer(req->src,
38 if (copied != CURVE25519_KEY_SIZE)
49 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst,
52 if (copied != nbytes)
/linux-master/net/ipv4/
H A Dtcp_bpf.c17 int copied; local
26 copied = tcp->copied_seq + skb->len;
27 WRITE_ONCE(tcp->copied_seq, copied);
37 u32 size, copied = 0; local
53 if (!copied)
60 copied += size;
228 int copied = 0; local
256 copied = -EAGAIN;
262 copied = sk_msg_recvmsg(sk, psock, msg, len, flags);
268 if (copied
335 int copied, ret; local
381 tcp_bpf_send_verdict(struct sock *sk, struct sk_psock *psock, struct sk_msg *msg, int *copied, int flags) argument
498 int copied = 0, err = 0; local
[all...]
H A Dudp_bpf.c66 int copied, ret; local
84 copied = sk_msg_recvmsg(sk, psock, msg, len, flags);
85 if (!copied) {
97 copied = -EAGAIN;
99 ret = copied;
/linux-master/samples/kfifo/
H A Dbytestream-example.c117 unsigned int copied; local
122 ret = kfifo_from_user(&test, buf, count, &copied);
128 return copied;
135 unsigned int copied; local
140 ret = kfifo_to_user(&test, buf, count, &copied);
146 return copied;
H A Dinttype-example.c110 unsigned int copied; local
115 ret = kfifo_from_user(&test, buf, count, &copied);
121 return copied;
128 unsigned int copied; local
133 ret = kfifo_to_user(&test, buf, count, &copied);
139 return copied;
H A Drecord-example.c124 unsigned int copied; local
129 ret = kfifo_from_user(&test, buf, count, &copied);
135 return copied;
142 unsigned int copied; local
147 ret = kfifo_to_user(&test, buf, count, &copied);
153 return copied;
/linux-master/drivers/s390/char/
H A Dsclp_ctl.c59 unsigned long copied; local
69 copied = PAGE_SIZE -
72 sizeof(sccb->length) > copied || sccb->length > copied) {
/linux-master/fs/squashfs/
H A Dsymlink.c43 int bytes, copied; local
71 for (bytes = 0; bytes < length; offset = 0, bytes += copied) {
82 copied = squashfs_copy_data(pageaddr + bytes, entry, offset,
84 if (copied == length - bytes)
/linux-master/arch/arm/crypto/
H A Dcurve25519-glue.c70 int copied, nbytes; local
74 copied = sg_copy_to_buffer(req->src,
78 if (copied != CURVE25519_KEY_SIZE)
89 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst,
92 if (copied != nbytes)
/linux-master/drivers/gpio/
H A Dgpio-cros-ec.c34 ssize_t copied; local
36 copied = strscpy(params.name, name, sizeof(params.name));
37 if (copied < 0)
53 ssize_t copied; local
55 copied = strscpy(params.name, name, sizeof(params.name));
56 if (copied < 0)
109 ssize_t copied; local
133 copied = scnprintf(str, name_len, "%s%s", cros_ec_gpio_prefix,
135 if (copied < 0)
136 return copied;
[all...]
/linux-master/fs/
H A Dkernel_read_file.c40 ssize_t copied; local
87 copied = 0;
88 while (copied < buf_size) {
90 size_t wanted = min_t(size_t, buf_size - copied,
93 bytes = kernel_read(file, *buf + copied, wanted, &pos);
101 copied += bytes;
123 return ret == 0 ? copied : ret;
/linux-master/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_io.c1018 int copied = 0; local
1197 copied += copy;
1222 if (copied)
1226 return copied;
1234 if (copied)
1239 copied = sk_stream_error(sk, flags, err);
1312 static void chtls_cleanup_rbuf(struct sock *sk, int copied) argument
1351 int copied = 0; local
1362 chtls_cleanup_rbuf(sk, copied);
1370 if (copied)
1544 int copied = 0; local
1672 int copied = 0; local
[all...]
/linux-master/net/vmw_vsock/
H A Dvsock_bpf.c80 int copied; local
93 copied = sk_msg_recvmsg(sk, psock, msg, len, flags);
94 while (copied == 0) {
98 copied = -EAGAIN;
108 copied = sk_msg_recvmsg(sk, psock, msg, len, flags);
114 return copied;
/linux-master/arch/powerpc/lib/
H A Dpmem.c72 unsigned long copied, start = (unsigned long) dest; local
74 copied = __copy_from_user(dest, src, size);
77 return copied;
/linux-master/drivers/crypto/bcm/
H A Dutil.c53 size_t copied; local
56 copied = sg_pcopy_to_buffer(src, nents, dest, len, skip);
57 if (copied != len) {
58 flow_log("%s copied %u bytes of %u requested. ",
59 __func__, (u32)copied, len);
72 size_t copied; local
75 copied = sg_pcopy_from_buffer(dest, nents, src, len, skip);
76 if (copied != len) {
77 flow_log("%s copied %u bytes of %u requested. ",
78 __func__, (u32)copied, le
145 u32 copied = 0; /* number of bytes copied so far */ local
[all...]
/linux-master/block/partitions/
H A Daix.c88 int copied = 512; local
93 if (copied > count)
94 copied = count;
95 memcpy(buffer, data, copied);
97 buffer += copied;
98 totalreadcount += copied;
99 count -= copied;
/linux-master/drivers/media/pci/cobalt/
H A Dcobalt-omnitek.c158 unsigned copied = 0; local
194 copy_bytes - copied);
206 copied += d->bytes;
231 copied += bytes;
234 if (copied == copy_bytes) {
235 while (copied < stride) {
237 stride - copied);
238 copied += bytes;
246 copied = 0;
/linux-master/drivers/staging/vme_user/
H A Dvme_user.c124 ssize_t copied = 0; local
129 copied = vme_master_read(image[minor].resource, image[minor].kern_buf,
131 if (copied < 0)
132 return (int)copied;
134 if (copy_to_user(buf, image[minor].kern_buf, (unsigned long)copied))
137 return copied;
298 unsigned long copied; local
308 copied = copy_from_user(&irq_req, argp,
310 if (copied) {
334 copied
[all...]
/linux-master/lib/
H A Dkfifo.c146 * make sure that the data is copied before
177 unsigned int *copied)
205 *copied = len - ret * esize;
206 /* return the number of elements which are not copied */
211 unsigned long len, unsigned int *copied)
225 ret = kfifo_copy_from_user(fifo, from, len, fifo->in, copied);
237 unsigned int len, unsigned int off, unsigned int *copied)
261 * make sure that the data is copied before
265 *copied = len - ret * esize;
266 /* return the number of elements which are not copied */
175 kfifo_copy_from_user(struct __kfifo *fifo, const void __user *from, unsigned int len, unsigned int off, unsigned int *copied) argument
210 __kfifo_from_user(struct __kfifo *fifo, const void __user *from, unsigned long len, unsigned int *copied) argument
236 kfifo_copy_to_user(struct __kfifo *fifo, void __user *to, unsigned int len, unsigned int off, unsigned int *copied) argument
270 __kfifo_to_user(struct __kfifo *fifo, void __user *to, unsigned long len, unsigned int *copied) argument
499 __kfifo_from_user_r(struct __kfifo *fifo, const void __user *from, unsigned long len, unsigned int *copied, size_t recsize) argument
523 __kfifo_to_user_r(struct __kfifo *fifo, void __user *to, unsigned long len, unsigned int *copied, size_t recsize) argument
[all...]
/linux-master/drivers/scsi/
H A Dlibiscsi_tcp.c86 * data is copied to the indicated sg entry, at the given
169 segment->copied = 0;
179 * @copied: number of bytes copied
192 unsigned copied)
197 ISCSI_DBG_TCP(tcp_conn->iscsi_conn, "copied %u %u size %u %s\n",
198 segment->copied, copied, segment->size,
200 if (segment->hash && copied) {
209 sg_set_page(&sg, sg_page(segment->sg), copied,
190 iscsi_tcp_segment_done(struct iscsi_tcp_conn *tcp_conn, struct iscsi_segment *segment, int recv, unsigned copied) argument
296 unsigned int copy = 0, copied = 0; local
[all...]
/linux-master/include/linux/sunrpc/
H A Dxprtsock.h42 unsigned long copied; member in struct:sock_xprt::__anon873
/linux-master/fs/iomap/
H A Ddirect-io.c288 size_t copied = 0; local
374 iov_iter_revert(dio->submit.iter, copied);
375 copied = ret = 0;
409 copied += n;
438 iov_iter_reexpand(dio->submit.iter, orig_count - copied);
439 if (copied)
440 return copied;
463 size_t copied; local
473 copied = copy_from_iter(inline_data, length, iter);
474 if (copied) {
[all...]

Completed in 377 milliseconds

1234567891011>>