Home
last modified time | relevance | path

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

12345678910

/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-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
71 /*--------------------------------------------------------------*/
99 /*--------------*/
103 lru->cursor = NULL; in lru_init()
104 lru->count = 0; in lru_init()
[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
77 unsigned long size; /* device size in MB */ member
79 unsigned long cache_size; /* disk cache size in MB */
80 unsigned long zone_size; /* zone size in MB if device is zoned */
91 unsigned int queue_mode; /* block interface */
92 unsigned int blocksize; /* block size */
98 bool blocking; /* blocking blk-mq device */
[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/drivers/crypto/marvell/cesa/
H A 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 …]
H A 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 …]
/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->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/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/block/
H A 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 …]
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/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-guide/bcache.rst.
45 * Writeback: don't undirty key until after a cache flush
49 * On btree write error, mark bucket such that it won't be freed from the cache
64 * Keep 1 min/5 min/15 min statistics of how busy a block device has been, so
76 * If data write is less than hard sector size of ssd, round up offset in open
79 * Superblock needs to be fleshed out for multiple cache devices
[all …]
/linux/arch/mips/include/asm/
H A Dmips-cm.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
8 # error Please include asm/mips-cps.h rather than asm/mips-cm.h
18 /* The base address of the CM GCR block */
21 /* The base address of the CM L2-only sync region */
25 * mips_cm_phys_base - retrieve the physical base address of the CM
28 * global control block, or 0 if no Coherence Manager is present. It provides
36 * mips_cm_l2sync_phys_base - retrieve the physical base address of the CM
37 * L2-sync region
40 * L2-cache only region. It provides a default implementation which reads the
49 * mips_cm_is64 - determine CM register width
[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/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/drivers/net/ethernet/mellanox/mlx5/core/
H A Dcmd.c2 * Copyright (c) 2013-2016, Mellanox Technologies. All rights reserved.
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
36 #include <linux/dma-mapping.h>
100 static bool mlx5_cmd_is_throttle_opcode(u16 op) in mlx5_cmd_is_throttle_opcode() argument
102 switch (op) { in mlx5_cmd_is_throttle_opcode()
123 return ERR_PTR(-ENOMEM); in cmd_alloc_ent()
125 ent->idx = -EINVAL; in cmd_alloc_ent()
126 ent->in = in; in cmd_alloc_ent()
127 ent->out = out; in cmd_alloc_ent()
[all …]
/linux/fs/cachefiles/
H A 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 struct cachefiles_cache *cache; member
41 struct list_head cache_link; /* Link in cache->volumes */
67 struct cachefiles_volume *volume; /* Cache volume that holds this object */
68 struct list_head cache_link; /* Link in cache->*_list */
83 #define CACHEFILES_ONDEMAND_ID_CLOSED -1
86 * Cache files cache definition
89 struct fscache_cache *cache; /* Cache cookie */ member
[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/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/block/
H A Dioctl.c1 // SPDX-License-Identifier: GPL-2.0
9 #include <linux/backing-dev.h>
20 struct blkpg_partition __user *upart, int op) in blkpg_do_ioctl() argument
22 struct gendisk *disk = bdev->bd_disk; in blkpg_do_ioctl()
27 return -EACCES; in blkpg_do_ioctl()
29 return -EFAULT; in blkpg_do_ioctl()
31 return -EINVAL; in blkpg_do_ioctl()
34 return -EINVAL; in blkpg_do_ioctl()
36 if (op == BLKPG_DEL_PARTITION) in blkpg_do_ioctl()
39 if (p.start < 0 || p.length <= 0 || LLONG_MAX - p.length < p.start) in blkpg_do_ioctl()
[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 …]

12345678910