Home
last modified time | relevance | path

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

12345678910>>...38

/linux/lib/zlib_inflate/
H A Dinflate.c123 unsigned copy, dist; in zlib_updatewindow() local
128 copy = out - strm->avail_out; in zlib_updatewindow()
129 if (copy >= state->wsize) { in zlib_updatewindow()
136 if (dist > copy) dist = copy; in zlib_updatewindow()
137 memcpy(state->window + state->write, strm->next_out - copy, dist); in zlib_updatewindow()
138 copy -= dist; in zlib_updatewindow()
139 if (copy) { in zlib_updatewindow()
140 memcpy(state->window, strm->next_out - copy, copy); in zlib_updatewindow()
141 state->write = copy; in zlib_updatewindow()
340 unsigned copy; /* number of stored or match bytes to copy */ in zlib_inflate() local
[all …]
/linux/fs/nfsd/
H A Dnfs4proc.c62 "Enable inter server to server copy offload. Default: false");
64 static void cleanup_async_copy(struct nfsd4_async_copy *copy);
538 * field isn't set for some reason, throw warning and just copy in do_open_fhandle()
1131 * If we do a zero copy read, then a client will see read data in nfsd4_rename()
1135 * To ensure proper ordering, we therefore turn off zero copy if in nfsd4_rename()
1562 * nfsd4_has_active_async_copies - Check for ongoing copy operations in nfsd4_unhash_copy()
1576 struct nfsd4_async_copy *copy; in nfsd4_shutdown_copy()
1580 list_for_each_entry(copy, &clp->async_copies, copies) { in nfsd4_shutdown_copy()
1581 if (!test_bit(NFSD4_COPY_F_COMPLETED, &copy->cp_copy.cp_flags) &&
1582 !test_bit(NFSD4_COPY_F_STOPPED, &copy argument
1469 struct nfsd4_async_copy *copy; nfsd4_has_active_async_copies() local
1491 struct nfsd4_async_copy *copy; nfsd4_async_copy_reaper() local
1521 nfs4_put_copy(struct nfsd4_async_copy * copy) nfs4_put_copy() argument
1534 nfsd4_stop_copy(struct nfsd4_async_copy * copy) nfsd4_stop_copy() argument
1555 struct nfsd4_async_copy *copy = NULL; nfsd4_unhash_copy() local
1573 struct nfsd4_async_copy *copy; nfsd4_shutdown_copy() local
1606 struct nfsd4_async_copy *copy, *tmp; nfsd4_cancel_copy_by_sb() local
1848 nfsd4_setup_inter_ssc(struct svc_rqst * rqstp,struct nfsd4_compound_state * cstate,struct nfsd4_copy * copy) nfsd4_setup_inter_ssc() argument
1906 nfsd4_setup_inter_ssc(struct svc_rqst * rqstp,struct nfsd4_compound_state * cstate,struct nfsd4_copy * copy) nfsd4_setup_inter_ssc() argument
1928 nfsd4_setup_intra_ssc(struct svc_rqst * rqstp,struct nfsd4_compound_state * cstate,struct nfsd4_copy * copy) nfsd4_setup_intra_ssc() argument
1939 struct nfsd4_async_copy *copy = nfsd4_cb_offload_release() local
1973 nfsd4_init_copy_res(struct nfsd4_copy * copy,bool sync) nfsd4_init_copy_res() argument
1981 _nfsd_copy_file_range(struct nfsd4_copy * copy,struct file * dst,struct file * src) _nfsd_copy_file_range() argument
2024 nfsd4_do_copy(struct nfsd4_copy * copy,struct file * src,struct file * dst,bool sync) nfsd4_do_copy() argument
2065 release_copy_files(struct nfsd4_copy * copy) release_copy_files() argument
2081 cleanup_async_copy(struct nfsd4_async_copy * copy) cleanup_async_copy() argument
2087 nfsd4_send_cb_offload(struct nfsd4_async_copy * copy) nfsd4_send_cb_offload() argument
2138 struct nfsd4_copy *copy = &async->cp_copy; nfsd4_do_async_copy() local
2192 struct nfsd4_copy *copy = &u->copy; nfsd4_copy() local
2312 struct nfsd4_async_copy *copy; find_async_copy_locked() local
2327 struct nfsd4_async_copy *copy; find_async_copy() local
2352 struct nfsd4_async_copy *copy; nfsd4_offload_cancel() local
2476 struct nfsd4_async_copy *copy; nfsd4_offload_status() local
3152 struct nfsd4_copy *copy; check_if_stalefh_allowed() local
[all...]
/linux/net/core/
H A Ddatagram.c395 int i, copy = start - offset, start_off = offset, n; in __skb_datagram_iter() local
399 if (copy > 0) { in __skb_datagram_iter()
400 if (copy > len) in __skb_datagram_iter()
401 copy = len; in __skb_datagram_iter()
403 skb->data + offset, copy, data, to); in __skb_datagram_iter()
405 if (n != copy) in __skb_datagram_iter()
407 if ((len -= copy) == 0) in __skb_datagram_iter()
422 if ((copy = end - offset) > 0) { in __skb_datagram_iter()
427 if (copy > len) in __skb_datagram_iter()
428 copy in __skb_datagram_iter()
554 int i, copy = start - offset; skb_copy_datagram_from_iter() local
789 int copy = min_t(int, skb_headlen(skb), iov_iter_count(from)); zerocopy_sg_from_iter() local
[all...]
H A Dskbuff.c20 * Alan Cox : skb_copy copy arp field
932 * skb_pp_cow_data() - copy skb data into page-pool backed storage
1558 /* We do not copy old->sk */
1989 * skb_copy_ubufs - copy userspace skb frags buffers to kernel
1994 * It will copy all frags into kernel and drop the reference
2001 * to allocate kernel memory to copy to. in skb_copy_ubufs()
2052 u32 copy, done = 0; in skb_copy_ubufs()
2060 copy = min_t(u32, psize - d_off, p_len - done); in skb_copy_ubufs()
2062 vaddr + p_off + done, copy); in skb_copy_ubufs()
2063 done += copy; in skb_copy_ubufs()
2049 u32 copy, done = 0; skb_copy_ubufs() local
3026 int i, copy; skb_copy_bits() local
3455 int i, copy; skb_store_bits() local
3535 int i, copy = start - offset; skb_checksum() local
3618 int i, copy = start - offset; skb_copy_and_csum_bits() local
3710 int i, copy = start - offset; skb_crc32c() local
5250 int i, copy = start - offset; __skb_to_sgvec() local
[all...]
/linux/drivers/s390/block/
H A Ddasd_devmap.c50 struct dasd_copy_relation *copy; member
661 struct dasd_copy_relation *copy) in dasd_devmap_check_copy_relation() argument
714 if (entry == &copy->entry[j]) in dasd_devmap_check_copy_relation()
717 tmp_dev = copy->entry[j].device; in dasd_devmap_check_copy_relation()
740 struct dasd_copy_relation *copy; in dasd_devmap_delete_copy_relation_device() local
743 if (!device->copy) in dasd_devmap_delete_copy_relation_device()
746 copy = device->copy; in dasd_devmap_delete_copy_relation_device()
748 if (copy->entry[i].device == device) in dasd_devmap_delete_copy_relation_device()
749 copy->entry[i].device = NULL; in dasd_devmap_delete_copy_relation_device()
752 device->copy = NULL; in dasd_devmap_delete_copy_relation_device()
[all …]
/linux/Documentation/admin-guide/device-mapper/
H A Dkcopyd.rst5 Kcopyd provides the ability to copy a range of sectors from one block-device
10 to set aside for their copy jobs. This is done with a call to
16 To start a copy job, the user must set up io_region structures to describe
17 the source and destinations of the copy. Each io_region indicates a
19 of the copy is given as one io_region structure, and the destinations of the
20 copy are given as an array of io_region structures::
28 To start the copy, the user calls kcopyd_copy(), passing in the client
30 completion callback routine, and a pointer to some context data for the copy::
39 When the copy completes, kcopyd will call the user's completion routine,
41 write error occurred during the copy.
[all …]
/linux/include/linux/
H A Dregset.h272 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyin() local
276 memcpy(data, *kbuf, copy); in user_regset_copyin()
277 *kbuf += copy; in user_regset_copyin()
278 } else if (__copy_from_user(data, *ubuf, copy)) in user_regset_copyin()
281 *ubuf += copy; in user_regset_copyin()
282 *pos += copy; in user_regset_copyin()
283 *count -= copy; in user_regset_copyin()
299 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyin_ignore() local
302 *kbuf += copy; in user_regset_copyin_ignore()
304 *ubuf += copy; in user_regset_copyin_ignore()
[all …]
/linux/arch/parisc/kernel/
H A Dentry.S104 copy %r30, %r17
116 copy %r9,%r29
124 copy %r30,%r1
130 copy %r9,%r29
375 copy \spc,\tmp
394 copy %r0,\pte
408 copy %r0,\pte
483 copy \pte,\tmp
585 * aligned to 8 MB. It is used to clear/copy/flush user pages
596 copy \v
[all...]
/linux/arch/xtensa/lib/
H A 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 …]
H A Dusercopy.S70 mov a5, a2 # copy dst so that a2 is return value
79 bnone a3, a8, .Laligned # then use word copy
92 # copy 1 byte
101 # copy 2 bytes
140 # copy 16 bytes per iteration for word-aligned dst and word-aligned src
167 # copy 8 bytes
176 # copy 4 bytes
183 # copy 2 bytes
190 # copy 1 byte
205 # copy 16 bytes per iteration for word-aligned dst and unaligned src
[all …]
/linux/lib/kunit/
H A Dexecutor.c91 /* glob_match() needs NULL terminated strings, so we need a copy of filter_glob_param. */
124 /* Create a copy of suite with only tests that match test_glob. */
130 struct kunit_suite *copy; in kunit_filter_glob_tests() local
140 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL); in kunit_filter_glob_tests()
141 if (!copy) in kunit_filter_glob_tests()
146 kfree(copy); in kunit_filter_glob_tests()
156 copy->test_cases = filtered; in kunit_filter_glob_tests()
157 return copy; in kunit_filter_glob_tests()
184 struct kunit_suite **copy, **copy_star in kunit_filter_suites() local
[all...]
/linux/arch/parisc/boot/compressed/
H A 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/drivers/w1/slaves/
H A Dw1_ds2430.c210 int copy; in eeprom_write() local
235 copy = W1_F14_SCRATCH_SIZE - in eeprom_write()
238 if (copy > len) in eeprom_write()
239 copy = len; in eeprom_write()
241 memcpy(&tmp[addr & W1_F14_SCRATCH_MASK], buf, copy); in eeprom_write()
249 copy = W1_F14_SCRATCH_SIZE; in eeprom_write()
250 if (w1_f14_write(sl, addr, copy, buf) < 0) { in eeprom_write()
255 buf += copy; in eeprom_write()
256 addr += copy; in eeprom_write()
257 len -= copy; in eeprom_write()
H A Dw1_ds2805.c208 int copy; in w1_f0d_write_bin() local
232 /* copy at most to the boundary of the PAGE or len */ in w1_f0d_write_bin()
233 copy = W1_F0D_SCRATCH_SIZE - in w1_f0d_write_bin()
236 if (copy > len) in w1_f0d_write_bin()
237 copy = len; in w1_f0d_write_bin()
239 memcpy(&tmp[addr & W1_F0D_SCRATCH_MASK], buf, copy); in w1_f0d_write_bin()
247 copy = W1_F0D_SCRATCH_SIZE; in w1_f0d_write_bin()
248 if (w1_f0d_write(sl, addr, copy, buf) < 0) { in w1_f0d_write_bin()
253 buf += copy; in w1_f0d_write_bin()
254 addr += copy; in w1_f0d_write_bin()
[all...]
H A Dw1_ds2431.c209 int copy; in eeprom_write() local
234 copy = W1_F2D_SCRATCH_SIZE - in eeprom_write()
237 if (copy > len) in eeprom_write()
238 copy = len; in eeprom_write()
240 memcpy(&tmp[addr & W1_F2D_SCRATCH_MASK], buf, copy); in eeprom_write()
248 copy = W1_F2D_SCRATCH_SIZE; in eeprom_write()
249 if (w1_f2d_write(sl, addr, copy, buf) < 0) { in eeprom_write()
254 buf += copy; in eeprom_write()
255 addr += copy; in eeprom_write()
256 len -= copy; in eeprom_write()
/linux/arch/s390/lib/
H A Dcsum-partial.c19 static __always_inline __wsum csum_copy(void *dst, const void *src, int len, __wsum sum, bool copy) in csum_copy() argument
24 if (copy) in csum_copy()
35 if (copy) { in csum_copy()
48 if (copy) { in csum_copy()
59 if (copy) { in csum_copy()
69 if (copy) in csum_copy()
/linux/drivers/gpu/drm/qxl/
H A Dqxl_draw.c229 drawable->u.copy.src_area.top = 0; in qxl_draw_dirty_fb()
230 drawable->u.copy.src_area.bottom = height; in qxl_draw_dirty_fb()
231 drawable->u.copy.src_area.left = 0; in qxl_draw_dirty_fb()
232 drawable->u.copy.src_area.right = width; in qxl_draw_dirty_fb()
234 drawable->u.copy.rop_descriptor = SPICE_ROPD_OP_PUT; in qxl_draw_dirty_fb()
235 drawable->u.copy.scale_mode = 0; in qxl_draw_dirty_fb()
236 drawable->u.copy.mask.flags = 0; in qxl_draw_dirty_fb()
237 drawable->u.copy.mask.pos.x = 0; in qxl_draw_dirty_fb()
238 drawable->u.copy.mask.pos.y = 0; in qxl_draw_dirty_fb()
239 drawable->u.copy.mask.bitmap = 0; in qxl_draw_dirty_fb()
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Dsiena_sriov.c405 struct efx_memcpy_req copy[4]; in __efx_siena_sriov_push_vf_status() local
417 memset(copy, '\0', sizeof(copy)); in __efx_siena_sriov_push_vf_status()
419 copy[0].from_buf = &status->generation_start; in __efx_siena_sriov_push_vf_status()
420 copy[0].to_rid = vf->pci_rid; in __efx_siena_sriov_push_vf_status()
421 copy[0].to_addr = vf->status_addr + offsetof(struct vfdi_status, in __efx_siena_sriov_push_vf_status()
423 copy[0].length = sizeof(status->generation_start); in __efx_siena_sriov_push_vf_status()
429 copy[1].from_rid = efx->pci_dev->devfn; in __efx_siena_sriov_push_vf_status()
430 copy[1].from_addr = nic_data->vfdi_status.dma_addr + data_offset; in __efx_siena_sriov_push_vf_status()
431 copy[ in __efx_siena_sriov_push_vf_status()
877 struct efx_memcpy_req copy[2]; efx_siena_sriov_vfdi() local
[all...]
/linux/Documentation/input/devices/
H A 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/drivers/gpu/drm/tegra/
H A Dplane.c51 struct tegra_plane_state *copy;
54 copy = kmalloc_obj(*copy); in tegra_plane_atomic_duplicate_state()
55 if (!copy) in tegra_plane_atomic_duplicate_state() local
58 __drm_atomic_helper_plane_duplicate_state(plane, &copy->base); in tegra_plane_atomic_duplicate_state()
59 copy->tiling = state->tiling; in tegra_plane_atomic_duplicate_state()
60 copy->format = state->format; in tegra_plane_atomic_duplicate_state()
61 copy->swap = state->swap; in tegra_plane_atomic_duplicate_state()
62 copy->reflect_x = state->reflect_x; in tegra_plane_atomic_duplicate_state()
63 copy in tegra_plane_atomic_duplicate_state()
[all...]
/linux/lib/
H A Dtest_bitmap.c830 DECLARE_BITMAP(copy, 500); in test_for_each_set_bit_wrap()
843 bitmap_zero(copy, 500); in test_for_each_set_bit()
846 bitmap_set(copy, bit, 1); in test_for_each_set_bit()
848 expect_eq_bitmap(orig, copy, 500); in test_for_each_set_bit()
855 DECLARE_BITMAP(copy, 500); in test_for_each_set_bit()
859 bitmap_zero(copy, 500); in test_for_each_set_bit()
869 bitmap_set(copy, bit, 1); in test_for_each_set_bit_from()
871 expect_eq_bitmap(orig, copy, 500); in test_for_each_set_bit_from()
877 DECLARE_BITMAP(copy, 500); in test_for_each_set_bit_from()
892 bitmap_zero(copy, 50 in test_for_each_set_bit_from()
[all...]
/linux/security/ipe/
H A Dfs.c140 char *copy = NULL; in new_policy() local
148 copy = memdup_user_nul(data, len); in new_policy()
149 if (IS_ERR(copy)) { in new_policy()
150 rc = PTR_ERR(copy); in new_policy()
151 copy = NULL; in new_policy()
155 p = ipe_new_policy(NULL, 0, copy, len); in new_policy()
164 kfree(copy); in new_policy()
/linux/drivers/base/test/
H A Dproperty-entry-test.c355 struct property_entry *copy; in pe_test_move_inline_u8() local
358 copy = property_entries_dup(entries); in pe_test_move_inline_u8()
359 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, copy); in pe_test_move_inline_u8()
361 KUNIT_EXPECT_TRUE(test, copy[0].is_inline); in pe_test_move_inline_u8()
362 data_ptr = (u8 *)&copy[0].value; in pe_test_move_inline_u8()
366 KUNIT_EXPECT_FALSE(test, copy[1].is_inline); in pe_test_move_inline_u8()
367 data_ptr = copy[1].pointer; in pe_test_move_inline_u8()
371 property_entries_free(copy); in pe_test_move_inline_u8()
387 struct property_entry *copy; in pe_test_move_inline_str() local
390 copy = property_entries_dup(entries); in pe_test_move_inline_str()
[all …]
/linux/tools/perf/Documentation/
H A Dguest-files.txt4 Guest OS /proc/kallsyms file copy. perf reads it to get guest
5 kernel symbols. Users copy it out from guest OS.
8 Guest OS /proc/modules file copy. perf reads it to get guest
9 kernel module information. Users copy it out from guest OS.
/linux/drivers/gpu/drm/xe/
H A Dxe_guc_log.c132 snapshot->copy = kzalloc_objs(*snapshot->copy, snapshot->num_chunks, in xe_guc_log_snapshot_alloc()
134 if (!snapshot->copy) in xe_guc_log_snapshot_alloc()
141 snapshot->copy[i] = kmalloc(size, atomic ? GFP_ATOMIC : GFP_KERNEL); in xe_guc_log_snapshot_alloc()
142 if (!snapshot->copy[i]) in xe_guc_log_snapshot_alloc()
151 kfree(snapshot->copy[i]); in xe_guc_log_snapshot_alloc()
152 kfree(snapshot->copy); in xe_guc_log_snapshot_alloc()
172 if (snapshot->copy) { in xe_guc_log_snapshot_free()
174 kfree(snapshot->copy[i]); in xe_guc_log_snapshot_free()
175 kfree(snapshot->copy); in xe_guc_log_snapshot_free()
[all...]

12345678910>>...38