/linux/drivers/md/ |
H A D | dm-cache-target.c | 1 // 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 D | dm-bufio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2009-2011 Red Hat, Inc. 10 #include <linux/dm-bufio.h> 12 #include <linux/device-mapper.h> 13 #include <linux/dm-io.h> 55 * dm_buffer->list_mode 63 /*--------------------------------------------------------------*/ 91 /*--------------*/ 95 lru->cursor = NULL; in lru_init() 96 lru->count = 0; in lru_init() [all …]
|
H A D | dm-cache-policy.h | 1 /* 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 …]
|
/linux/Documentation/devicetree/bindings/riscv/ |
H A D | cpus.yaml | 1 # 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/ceph/ |
H A D | rados.h | 1 /* 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 D | null_blk.h | 1 /* 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 size in MB */ 82 unsigned long zone_size; /* zone size in MB if device is zoned */ 93 unsigned int queue_mode; /* block interface */ 94 unsigned int blocksize; /* block size */ 100 bool blocking; /* blocking blk-mq device */ [all …]
|
H A D | main.c | 1 // 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 D | bcache.h | 1 /* 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 D | rvu_npa.c | 1 // 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->addr, NPA_AF_AQ_STATUS); in npa_aq_enqueue_wait() 29 memcpy((void *)(aq->inst->base + (head * aq->inst->entry_sz)), in npa_aq_enqueue_wait() 30 (void *)inst, aq->inst->entry_sz); in npa_aq_enqueue_wait() 36 rvu_write64(rvu, block->addr, NPA_AF_AQ_DOOR, 1); in npa_aq_enqueue_wait() 37 while (result->compcode == NPA_AQ_COMP_NOTDONE) { in npa_aq_enqueue_wait() 40 timeout--; in npa_aq_enqueue_wait() [all …]
|
/linux/drivers/md/bcache/ |
H A D | btree.c | 1 // 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-guide/bcache.rst. 46 * Writeback: don't undirty key until after a cache flush 50 * On btree write error, mark bucket such that it won't be freed from the cache 65 * Keep 1 min/5 min/15 min statistics of how busy a block device has been, so 77 * If data write is less than hard sector size of ssd, round up offset in open 80 * Superblock needs to be fleshed out for multiple cache devices [all …]
|
/linux/drivers/block/ |
H A D | ps3vram.c | 1 // 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 D | pmcraid.h | 1 /* 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/drivers/block/drbd/ |
H A D | drbd_actlog.c | 1 // 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 D | free-space-tests.c | 1 // 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/arch/powerpc/kernel/ |
H A D | rtas_flash.c | 1 // 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/net/ethernet/netronome/nfp/bpf/ |
H A D | main.h | 1 /* 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/block/ |
H A D | bio.c | 1 // 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-16" }, 43 { .nr_vecs = 64, .name = "biovec-64" }, 44 { .nr_vecs = 128, .name = "biovec-128" }, 45 { .nr_vecs = BIO_MAX_VECS, .name = "biovec-max" }, [all …]
|
H A D | ioctl.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <linux/backing-dev.h> 18 #include "blk-crypto-internal.h" 21 struct blkpg_partition __user *upart, int op) in blkpg_do_ioctl() argument 23 struct gendisk *disk = bdev->bd_disk; in blkpg_do_ioctl() 28 return -EACCES; in blkpg_do_ioctl() 30 return -EFAULT; in blkpg_do_ioctl() 32 return -EINVAL; in blkpg_do_ioctl() 35 return -EINVAL; in blkpg_do_ioctl() 37 if (op == BLKPG_DEL_PARTITION) in blkpg_do_ioctl() [all …]
|
H A D | blk-core.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * kernel-doc documentation started by NeilBrown <neilb@cse.unsw.edu.au> 8 * - July2000 9 * bio rewrite, highmem i/o, etc, Jens Axboe <axboe@suse.de> - may 2001 13 * This handles all read/write requests to block devices 19 #include <linux/blk-pm.h> 20 #include <linux/blk-integrity.h> 32 #include <linux/fault-inject.h> 37 #include <linux/t10-pi.h> 42 #include <linux/blk-crypto.h> [all …]
|
/linux/lib/zstd/decompress/ |
H A D | zstd_decompress_block.c | 1 // 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/fs/btrfs/ |
H A D | verity.c | 1 // 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 …]
|
/linux/lib/zstd/compress/ |
H A D | zstd_compress_internal.h | 1 /* 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/tools/perf/pmu-events/arch/powerpc/power9/ |
H A D | other.json | 45 …"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/zonefs/ |
H A D | file.c | 1 // 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/Documentation/filesystems/caching/ |
H A D | netfs-api.rst | 1 .. SPDX-License-Identifier: GPL-2.0 10 (1) A cache is logically organised into volumes and data storage objects 18 (4) Cookies have coherency data that allows a cache to determine if the 55 maximum size of a filename component (allowing the cache backend one char for 62 their parent volume. The cache backend is responsible for rendering the binary 71 This causes fscache to send the cache backend off to look up/create resources 83 extra pins into the cache to stop cache withdrawal from tearing down the 87 The filesystem is expected to use netfslib to access the cache, but that's not 109 what's stored in the cache. 111 The caller may also specify the name of the cache to use. If specified, [all …]
|