Home
last modified time | relevance | path

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

12345678910>>...19

/kernel/linux/linux-6.6/drivers/md/
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 …]
Ddm-bufio.c1 // 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>
65 * dm_buffer->list_mode
73 /*--------------------------------------------------------------*/
101 /*--------------*/
105 lru->cursor = NULL; in lru_init()
106 lru->count = 0; in lru_init()
[all …]
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 …]
/kernel/linux/linux-5.10/drivers/md/
Ddm-cache-target.c8 #include "dm-bio-prison-v2.h"
9 #include "dm-bio-record.h"
10 #include "dm-cache-metadata.h"
12 #include <linux/dm-io.h>
13 #include <linux/dm-kcopyd.h>
22 #define DM_MSG_PREFIX "cache"
25 "A percentage of time allocated for copying to and/or from cache");
27 /*----------------------------------------------------------------*/
32 * oblock: index of an origin block
33 * cblock: index of a cache block
[all …]
Ddm-cache-policy.h10 #include "dm-cache-block-types.h"
12 #include <linux/device-mapper.h>
14 /*----------------------------------------------------------------*/
17 * The cache policy makes the important decisions about which blocks get to
18 * live on the faster cache device.
30 enum policy_operation op; member
36 * The cache policy object. It is envisaged that this structure will be
46 * Find the location of a block.
48 * Must not block.
50 * Returns 0 if in cache (cblock will be set), -ENOENT if not, < 0 for
[all …]
/kernel/linux/linux-5.10/Documentation/filesystems/caching/
Dbackend-api.rst1 .. SPDX-License-Identifier: GPL-2.0
4 FS-Cache Cache backend API
7 The FS-Cache system provides an API by which actual caches can be supplied to
8 FS-Cache for it to then serve out to network filesystems and other interested
11 This API is declared in <linux/fscache-cache.h>.
14 Initialising and Registering a Cache
17 To start off, a cache definition must be initialised and registered for each
18 cache the backend wants to make available. For instance, CacheFS does this in
21 The cache definition (struct fscache_cache) should be initialised by calling::
23 void fscache_init_cache(struct fscache_cache *cache,
[all …]
/kernel/linux/linux-5.10/include/linux/
Dfscache-cache.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* General filesystem caching backing cache interface
4 * Copyright (C) 2004-2007 Red Hat, Inc. All Rights Reserved.
9 * Documentation/filesystems/caching/backend-api.rst
11 * for a description of the cache backend interface declared here.
41 * cache tag definition
45 struct fscache_cache *cache; /* cache referred to by this tag */ member
47 #define FSCACHE_TAG_RESERVED 0 /* T if tag is reserved for a cache */
53 * cache definition
57 struct fscache_cache_tag *tag; /* tag representing this cache */
[all …]
Dblk_types.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Block data types and constants. Directly include this file only to
41 spinlock_t bd_size_lock; /* for bd_inode->i_size updates */
52 * Block error status values. See block/blk-core:blk_errors for the details.
53 * Alpha cannot write a byte atomically, so we need to use 32-bit value.
78 * BLK_STS_DEV_RESOURCE is returned from the driver to the block layer if
96 * BLK_STS_ZONE_RESOURCE is returned from the driver to the block layer if zone
102 * still be served. Examples of that are zones that are write-locked, but a read
126 * blk_path_error - returns true if error may be path related
130 * This classifies block error status into non-retryable errors and ones
[all …]
/kernel/linux/linux-6.6/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 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 …]
/kernel/linux/linux-5.10/drivers/block/null_blk/
Dnull_blk.h1 /* SPDX-License-Identifier: GPL-2.0 */
10 #include <linux/blk-mq.h>
14 #include <linux/fault-inject.h>
40 struct radix_tree_root cache; /* disk cache data */ member
54 unsigned long size; /* device size in MB */ member
56 unsigned long cache_size; /* disk cache size in MB */
57 unsigned long zone_size; /* zone size in MB if device is zoned */
64 unsigned int queue_mode; /* block interface */
65 unsigned int blocksize; /* block size */
70 bool blocking; /* blocking blk-mq device */
[all …]
/kernel/linux/linux-6.6/include/linux/
Dblk_types.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Block data types and constants. Directly include this file only to
24 * The basic unit of block I/O is a sector. It is used in a number of contexts
25 * in Linux (blk, bio, genhd). The size of one sector is 512 = 2**9
26 * bytes. Variables of type sector_t represent an offset or size that is a
36 #define PAGE_SECTORS_SHIFT (PAGE_SHIFT - SECTOR_SHIFT)
38 #define SECTOR_MASK (PAGE_SECTORS - 1)
47 bool bd_read_only; /* read-only policy */
53 spinlock_t bd_size_lock; /* for bd_inode->i_size updates */
74 * keep this out-of-line as it's both big and not needed in the fast
[all …]
/kernel/linux/linux-5.10/block/
Dblk-zoned.c1 // SPDX-License-Identifier: GPL-2.0
3 * Zoned block device handling
16 #include <linux/blk-mq.h>
37 * blk_zone_cond_str - Return string XXX in BLK_ZONE_COND_XXX.
40 * Description: Centralize block layer function to convert BLK_ZONE_COND_XXX
58 sector_t zone_mask = blk_queue_zone_sectors(q) - 1; in blk_zone_start()
68 if (!rq->q->seq_zones_wlock) in blk_req_needs_zone_write_lock()
89 if (test_and_set_bit(zno, rq->q->seq_zones_wlock)) in blk_req_zone_write_trylock()
92 WARN_ON_ONCE(rq->rq_flags & RQF_ZONE_WRITE_LOCKED); in blk_req_zone_write_trylock()
93 rq->rq_flags |= RQF_ZONE_WRITE_LOCKED; in blk_req_zone_write_trylock()
[all …]
/kernel/linux/linux-5.10/include/linux/ceph/
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 …]
/kernel/linux/linux-6.6/include/linux/ceph/
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 …]
/kernel/linux/linux-6.6/drivers/block/null_blk/
Dnull_blk.h1 /* SPDX-License-Identifier: GPL-2.0 */
10 #include <linux/blk-mq.h>
14 #include <linux/fault-inject.h>
79 struct radix_tree_root cache; /* disk cache data */ member
94 unsigned long size; /* device size in MB */ member
96 unsigned long cache_size; /* disk cache size in MB */
97 unsigned long zone_size; /* zone size in MB if device is zoned */
107 unsigned int queue_mode; /* block interface */
108 unsigned int blocksize; /* block size */
114 bool blocking; /* blocking blk-mq device */
[all …]
/kernel/linux/linux-5.10/drivers/block/
Dps3disk.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <linux/blk-mq.h>
56 u32 size; member
69 DIR_WRITE = 0, /* memory -> device */
70 DIR_READ = 1 /* device -> memory */
88 size_t size; in ps3disk_scatter_gather() local
93 dev_dbg(&dev->sbd.core, "%s:%u: bio %u: %u sectors from %llu\n", in ps3disk_scatter_gather()
95 iter.bio->bi_iter.bi_sector); in ps3disk_scatter_gather()
97 size = bvec.bv_len; in ps3disk_scatter_gather()
100 memcpy(dev->bounce_buf+offset, buf, size); in ps3disk_scatter_gather()
[all …]
/kernel/linux/linux-6.6/drivers/crypto/marvell/cesa/
Dcesa.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 #include <linux/dma-direction.h>
70 * in Errata 4.12. It looks like that it was part of an IRQ-controller in FPGA
124 * /-----------\ 0
126 * |-----------| 0x20
128 * |-----------| 0x40
130 * |-----------| 0x40 (inplace)
132 * |-----------| 0x80
133 * | DATA IN | 16 * x (max ->max_req_size)
134 * |-----------| 0x80 (inplace operation)
[all …]
Dhash.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Author: Boris Brezillon <boris.brezillon@free-electrons.com>
17 #include <linux/dma-mapping.h>
31 unsigned int len = req->nbytes + creq->cache_ptr; in mv_cesa_ahash_req_iter_init()
33 if (!creq->last_req) in mv_cesa_ahash_req_iter_init()
36 mv_cesa_req_dma_iter_init(&iter->base, len); in mv_cesa_ahash_req_iter_init()
37 mv_cesa_sg_dma_iter_init(&iter->src, req->src, DMA_TO_DEVICE); in mv_cesa_ahash_req_iter_init()
38 iter->src.op_offset = creq->cache_ptr; in mv_cesa_ahash_req_iter_init()
44 iter->src.op_offset = 0; in mv_cesa_ahash_req_iter_next_op()
46 return mv_cesa_req_dma_iter_next_op(&iter->base); in mv_cesa_ahash_req_iter_next_op()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/marvell/cesa/
Dcesa.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 #include <linux/dma-direction.h>
70 * in Errata 4.12. It looks like that it was part of an IRQ-controller in FPGA
124 * /-----------\ 0
126 * |-----------| 0x20
128 * |-----------| 0x40
130 * |-----------| 0x40 (inplace)
132 * |-----------| 0x80
133 * | DATA IN | 16 * x (max ->max_req_size)
134 * |-----------| 0x80 (inplace operation)
[all …]
Dhash.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Author: Boris Brezillon <boris.brezillon@free-electrons.com>
16 #include <linux/dma-mapping.h>
30 unsigned int len = req->nbytes + creq->cache_ptr; in mv_cesa_ahash_req_iter_init()
32 if (!creq->last_req) in mv_cesa_ahash_req_iter_init()
35 mv_cesa_req_dma_iter_init(&iter->base, len); in mv_cesa_ahash_req_iter_init()
36 mv_cesa_sg_dma_iter_init(&iter->src, req->src, DMA_TO_DEVICE); in mv_cesa_ahash_req_iter_init()
37 iter->src.op_offset = creq->cache_ptr; in mv_cesa_ahash_req_iter_init()
43 iter->src.op_offset = 0; in mv_cesa_ahash_req_iter_next_op()
45 return mv_cesa_req_dma_iter_next_op(&iter->base); in mv_cesa_ahash_req_iter_next_op()
[all …]
/kernel/linux/linux-5.10/fs/cachefiles/
Dinternal.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* General netfs cache on cache files internal defs
15 #include <linux/fscache-cache.h>
40 loff_t i_size; /* object size */
53 * Cache files cache definition
56 struct fscache_cache cache; /* FS-Cache record */ member
57 struct vfsmount *mnt; /* mountpoint holding the cache */
60 const struct cred *cache_cred; /* security override for accessing cache */
74 unsigned bsize; /* cache's block size */
83 #define CACHEFILES_READY 0 /* T if cache prepared */
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/af/
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->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 …]
/kernel/linux/linux-5.10/include/trace/events/
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, bio->bi_iter.bi_size);
35 MAJOR(__entry->dev), MINOR(__entry->dev),
36 __entry->rwbs, (unsigned long long)__entry->sector,
[all …]
/kernel/linux/linux-6.6/include/trace/events/
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 …]
/kernel/linux/linux-6.6/drivers/block/
Dps3disk.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <linux/blk-mq.h>
55 u32 size; member
68 DIR_WRITE = 0, /* memory -> device */
69 DIR_READ = 1 /* device -> memory */
89 memcpy_from_bvec(dev->bounce_buf + offset, &bvec); in ps3disk_scatter_gather()
91 memcpy_to_bvec(&bvec, dev->bounce_buf + offset); in ps3disk_scatter_gather()
98 struct ps3disk_private *priv = ps3_system_bus_get_drvdata(&dev->sbd); in ps3disk_submit_request_sg()
100 const char *op = write ? "write" : "read"; in ps3disk_submit_request_sg() local
102 unsigned int region_id = dev->regions[dev->region_idx].id; in ps3disk_submit_request_sg()
[all …]

12345678910>>...19