Home
last modified time | relevance | path

Searched refs:sparse (Results 1 – 25 of 172) sorted by relevance

1234567

/openbmc/linux/Documentation/translations/zh_CN/dev-tools/
H A Dsparse.rst7 :Original: Documentation/dev-tools/sparse.rst
23sparse的概述,请参见https://lwn.net/Articles/689907/;本文档包含
24 一些针对内核的sparse信息。
25 关于sparse的更多信息,主要是关于它的内部结构,可以在它的官方网页上找到:
26 https://sparse.docs.kernel.org。
28 使用 sparse 工具做类型检查
41 是因为 sparse 会抱怨改变位方式的类型转换,但是这里我们确实需要强制进行转
61 不用担心 sparse 会抱怨。这是因为"bitwise"(恰如其名)是用来确保不同位方
65 使用sparse进行锁检查
68 下面的宏对于 gcc 来说是未定义的,在 sparse 运行时定义,以使用sparse的“上下文”
[all …]
/openbmc/linux/Documentation/translations/zh_TW/dev-tools/
H A Dsparse.txt1 Chinese translated version of Documentation/dev-tools/sparse.rst
11 Documentation/dev-tools/sparse.rst 的繁體中文翻譯
27 使用 sparse 工具做類型檢查
40 是因爲 sparse 會抱怨改變位方式的類型轉換,但是這裡我們確實需要強制進行轉
60 不用擔心 sparse 會抱怨。這是因爲"bitwise"(恰如其名)是用來確保不同位方
64 獲取 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
82 使用 sparse 工具
[all …]
/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 …]
/openbmc/linux/Documentation/dev-tools/
H A Dsparse.rst10 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
59 The following macros are undefined for gcc and defined during a sparse
60 run to use the "context" tracking feature of sparse, applied to
[all …]
/openbmc/u-boot/drivers/fastboot/
H A Dfb_nand.c108 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()
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()
201 sparse.mssg = fastboot_fail; in fastboot_nand_flash_write()
204 sparse.start); in fastboot_nand_flash_write()
[all …]
H A Dfb_mmc.c87 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()
418 sparse.start); in fastboot_mmc_flash_write()
[all …]
/openbmc/linux/arch/alpha/kernel/
H A Dpci-sysfs.c20 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()
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()
92 return hose_mmap_page_range(pdev->sysdata, vma, mmap_type, sparse); in pci_mmap_resource()
[all …]
/openbmc/linux/Documentation/admin-guide/device-mapper/
H A Dzero.rst11 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/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/scripts/
H A Dcheck_sparse.py13 def cmdline_for_sparse(sparse, cmdline): argument
17 out = sparse + ['-no-compile']
49 sparse = sys.argv[2:] variable
53 cmd = cmdline_for_sparse(sparse, cmdline)
/openbmc/linux/arch/ia64/pci/
H A Dpci.c124 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()
188 sparse = 1; in add_io_space()
193 resource->start = base + (sparse ? IO_SPACE_SPARSE_ENCODING(min) : min); in add_io_space()
194 resource->end = base + (sparse ? IO_SPACE_SPARSE_ENCODING(max) : max); in add_io_space()
/openbmc/linux/drivers/gpu/drm/nouveau/nvif/
H A Dvmm.c77 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/linux/Documentation/translations/zh_CN/process/
H A D4.Coding.rst213sparse”静态分析工具可以发现其他类型的错误。sparse可以警告程序员用户空间
215 整数值等等。sparse必须单独安装(如果您的分发服务器没有将其打包,
216 可以在 https://sparse.wiki.kernel.org/index.php/Main_page 找到),
/openbmc/linux/Documentation/translations/zh_TW/process/
H A D4.Coding.rst216sparse」靜態分析工具可以發現其他類型的錯誤。sparse可以警告程式設計師用戶空間
218 整數值等等。sparse必須單獨安裝(如果您的分發伺服器沒有將其打包,
219 可以在 https://sparse.wiki.kernel.org/index.php/Main_page 找到),
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
H A Dvmm.c40 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()
348 desc->func->sparse(vmm, pgt->pt[1], spti, sptc); in nvkm_vmm_ref_sptes()
418 const bool zero = !pgt->sparse && !desc->func->invalid; in nvkm_vmm_ref_hwpt()
456 if (pgt->sparse) in nvkm_vmm_ref_hwpt()
457 desc->func->sparse(vmm, pt, pteb, ptes); in nvkm_vmm_ref_hwpt()
468 if (pgt->sparse) { in nvkm_vmm_ref_hwpt()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvif/
H A Dvmm.h31 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 Dif000c.h30 __u8 sparse; member
43 __u8 sparse; member
81 __u8 sparse; member
/openbmc/qemu/hw/vfio/
H A Dhelpers.c312 struct vfio_region_info_cap_sparse_mmap *sparse; in vfio_setup_region_sparse_mmaps() local
320 sparse = container_of(hdr, struct vfio_region_info_cap_sparse_mmap, header); in vfio_setup_region_sparse_mmaps()
323 region->nr, sparse->nr_areas); in vfio_setup_region_sparse_mmaps()
325 region->mmaps = g_new0(VFIOMmap, sparse->nr_areas); in vfio_setup_region_sparse_mmaps()
327 for (i = 0, j = 0; i < sparse->nr_areas; i++) { in vfio_setup_region_sparse_mmaps()
328 if (sparse->areas[i].size) { in vfio_setup_region_sparse_mmaps()
329 trace_vfio_region_sparse_mmap_entry(i, sparse->areas[i].offset, in vfio_setup_region_sparse_mmaps()
330 sparse->areas[i].offset + in vfio_setup_region_sparse_mmaps()
331 sparse->areas[i].size - 1); in vfio_setup_region_sparse_mmaps()
332 region->mmaps[j].offset = sparse->areas[i].offset; in vfio_setup_region_sparse_mmaps()
[all …]
/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/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 ===
/openbmc/linux/Documentation/core-api/
H A Dgeneric-radix-tree.rst2 Generic radix trees/sparse arrays
6 :doc: Generic radix trees/sparse arrays
/openbmc/linux/Documentation/translations/zh_CN/mm/
H A Dmemory-model.rst88 通过SPARSEMEM,有两种可能的方式将PFN转换为相应的 `struct page` --"classic sparse"和
89 "sparse vmemmap"。选择是在构建时进行的,它由 `CONFIG_SPARSEMEM_VMEMMAP` 的
92 Classic sparse在page->flags中编码了一个页面的段号,并使用PFN的高位来访问映射该页
/openbmc/u-boot/cmd/
H A Dmmc.c338 struct sparse_storage sparse; in do_mmc_sparse_write() local
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()
375 sparse.mssg = NULL; in do_mmc_sparse_write()
376 sprintf(dest, "0x" LBAF, sparse.start * sparse.blksz); in do_mmc_sparse_write()
378 if (write_sparse_image(&sparse, dest, addr, NULL)) in do_mmc_sparse_write()
/openbmc/linux/Documentation/driver-api/
H A Dinput.rst37 .. kernel-doc:: include/linux/input/sparse-keymap.h
40 .. kernel-doc:: drivers/input/sparse-keymap.c

1234567