Home
last modified time | relevance | path

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

12345678910>>...115

/openbmc/qemu/tests/unit/
H A Dcheck-block-qdict.c18 QDict *dict, *copy; in qdict_defaults_test() local
21 copy = qdict_new(); in qdict_defaults_test()
28 qdict_copy_default(copy, dict, "foo"); in qdict_defaults_test()
29 g_assert_cmpstr(qdict_get_str(copy, "foo"), ==, "abc"); in qdict_defaults_test()
30 qdict_set_default_str(copy, "bar", "xyz"); in qdict_defaults_test()
31 qdict_copy_default(copy, dict, "bar"); in qdict_defaults_test()
32 g_assert_cmpstr(qdict_get_str(copy, "bar"), ==, "xyz"); in qdict_defaults_test()
34 qobject_unref(copy); in qdict_defaults_test()
529 QDict *copy; in qdict_rename_keys_test() local
543 copy = qdict_clone_shallow(dict); in qdict_rename_keys_test()
[all …]
/openbmc/u-boot/lib/zlib/
H A Dinflate.c103 unsigned copy, dist; in updatewindow() local
123 copy = out - strm->avail_out; in updatewindow()
124 if (copy >= state->wsize) { in updatewindow()
131 if (dist > copy) dist = copy; in updatewindow()
132 zmemcpy(state->window + state->write, strm->next_out - copy, dist); in updatewindow()
133 copy -= dist; in updatewindow()
134 if (copy) { in updatewindow()
135 zmemcpy(state->window, strm->next_out - copy, copy); in updatewindow()
136 state->write = copy; in updatewindow()
337 unsigned copy; /* number of stored or match bytes to copy */ in inflate() local
[all …]
/openbmc/linux/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()
441 if (copy > len) in __skb_datagram_iter()
442 copy = len; in __skb_datagram_iter()
[all …]
/openbmc/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 …]
/openbmc/linux/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_SHIFT; in copy_to_brd()
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/tests/
H A Dcow.py80 a = COWDictBase.copy()
97 b = COWDictBase.copy()
98 c = COWDictBase.copy()
111 b_2 = b.copy()
112 c_2 = c.copy()
133 c_3 = c_2.copy()
134 b_3 = b_2.copy()
135 b_3_2 = b_2.copy()
155 c = COWDictBase.copy()
160 copy = c.copy()
[all …]
/openbmc/linux/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()
151 int copy; in iwl_pcie_gen2_enqueue_hcmd() local
159 copy = cmd->len[i]; in iwl_pcie_gen2_enqueue_hcmd()
161 memcpy((u8 *)out_cmd + cmd_pos, cmd->data[i], copy); in iwl_pcie_gen2_enqueue_hcmd()
162 cmd_pos += copy; in iwl_pcie_gen2_enqueue_hcmd()
[all …]
/openbmc/linux/include/linux/
H A Dregset.h262 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyin() local
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()
273 *count -= copy; in user_regset_copyin()
289 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyin_ignore() local
292 *kbuf += copy; in user_regset_copyin_ignore()
294 *ubuf += copy; in user_regset_copyin_ignore()
[all …]
/openbmc/linux/drivers/s390/block/
H A Ddasd_devmap.c52 struct dasd_copy_relation *copy; member
662 struct dasd_copy_relation *copy) in dasd_devmap_check_copy_relation() argument
715 if (entry == &copy->entry[j]) in dasd_devmap_check_copy_relation()
718 tmp_dev = copy->entry[j].device; in dasd_devmap_check_copy_relation()
741 struct dasd_copy_relation *copy; in dasd_devmap_delete_copy_relation_device() local
744 if (!device->copy) in dasd_devmap_delete_copy_relation_device()
747 copy = device->copy; in dasd_devmap_delete_copy_relation_device()
749 if (copy->entry[i].device == device) in dasd_devmap_delete_copy_relation_device()
750 copy->entry[i].device = NULL; in dasd_devmap_delete_copy_relation_device()
753 device->copy = NULL; in dasd_devmap_delete_copy_relation_device()
[all …]
/openbmc/linux/fs/nfsd/
H A Dnfs4proc.c1272 static void nfs4_put_copy(struct nfsd4_copy *copy) in nfs4_put_copy() argument
1274 if (!refcount_dec_and_test(&copy->refcount)) in nfs4_put_copy()
1276 atomic_dec(&copy->cp_nn->pending_async_copies); in nfs4_put_copy()
1277 kfree(copy->cp_src); in nfs4_put_copy()
1278 kfree(copy); in nfs4_put_copy()
1281 static void nfsd4_stop_copy(struct nfsd4_copy *copy) in nfsd4_stop_copy() argument
1283 if (!test_and_set_bit(NFSD4_COPY_F_STOPPED, &copy->cp_flags)) in nfsd4_stop_copy()
1284 kthread_stop(copy->copy_task); in nfsd4_stop_copy()
1285 nfs4_put_copy(copy); in nfsd4_stop_copy()
1290 struct nfsd4_copy *copy = NULL; in nfsd4_unhash_copy() local
[all …]
/openbmc/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 …]
/openbmc/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
589 copy \va,\tmp1
748 copy %r31, %r2
[all …]
/openbmc/linux/lib/kunit/
H A Dexecutor.c106 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_start, *filtered_suite, *new_filtered_suite; in kunit_filter_suites() local
168 copy = kcalloc(max, sizeof(*filtered.start), GFP_KERNEL); in kunit_filter_suites()
169 if (!copy) { /* won't be able to run anything, return an empty set */ in kunit_filter_suites()
172 copy_start = copy; in kunit_filter_suites()
[all …]
/openbmc/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 …]
/openbmc/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 */
/openbmc/linux/lib/
H A Dtest_bitmap.c744 DECLARE_BITMAP(copy, 500); in test_for_each_set_bit_wrap()
757 bitmap_zero(copy, 500); in test_for_each_set_bit_wrap()
760 bitmap_set(copy, bit, 1); in test_for_each_set_bit_wrap()
762 expect_eq_bitmap(orig, copy, 500); in test_for_each_set_bit_wrap()
769 DECLARE_BITMAP(copy, 500); in test_for_each_set_bit()
773 bitmap_zero(copy, 500); in test_for_each_set_bit()
783 bitmap_set(copy, bit, 1); in test_for_each_set_bit()
785 expect_eq_bitmap(orig, copy, 500); in test_for_each_set_bit()
791 DECLARE_BITMAP(copy, 500); in test_for_each_set_bit_from()
806 bitmap_zero(copy, 500); in test_for_each_set_bit_from()
[all …]
/openbmc/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_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()
H A Dw1_ds2805.c208 int copy; in w1_f0d_write_bin() local
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()
255 len -= copy; in w1_f0d_write_bin()
/openbmc/linux/Documentation/staging/
H A Dlzo.rst27 - 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
101 noting that code 16 will represent a block copy from the
111 18..21 : copy 0..3 literals
112 state = (byte - 17) = 0..3 [ copy <state> literals ]
115 22..255 : copy literal string
117 state = 4 [ don't copy extra literals ]
[all …]
/openbmc/qemu/target/i386/hvf/
H A Dx86_mmu.c244 int copy = MIN(bytes, 0x1000 - (gva & 0xfff)); in vmx_write_mem() local
250 MEMTXATTRS_UNSPECIFIED, data, copy); in vmx_write_mem()
253 bytes -= copy; in vmx_write_mem()
254 gva += copy; in vmx_write_mem()
255 data += copy; in vmx_write_mem()
265 int copy = MIN(bytes, 0x1000 - (gva & 0xfff)); in vmx_read_mem() local
271 data, copy); in vmx_read_mem()
273 bytes -= copy; in vmx_read_mem()
274 gva += copy; in vmx_read_mem()
275 data += copy; in vmx_read_mem()
/openbmc/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 …]
/openbmc/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)
/openbmc/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[1].to_rid = vf->pci_rid; in __efx_siena_sriov_push_vf_status()
432 copy[1].to_addr = vf->status_addr + data_offset; in __efx_siena_sriov_push_vf_status()
[all …]
/openbmc/linux/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 = property_entries_dup(entries); in pe_test_move_inline_str()
[all …]

12345678910>>...115