Searched +full:cache +full:- +full:op +full:- +full:block +full:- +full:size (Results 1 – 25 of 295) sorted by relevance
12345678910>>...12
1 // SPDX-License-Identifier: GPL-2.0-only9 #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 …]
1 // SPDX-License-Identifier: GPL-2.0-only3 * 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_mode71 /*--------------------------------------------------------------*/99 /*--------------*/103 lru->cursor = NULL; in lru_init()104 lru->count = 0; in lru_init()[all …]
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 to19 * live on the faster cache device.31 enum policy_operation op; member37 * The cache policy object. It is envisaged that this structure will be47 * Find the location of a block.49 * Must not block.[all …]
1 // SPDX-License-Identifier: GPL-2.0-only7 * Device-mapper target to emulate smaller logical block8 * 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 …]
1 # SPDX-License-Identifier: (GPL-2.0 OR MIT)3 ---5 $schema: http://devicetree.org/meta-schemas/core.yaml#7 title: RISC-V CPUs10 - 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 community19 mandated by the RISC-V ISA: a PC and some registers. This27 - $ref: /schemas/cpu.yaml#[all …]
9 .. list-table:: Supported Guest Architectures for Emulation11 :header-rows: 113 * - Architecture (qemu name)14 - System15 - User16 - Notes17 * - Alpha18 - Yes19 - Yes20 - Legacy 64 bit RISC ISA developed by DEC[all …]
1 /* SPDX-License-Identifier: GPL-2.0 */3 * Block data types and constants. Directly include this file only to24 * The basic unit of block I/O is a sector. It is used in a number of contexts25 * in Linux (blk, bio, genhd). The size of one sector is 512 = 2**926 * bytes. Variables of type sector_t represent an offset or size that is a36 #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 …]
1 /* 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 */ member94 unsigned long size; /* device size in MB */ member96 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 …]
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 PGs47 * pg layout -- how PGs are mapped onto (sets of) OSDs69 * pg_num -- base number of pseudorandomly placed pgs71 * pgp_num -- effective number when calculating pg placement. this78 * lpg_num -- localized pg count (per device). replicas are randomly81 * lpgp_num -- as above.[all …]
1 /* 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 FPGA124 * /-----------\ 0126 * |-----------| 0x20128 * |-----------| 0x40130 * |-----------| 0x40 (inplace)132 * |-----------| 0x80133 * | DATA IN | 16 * x (max ->max_req_size)134 * |-----------| 0x80 (inplace operation)[all …]
1 // SPDX-License-Identifier: GPL-2.0-only5 * 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 …]
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 …]
1 // SPDX-License-Identifier: GPL-2.0-only10 #include <linux/blk-mq.h>55 u32 size; member68 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() local102 unsigned int region_id = dev->regions[dev->region_idx].id; in ps3disk_submit_request_sg()[all …]
1 // SPDX-License-Identifier: GPL-2.0-only3 * 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; member83 struct ps3vram_cache cache; member97 static char *size = "256M"; variable98 module_param(size, charp, 0);99 MODULE_PARM_DESC(size, "memory size");[all …]
1 // SPDX-License-Identifier: GPL-2.015 static int npa_aq_enqueue_wait(struct rvu *rvu, struct rvu_block *block, in npa_aq_enqueue_wait() argument18 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 …]
1 // SPDX-License-Identifier: GPL-2.05 * 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 size10 * bucket priority is increased on cache hit, and periodically all the buckets21 * All configuration is done via sysfs; see Documentation/admin-guide/bcache.rst.45 * Writeback: don't undirty key until after a cache flush49 * On btree write error, mark bucket such that it won't be freed from the cache64 * Keep 1 min/5 min/15 min statistics of how busy a block device has been, so76 * If data write is less than hard sector size of ssd, round up offset in open79 * Superblock needs to be fleshed out for multiple cache devices[all …]
1 /* SPDX-License-Identifier: BSD-3-Clause */13 #define VIRTIO_BLK_F_SIZE_MAX 1 /* Indicates maximum segment size */16 #define VIRTIO_BLK_F_RO 5 /* Disk is read-only */17 #define VIRTIO_BLK_F_BLK_SIZE 6 /* Block size of disk is available */36 /* The capacity (in 512-byte sectors) */38 /* The maximum segment size (if VIRTIO_BLK_F_SIZE_MAX) */49 /* block size of device (if VIRTIO_BLK_F_BLK_SIZE) */53 /* exponent for physical block per logical block */57 /* minimum I/O size without performance penalty in logical blocks */59 /* optimal sustained I/O size in logical blocks */[all …]
1 /* SPDX-License-Identifier: GPL-2.0-or-later */8 # error Please include asm/mips-cps.h rather than asm/mips-cm.h18 /* 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 CM28 * global control block, or 0 if no Coherence Manager is present. It provides37 * mips_cm_is64 - determine CM register width42 * or vice-versa. This variable indicates the width of the memory accesses46 * It's set to 0 for 32-bit accesses and 1 for 64-bit accesses.51 * mips_cm_error_report - Report CM cache errors[all …]
1 /* SPDX-License-Identifier: GPL-2.0-or-later */3 * pmcraid.h -- PMC Sierra MaxRAID controller driver header file5 * Written By: Anil Ravindranath<anil_ravindranath@pmc-sierra.com>6 * PMC-Sierra Inc39 #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 IOA66 /* HRRQ_ENTRY_SIZE : size of hrrq buffer197 /* structure to represent a scatter-gather element (IOADL descriptor) */[all …]
2 * Copyright (c) 2013-2016, Mellanox Technologies. All rights reserved.14 * - Redistributions of source code must retain the above18 * - Redistributions in binary form must reproduce the above36 #include <linux/dma-mapping.h>100 static bool mlx5_cmd_is_throttle_opcode(u16 op) in mlx5_cmd_is_throttle_opcode() argument102 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 …]
... = 0x%02lx) L1: D-cache 32 KiB enabled I-cache 32 KiB enabled ...
1 // SPDX-License-Identifier: GPL-2.0-only7 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 block34 /* checksum on the full 4k block, with this field set to 0. */38 * purge-all, set-all-idle, set-all-active, ... to-be-defined48 /* maximum slot number, "al-extents" in drbd.conf speak.57 * sectors-written since device creation, and other data generation tag61 /* --- 36 byte used --- */[all …]
1 // SPDX-License-Identifier: GPL-2.03 * Zoned block device handling16 #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_XXX60 if (!rq->q->disk->seq_zones_wlock) in blk_req_needs_zone_write_lock()71 if (test_and_set_bit(zno, rq->q->disk->seq_zones_wlock)) in blk_req_zone_write_trylock()74 WARN_ON_ONCE(rq->rq_flags & RQF_ZONE_WRITE_LOCKED); in blk_req_zone_write_trylock()75 rq->rq_flags |= RQF_ZONE_WRITE_LOCKED; in blk_req_zone_write_trylock()84 rq->q->disk->seq_zones_wlock))) in __blk_req_zone_write_lock()[all …]
1 // SPDX-License-Identifier: GPL-2.03 * Copyright (C) 2016-2017 Micron Technology, Inc.10 #define pr_fmt(fmt) "spi-nand: " fmt21 #include <linux/spi/spi-mem.h>26 #include <spi-mem.h>40 if (nand->memorg.planes_per_lun < 2) in spinand_cache_op_adjust_colum()44 shift = fls(nand->memorg.pagesize); in spinand_cache_op_adjust_colum()45 *column |= req->pos.plane << shift; in spinand_cache_op_adjust_colum()50 struct spi_mem_op op = SPINAND_GET_FEATURE_OP(reg, in spinand_read_reg_op() local51 spinand->scratchbuf); in spinand_read_reg_op()[all …]
1 /* SPDX-License-Identifier: GPL-2.0-or-later */2 /* General netfs cache on cache files internal defs15 #include <linux/fscache-cache.h>40 struct cachefiles_cache *cache; member41 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 -186 * Cache files cache definition89 struct fscache_cache *cache; /* Cache cookie */ member[all …]