Home
last modified time | relevance | path

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

123456789

/linux/drivers/md/
H A Ddm-cache-target.c1 // SPDX-License-Identifier: GPL-2.0-only
9 #include "dm-bio-prison-v2.h"
10 #include "dm-bio-record.h"
11 #include "dm-cache-metadata.h"
12 #include "dm-io-tracker.h"
13 #include "dm-cache-background-tracker.h"
15 #include <linux/dm-io.h>
16 #include <linux/dm-kcopyd.h>
25 #define DM_MSG_PREFIX "cache"
28 "A percentage of time allocated for copying to and/or from cache");
[all …]
H A Ddm-cache-policy.h1 /* SPDX-License-Identifier: GPL-2.0-only */
11 #include "dm-cache-block-types.h"
13 #include <linux/device-mapper.h>
15 /*----------------------------------------------------------------*/
18 * The cache policy makes the important decisions about which blocks get to
19 * live on the faster cache device.
31 enum policy_operation op; member
37 * The cache policy object. It is envisaged that this structure will be
47 * Find the location of a block.
49 * Must not block.
[all …]
H A Ddm-ebs-target.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Device-mapper target to emulate smaller logical block
8 * size on backing devices exposing (natively) larger ones.
16 #include <linux/dm-bufio.h>
22 /* Emulated block size context. */
24 struct dm_dev *dev; /* Underlying device to emulate block size on. */
25 struct dm_bufio_client *bufio; /* Use dm-bufio for read and read-modify-write processing. */
31 unsigned int e_bs; /* Emulated block size in sectors exposed to upper layer. */
32 …unsigned int u_bs; /* Underlying block size in sectors retrieved from/set on lower layer device. …
33 unsigned char block_shift; /* bitshift sectors -> blocks used in dm-bufio API. */
[all …]
/linux/Documentation/devicetree/bindings/riscv/
H A Dcpus.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: RISC-V CPUs
10 - Paul Walmsley <paul.walmsley@sifive.com>
11 - Palmer Dabbelt <palmer@sifive.com>
12 - Conor Dooley <conor@kernel.org>
15 This document uses some terminology common to the RISC-V community
19 mandated by the RISC-V ISA: a PC and some registers. This
27 - $ref: /schemas/cpu.yaml#
[all …]
/linux/include/linux/
H A Dblk_types.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Block data types and constants. Directly include this file only to
25 * The basic unit of block I/O is a sector. It is used in a number of contexts
26 * in Linux (blk, bio, genhd). The size of one sector is 512 = 2**9
27 * bytes. Variables of type sector_t represent an offset or size that is a
37 #define PAGE_SECTORS_SHIFT (PAGE_SHIFT - SECTOR_SHIFT)
39 #define SECTOR_MASK (PAGE_SECTORS - 1)
49 #define BD_PARTNO 255 // lower 8 bits; assign-once
50 #define BD_READ_ONLY (1u<<8) // read-only policy
58 struct address_space *bd_mapping; /* page cache */
[all …]
/linux/include/linux/ceph/
H A Drados.h1 /* SPDX-License-Identifier: GPL-2.0 */
29 #define CEPH_SNAPDIR ((__u64)(-1)) /* reserved for hidden .snap dir */
30 #define CEPH_NOSNAP ((__u64)(-2)) /* "head", "live" revision */
31 #define CEPH_MAXSNAP ((__u64)(-3)) /* largest valid snapid */
40 * object layout - how objects are mapped into PGs
47 * pg layout -- how PGs are mapped onto (sets of) OSDs
69 * pg_num -- base number of pseudorandomly placed pgs
71 * pgp_num -- effective number when calculating pg placement. this
78 * lpg_num -- localized pg count (per device). replicas are randomly
81 * lpgp_num -- as above.
[all …]
/linux/drivers/block/null_blk/
H A Dnull_blk.h1 /* SPDX-License-Identifier: GPL-2.0 */
10 #include <linux/blk-mq.h>
14 #include <linux/fault-inject.h>
62 struct radix_tree_root cache; /* disk cache data */ member
79 unsigned long size; /* device size in MB */ member
81 unsigned long cache_size; /* disk cache siz
166 null_process_zoned_cmd(struct nullb_cmd * cmd,enum req_op op,sector_t sector,sector_t nr_sectors) null_process_zoned_cmd() argument
[all...]
H A Dmain.c1 // SPDX-License-Identifier: GPL-2.0-only
39 * CACHE: Device is using a write-back cache.
54 * Each bit represents one block size. For example, sector 8
56 * The highest 2 bits of bitmap are for special purpose. LOCK means the cache
57 * page is being flushing to storage. FREE means the cache page is freed and
65 #define NULLB_PAGE_LOCK (MAP_SZ - 1)
66 #define NULLB_PAGE_FREE (MAP_SZ - 2)
103 * Documentation/fault-injection/fault-injection.rst.
138 return -EINVAL; in null_param_store_val()
141 return -EINVAL; in null_param_store_val()
[all …]
/linux/include/trace/events/
H A Dbcache.h1 /* SPDX-License-Identifier: GPL-2.0 */
25 __entry->dev = bio_dev(bio);
26 __entry->orig_major = d->disk->major;
27 __entry->orig_minor = d->disk->first_minor;
28 __entry->sector = bio->bi_iter.bi_sector;
29 __entry->orig_sector = bio->bi_iter.bi_sector - 16;
30 __entry->nr_sector = bio->bi_iter.bi_size >> 9;
31 blk_fill_rwbs(__entry->rwbs, bio->bi_opf);
35 MAJOR(__entry->dev), MINOR(__entry->dev),
36 __entry->rwbs, (unsigned long long)__entry->sector,
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npa.c1 // SPDX-License-Identifier: GPL-2.0
15 static int npa_aq_enqueue_wait(struct rvu *rvu, struct rvu_block *block, in npa_aq_enqueue_wait() argument
18 struct admin_queue *aq = block->aq; in npa_aq_enqueue_wait()
23 result = (struct npa_aq_res_s *)aq->res->base; in npa_aq_enqueue_wait()
26 reg = rvu_read64(rvu, block->add in npa_aq_enqueue_wait()
68 struct rvu_block *block; rvu_npa_aq_enq_inst() local
334 struct rvu_block *block; rvu_mbox_handler_npa_lf_alloc() local
440 struct rvu_block *block; rvu_mbox_handler_npa_lf_free() local
467 npa_aq_init(struct rvu * rvu,struct rvu_block * block) npa_aq_init() argument
530 struct rvu_block *block; rvu_npa_freemem() local
[all...]
/linux/drivers/md/bcache/
H A Dbtree.c1 // SPDX-License-Identifier: GPL-2.0
5 * Uses a block device as cache for other block devices; optimized for SSDs.
6 * All allocation is done in buckets, which should match the erase block size
10 * bucket priority is increased on cache hit, and periodically all the buckets
21 * All configuration is done via sysfs; see Documentation/admin-guid
866 mca_cannibalize_lock(struct cache_set * c,struct btree_op * op) mca_cannibalize_lock() argument
883 mca_cannibalize(struct cache_set * c,struct btree_op * op,struct bkey * k) mca_cannibalize() argument
921 mca_alloc(struct cache_set * c,struct btree_op * op,struct bkey * k,int level) mca_alloc() argument
1004 bch_btree_node_get(struct cache_set * c,struct btree_op * op,struct bkey * k,int level,bool write,struct btree * parent) bch_btree_node_get() argument
1118 __bch_btree_node_alloc(struct cache_set * c,struct btree_op * op,int level,bool wait,struct btree * parent) __bch_btree_node_alloc() argument
1162 bch_btree_node_alloc(struct cache_set * c,struct btree_op * op,int level,struct btree * parent) bch_btree_node_alloc() argument
1169 btree_node_alloc_replacement(struct btree * b,struct btree_op * op) btree_node_alloc_replacement() argument
1202 btree_check_reserve(struct btree * b,struct btree_op * op) btree_check_reserve() argument
1358 btree_gc_coalesce(struct btree * b,struct btree_op * op,struct gc_stat * gc,struct gc_merge_info * r) btree_gc_coalesce() argument
1529 btree_gc_rewrite_node(struct btree * b,struct btree_op * op,struct btree * replace) btree_gc_rewrite_node() argument
1605 btree_gc_recurse(struct btree * b,struct btree_op * op,struct closure * writes,struct gc_stat * gc) btree_gc_recurse() argument
1696 bch_btree_gc_root(struct btree * b,struct btree_op * op,struct closure * writes,struct gc_stat * gc) bch_btree_gc_root() argument
1831 struct btree_op op; bch_btree_gc() local
1913 bch_btree_check_recurse(struct btree * b,struct btree_op * op) bch_btree_check_recurse() argument
2005 struct btree_op op; bch_btree_check_thread() local
2195 bch_btree_insert_keys(struct btree * b,struct btree_op * op,struct keylist * insert_keys,struct bkey * replace_key) bch_btree_insert_keys() argument
2237 btree_split(struct btree * b,struct btree_op * op,struct keylist * insert_keys,struct bkey * replace_key) btree_split() argument
2371 bch_btree_insert_node(struct btree * b,struct btree_op * op,struct keylist * insert_keys,atomic_t * journal_ref,struct bkey * replace_key) bch_btree_insert_node() argument
2427 bch_btree_insert_check_key(struct btree * b,struct btree_op * op,struct bkey * check_key) bch_btree_insert_check_key() argument
2466 struct btree_op op; global() member
2474 struct btree_insert_op *op = container_of(b_op, btree_insert_fn() local
2488 struct btree_insert_op op; bch_btree_insert() local
2545 bch_btree_map_nodes_recurse(struct btree * b,struct btree_op * op,struct bkey * from,btree_map_nodes_fn * fn,int flags) bch_btree_map_nodes_recurse() argument
2574 __bch_btree_map_nodes(struct btree_op * op,struct cache_set * c,struct bkey * from,btree_map_nodes_fn * fn,int flags) __bch_btree_map_nodes() argument
2580 bch_btree_map_keys_recurse(struct btree * b,struct btree_op * op,struct bkey * from,btree_map_keys_fn * fn,int flags) bch_btree_map_keys_recurse() argument
2609 bch_btree_map_keys(struct btree_op * op,struct cache_set * c,struct bkey * from,btree_map_keys_fn * fn,int flags) bch_btree_map_keys() argument
2634 struct btree_op op; global() member
2641 refill_keybuf_fn(struct btree_op * op,struct btree * b,struct bkey * k) refill_keybuf_fn() argument
[all...]
/linux/drivers/block/
H A Dps3vram.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * ps3vram - Use extra PS3 video ram as block device.
8 * Copyright (c) 2007-2008 Jim Paris <jim@jtan.com>
19 #include <asm/cell-regs.h>
38 #define CACHE_PAGE_COUNT ((XDR_BUF_SIZE - FIFO_SIZE) / CACHE_PAGE_SIZE)
72 u64 size; member
83 struct ps3vram_cache cache; member
97 static char *size = "256M"; variable
98 module_param(size, charp, 0);
99 MODULE_PARM_DESC(size, "memory size");
[all …]
/linux/drivers/scsi/
H A Dpmcraid.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * pmcraid.h -- PMC Sierra MaxRAID controller driver header file
5 * Written By: Anil Ravindranath<anil_ravindranath@pmc-sierra.com>
6 * PMC-Sierra Inc
39 #define PMC_BIT8(n) (1 << (7-n))
40 #define PMC_BIT16(n) (1 << (15-n))
41 #define PMC_BIT32(n) (1 << (31-n))
58 /* MAX_IOADLS : max number of scatter-gather lists supported by IOA
66 /* HRRQ_ENTRY_SIZE : size of hrrq buffer
197 /* structure to represent a scatter-gather element (IOADL descriptor) */
[all …]
/linux/arch/powerpc/kernel/
H A Drtas_flash.c1 // SPDX-License-Identifier: GPL-2.0-or-later
31 #define RTAS_RC_HW_ERR -1
32 #define RTAS_RC_BUSY -2
35 #define FLASH_AUTH -9002 /* RTAS Not Service Authority Partition */
36 #define FLASH_NO_OP -1099 /* No operation initiated by user */
37 #define FLASH_IMG_SHORT -1005 /* Flash image shorter than expected */
38 #define FLASH_IMG_BAD_LEN -1004 /* Bad length value in flash list block */
39 #define FLASH_IMG_NULL_DATA -1003 /* Bad data value in flash list block */
43 #define MANAGE_AUTH -9002 /* RTAS Not Service Authority Partition */
44 #define MANAGE_ACTIVE_ERR -9001 /* RTAS Cannot Overwrite Active Img */
[all …]
/linux/drivers/block/drbd/
H A Ddrbd_actlog.c1 // SPDX-License-Identifier: GPL-2.0-only
7 Copyright (C) 2003-2008, LINBIT Information Technologies GmbH.
8 Copyright (C) 2003-2008, Philipp Reisner <philipp.reisner@linbit.com>.
9 Copyright (C) 2003-2008, Lars Ellenberg <lars.ellenberg@linbit.com>.
30 /* to identify the most recent transaction block
34 /* checksum on the full 4k block, with this field set to 0. */
38 * purge-all, set-all-idle, set-all-active, ... to-be-defined
48 /* maximum slot number, "al-extents" in drbd.conf speak.
57 * sectors-written since device creation, and other data generation tag
61 /* --- 36 byte used --- */
[all …]
/linux/fs/btrfs/tests/
H A Dfree-space-tests.c1 // SPDX-License-Identifier: GPL-2.0
7 #include "btrfs-tests.h"
9 #include "../disk-io.h"
10 #include "../free-space-cache.h"
11 #include "../block-group.h"
20 static int test_extents(struct btrfs_block_group *cache) in test_extents() argument
27 ret = btrfs_add_free_space(cache, 0, SZ_4M); in test_extents()
33 ret = btrfs_remove_free_space(cache, 0, SZ_4M); in test_extents()
39 if (test_check_exists(cache, 0, SZ_4M)) { in test_extents()
41 return -1; in test_extents()
[all …]
/linux/lib/zstd/decompress/
H A Dzstd_decompress_block.c1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
6 * This source code is licensed under both the BSD-style license (found in the
9 * You may select, at your option, one of the above-listed licenses.
13 * this module takes care of decompressing _compressed_ block */
15 /*-*******************************************************
51 /*-*************************************************************
52 * Block decoding
57 …size_t const blockSizeMax = dctx->isFrameDecompression ? dctx->fParams.blockSizeMax : ZSTD_BLOCKSI… in ZSTD_blockSizeMax()
63 * Provides the size of compressed block from block header `src` */
71 bpPtr->lastBlock = cBlockHeader & 1; in ZSTD_getcBlockSize()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2 /* Copyright (C) 2016-2018 Netronome Systems, Inc. */
21 #define cmsg_warn(bpf, msg...) nn_dp_warn(&(bpf)->app->ctrl->dp, msg)
23 /* For relocation logic use up-most byte of branch instruction as scratch
86 * struct nfp_app_bpf - bpf app priv structure
92 * @cmsg_key_sz: size of key in cmsg element array
93 * @cmsg_val_sz: size of value in cmsg element array
99 * @maps_neutral: hash table of offload-neutral maps (on pointer)
115 * @maps.max_key_sz: max size of map key
116 * @maps.max_val_sz: max size of map value
[all …]
/linux/lib/zstd/compress/
H A Dzstd_compress_internal.h1 /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
6 * This source code is licensed under both the BSD-style license (found in the
9 * You may select, at your option, one of the above-listed licenses.
19 /*-*************************************
27 /*-*************************************
41 /*-*************************************
86 U16 mlBase; /* mlBase == matchLength - MINMATCH */
127 seqLen.litLength = seq->litLength; in ZSTD_getSequenceLength()
128 seqLen.matchLength = seq->mlBase + MINMATCH; in ZSTD_getSequenceLength()
129 if (seqStore->longLengthPos == (U32)(seq - seqStore->sequencesStart)) { in ZSTD_getSequenceLength()
[all …]
/linux/block/
H A Dbio.c1 // SPDX-License-Identifier: GPL-2.0
7 #include <linux/bio-integrity.h>
19 #include <linux/blk-crypto.h>
22 #include <trace/events/block.h>
24 #include "blk-rq-qos.h"
25 #include "blk-cgroup.h"
42 { .nr_vecs = 16, .name = "biovec-1
85 create_bio_slab(unsigned int size) create_bio_slab() argument
119 unsigned int size = bs_bio_slab_size(bs); bio_find_or_create_slab() local
428 bio_alloc_irq_cache_splice(struct bio_alloc_cache * cache) bio_alloc_irq_cache_splice() argument
448 struct bio_alloc_cache *cache; bio_alloc_percpu_cache() local
719 __bio_alloc_cache_prune(struct bio_alloc_cache * cache,unsigned int nr) __bio_alloc_cache_prune() argument
735 bio_alloc_cache_prune(struct bio_alloc_cache * cache,unsigned int nr) bio_alloc_cache_prune() argument
751 struct bio_alloc_cache *cache = per_cpu_ptr(bs->cache, cpu); bio_cpu_dead() local
767 struct bio_alloc_cache *cache; bio_alloc_cache_destroy() local
778 struct bio_alloc_cache *cache; bio_put_percpu_cache() local
1218 ssize_t size; __bio_iov_iter_get_pages() local
1407 bdev_rw_virt(struct block_device * bdev,sector_t sector,void * data,size_t len,enum req_op op) bdev_rw_virt() argument
1735 bio_trim(struct bio * bio,sector_t offset,sector_t size) bio_trim() argument
[all...]
/linux/drivers/gpu/drm/panthor/
H A Dpanthor_mmu.c1 // SPDX-License-Identifier: GPL-2.0 or MIT
17 #include <linux/dma-mapping.h>
21 #include <linux/io-pgtable.h>
44 * struct panthor_as_slot - Address space slot
52 * struct panthor_mmu - MMU related data
62 * us to re-assign them to re-assign slots on-demand.
85 * a need to release a slot, thus avoid unnecessary TLB/cache
108 * struct panthor_vm_pool - VM pool object
116 * struct panthor_vma - GPU mapping object
136 * struct panthor_vm_op_ctx - VM operation context
[all …]
/linux/fs/zonefs/
H A Dsuper.c1 // SPDX-License-Identifier: GPL-2.0
3 * Simple file system for zoned block devices exposing zones as files.
62 if (z->z_flags & (ZONEFS_ZONE_OFFLINE | ZONEFS_ZONE_READONLY)) in zonefs_account_active()
69 if ((z->z_flags & ZONEFS_ZONE_OPEN) || in zonefs_account_active()
70 (z->z_wpoffset > 0 && z->z_wpoffset < z->z_capacity)) { in zonefs_account_active()
71 if (!(z->z_flags & ZONEFS_ZONE_ACTIVE)) { in zonefs_account_active()
72 z->z_flags |= ZONEFS_ZONE_ACTIVE; in zonefs_account_active()
73 atomic_inc(&sbi->s_active_seq_files); in zonefs_account_active()
80 if (z->z_flags & ZONEFS_ZONE_ACTIVE) { in zonefs_account_active()
81 z->z_flags &= ~ZONEFS_ZONE_ACTIVE; in zonefs_account_active()
[all …]
H A Dfile.c1 // SPDX-License-Identifier: GPL-2.0
3 * Simple file system for zoned block devices exposing zones as files.
33 struct super_block *sb = inode->i_sb; in zonefs_read_iomap_begin()
38 * act as if there is a hole up to the file maximum size. in zonefs_read_iomap_begin()
40 mutex_lock(&zi->i_truncate_mutex); in zonefs_read_iomap_begin()
41 iomap->bdev = inode->i_sb->s_bdev; in zonefs_read_iomap_begin()
42 iomap->offset = ALIGN_DOWN(offset, sb->s_blocksize); in zonefs_read_iomap_begin()
44 if (iomap->offset >= isize) { in zonefs_read_iomap_begin()
45 iomap->type = IOMAP_HOLE; in zonefs_read_iomap_begin()
46 iomap->addr = IOMAP_NULL_ADDR; in zonefs_read_iomap_begin()
[all …]
/linux/tools/perf/pmu-events/arch/powerpc/power9/
H A Dother.json45 …"BriefDescription": "The processor's data cache was reloaded from a location other than the local …
65 "BriefDescription": "Read-write data cache collisions"
75 … "BriefDescription": "Data ERAT Miss (Data TLB Access) page size 16G (hpt mode) or 1G (radix mode)"
85 …iefDescription": "A radix translation attempt missed in the TLB and all levels of page walk cache."
90 "BriefDescription": "D-cache invalidates sent over the reload bus to the core"
95 …"BriefDescription": "The processor's Instruction cache was reloaded from the local chip's Memory d…
145 …"BriefDescription": "The processor's data cache was reloaded from local core's L2 with load hit st…
200 "BriefDescription": "Read-write data cache collisions"
255 …"BriefDescription": "The processor's data cache was reloaded from local core's L2 with load hit st…
280-word boundary, which causes it to require an additional slice than than what normally would be re…
[all …]
/linux/fs/btrfs/
H A Dverity.c1 // SPDX-License-Identifier: GPL-2.0
45 * size of the descriptor item and some extra data for encryption.
48 * the higher level verity code. The most common descriptor size is 256 bytes.
59 * linearly with the size of the file (with 4K pages/blocks and SHA-256, it's
60 * ~1/127th the size) so for large files, writing the tree can be a lengthy
71 * Compute the logical file offset where we cache the Merkle tree.
76 * fs-verity, it is convenient to do size computations in terms of a file
87 u64 sz = inode->i_size; in merkle_file_pos()
90 if (rounded > inode->i_sb->s_maxbytes) in merkle_file_pos()
91 return -EFBIG; in merkle_file_pos()
[all …]

123456789