Home
last modified time | relevance | path

Searched full:sparse (Results 1 – 25 of 126) sorted by relevance

123456

/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools/core/
H A D0016-libsparse-Add-hole-mode-to-sparse_file_read.patch6 This adds support for filesystem-level sparse files. These files have
14 it takes to program a sparse image.
16 To accomplish this, we extend the existing "sparse" boolean parameter to
28 libsparse/include/sparse/sparse.h | 32 +++++++++++---
45 diff --git a/libsparse/include/sparse/sparse.h b/libsparse/include/sparse/sparse.h
47 --- a/libsparse/include/sparse/sparse.h
48 +++ b/libsparse/include/sparse/sparse.h
49 @@ -196,23 +196,41 @@ int64_t sparse_file_len(struct sparse_file *s, bool sparse, bool crc);
50 int sparse_file_callback(struct sparse_file *s, bool sparse, bool crc,
58 + * @SPARSE_READ_MODE_SPARSE: The input is an Android sparse file.
[all …]
H A D0015-libsparse-Split-off-most-of-sparse_file_read_normal-.patch55 int sparse_file_read(struct sparse_file *s, int fd, bool sparse, bool crc)
57 if (crc && !sparse) {
/openbmc/u-boot/drivers/fastboot/
H A Dfb_nand.c11 #include <image-sparse.h>
108 struct fb_nand_sparse *sparse = info->priv; in fb_nand_sparse_write() local
112 ret = _fb_nand_write(sparse->mtd, sparse->part, (void *)buffer, in fb_nand_sparse_write()
116 printf("Failed to write sparse chunk\n"); in fb_nand_sparse_write()
191 struct sparse_storage sparse; in fastboot_nand_flash_write() local
196 sparse.blksz = mtd->writesize; in fastboot_nand_flash_write()
197 sparse.start = part->offset / sparse.blksz; in fastboot_nand_flash_write()
198 sparse.size = part->size / sparse.blksz; in fastboot_nand_flash_write()
199 sparse.write = fb_nand_sparse_write; in fastboot_nand_flash_write()
200 sparse.reserve = fb_nand_sparse_reserve; in fastboot_nand_flash_write()
[all …]
H A Dfb_mmc.c12 #include <image-sparse.h>
87 struct fb_mmc_sparse *sparse = info->priv; in fb_mmc_sparse_write() local
88 struct blk_desc *dev_desc = sparse->dev_desc; in fb_mmc_sparse_write()
405 struct sparse_storage sparse; in fastboot_mmc_flash_write() local
410 sparse.blksz = info.blksz; in fastboot_mmc_flash_write()
411 sparse.start = info.start; in fastboot_mmc_flash_write()
412 sparse.size = info.size; in fastboot_mmc_flash_write()
413 sparse.write = fb_mmc_sparse_write; in fastboot_mmc_flash_write()
414 sparse.reserve = fb_mmc_sparse_reserve; in fastboot_mmc_flash_write()
415 sparse.mssg = fastboot_fail; in fastboot_mmc_flash_write()
[all …]
/openbmc/qemu/tests/qemu-iotests/tests/
H A Dmirror-sparse4 # Test blockdev-mirror with raw sparse destination
60 # Check several combinations; most should result in a sparse destination;
105 actual=sparse
114 do_test external ignore off sparse
115 do_test external unmap off sparse
116 do_test external unmap unmap sparse
117 do_test off ignore off sparse
118 do_test off unmap off sparse
119 do_test off unmap unmap sparse
121 do_test full unmap off sparse
[all …]
H A Dmirror-sparse.out1 QA output created by mirror-sparse
39 Destination is sparse; expected sparse
69 Destination is sparse; expected sparse
99 Destination is sparse; expected sparse
143 Destination is sparse; expected sparse
187 Destination is sparse; expected sparse
231 Destination is sparse; expected sparse
319 Destination is sparse; expected sparse
363 Destination is sparse; expected sparse
/openbmc/qemu/scripts/
H A Dcheck_sparse.py3 # Invoke sparse based on the contents of compile_commands.json,
13 def cmdline_for_sparse(sparse, cmdline): argument
17 out = sparse + ['-no-compile']
26 # prevent sparse from treating output files as inputs
33 # sparse does not understand these!
49 sparse = sys.argv[2:] variable
53 cmd = cmdline_for_sparse(sparse, cmdline)
/openbmc/openbmc/meta-openembedded/meta-oe/classes/
H A Dimage_types_sparse.bbclass3 # This sets the granularity of the sparse image conversion. Chunk sizes will be
10 CONVERSIONTYPES += "sparse"
12 CONVERSION_CMD:sparse = " \
14 img2simg -s "${IMAGE_NAME}.${type}" "${IMAGE_NAME}.${type}.sparse" ${SPARSE_BLOCK_SIZE}; \
/openbmc/qemu/hw/mem/
H A Dsparse-mem.c2 * A sparse memory device. Useful for fuzzing
21 #include "hw/mem/sparse-mem.h"
101 /* The length of the sparse memory region */
103 /* Max amount of actual memory that can be used to back the sparse memory */
135 "sparse-mem", s->length); in sparse_mem_realize()
146 dc->desc = "Sparse Memory Device"; in sparse_mem_class_init()
H A Dmeson.build12 system_ss.add(when: 'CONFIG_SPARSE_MEM', if_true: files('sparse-mem.c'))
/openbmc/u-boot/lib/
H A Dimage-sparse.c39 #include <image-sparse.h>
70 /* Read and skip over sparse image header */ in write_sparse_image()
85 debug("=== Sparse Image Header ===\n"); in write_sparse_image()
96 * Verify that the sparse block size is a multiple of our in write_sparse_image()
101 printf("%s: Sparse image block size issue [%u]\n", in write_sparse_image()
103 info->mssg("sparse image block size issue", response); in write_sparse_image()
107 puts("Flashing Sparse Image\n"); in write_sparse_image()
256 info->mssg("sparse image write failure", response); in write_sparse_image()
/openbmc/qemu/tests/qemu-iotests/
H A D150.out.qcow23 === Mapping sparse conversion ===
7 === Mapping non-sparse conversion ===
H A D150.out.raw3 === Mapping sparse conversion ===
8 === Mapping non-sparse conversion ===
H A D15049 echo '=== Mapping sparse conversion ==='
60 echo '=== Mapping non-sparse conversion ==='
H A D237.out197 format: SPARSE
239 format: SPARSE
281 format: SPARSE
331 format: SPARSE
336 format: SPARSE
341 format: SPARSE
/openbmc/qemu/hw/vfio/
H A Dregion.c155 struct vfio_region_info_cap_sparse_mmap *sparse; in vfio_setup_region_sparse_mmaps() local
163 sparse = container_of(hdr, struct vfio_region_info_cap_sparse_mmap, header); in vfio_setup_region_sparse_mmaps()
166 region->nr, sparse->nr_areas); in vfio_setup_region_sparse_mmaps()
168 region->mmaps = g_new0(VFIOMmap, sparse->nr_areas); in vfio_setup_region_sparse_mmaps()
170 for (i = 0, j = 0; i < sparse->nr_areas; i++) { in vfio_setup_region_sparse_mmaps()
171 if (sparse->areas[i].size) { in vfio_setup_region_sparse_mmaps()
172 trace_vfio_region_sparse_mmap_entry(i, sparse->areas[i].offset, in vfio_setup_region_sparse_mmaps()
173 sparse->areas[i].offset + in vfio_setup_region_sparse_mmaps()
174 sparse->areas[i].size - 1); in vfio_setup_region_sparse_mmaps()
175 region->mmaps[j].offset = sparse->areas[i].offset; in vfio_setup_region_sparse_mmaps()
[all …]
/openbmc/qemu/include/hw/mem/
H A Dsparse-mem.h2 * A sparse memory device. Useful for fuzzing
15 #define TYPE_SPARSE_MEM "sparse-mem"
/openbmc/openbmc/poky/scripts/lib/wic/
H A Dpartition.py282 with open(rootfs, 'w') as sparse:
283 os.ftruncate(sparse.fileno(), rootfs_size * 1024)
364 with open(rootfs, 'w') as sparse:
365 os.ftruncate(sparse.fileno(), rootfs_size * 1024)
441 with open(rootfs, 'w') as sparse:
442 os.ftruncate(sparse.fileno(), size * 1024)
465 with open(rootfs, 'w') as sparse:
466 os.ftruncate(sparse.fileno(), size * 1024)
509 with open(path, 'w') as sparse:
510 os.ftruncate(sparse.fileno(), self.size * 1024)
/openbmc/u-boot/include/
H A Dsparse_format.h21 __le32 total_blks; /* total blocks in the non-sparse output image */
22 __le32 total_chunks; /* total chunks in the sparse input image */
/openbmc/openbmc/meta-openembedded/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/system/core/
H A Dhard-code-build-number.patch35 #include <sparse/sparse.h>
/openbmc/openbmc/meta-openembedded/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/
H A Dhard-code-build-number.patch35 #include <sparse/sparse.h>
/openbmc/u-boot/cmd/
H A Dmmc.c12 #include <image-sparse.h>
338 struct sparse_storage sparse; in do_mmc_sparse_write() local
352 printf("Not a sparse image\n"); in do_mmc_sparse_write()
360 printf("\nMMC Sparse write: dev # %d, block # %d ... ", in do_mmc_sparse_write()
369 sparse.priv = dev_desc; in do_mmc_sparse_write()
370 sparse.blksz = 512; in do_mmc_sparse_write()
371 sparse.start = blk; in do_mmc_sparse_write()
372 sparse.size = dev_desc->lba - blk; in do_mmc_sparse_write()
373 sparse.write = mmc_sparse_write; in do_mmc_sparse_write()
374 sparse.reserve = mmc_sparse_reserve; in do_mmc_sparse_write()
[all …]
/openbmc/qemu/.gitlab-ci.d/cirrus/
H A Dmacos-14.vars14 …nja pixman pkg-config python3 rpm2cpio rust sdl2 sdl2_image snappy socat sparse spice-protocol swt…
/openbmc/openbmc/poky/meta/conf/machine/include/
H A Dqemu.inc32 # Use gnu tar so we can handle sparse files in testimage debug archives
/openbmc/openbmc/poky/meta/lib/oeqa/utils/
H A Dpostactions.py67 # We need gnu tar for sparse files, not busybox
68 cmd = "tar --sparse -zcf - " + " ".join(artifacts_list)

123456