/openbmc/linux/Documentation/dev-tools/ |
H A D | sparse.rst | 5 Sparse title 8 Sparse is a semantic checker for C programs; it can be used to find a 10 https://lwn.net/Articles/689907/ for an overview of sparse; this document 11 contains some kernel-specific sparse information. 12 More information on sparse, mainly about its internals, can be found in 13 its official pages at https://sparse.docs.kernel.org. 16 Using sparse for typechecking 29 there because sparse will complain about casting to/from a bitwise type, 50 constant zero as a bitwise integer type without sparse ever complaining. 56 Using sparse for lock checking [all …]
|
H A D | testing-overview.rst | 127 Sparse can help test the kernel by performing type-checking, lock checking, 129 examining the code. See the Documentation/dev-tools/sparse.rst documentation 132 Smatch extends Sparse and provides additional checks for programming logic 150 When to use Sparse and Smatch 153 Sparse does type checking, such as verifying that annotated variables do not 163 Sparse. Nevertheless, there are some overlaps between Sparse and Smatch checks.
|
/openbmc/linux/Documentation/translations/zh_CN/dev-tools/ |
H A D | sparse.rst | 7 :Original: Documentation/dev-tools/sparse.rst 19 Sparse title 26 https://sparse.docs.kernel.org。 28 使用 sparse 工具做类型检查 41 是因为 sparse 会抱怨改变位方式的类型转换,但是这里我们确实需要强制进行转 61 不用担心 sparse 会抱怨。这是因为"bitwise"(恰如其名)是用来确保不同位方 68 下面的宏对于 gcc 来说是未定义的,在 sparse 运行时定义,以使用sparse的“上下文” 69 跟踪功能,应用于锁定。 这些注释告诉 sparse 什么时候有锁,以及注释的函数的进入和 82 获取 sparse 工具 85 你可以从 Sparse 的主页获取最新的发布版本: [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools/core/ |
H A D | 0016-libsparse-Add-hole-mode-to-sparse_file_read.patch | 6 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 …]
|
/openbmc/linux/Documentation/translations/zh_TW/dev-tools/ |
H A D | sparse.txt | 1 Chinese translated version of Documentation/dev-tools/sparse.rst 11 Documentation/dev-tools/sparse.rst 的繁體中文翻譯 27 使用 sparse 工具做類型檢查 40 是因爲 sparse 會抱怨改變位方式的類型轉換,但是這裡我們確實需要強制進行轉 60 不用擔心 sparse 會抱怨。這是因爲"bitwise"(恰如其名)是用來確保不同位方 64 獲取 sparse 工具 67 你可以從 Sparse 的主頁獲取最新的發布版本: 69 https://www.kernel.org/pub/software/devel/sparse/dist/ 71 或者,你也可以使用 git 克隆最新的 sparse 開發版本: 73 git://git.kernel.org/pub/scm/devel/sparse/sparse.git [all …]
|
/openbmc/u-boot/drivers/fastboot/ |
H A D | fb_nand.c | 11 #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 D | fb_mmc.c | 12 #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/linux/arch/alpha/kernel/ |
H A D | pci-sysfs.c | 20 enum pci_mmap_state mmap_type, int sparse) in hose_mmap_page_range() argument 25 base = sparse ? hose->sparse_mem_base : hose->dense_mem_base; in hose_mmap_page_range() 27 base = sparse ? hose->sparse_io_base : hose->dense_io_base; in hose_mmap_page_range() 37 struct vm_area_struct *vma, int sparse) in __pci_mmap_fits() argument 40 int shift = sparse ? 5 : 0; in __pci_mmap_fits() 50 current->comm, sparse ? " sparse" : "", start, start + nr, in __pci_mmap_fits() 60 * @sparse: address space type 68 struct vm_area_struct *vma, int sparse) in pci_mmap_resource() argument 85 if (!__pci_mmap_fits(pdev, i, vma, sparse)) in pci_mmap_resource() 89 vma->vm_pgoff += bar.start >> (PAGE_SHIFT - (sparse ? 5 : 0)); in pci_mmap_resource() [all …]
|
/openbmc/linux/Documentation/admin-guide/device-mapper/ |
H A D | zero.rst | 11 One very interesting use of dm-zero is for creating "sparse" devices in 12 conjunction with dm-snapshot. A sparse device reports a device-size larger 14 write data anywhere within the sparse device and read it back like a normal 16 enough data has been written to fill up the actual storage space, the sparse 20 To create a sparse device, start by creating a dm-zero device that's the 21 desired size of the sparse device. For this example, we'll assume a 10TB 22 sparse device:: 29 space available to the sparse device. For this example, we'll assume /dev/sdb1 35 This will create a 10TB sparse device called /dev/mapper/sparse1 that has
|
/openbmc/linux/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_format_caps.c | 64 /* SPARSE */ 66 /* YTR + (SPARSE) */ 69 /* SPLIT + SPARSE + YTR RGB only */ 70 /* split mode is only allowed for sparse mode */ 72 /* TILED + (SPARSE) */ 76 /* TILED + SC + (SPLIT+SPARSE | SPARSE) + (YTR) */ 81 /* YTR + (SPARSE) */ 84 /* SPLIT + SPARSE + (YTR) */ 85 /* split mode is only allowed for sparse mode */ 87 /* TILED + SC + (SPLIT+SPARSE | SPARSE) + YTR */
|
/openbmc/qemu/scripts/ |
H A D | check_sparse.py | 3 # 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/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_exec.c | 27 * and unmap memory. Mappings may be flagged as sparse. Sparse mappings are not 29 * alongside a sparse mapping. 32 * bounds (but not crossing those bounds) of a previously mapped sparse 33 * mapping. Subsequently requested memory backed mappings within a sparse 34 * mapping will take precedence over the corresponding range of the sparse 36 * sure that the corresponding sparse mapping will take their place again. 37 * Requests to unmap a sparse mapping that still contains memory backed mappings 41 * overlap the bounds of sparse mappings. For such a request the kernel will 44 * within the given range. Unmap requests with the sparse flag set must match 45 * the range of a previously mapped sparse mapping exactly though. [all …]
|
/openbmc/linux/drivers/input/ |
H A D | sparse-keymap.c | 3 * Generic support for sparse keymaps 14 #include <linux/input/sparse-keymap.h> 19 MODULE_DESCRIPTION("Generic support for sparse keymaps"); 54 * sparse_keymap_entry_from_scancode - perform sparse keymap lookup 55 * @dev: Input device using sparse keymap 59 * input device using sparse keymap. 75 * sparse_keymap_entry_from_keycode - perform sparse keymap lookup 76 * @dev: Input device using sparse keymap 80 * input device using sparse keymap. 154 * sparse_keymap_setup - set up sparse keymap for an input device [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/classes/ |
H A D | image_types_sparse.bbclass | 3 # 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/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
H A D | vmm.c | 40 nvkm_vmm_pt_new(const struct nvkm_vmm_desc *desc, bool sparse, in nvkm_vmm_pt_new() argument 59 pgt->sparse = sparse; in nvkm_vmm_pt_new() 158 if (pgt->sparse) { in nvkm_vmm_unref_pdes() 159 func->sparse(vmm, pgd->pt[0], pdei, 1); in nvkm_vmm_unref_pdes() 244 pair->func->sparse(vmm, pgt->pt[0], pteb, ptes); in nvkm_vmm_unref_sptes() 344 /* The entire LPTE is marked as sparse, we need in nvkm_vmm_ref_sptes() 348 desc->func->sparse(vmm, pgt->pt[1], spti, sptc); in nvkm_vmm_ref_sptes() 349 /* Sparse LPTEs prevent SPTEs from being accessed. */ in nvkm_vmm_ref_sptes() 418 const bool zero = !pgt->sparse && !desc->func->invalid; in nvkm_vmm_ref_hwpt() 444 * or sparse, which would prevent the MMU from looking at in nvkm_vmm_ref_hwpt() [all …]
|
H A D | vmmgm200.c | 31 /* VALID_FALSE + VOL tells the MMU to treat the PTE as sparse. */ in gm200_vmm_pgt_sparse() 38 .sparse = gm200_vmm_pgt_sparse, 48 .sparse = gm200_vmm_pgt_sparse, 56 /* VALID_FALSE + VOL_BIG tells the MMU to treat the PDE as sparse. */ in gm200_vmm_pgd_sparse() 63 .sparse = gm200_vmm_pgd_sparse,
|
/openbmc/qemu/hw/mem/ |
H A D | sparse-mem.c | 2 * A sparse memory device. Useful for fuzzing 21 #include "hw/mem/sparse-mem.h" 102 /* The length of the sparse memory region */ 104 /* Max amount of actual memory that can be used to back the sparse memory */ 137 "sparse-mem", s->length); in sparse_mem_realize() 148 dc->desc = "Sparse Memory Device"; in sparse_mem_class_init()
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvif/ |
H A D | vmm.c | 77 nvif_vmm_get(struct nvif_vmm *vmm, enum nvif_vmm_get type, bool sparse, in nvif_vmm_get() argument 84 args.sparse = sparse; in nvif_vmm_get() 161 u8 shift, bool sparse) in nvif_vmm_raw_unmap() argument 169 .sparse = sparse, in nvif_vmm_raw_unmap() 252 vmm->page[i].sparse = args.sparse; in nvif_vmm_ctor()
|
/openbmc/u-boot/lib/ |
H A D | image-sparse.c | 39 #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/linux/arch/ia64/pci/ |
H A D | pci.c | 124 static unsigned int new_space(u64 phys_base, int sparse) in new_space() argument 135 io_space[i].sparse == sparse) in new_space() 146 io_space[i].sparse = sparse; in new_space() 158 unsigned int sparse = 0, space_nr, len; in add_io_space() local 169 sparse = 1; in add_io_space() 170 space_nr = new_space(entry->offset, sparse); in add_io_space() 183 * The SDM guarantees the legacy 0-64K space is sparse, but if the in add_io_space() 185 * mark it as sparse. in add_io_space() 188 sparse = 1; in add_io_space() 193 resource->start = base + (sparse ? IO_SPACE_SPARSE_ENCODING(min) : min); in add_io_space() [all …]
|
/openbmc/linux/kernel/irq/ |
H A D | Kconfig | 5 # Make sparse irq Kconfig switch below available 116 bool "Support sparse irq numbering" if MAY_HAVE_SPARSE_IRQ 119 Sparse irq numbering is useful for distro kernels that want 123 ( Sparse irqs can also be beneficial on NUMA boxes, as they spread
|
/openbmc/linux/Documentation/driver-api/ |
H A D | input.rst | 34 Sparse keymap support 37 .. kernel-doc:: include/linux/input/sparse-keymap.h 40 .. kernel-doc:: drivers/input/sparse-keymap.c
|
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvif/ |
H A D | vmm.h | 31 bool sparse:1; member 43 int nvif_vmm_get(struct nvif_vmm *, enum nvif_vmm_get, bool sparse, 55 u8 shift, bool sparse);
|
H A D | if000c.h | 30 __u8 sparse; member 43 __u8 sparse; member 81 __u8 sparse; member
|
/openbmc/linux/Documentation/filesystems/ |
H A D | ntfs3.rst | 13 - This driver implements NTFS read/write support for normal, sparse and 26 sparse(0x200), compressed(0x800) and normal. 95 * - sparse 96 - Create new files as sparse.
|