Home
last modified time | relevance | path

Searched refs:copy (Results 1 – 25 of 1291) sorted by relevance

12345678910>>...52

/Linux-v4.19/include/linux/
Dregset.h266 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyout() local
270 memcpy(*kbuf, data, copy); in user_regset_copyout()
271 *kbuf += copy; in user_regset_copyout()
272 } else if (__copy_to_user(*ubuf, data, copy)) in user_regset_copyout()
275 *ubuf += copy; in user_regset_copyout()
276 *pos += copy; in user_regset_copyout()
277 *count -= copy; in user_regset_copyout()
291 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyin() local
295 memcpy(data, *kbuf, copy); in user_regset_copyin()
296 *kbuf += copy; in user_regset_copyin()
[all …]
/Linux-v4.19/net/core/
Ddatagram.c422 int i, copy = start - offset, start_off = offset, n; in skb_copy_datagram_iter() local
428 if (copy > 0) { in skb_copy_datagram_iter()
429 if (copy > len) in skb_copy_datagram_iter()
430 copy = len; in skb_copy_datagram_iter()
431 n = copy_to_iter(skb->data + offset, copy, to); in skb_copy_datagram_iter()
433 if (n != copy) in skb_copy_datagram_iter()
435 if ((len -= copy) == 0) in skb_copy_datagram_iter()
447 if ((copy = end - offset) > 0) { in skb_copy_datagram_iter()
448 if (copy > len) in skb_copy_datagram_iter()
449 copy = len; in skb_copy_datagram_iter()
[all …]
Dskbuff.c1212 u32 copy, done = 0; in skb_copy_ubufs() local
1220 copy = min_t(u32, PAGE_SIZE - d_off, p_len - done); in skb_copy_ubufs()
1222 vaddr + p_off + done, copy); in skb_copy_ubufs()
1223 done += copy; in skb_copy_ubufs()
1224 d_off += copy; in skb_copy_ubufs()
2024 int i, copy; in skb_copy_bits() local
2030 if ((copy = start - offset) > 0) { in skb_copy_bits()
2031 if (copy > len) in skb_copy_bits()
2032 copy = len; in skb_copy_bits()
2033 skb_copy_from_linear_data_offset(skb, offset, to, copy); in skb_copy_bits()
[all …]
/Linux-v4.19/lib/zlib_inflate/
Dinflate.c104 unsigned copy, dist; in zlib_updatewindow() local
109 copy = out - strm->avail_out; in zlib_updatewindow()
110 if (copy >= state->wsize) { in zlib_updatewindow()
117 if (dist > copy) dist = copy; in zlib_updatewindow()
118 memcpy(state->window + state->write, strm->next_out - copy, dist); in zlib_updatewindow()
119 copy -= dist; in zlib_updatewindow()
120 if (copy) { in zlib_updatewindow()
121 memcpy(state->window, strm->next_out - copy, copy); in zlib_updatewindow()
122 state->write = copy; in zlib_updatewindow()
326 unsigned copy; /* number of stored or match bytes to copy */ in zlib_inflate() local
[all …]
/Linux-v4.19/samples/mic/mpssd/
Dmpssd.c349 sum_iovec_len(struct mic_copy_desc *copy) in sum_iovec_len() argument
354 for (i = 0; i < copy->iovcnt; i++) in sum_iovec_len()
355 sum += copy->iov[i].iov_len; in sum_iovec_len()
360 struct mic_copy_desc *copy) in verify_out_len() argument
362 if (copy->out_len != sum_iovec_len(copy)) { in verify_out_len()
365 copy->out_len, sum_iovec_len(copy)); in verify_out_len()
366 assert(copy->out_len == sum_iovec_len(copy)); in verify_out_len()
372 disp_iovec(struct mic_info *mic, struct mic_copy_desc *copy, in disp_iovec() argument
377 for (i = 0; i < copy->iovcnt; i++) in disp_iovec()
380 copy->iov[i].iov_base, copy->iov[i].iov_len); in disp_iovec()
[all …]
/Linux-v4.19/drivers/misc/mic/scif/
Dscif_fd.c356 struct scifioctl_copy copy; in scif_fdioctl() local
358 if (copy_from_user(&copy, argp, sizeof(copy))) { in scif_fdioctl()
362 err = scif_readfrom(priv, copy.loffset, copy.len, copy.roffset, in scif_fdioctl()
363 copy.flags); in scif_fdioctl()
371 struct scifioctl_copy copy; in scif_fdioctl() local
373 if (copy_from_user(&copy, argp, sizeof(copy))) { in scif_fdioctl()
377 err = scif_writeto(priv, copy.loffset, copy.len, copy.roffset, in scif_fdioctl()
378 copy.flags); in scif_fdioctl()
386 struct scifioctl_copy copy; in scif_fdioctl() local
388 if (copy_from_user(&copy, argp, sizeof(copy))) { in scif_fdioctl()
[all …]
/Linux-v4.19/drivers/block/
Dbrd.c174 size_t copy; in copy_to_brd_setup() local
176 copy = min_t(size_t, n, PAGE_SIZE - offset); in copy_to_brd_setup()
179 if (copy < n) { in copy_to_brd_setup()
180 sector += copy >> SECTOR_SHIFT; in copy_to_brd_setup()
196 size_t copy; in copy_to_brd() local
198 copy = min_t(size_t, n, PAGE_SIZE - offset); in copy_to_brd()
203 memcpy(dst + offset, src, copy); in copy_to_brd()
206 if (copy < n) { in copy_to_brd()
207 src += copy; in copy_to_brd()
208 sector += copy >> SECTOR_SHIFT; in copy_to_brd()
[all …]
/Linux-v4.19/arch/parisc/kernel/
Dentry.S128 copy %r30, %r17
141 copy %r9,%r29
149 copy %r30,%r1
155 copy %r9,%r29
399 copy \spc,\tmp
425 copy %r0,\pte
429 copy \pmd,%r9
451 copy %r0,\pte
459 copy \index,\pgd
529 copy \pte,\tmp
[all …]
/Linux-v4.19/Documentation/device-mapper/
Dkcopyd.txt4 Kcopyd provides the ability to copy a range of sectors from one block-device
9 to set aside for their copy jobs. This is done with a call to
15 To start a copy job, the user must set up io_region structures to describe
16 the source and destinations of the copy. Each io_region indicates a
18 of the copy is given as one io_region structure, and the destinations of the
19 copy are given as an array of io_region structures.
27 To start the copy, the user calls kcopyd_copy(), passing in the client
29 completion callback routine, and a pointer to some context data for the copy.
38 When the copy completes, kcopyd will call the user's completion routine,
40 write error occurred during the copy.
[all …]
/Linux-v4.19/arch/parisc/boot/compressed/
Dhead.S36 copy %r1, %arg0
60 copy %arg1, %r6 /* command line */
61 copy %arg2, %r7 /* rd-start */
62 copy %arg3, %r8 /* rd-end */
80 copy %r6, %arg1 /* command line */
81 copy %r7, %arg2 /* rd-start */
82 copy %r8, %arg3 /* rd-end */
/Linux-v4.19/Documentation/
Dlzo.txt27 - a length (number of bytes to copy from dictionary)
28 - the number of literals to copy, which is retained in variable "state"
55 ranges, resulting in multiple copy instructions using different encodings.
59 After any instruction except the large literal copy, 0, 1, 2 or 3 literals
68 End of stream is declared when a block copy of distance 0 is seen. Only one
87 noting that codes 16 and 17 will represent a block copy from
91 18..21 : copy 0..3 literals
92 state = (byte - 17) = 0..3 [ copy <state> literals ]
95 22..255 : copy literal string
97 state = 4 [ don't copy extra literals ]
[all …]
/Linux-v4.19/arch/nds32/lib/
Dmemmove.S21 srli $p1, $r2, #2 ! $p1 is how many words to copy
30 li $t0, #1 ! Determining copy direction in byte_cpy
35 addi $p1, $p1, #-1 ! How many words left to copy
38 beqz $r2, end_memcpy ! No left bytes to copy
45 li $t0, #-1 ! Determining copy direction in byte_cpy
50 addi $p1, $p1, #-1 ! How many words left to copy
53 beqz $r2, end_memcpy ! No left bytes to copy
58 byte_cpy: ! Less than 4 bytes to copy now
60 addi $r2, $r2, #-1 ! How many bytes left to copy
61 sb.bi $p0, [$r0], $t0 ! copy the byte to det
/Linux-v4.19/drivers/gpu/drm/qxl/
Dqxl_draw.c228 drawable->u.copy.src_area.top = 0; in qxl_draw_opaque_fb()
229 drawable->u.copy.src_area.bottom = height; in qxl_draw_opaque_fb()
230 drawable->u.copy.src_area.left = 0; in qxl_draw_opaque_fb()
231 drawable->u.copy.src_area.right = width; in qxl_draw_opaque_fb()
233 drawable->u.copy.rop_descriptor = SPICE_ROPD_OP_PUT; in qxl_draw_opaque_fb()
234 drawable->u.copy.scale_mode = 0; in qxl_draw_opaque_fb()
235 drawable->u.copy.mask.flags = 0; in qxl_draw_opaque_fb()
236 drawable->u.copy.mask.pos.x = 0; in qxl_draw_opaque_fb()
237 drawable->u.copy.mask.pos.y = 0; in qxl_draw_opaque_fb()
238 drawable->u.copy.mask.bitmap = 0; in qxl_draw_opaque_fb()
[all …]
/Linux-v4.19/arch/xtensa/lib/
Dmemcopy.S92 # copy 1 byte
101 # copy 2 bytes
117 mov a5, a2 # copy dst so that a2 is return value
125 _bany a3, a8, .Lsrcunaligned # then use shifting copy
129 # copy 16 bytes per iteration for word-aligned dst and word-aligned src
153 # copy 8 bytes
166 # copy 4 bytes
175 # copy 2 bytes
183 # copy 1 byte
195 # copy 16 bytes per iteration for word-aligned dst and unaligned src
[all …]
Dusercopy.S65 mov a5, a2 # copy dst so that a2 is return value
74 bnone a3, a8, .Laligned # then use word copy
87 # copy 1 byte
96 # copy 2 bytes
135 # copy 16 bytes per iteration for word-aligned dst and word-aligned src
162 # copy 8 bytes
171 # copy 4 bytes
178 # copy 2 bytes
185 # copy 1 byte
200 # copy 16 bytes per iteration for word-aligned dst and unaligned src
[all …]
/Linux-v4.19/drivers/w1/slaves/
Dw1_ds2805.c210 int copy; in w1_f0d_write_bin() local
235 copy = W1_F0D_SCRATCH_SIZE - in w1_f0d_write_bin()
238 if (copy > len) in w1_f0d_write_bin()
239 copy = len; in w1_f0d_write_bin()
241 memcpy(&tmp[addr & W1_F0D_SCRATCH_MASK], buf, copy); in w1_f0d_write_bin()
249 copy = W1_F0D_SCRATCH_SIZE; in w1_f0d_write_bin()
250 if (w1_f0d_write(sl, addr, copy, buf) < 0) { in w1_f0d_write_bin()
255 buf += copy; in w1_f0d_write_bin()
256 addr += copy; in w1_f0d_write_bin()
257 len -= copy; in w1_f0d_write_bin()
Dw1_ds2431.c211 int copy; in eeprom_write() local
236 copy = W1_F2D_SCRATCH_SIZE - in eeprom_write()
239 if (copy > len) in eeprom_write()
240 copy = len; in eeprom_write()
242 memcpy(&tmp[addr & W1_F2D_SCRATCH_MASK], buf, copy); in eeprom_write()
250 copy = W1_F2D_SCRATCH_SIZE; in eeprom_write()
251 if (w1_f2d_write(sl, addr, copy, buf) < 0) { in eeprom_write()
256 buf += copy; in eeprom_write()
257 addr += copy; in eeprom_write()
258 len -= copy; in eeprom_write()
/Linux-v4.19/net/sunrpc/
Dxdr.c177 size_t copy; in _shift_data_right_pages() local
201 copy = len; in _shift_data_right_pages()
202 if (copy > pgto_base) in _shift_data_right_pages()
203 copy = pgto_base; in _shift_data_right_pages()
204 if (copy > pgfrom_base) in _shift_data_right_pages()
205 copy = pgfrom_base; in _shift_data_right_pages()
206 pgto_base -= copy; in _shift_data_right_pages()
207 pgfrom_base -= copy; in _shift_data_right_pages()
212 memcpy(vto + pgto_base, vfrom + pgfrom_base, copy); in _shift_data_right_pages()
215 memmove(vto + pgto_base, vto + pgfrom_base, copy); in _shift_data_right_pages()
[all …]
/Linux-v4.19/fs/dlm/
Dmidcomms.c37 unsigned copy = len; in copy_from_cb() local
39 if ((copy + offset) > limit) in copy_from_cb()
40 copy = limit - offset; in copy_from_cb()
41 memcpy(dst, base + offset, copy); in copy_from_cb()
42 len -= copy; in copy_from_cb()
44 memcpy(dst + copy, base, len); in copy_from_cb()
/Linux-v4.19/Documentation/input/devices/
Dbcm5974.rst7 :Copyright: |copy| 2008-2009 Henrik Rydberg <rydberg@euromail.se>
12 :Copyright: |copy| 2008 Scott Shawcroft (scott.shawcroft@gmail.com)
16 :Copyright: |copy| 2001-2004 Greg Kroah-Hartman (greg@kroah.com)
17 :Copyright: |copy| 2005 Johannes Berg (johannes@sipsolutions.net)
18 :Copyright: |copy| 2005 Stelian Pop (stelian@popies.net)
19 :Copyright: |copy| 2005 Frank Arnold (frank@scirocco-5v-turbo.de)
20 :Copyright: |copy| 2005 Peter Osterlund (petero2@telia.com)
21 :Copyright: |copy| 2005 Michael Hanselmann (linux-kernel@hansmi.ch)
22 :Copyright: |copy| 2006 Nicolas Boichat (nicolas@boichat.ch)
/Linux-v4.19/drivers/gpu/drm/tegra/
Dplane.c48 struct tegra_plane_state *copy; in tegra_plane_atomic_duplicate_state() local
51 copy = kmalloc(sizeof(*copy), GFP_KERNEL); in tegra_plane_atomic_duplicate_state()
52 if (!copy) in tegra_plane_atomic_duplicate_state()
55 __drm_atomic_helper_plane_duplicate_state(plane, &copy->base); in tegra_plane_atomic_duplicate_state()
56 copy->tiling = state->tiling; in tegra_plane_atomic_duplicate_state()
57 copy->format = state->format; in tegra_plane_atomic_duplicate_state()
58 copy->swap = state->swap; in tegra_plane_atomic_duplicate_state()
59 copy->bottom_up = state->bottom_up; in tegra_plane_atomic_duplicate_state()
60 copy->opaque = state->opaque; in tegra_plane_atomic_duplicate_state()
63 copy->blending[i] = state->blending[i]; in tegra_plane_atomic_duplicate_state()
[all …]
/Linux-v4.19/drivers/net/ethernet/sfc/
Dsiena_sriov.c406 struct efx_memcpy_req copy[4]; in __efx_siena_sriov_push_vf_status() local
418 memset(copy, '\0', sizeof(copy)); in __efx_siena_sriov_push_vf_status()
420 copy[0].from_buf = &status->generation_start; in __efx_siena_sriov_push_vf_status()
421 copy[0].to_rid = vf->pci_rid; in __efx_siena_sriov_push_vf_status()
422 copy[0].to_addr = vf->status_addr + offsetof(struct vfdi_status, in __efx_siena_sriov_push_vf_status()
424 copy[0].length = sizeof(status->generation_start); in __efx_siena_sriov_push_vf_status()
430 copy[1].from_rid = efx->pci_dev->devfn; in __efx_siena_sriov_push_vf_status()
431 copy[1].from_addr = nic_data->vfdi_status.dma_addr + data_offset; in __efx_siena_sriov_push_vf_status()
432 copy[1].to_rid = vf->pci_rid; in __efx_siena_sriov_push_vf_status()
433 copy[1].to_addr = vf->status_addr + data_offset; in __efx_siena_sriov_push_vf_status()
[all …]
/Linux-v4.19/lib/
Diov_iter.c154 size_t skip, copy, left, wanted; in copy_page_to_iter_iovec() local
170 copy = min(bytes, iov->iov_len - skip); in copy_page_to_iter_iovec()
172 if (IS_ENABLED(CONFIG_HIGHMEM) && !fault_in_pages_writeable(buf, copy)) { in copy_page_to_iter_iovec()
177 left = copyout(buf, from, copy); in copy_page_to_iter_iovec()
178 copy -= left; in copy_page_to_iter_iovec()
179 skip += copy; in copy_page_to_iter_iovec()
180 from += copy; in copy_page_to_iter_iovec()
181 bytes -= copy; in copy_page_to_iter_iovec()
186 copy = min(bytes, iov->iov_len); in copy_page_to_iter_iovec()
187 left = copyout(buf, from, copy); in copy_page_to_iter_iovec()
[all …]
/Linux-v4.19/drivers/crypto/chelsio/chtls/
Dchtls_io.c893 int off, int copy) in chtls_skb_copy_to_page_nocache() argument
898 off, copy, skb->len); in chtls_skb_copy_to_page_nocache()
902 skb->len += copy; in chtls_skb_copy_to_page_nocache()
903 skb->data_len += copy; in chtls_skb_copy_to_page_nocache()
904 skb->truesize += copy; in chtls_skb_copy_to_page_nocache()
905 sk->sk_wmem_queued += copy; in chtls_skb_copy_to_page_nocache()
1020 int copy = 0; in chtls_sendmsg() local
1024 copy = mss - skb->len; in chtls_sendmsg()
1043 copy <= 0) { in chtls_sendmsg()
1066 copy = mss; in chtls_sendmsg()
[all …]
/Linux-v4.19/drivers/gpu/drm/sun4i/
Dsun4i_layer.c49 struct sun4i_layer_state *copy; in sun4i_backend_layer_duplicate_state() local
51 copy = kzalloc(sizeof(*copy), GFP_KERNEL); in sun4i_backend_layer_duplicate_state()
52 if (!copy) in sun4i_backend_layer_duplicate_state()
55 __drm_atomic_helper_plane_duplicate_state(plane, &copy->state); in sun4i_backend_layer_duplicate_state()
56 copy->uses_frontend = orig->uses_frontend; in sun4i_backend_layer_duplicate_state()
58 return &copy->state; in sun4i_backend_layer_duplicate_state()

12345678910>>...52