Home
last modified time | relevance | path

Searched +full:i +full:- +full:cache +full:- +full:block +full:- +full:size (Results 1 – 25 of 952) sorted by relevance

12345678910>>...39

/Linux-v5.15/arch/riscv/boot/dts/sifive/
Dfu540-c000.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 /* Copyright (c) 2018-2019 SiFive, Inc */
4 /dts-v1/;
6 #include <dt-bindings/clock/sifive-fu540-prci.h>
9 #address-cells = <2>;
10 #size-cells = <2>;
11 compatible = "sifive,fu540-c000", "sifive,fu540";
23 #address-cells = <1>;
24 #size-cells = <0>;
28 i-cache-block-size = <64>;
[all …]
Dfu740-c000.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
4 /dts-v1/;
6 #include <dt-bindings/clock/sifive-fu740-prci.h>
9 #address-cells = <2>;
10 #size-cells = <2>;
11 compatible = "sifive,fu740-c000", "sifive,fu740";
23 #address-cells = <1>;
24 #size-cells = <0>;
28 i-cache-block-size = <64>;
29 i-cache-sets = <128>;
[all …]
/Linux-v5.15/arch/riscv/boot/dts/microchip/
Dmicrochip-mpfs.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
4 /dts-v1/;
7 #address-cells = <2>;
8 #size-cells = <2>;
10 compatible = "microchip,mpfs-icicle-kit";
16 #address-cells = <1>;
17 #size-cells = <0>;
20 clock-frequency = <0>;
23 i-cache-block-size = <64>;
24 i-cache-sets = <128>;
[all …]
/Linux-v5.15/fs/squashfs/
Dfile.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Squashfs - a compressed read only filesystem for Linux
14 * compressed fragment block (tail-end packed block). The compressed size
15 * of each datablock is stored in a block list contained within the
19 * larger), the code implements an index cache that caches the mapping from
20 * block index to datablock location on disk.
22 * The index cache allows Squashfs to handle large files (up to 1.75 TiB) while
23 * retaining a simple and space-efficient block list on disk. The cache
26 * The index cache is designed to be memory efficient, and by default uses
44 * Locate cache slot in range [offset, index] for specified inode. If
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 tristate "SquashFS 4.0 - Squashed file system support"
4 depends on BLOCK
7 Read-Only File System). Squashfs is a highly compressed read-only
11 Block sizes greater than 4K are supported up to a maximum of 1 Mbytes
12 (default block size 128K). SquashFS 4.0 supports 64 bit filesystems
16 Squashfs is intended for general read-only filesystem use, for
17 archival use (i.e. in cases where a .tar.gz file may be used), and in
35 intermediate buffer and then memcopied it into the page cache.
37 the page cache.
[all …]
Dcache.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Squashfs - a compressed read only filesystem for Linux
8 * cache.c
15 * This file implements a generic cache implementation used for both caches,
16 * plus functions layered ontop of the generic cache implementation to
19 * To avoid out of memory and fragmentation issues with vmalloc the cache
22 * It should be noted that the cache is not used for file datablocks, these
23 * are decompressed and cached in the page-cache in the normal way. The
24 * cache is only used to temporarily cache fragment and metadata blocks
25 * which have been read as as a result of a metadata (i.e. inode or
[all …]
Dfile_direct.c1 // SPDX-License-Identifier: GPL-2.0-only
21 static int squashfs_read_cache(struct page *target_page, u64 block, int bsize,
24 /* Read separately compressed datablock directly into page cache */
25 int squashfs_readpage_block(struct page *target_page, u64 block, int bsize, in squashfs_readpage_block() argument
29 struct inode *inode = target_page->mapping->host; in squashfs_readpage_block()
30 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; in squashfs_readpage_block()
32 int file_end = (i_size_read(inode) - 1) >> PAGE_SHIFT; in squashfs_readpage_block()
33 int mask = (1 << (msblk->block_log - PAGE_SHIFT)) - 1; in squashfs_readpage_block()
34 int start_index = target_page->index & ~mask; in squashfs_readpage_block()
36 int i, n, pages, missing_pages, bytes, res = -ENOMEM; in squashfs_readpage_block() local
[all …]
/Linux-v5.15/fs/affs/
Dfile.c1 // SPDX-License-Identifier: GPL-2.0
5 * (c) 1996 Hans-Joachim Widmaier - Rewritten
7 * (C) 1993 Ray Burr - Modified for Amiga FFS filesystem.
11 * (C) 1991 Linus Torvalds - minix filesystem
26 inode->i_ino, atomic_read(&AFFS_I(inode)->i_opencnt)); in affs_file_open()
27 atomic_inc(&AFFS_I(inode)->i_opencnt); in affs_file_open()
35 inode->i_ino, atomic_read(&AFFS_I(inode)->i_opencnt)); in affs_file_release()
37 if (atomic_dec_and_test(&AFFS_I(inode)->i_opencnt)) { in affs_file_release()
39 if (inode->i_size != AFFS_I(inode)->mmu_private) in affs_file_release()
51 struct super_block *sb = inode->i_sb; in affs_grow_extcache()
[all …]
/Linux-v5.15/arch/powerpc/kernel/
Dcacheinfo.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Processor cache information made available to userspace via sysfs;
27 /* per-cpu object for tracking:
28 * - a "cache" kobject for the top-level directory
29 * - a list of "index" objects representing the cpu's local cache hierarchy
32 struct kobject *kobj; /* bare (not embedded) kobject for cache
37 /* "index" object: each cpu's cache directory has an index
38 * subdirectory corresponding to a cache object associated with the
44 struct cache *cache; member
48 * cache type */
[all …]
/Linux-v5.15/arch/powerpc/include/asm/
Dvdso_datapage.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
62 __u64 physicalMemorySize; /* Size of real memory(B) 0x28 */
70 __u32 dcache_size; /* L1 d-cache size 0x60 */
71 __u32 dcache_line_size; /* L1 d-cache line size 0x64 */
72 __u32 icache_size; /* L1 i-cache size 0x68 */
73 __u32 icache_line_size; /* L1 i-cache line size 0x6C */
78 __u32 dcache_block_size; /* L1 d-cache block size */
79 __u32 icache_block_size; /* L1 i-cache block size */
80 __u32 dcache_log_block_size; /* L1 d-cache log block size */
81 __u32 icache_log_block_size; /* L1 i-cache log block size */
[all …]
/Linux-v5.15/arch/riscv/kernel/
Dcacheinfo.c1 // SPDX-License-Identifier: GPL-2.0-only
22 if (rv_cache_ops && rv_cache_ops->get_priv_group) in cache_get_priv_group()
23 return rv_cache_ops->get_priv_group(this_leaf); in cache_get_priv_group()
32 * that cores have a homonogenous view of the cache hierarchy. That in get_cacheinfo()
33 * happens to be the case for the current set of RISC-V systems, but in get_cacheinfo()
42 for (index = 0; index < this_cpu_ci->num_leaves; index++) { in get_cacheinfo()
43 this_leaf = this_cpu_ci->info_list + index; in get_cacheinfo()
44 if (this_leaf->level == level && this_leaf->type == type) in get_cacheinfo()
55 return this_leaf ? this_leaf->size : 0; in get_cache_size()
62 return this_leaf ? (this_leaf->ways_of_associativity << 16 | in get_cache_geometry()
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/riscv/
Dcpus.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: RISC-V bindings for 'cpus' DT nodes
10 - Paul Walmsley <paul.walmsley@sifive.com>
11 - Palmer Dabbelt <palmer@sifive.com>
14 This document uses some terminology common to the RISC-V community
18 mandated by the RISC-V ISA: a PC and some registers. This
28 - items:
29 - enum:
[all …]
/Linux-v5.15/fs/btrfs/
Dzoned.c1 // SPDX-License-Identifier: GPL-2.0
10 #include "rcu-string.h"
11 #include "disk-io.h"
12 #include "block-group.h"
14 #include "dev-replace.h"
15 #include "space-info.h"
20 #define WP_MISSING_DEV ((u64)-1)
22 #define WP_CONVENTIONAL ((u64)-2)
27 * - primary superblock: 0B (zone 0)
28 * - first copy: 512G (zone starting at that offset)
[all …]
Dblock-group.c1 // SPDX-License-Identifier: GPL-2.0
5 #include "block-group.h"
6 #include "space-info.h"
7 #include "disk-io.h"
8 #include "free-space-cache.h"
9 #include "free-space-tree.h"
12 #include "ref-verify.h"
14 #include "tree-log.h"
15 #include "delalloc-space.h"
28 struct btrfs_balance_control *bctl = fs_info->balance_ctl; in get_restripe_target()
[all …]
/Linux-v5.15/Documentation/admin-guide/
Dbcache.rst2 A block layer cache (bcache)
6 nice if you could use them as cache... Hence bcache.
11 This is the git repository of bcache-tools:
12 https://git.kernel.org/pub/scm/linux/kernel/git/colyli/bcache-tools.git/
17 It's designed around the performance characteristics of SSDs - it only allocates
18 in erase block sized buckets, and it uses a hybrid btree/log to track cached
19 extents (which can be anywhere from a single sector to the bucket size). It's
20 designed to avoid random writes at all costs; it fills up an erase block
25 great lengths to protect your data - it reliably handles unclean shutdown. (It
29 Writeback caching can use most of the cache for buffering writes - writing
[all …]
/Linux-v5.15/drivers/md/
Ddm-cache-target.c8 #include "dm-bio-prison-v2.h"
9 #include "dm-bio-record.h"
10 #include "dm-cache-metadata.h"
11 #include "dm-io-tracker.h"
13 #include <linux/dm-io.h>
14 #include <linux/dm-kcopyd.h>
23 #define DM_MSG_PREFIX "cache"
26 "A percentage of time allocated for copying to and/or from cache");
28 /*----------------------------------------------------------------*/
33 * oblock: index of an origin block
[all …]
/Linux-v5.15/arch/powerpc/boot/dts/
Diss4xx-mpic.dts15 /dts-v1/;
20 #address-cells = <2>;
21 #size-cells = <1>;
22 model = "ibm,iss-4xx";
23 compatible = "ibm,iss-4xx";
24 dcr-parent = <&{/cpus/cpu@0}>;
31 #address-cells = <1>;
32 #size-cells = <0>;
38 clock-frequency = <100000000>; // 100Mhz :-)
39 timebase-frequency = <100000000>;
[all …]
Dmicrowatt.dts1 /dts-v1/;
4 #size-cells = <0x02>;
5 #address-cells = <0x02>;
6 model-name = "microwatt";
7 compatible = "microwatt-soc";
13 reserved-memory {
14 #size-cells = <0x02>;
15 #address-cells = <0x02>;
25 #size-cells = <0x00>;
26 #address-cells = <0x01>;
[all …]
/Linux-v5.15/Documentation/filesystems/
Dsquashfs.rst1 .. SPDX-License-Identifier: GPL-2.0
7 Squashfs is a compressed read-only filesystem for Linux.
11 minimise data overhead. Block sizes greater than 4K are supported up to a
12 maximum of 1Mbytes (default block size 128K).
14 Squashfs is intended for general read-only filesystem use, for archival
15 use (i.e. in cases where a .tar.gz file may be used), and in constrained
16 block device/memory systems (e.g. embedded systems) where low overhead is
19 Mailing list: squashfs-devel@lists.sourceforge.net
23 ----------------------
30 Max filesystem size 2^64 256 MiB
[all …]
/Linux-v5.15/Documentation/admin-guide/device-mapper/
Ddm-clone.rst1 .. SPDX-License-Identifier: GPL-2.0-only
4 dm-clone
10 dm-clone is a device mapper target which produces a one-to-one copy of an
11 existing, read-only source device into a writable destination device: It
12 presents a virtual block device which makes all data appear immediately, and
15 The main use case of dm-clone is to clone a potentially remote, high-latency,
16 read-only, archival-type block device into a writable, fast, primary-type device
17 for fast, low-latency I/O. The cloned device is visible/mountable immediately
19 background, in parallel with user I/O.
21 For example, one could restore an application backup from a read-only copy,
[all …]
Dcache.rst2 Cache chapter
8 dm-cache is a device mapper target written by Joe Thornber, Heinz
11 It aims to improve performance of a block device (eg, a spindle) by
15 This device-mapper solution allows us to insert this caching at
17 a thin-provisioning pool. Caching solutions that are integrated more
20 The target reuses the metadata library used in the thin-provisioning
23 The decision as to what data to migrate and when is left to a plug-in
32 Movement of the primary copy of a logical block from one
39 The origin device always contains a copy of the logical block, which
40 may be out of date or kept in sync with the copy on the cache device
[all …]
Dwritecache.rst6 doesn't cache reads because reads are supposed to be cached in page cache
14 1. type of the cache device - "p" or "s"
15 - p - persistent memory
16 - s - SSD
18 3. the cache device
19 4. block size (4096 is recommended; the maximum block size is the page
20 size)
24 offset from the start of cache device in 512-byte sectors
44 applicable only to persistent memory - use the FUA flag
48 applicable only to persistent memory - don't use the FUA
[all …]
/Linux-v5.15/drivers/md/bcache/
Ddebug.c1 // SPDX-License-Identifier: GPL-2.0
24 #define for_each_written_bset(b, start, i) \ argument
25 for (i = (start); \
26 (void *) i < (void *) (start) + (KEY_SIZE(&b->key) << 9) &&\
27 i->seq == (start)->seq; \
28 i = (void *) i + set_blocks(i, block_bytes(b->c->cache)) * \
29 block_bytes(b->c->cache))
33 struct btree *v = b->c->verify_data; in bch_btree_verify()
37 if (!b->c->verify || !b->c->verify_ondisk) in bch_btree_verify()
40 down(&b->io_mutex); in bch_btree_verify()
[all …]
/Linux-v5.15/arch/sh/boot/dts/
Dj2_mimas_v2.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
5 compatible = "jcore,j2-soc";
8 #address-cells = <1>;
9 #size-cells = <1>;
11 interrupt-parent = <&aic>;
14 #address-cells = <1>;
15 #size-cells = <0>;
21 clock-frequency = <50000000>;
22 d-cache-size = <8192>;
[all …]
/Linux-v5.15/arch/mips/include/asm/octeon/
Dcvmx-fpa.h7 * Copyright (c) 2003-2008 Cavium Networks
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
41 #include <asm/octeon/cvmx-address.h>
42 #include <asm/octeon/cvmx-fpa-defs.h>
56 * the (64-bit word) location in scratchpad to write
62 /* the ID of the device on the non-coherent bus */
84 /* Size of each block */
85 uint64_t size; member
86 /* The base memory address of whole block */
[all …]

12345678910>>...39