Home
last modified time | relevance | path

Searched refs:copy (Results 1 - 25 of 697) sorted by relevance

12345678910>>...28

/kernel/linux/linux-5.10/lib/zlib_inflate/
H A Dinflate.c123 unsigned copy, dist; in zlib_updatewindow() local
127 /* copy state->wsize or less output bytes into the circular window */ in zlib_updatewindow()
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, cop in zlib_updatewindow()
340 unsigned copy; /* number of stored or match bytes to copy */ zlib_inflate() local
[all...]
/kernel/linux/linux-6.6/lib/zlib_inflate/
H A Dinflate.c123 unsigned copy, dist; in zlib_updatewindow() local
127 /* copy state->wsize or less output bytes into the circular window */ in zlib_updatewindow()
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, cop in zlib_updatewindow()
340 unsigned copy; /* number of stored or match bytes to copy */ zlib_inflate() local
[all...]
/kernel/linux/linux-5.10/net/core/
H A Ddatagram.c418 int i, copy = start - offset, start_off = offset, n; in __skb_datagram_iter() local
422 if (copy > 0) { in __skb_datagram_iter()
423 if (copy > len) in __skb_datagram_iter()
424 copy = len; in __skb_datagram_iter()
426 skb->data + offset, copy, data, to); in __skb_datagram_iter()
428 if (n != copy) in __skb_datagram_iter()
430 if ((len -= copy) == 0) in __skb_datagram_iter()
442 if ((copy = end - offset) > 0) { in __skb_datagram_iter()
446 if (copy > len) in __skb_datagram_iter()
447 copy in __skb_datagram_iter()
552 int i, copy = start - offset; skb_copy_datagram_from_iter() local
701 int copy = min_t(int, skb_headlen(skb), iov_iter_count(from)); zerocopy_sg_from_iter() local
[all...]
/kernel/linux/linux-6.6/net/core/
H A Ddatagram.c412 int i, copy = start - offset, start_off = offset, n; in __skb_datagram_iter() local
416 if (copy > 0) { in __skb_datagram_iter()
417 if (copy > len) in __skb_datagram_iter()
418 copy = len; in __skb_datagram_iter()
420 skb->data + offset, copy, data, to); in __skb_datagram_iter()
422 if (n != copy) in __skb_datagram_iter()
424 if ((len -= copy) == 0) in __skb_datagram_iter()
436 if ((copy = end - offset) > 0) { in __skb_datagram_iter()
440 if (copy > len) in __skb_datagram_iter()
441 copy in __skb_datagram_iter()
546 int i, copy = start - offset; skb_copy_datagram_from_iter() local
709 int copy = min_t(int, skb_headlen(skb), iov_iter_count(from)); zerocopy_sg_from_iter() local
[all...]
/kernel/linux/linux-6.6/drivers/s390/block/
H A Ddasd_devmap.c52 struct dasd_copy_relation *copy; member
606 dev_warn(&device->cdev->dev, "Unable to query copy relation status\n"); in dasd_devmap_get_pprc_status()
615 dev_warn(&device->cdev->dev, "Error during copy relation status query\n"); in dasd_devmap_get_pprc_status()
650 * check the consistency of a specified copy relation by checking
653 * - is the given device part of a copy pair setup
662 struct dasd_copy_relation *copy) in dasd_devmap_check_copy_relation()
675 dev_warn(&device->cdev->dev, "Device not part of a copy relation\n"); in dasd_devmap_check_copy_relation()
688 "Primary device %s does not match copy pair status primary device %04x\n", in dasd_devmap_check_copy_relation()
702 "Secondary device %s does not match copy pair status secondary device %04x\n", in dasd_devmap_check_copy_relation()
711 * the current device has to be part of the copy relatio in dasd_devmap_check_copy_relation()
659 dasd_devmap_check_copy_relation(struct dasd_device *device, struct dasd_copy_entry *entry, struct dasd_pprc_data_sc4 *data, struct dasd_copy_relation *copy) dasd_devmap_check_copy_relation() argument
741 struct dasd_copy_relation *copy; dasd_devmap_delete_copy_relation_device() local
765 struct dasd_copy_relation *copy; dasd_devmap_set_device_copy_relation() local
2055 struct dasd_copy_relation *copy; dasd_copy_pair_show() local
2091 dasd_devmap_set_copy_relation(struct dasd_devmap *devmap, struct dasd_copy_relation *copy, char *busid, bool primary) dasd_devmap_set_copy_relation() argument
2122 dasd_devmap_del_copy_relation(struct dasd_copy_relation *copy, char *busid) dasd_devmap_del_copy_relation() argument
2150 struct dasd_copy_relation *copy; dasd_devmap_clear_copy_relation() local
2240 struct dasd_copy_relation *copy; dasd_copy_pair_store() local
2321 struct dasd_copy_relation *copy; dasd_copy_role_show() local
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dregset.h78 * not copy it all out.
94 * @count: amount of data to copy, in bytes
95 * @kbuf: if not %NULL, a kernel-space pointer to copy from
96 * @ubuf: if @kbuf is %NULL, a user-space pointer to copy from
250 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyin()
254 memcpy(data, *kbuf, copy); in user_regset_copyin()
255 *kbuf += copy; in user_regset_copyin()
256 } else if (__copy_from_user(data, *ubuf, copy)) in user_regset_copyin()
259 *ubuf += copy; in user_regset_copyin()
260 *pos += copy; in user_regset_copyin()
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dregset.h90 * not copy it all out.
106 * @count: amount of data to copy, in bytes
107 * @kbuf: if not %NULL, a kernel-space pointer to copy from
108 * @ubuf: if @kbuf is %NULL, a user-space pointer to copy from
262 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyin()
266 memcpy(data, *kbuf, copy); in user_regset_copyin()
267 *kbuf += copy; in user_regset_copyin()
268 } else if (__copy_from_user(data, *ubuf, copy)) in user_regset_copyin()
271 *ubuf += copy; in user_regset_copyin()
272 *pos += copy; in user_regset_copyin()
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/pcie/
H A Dtx-gen2.c57 int copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_gen2_enqueue_hcmd() local
59 if (copy > cmdlen[i]) in iwl_pcie_gen2_enqueue_hcmd()
60 copy = cmdlen[i]; in iwl_pcie_gen2_enqueue_hcmd()
61 cmdlen[i] -= copy; in iwl_pcie_gen2_enqueue_hcmd()
62 cmddata[i] += copy; in iwl_pcie_gen2_enqueue_hcmd()
63 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd()
149 /* and copy the data that needs to be copied */ in iwl_pcie_gen2_enqueue_hcmd()
151 int copy; in iwl_pcie_gen2_enqueue_hcmd() local
156 /* copy everything if not nocopy/dup */ in iwl_pcie_gen2_enqueue_hcmd()
159 copy in iwl_pcie_gen2_enqueue_hcmd()
[all...]
/kernel/linux/linux-5.10/drivers/block/
H A Dbrd.c173 size_t copy; in copy_to_brd_setup() local
176 copy = min_t(size_t, n, PAGE_SIZE - offset); in copy_to_brd_setup()
180 if (copy < n) { in copy_to_brd_setup()
181 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_SHIF in copy_to_brd()
228 size_t copy; copy_from_brd() local
[all...]
/kernel/linux/linux-6.6/drivers/block/
H A Dbrd.c127 size_t copy; in copy_to_brd_setup() local
130 copy = min_t(size_t, n, PAGE_SIZE - offset); in copy_to_brd_setup()
134 if (copy < n) { in copy_to_brd_setup()
135 sector += copy >> SECTOR_SHIFT; in copy_to_brd_setup()
150 size_t copy; in copy_to_brd() local
152 copy = min_t(size_t, n, PAGE_SIZE - offset); in copy_to_brd()
157 memcpy(dst + offset, src, copy); in copy_to_brd()
160 if (copy < n) { in copy_to_brd()
161 src += copy; in copy_to_brd()
162 sector += copy >> SECTOR_SHIF in copy_to_brd()
182 size_t copy; copy_from_brd() local
[all...]
/kernel/linux/linux-5.10/arch/xtensa/lib/
H A Dmemcopy.S61 * Byte by byte copy
92 # 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
127 * Destination and source are word-aligned, use word 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
[all...]
/kernel/linux/linux-6.6/arch/xtensa/lib/
H A Dmemcopy.S61 * Byte by byte copy
92 # 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
127 * Destination and source are word-aligned, use word 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
[all...]
/kernel/linux/linux-6.6/fs/nfsd/
H A Dnfs4proc.c58 "Enable inter server to server copy offload. Default: false");
408 * field isn't set for some reason, throw warning and just copy in set_change_info()
966 * If we do a zero copy read, then a client will see read data in nfsd4_read()
970 * To ensure proper ordering, we therefore turn off zero copy if in nfsd4_read()
1281 static void nfs4_put_copy(struct nfsd4_copy *copy) in nfs4_put_copy() argument
1283 if (!refcount_dec_and_test(&copy->refcount)) in nfs4_put_copy()
1285 kfree(copy->cp_src); in nfs4_put_copy()
1286 kfree(copy); in nfs4_put_copy()
1289 static void nfsd4_stop_copy(struct nfsd4_copy *copy) in nfsd4_stop_copy() argument
1291 if (!test_and_set_bit(NFSD4_COPY_F_STOPPED, &copy in nfsd4_stop_copy()
1298 struct nfsd4_copy *copy = NULL; nfsd4_get_copy() local
1312 struct nfsd4_copy *copy; nfsd4_shutdown_copy() local
1508 nfsd4_setup_inter_ssc(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_copy *copy) nfsd4_setup_inter_ssc() argument
1566 nfsd4_setup_inter_ssc(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_copy *copy) nfsd4_setup_inter_ssc() argument
1588 nfsd4_setup_intra_ssc(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_copy *copy) nfsd4_setup_intra_ssc() argument
1620 nfsd4_init_copy_res(struct nfsd4_copy *copy, bool sync) nfsd4_init_copy_res() argument
1629 _nfsd_copy_file_range(struct nfsd4_copy *copy, struct file *dst, struct file *src) _nfsd_copy_file_range() argument
1669 nfsd4_do_copy(struct nfsd4_copy *copy, struct file *src, struct file *dst, bool sync) nfsd4_do_copy() argument
1711 release_copy_files(struct nfsd4_copy *copy) release_copy_files() argument
1719 cleanup_async_copy(struct nfsd4_copy *copy) cleanup_async_copy() argument
1732 nfsd4_send_cb_offload(struct nfsd4_copy *copy, __be32 nfserr) nfsd4_send_cb_offload() argument
1760 struct nfsd4_copy *copy = (struct nfsd4_copy *)data; nfsd4_do_async_copy() local
1797 struct nfsd4_copy *copy = &u->copy; nfsd4_copy() local
1870 struct nfsd4_copy *copy; find_async_copy_locked() local
1885 struct nfsd4_copy *copy; find_async_copy() local
1901 struct nfsd4_copy *copy; nfsd4_offload_cancel() local
1987 struct nfsd4_copy *copy; nfsd4_offload_status() local
2578 struct nfsd4_copy *copy; check_if_stalefh_allowed() local
[all...]
/kernel/linux/linux-5.10/arch/nds32/lib/
H A 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 th
[all...]
/kernel/linux/linux-5.10/arch/parisc/kernel/
H A Dentry.S111 copy %r30, %r17
124 copy %r9,%r29
132 copy %r30,%r1
138 copy %r9,%r29
383 copy \spc,\tmp
410 copy %r0,\pte
424 copy %r0,\pte
505 copy \pte,\tmp
592 * copy user pages at addresses congruent with the user
607 copy \v
[all...]
/kernel/linux/linux-5.10/fs/nfsd/
H A Dnfs4proc.c782 * If we do a zero copy read, then a client will see read data in nfsd4_read()
786 * To ensure proper ordering, we therefore turn off zero copy if in nfsd4_read()
1108 void nfs4_put_copy(struct nfsd4_copy *copy) in nfs4_put_copy() argument
1110 if (!refcount_dec_and_test(&copy->refcount)) in nfs4_put_copy()
1112 kfree(copy); in nfs4_put_copy()
1116 check_and_set_stop_copy(struct nfsd4_copy *copy) in check_and_set_stop_copy() argument
1120 spin_lock(&copy->cp_clp->async_lock); in check_and_set_stop_copy()
1121 value = copy->stopped; in check_and_set_stop_copy()
1122 if (!copy->stopped) in check_and_set_stop_copy()
1123 copy in check_and_set_stop_copy()
1128 nfsd4_stop_copy(struct nfsd4_copy *copy) nfsd4_stop_copy() argument
1138 struct nfsd4_copy *copy = NULL; nfsd4_get_copy() local
1152 struct nfsd4_copy *copy; nfsd4_shutdown_copy() local
1261 nfsd4_setup_inter_ssc(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_copy *copy, struct vfsmount **mount) nfsd4_setup_inter_ssc() argument
1306 nfsd4_setup_inter_ssc(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_copy *copy, struct vfsmount **mount) nfsd4_setup_inter_ssc() argument
1330 nfsd4_setup_intra_ssc(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_copy *copy) nfsd4_setup_intra_ssc() argument
1348 struct nfsd4_copy *copy = container_of(cb, struct nfsd4_copy, cp_cb); nfsd4_cb_offload_release() local
1364 nfsd4_init_copy_res(struct nfsd4_copy *copy, bool sync) nfsd4_init_copy_res() argument
1371 _nfsd_copy_file_range(struct nfsd4_copy *copy) _nfsd_copy_file_range() argument
1395 nfsd4_do_copy(struct nfsd4_copy *copy, bool sync) nfsd4_do_copy() argument
1441 cleanup_async_copy(struct nfsd4_copy *copy) cleanup_async_copy() argument
1455 struct nfsd4_copy *copy = (struct nfsd4_copy *)data; nfsd4_do_async_copy() local
1498 struct nfsd4_copy *copy = &u->copy; nfsd4_copy() local
1562 struct nfsd4_copy *copy; find_async_copy() local
1582 struct nfsd4_copy *copy; nfsd4_offload_cancel() local
1669 struct nfsd4_copy *copy; nfsd4_offload_status() local
2280 struct nfsd4_copy *copy; check_if_stalefh_allowed() local
[all...]
/kernel/linux/linux-5.10/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 */
/kernel/linux/linux-6.6/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 */
/kernel/linux/linux-6.6/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
578 * aligned to 8 MB. It is used to clear/copy/flush user pages
589 copy \v
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
H A Dqxl_draw.c5 * copy of this software and associated documentation files (the "Software"),
7 * on the rights to use, copy, modify, merge, publish, distribute, sub
222 drawable->u.copy.src_area.top = 0; in qxl_draw_dirty_fb()
223 drawable->u.copy.src_area.bottom = height; in qxl_draw_dirty_fb()
224 drawable->u.copy.src_area.left = 0; in qxl_draw_dirty_fb()
225 drawable->u.copy.src_area.right = width; in qxl_draw_dirty_fb()
227 drawable->u.copy.rop_descriptor = SPICE_ROPD_OP_PUT; in qxl_draw_dirty_fb()
228 drawable->u.copy.scale_mode = 0; in qxl_draw_dirty_fb()
229 drawable->u.copy.mask.flags = 0; in qxl_draw_dirty_fb()
230 drawable->u.copy in qxl_draw_dirty_fb()
[all...]
/kernel/linux/linux-6.6/lib/kunit/
H A Dexecutor.c61 /* glob_match() needs NULL terminated strings, so we need a copy of filter_glob_param. */
100 /* Create a copy of suite with only tests that match test_glob. */
106 struct kunit_suite *copy; in kunit_filter_glob_tests() local
116 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL); in kunit_filter_glob_tests()
117 if (!copy) in kunit_filter_glob_tests()
122 kfree(copy); in kunit_filter_glob_tests()
132 copy->test_cases = filtered; in kunit_filter_glob_tests()
133 return copy; in kunit_filter_glob_tests()
160 struct kunit_suite **copy, **copy_star in kunit_filter_suites() local
[all...]
/kernel/linux/linux-5.10/net/sunrpc/
H A Dxdr.c212 * @len: number of bytes to copy
227 size_t copy; in _shift_data_left_pages() local
247 copy = len; in _shift_data_left_pages()
248 if (copy > (PAGE_SIZE - pgto_base)) in _shift_data_left_pages()
249 copy = PAGE_SIZE - pgto_base; in _shift_data_left_pages()
250 if (copy > (PAGE_SIZE - pgfrom_base)) in _shift_data_left_pages()
251 copy = PAGE_SIZE - pgfrom_base; in _shift_data_left_pages()
256 memcpy(vto + pgto_base, vfrom + pgfrom_base, copy); in _shift_data_left_pages()
259 memmove(vto + pgto_base, vto + pgfrom_base, copy); in _shift_data_left_pages()
263 pgto_base += copy; in _shift_data_left_pages()
309 size_t copy; _shift_data_right_pages() local
360 size_t copy; _shift_data_right_tail() local
409 size_t copy; _copy_to_pages() local
453 size_t copy; _copy_from_pages() local
523 size_t copy, offs; xdr_shrink_bufhead() local
[all...]
/kernel/linux/linux-5.10/drivers/base/test/
H A Dproperty-entry-test.c311 struct property_entry *copy; in pe_test_move_inline_u8() local
314 copy = property_entries_dup(entries); in pe_test_move_inline_u8()
315 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, copy); in pe_test_move_inline_u8()
317 KUNIT_EXPECT_TRUE(test, copy[0].is_inline); in pe_test_move_inline_u8()
318 data_ptr = (u8 *)&copy[0].value; in pe_test_move_inline_u8()
322 KUNIT_EXPECT_FALSE(test, copy[1].is_inline); in pe_test_move_inline_u8()
323 data_ptr = copy[1].pointer; in pe_test_move_inline_u8()
327 property_entries_free(copy); in pe_test_move_inline_u8()
343 struct property_entry *copy; in pe_test_move_inline_str() local
346 copy in pe_test_move_inline_str()
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/pcie/
H A Dtx-gen2.c104 int copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_gen2_enqueue_hcmd() local
106 if (copy > cmdlen[i]) in iwl_pcie_gen2_enqueue_hcmd()
107 copy = cmdlen[i]; in iwl_pcie_gen2_enqueue_hcmd()
108 cmdlen[i] -= copy; in iwl_pcie_gen2_enqueue_hcmd()
109 cmddata[i] += copy; in iwl_pcie_gen2_enqueue_hcmd()
110 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd()
196 /* and copy the data that needs to be copied */ in iwl_pcie_gen2_enqueue_hcmd()
198 int copy; in iwl_pcie_gen2_enqueue_hcmd() local
203 /* copy everything if not nocopy/dup */ in iwl_pcie_gen2_enqueue_hcmd()
206 copy in iwl_pcie_gen2_enqueue_hcmd()
[all...]
/kernel/linux/linux-6.6/drivers/base/test/
H A Dproperty-entry-test.c353 struct property_entry *copy; in pe_test_move_inline_u8() local
356 copy = property_entries_dup(entries); in pe_test_move_inline_u8()
357 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, copy); in pe_test_move_inline_u8()
359 KUNIT_EXPECT_TRUE(test, copy[0].is_inline); in pe_test_move_inline_u8()
360 data_ptr = (u8 *)&copy[0].value; in pe_test_move_inline_u8()
364 KUNIT_EXPECT_FALSE(test, copy[1].is_inline); in pe_test_move_inline_u8()
365 data_ptr = copy[1].pointer; in pe_test_move_inline_u8()
369 property_entries_free(copy); in pe_test_move_inline_u8()
385 struct property_entry *copy; in pe_test_move_inline_str() local
388 copy in pe_test_move_inline_str()
[all...]

Completed in 22 milliseconds

12345678910>>...28