Home
last modified time | relevance | path

Searched +full:block +full:- +full:copy (Results 1 – 25 of 1072) sorted by relevance

12345678910>>...43

/openbmc/linux/Documentation/staging/
H A Dlzo.rst26 - a distance when copying data from the dictionary (past output buffer)
27 - a length (number of bytes to copy from dictionary)
28 - the number of literals to copy, which is retained in variable "state"
35 The first byte of the block follows a different encoding from other bytes, it
45 length = byte & ((1 << #bits) - 1)
47 length = ((1 << #bits) - 1)
49 length += first-non-zero-byte
55 ranges, resulting in multiple copy instructions using different encodings.
57 forming a little-endian 16-bit quantity (marked LE16 below).
59 After any instruction except the large literal copy, 0, 1, 2 or 3 literals
[all …]
/openbmc/qemu/include/block/
H A Dblock-copy.h9 * Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
12 * See the COPYING file in the top-level directory.
18 #include "block/block-common.h"
21 /* All APIs are thread-safe */
34 /* Function should be called prior any actual copy request */
52 * Run block-copy in a coroutine, create corresponding BlockCopyCallState
58 * @max_workers means maximum of parallel coroutines to execute sub-requests,
71 * block-copy will crash.
76 * Note, that block-copy call is marked finished prior to calling
89 * Cancel running block-copy call.
[all …]
H A Dblock.h2 * QEMU System Emulator block driver
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
27 #include "block/block-global-state.h"
28 #include "block/block-io.h"
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Dpio_copy.c1 // SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause
8 /* additive distance between non-SOP and SOP space */
10 #define PIO_BLOCK_MASK (PIO_BLOCK_SIZE - 1)
11 /* number of QUADWORDs in a block */
15 * pio_copy - copy data block to MMIO space
20 * @count: number of DWORD (32-bit) quantities to copy from source
22 * Copy data from source to PIO Send Buffer memory, 8 bytes at a time.
23 * Must always write full BLOCK_SIZE bytes blocks. The first block must
27 * o pbuf->start always starts on a block boundary
28 * o pbuf can wrap only at a block boundary
[all …]
/openbmc/linux/Documentation/devicetree/bindings/dma/ti/
H A Dk3-bcdma.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
5 ---
6 $id: http://devicetree.org/schemas/dma/ti/k3-bcdma.yaml#
7 $schema: http://devicetree.org/meta-schemas/core.yaml#
12 - Peter Ujfalusi <peter.ujfalusi@gmail.com>
15 The Block Copy DMA (BCDMA) is intended to perform similar functions as the TR
16 mode channels of K3 UDMA-P.
17 BCDMA includes block copy channels and Split channels.
19 Block copy channels mainly used for memory to memory transfers, but with
20 optional triggers a block copy channel can service peripherals by accessing
[all …]
/openbmc/qemu/docs/interop/
H A Dlive-block-operations.rst5 later. See the COPYING file in the top-level directory.
7 .. _Live Block Operations:
10 Live Block Device Operations
13 QEMU Block Layer currently (as of QEMU 2.9) supports four major kinds of
14 live block device jobs -- stream, commit, mirror, and backup. These can
16 namely: live copy data from backing files into overlays; shorten long
19 to another target image; and point-in-time (and incremental) backups of
20 a block device. Below is a description of the said block (QMP)
21 primitives, and some (non-exhaustive list of) examples to illustrate
25 The file ``qapi/block-core.json`` in the QEMU source tree has the
[all …]
/openbmc/qemu/block/
H A Dcopy-before-write.h2 * copy-before-write filter driver
4 * The driver performs Copy-Before-Write (CBW) operation: it is injected above
7 * Copyright (c) 2018-2021 Virtuozzo International GmbH.
10 * Sementsov-Ogievskiy Vladimir <vsementsov@virtuozzo.com>
22 * You should have received a copy of the GNU General Public License
29 #include "block/block_int.h"
30 #include "block/block-copy.h"
35 * See include/block/block-global-state.h for more information about
H A Dbackup.c11 * See the COPYING file in the top-level directory.
18 #include "block/block.h"
19 #include "block/block_int.h"
20 #include "block/blockjob_int.h"
21 #include "block/block_backup.h"
22 #include "block/block-copy.h"
23 #include "block/dirty-bitmap.h"
26 #include "sysemu/block-backend.h"
28 #include "qemu/error-report.h"
30 #include "block/copy-before-write.h"
[all …]
H A Dcopy-before-write.c2 * copy-before-write filter driver
4 * The driver performs Copy-Before-Write (CBW) operation: it is injected above
7 * Copyright (c) 2018-2021 Virtuozzo International GmbH.
10 * Sementsov-Ogievskiy Vladimir <vsementsov@virtuozzo.com>
22 * You should have received a copy of the GNU General Public License
29 #include "sysemu/block-backend.h"
32 #include "block/block_int.h"
33 #include "block/qdict.h"
34 #include "block/block-copy.h"
35 #include "block/dirty-bitmap.h"
[all …]
H A Dmeson.build10 'block-backend.c',
11 'block-copy.c',
13 'copy-before-write.c',
14 'copy-on-read.c',
17 'dirty-bitmap.c',
18 'filter-compress.c',
19 'graph-lock.c',
28 'qcow2-bitmap.c',
29 'qcow2-cache.c',
30 'qcow2-cluster.c',
[all …]
H A Dstream.c10 * See the COPYING.LIB file in the top-level directory.
16 #include "block/block_int.h"
17 #include "block/blockjob_int.h"
21 #include "sysemu/block-backend.h"
22 #include "block/copy-on-read.h"
26 * Maximum chunk size to feed to copy-on-read. This should be
67 unfiltered_bs = bdrv_skip_filters(s->target_bs); in stream_prepare()
72 bdrv_cor_filter_drop(s->cor_filter_bs); in stream_prepare()
73 s->cor_filter_bs = NULL; in stream_prepare()
90 base = bdrv_filter_or_cow_bs(s->above_base); in stream_prepare()
[all …]
/openbmc/linux/drivers/block/
H A Dbrd.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Ram backed block device driver.
8 * Parts derived from drivers/block/rd.c, and drivers/block/loop.c, copyright
25 #include <linux/backing-dev.h>
31 * Each block ramdisk device has a xarray brd_pages of pages that stores
32 * the pages containing the block device's contents. A brd page's ->index is
34 * with, the kernel's pagecache or buffer cache (which sit above our block
43 * Backing store of pages. This is the contents of the block device.
58 page = xa_load(&brd->brd_pages, idx); in brd_lookup_page()
60 BUG_ON(page && page->index != idx); in brd_lookup_page()
[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
6 to one or more other block-devices, with an asynchronous completion
7 notification. It is used by dm-snapshot and dm-mirror.
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
18 block-device along with the starting sector and size of the region. The source
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
[all …]
/openbmc/linux/Documentation/block/
H A Dublk.rst1 .. SPDX-License-Identifier: GPL-2.0
4 Userspace block device driver (ublk driver)
10 ublk is a generic framework for implementing block device logic from userspace.
11 The motivation behind it is that moving virtual block drivers into userspace,
13 new virtual block device such as ublk-qcow2 (there are several attempts of
16 Userspace block devices are attractive because:
18 - They can be written many programming languages.
19 - They can use libraries that are not available in the kernel.
20 - They can be debugged with tools familiar to application developers.
21 - Crashes do not kernel panic the machine.
[all …]
/openbmc/openbmc/meta-hpe/meta-gxp/classes/
H A Dgxp-bootblock-n.bbclass1 # TODO: Manually copy the U-Boot signing key and customer-key-block here:
2 HPE_GXP_KEY_FILES_DIR = "${COREBASE}/meta-hpe/meta-gxp/recipes-bsp/image/files"
7 install -d ${DEPLOYDIR}
9 # Copy in the bootblock
10 install -m 644 ${HPE_GXP_KEY_FILES_DIR}/gxp-bootblock.bin ${DEPLOYDIR}/gxp-bootblock.bin
12 # Copy in files from the files subdirectory
13 install -m 644 ${HPE_GXP_KEY_FILES_DIR}/header.sig ${DEPLOYDIR}/hpe-uboot-header.section
15 # Copy in the U-Boot signing key
16 install -m 644 ${HPE_GXP_KEY_FILES_DIR}/private_key.pem ${DEPLOYDIR}/hpe-uboot-signing-key.pem
18 # Copy in the customer keyblock
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D25418 # You should have received a copy of the GNU General Public License
31 qemu_img_create('-f', iotests.imgfmt, disk, str(size))
33 vm = iotests.VM().add_drive(disk, opts='node-name=base')
36 vm.qmp_log('block-dirty-bitmap-add', node='drive0', name='bitmap0')
37 vm.qmp_log('block-dirty-bitmap-add', node='drive0', name='bitmap1',
39 vm.qmp_log('block-dirty-bitmap-add', node='drive0', name='bitmap2',
45 {'type': 'blockdev-snapshot-sync',
46 'data': {'device': 'drive0', 'snapshot-file': top,
47 'snapshot-node-name': 'snap'}},
49 # copy non-persistent bitmap0
[all …]
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dlpc32xx_nand_mlc.c1 // SPDX-License-Identifier: GPL-2.0+
10 * The MLC NAND flash controller provides hardware Reed-Solomon ECC
11 * covering in- and out-of-band data together. Therefore, in- and out-
12 * of-band data must be written together in order to have a valid ECC.
14 * Consequently, pages with meaningful in-band data are written with
15 * blank (all-ones) out-of-band data and a valid ECC, and any later
16 * out-of-band data write will void the ECC.
18 * Therefore, code which reads such late-written out-of-band data
62 #define ICR_ADDR4 0x00000002 /* configure for 4-word addrs */
75 /* time-out for NAND chip / controller loops, in us */
[all …]
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/
H A Dpaging.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
3 * Copyright (C) 2012-2014, 2018-2019, 2021 Intel Corporation
4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH
5 * Copyright (C) 2016-2017 Intel Deutschland GmbH
7 #include "iwl-drv.h"
15 if (!fwrt->fw_paging_db[0].fw_paging_block) in iwl_free_fw_paging()
19 struct iwl_fw_paging *paging = &fwrt->fw_paging_db[i]; in iwl_free_fw_paging()
21 if (!paging->fw_paging_block) { in iwl_free_fw_paging()
23 "Paging: block %d already freed, continue to next page\n", in iwl_free_fw_paging()
28 dma_unmap_page(fwrt->trans->dev, paging->fw_paging_phys, in iwl_free_fw_paging()
[all …]
/openbmc/linux/lib/zlib_inflate/
H A Dinflate.h4 /* inflate.h -- internal inflate state definition
5 * Copyright (C) 1995-2004 Mark Adler
29 TYPE, /* i: waiting for type bits, including last-flag bit */
30 TYPEDO, /* i: same, but skip check to exit inflate on new block */
32 COPY, /* i/o: waiting for input or output to copy stored block */ enumerator
33 TABLE, /* i: waiting for dynamic block table lengths */
40 MATCH, /* o: waiting for output space to copy string */
42 CHECK, /* i: waiting for 32-bit check value */
43 LENGTH, /* i: waiting for 32-bit length (gzip) */
44 DONE, /* finished check, done -- remain here until reset */
[all …]
/openbmc/u-boot/lib/zlib/
H A Dinflate.h1 /* inflate.h -- internal inflate state definition
2 * Copyright (C) 1995-2004 Mark Adler
32 TYPE, /* i: waiting for type bits, including last-flag bit */
33 TYPEDO, /* i: same, but skip check to exit inflate on new block */
35 COPY, /* i/o: waiting for input or output to copy stored block */ enumerator
36 TABLE, /* i: waiting for dynamic block table lengths */
43 MATCH, /* o: waiting for output space to copy string */
45 CHECK, /* i: waiting for 32-bit check value */
46 LENGTH, /* i: waiting for 32-bit length (gzip) */
47 DONE, /* finished check, done -- remain here until reset */
[all …]
/openbmc/qemu/tests/tcg/tricore/c/
H A Dcrt0-tc2x.S2 * crt0-tc2x.S -- Startup code for GNU/TriCore applications.
4 * Copyright (C) 1998-2014 HighTec EDV-Systeme GmbH.
22 * You should have received a copy of the GNU General Public License and
23 * a copy of the GCC Runtime Library Exception along with this program;
28 * is built-in defined in tricore-c.c (from tricore-devices.c)
130 * handle copy table (support for romable code)
171 sh %d2,%d2,-6 #; %d2 = number of CSAs
178 lea %a3,[%a3]64 #; %a3 = %a3->nextCSA
183 add %d2,%d2,-2 #; CSAs to initialize -= 2
191 lea %a3,[%a3]64 #; %a3 = %a3->nextCSA
[all …]
/openbmc/qemu/tests/qemu-iotests/tests/
H A Dmirror-change-copy-mode4 # Test for changing mirror copy mode from background to active
18 # You should have received a copy of the GNU General Public License
38 qemu_img('create', '-f', iotests.imgfmt, source_img, str(image_size))
39 qemu_img('create', '-f', iotests.imgfmt, target_img, str(image_size))
41 self.qsd = QemuStorageDaemon('--nbd-server',
45 self.qsd.cmd('object-add', {
46 'qom-type': 'throttle-group',
47 'id': 'thrgr-target',
49 'iops-write': iops_target,
50 'iops-write-max': iops_target
[all …]
/openbmc/linux/include/uapi/linux/
H A Drseq.h1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
10 * Copyright (c) 2015-2018 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
17 RSEQ_CPU_ID_UNINITIALIZED = -1,
18 RSEQ_CPU_ID_REGISTRATION_FAILED = -2,
42 * contained within a single cache-line. It is usually declared as
43 * link-time constant data.
58 * contained within a single cache-line.
65 * kernel. Read by user-space with single-copy atomicity
67 * registered this data structure. Aligned on 32-bit. Always
78 * Read by user-space with single-copy atomicity semantics. This
[all …]
/openbmc/linux/sound/pci/emu10k1/
H A Demu10k1_patch.c1 // SPDX-License-Identifier: GPL-2.0-or-later
22 * allocate a sample block and copy data from userspace
36 emu = rec->hw; in snd_emu10k1_sample_new()
38 return -EINVAL; in snd_emu10k1_sample_new()
40 if (sp->v.size == 0) { in snd_emu10k1_sample_new()
41 dev_dbg(emu->card->dev, in snd_emu10k1_sample_new()
42 "emu: rom font for sample %d\n", sp->v.sample); in snd_emu10k1_sample_new()
47 sp->v.end -= sp->v.start; in snd_emu10k1_sample_new()
48 sp->v.loopstart -= sp->v.start; in snd_emu10k1_sample_new()
49 sp->v.loopend -= sp->v.start; in snd_emu10k1_sample_new()
[all …]
/openbmc/qemu/qapi/
H A Dblock-core.json1 # -*- Mode: Python -*-
5 # == Block core (VM unrelated)
20 # @vm-state-size: size of the VM state
22 # @date-sec: UTC date of the snapshot in seconds
24 # @date-nsec: fractional part in nano seconds to be used with date-sec
26 # @vm-clock-sec: VM clock relative to boot in seconds
28 # @vm-clock-nsec: fractional part in nano seconds to be used with
29 # vm-clock-sec
32 # record/replay is enabled. Used for "time-traveling" to match
34 # counter may be obtained through @query-replay command (since
[all …]

12345678910>>...43