/openbmc/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> 65 * dm_buffer->list_mode 73 /*--------------------------------------------------------------*/ 101 /*--------------*/ 105 lru->cursor = NULL; in lru_init() 106 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 …]
|
H A D | dm-ebs-target.c | 1 // 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 …]
|
/openbmc/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 …]
|
/openbmc/qemu/docs/about/ |
H A D | emulation.rst | 9 .. list-table:: Supported Guest Architectures for Emulation 11 :header-rows: 1 13 * - Architecture (qemu name) 14 - System 15 - User 16 - Notes 17 * - Alpha 18 - Yes 19 - Yes 20 - Legacy 64 bit RISC ISA developed by DEC [all …]
|
/openbmc/linux/include/linux/ |
H A D | blk_types.h | 1 /* 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 …]
|
/openbmc/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> 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 …]
|
/openbmc/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 …]
|
/openbmc/linux/drivers/crypto/marvell/cesa/ |
H A D | cesa.h | 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 FPGA 124 * /----- 315 struct mv_cesa_op_ctx *op; global() member 558 struct mv_cesa_op_ctx op; global() member 560 unsigned int size; global() member 594 u8 *cache; global() member 616 u8 cache[CESA_MAX_HASH_BLOCK_SIZE]; global() member 658 mv_cesa_update_op_cfg(struct mv_cesa_op_ctx * op,u32 cfg,u32 mask) mv_cesa_update_op_cfg() argument 665 mv_cesa_get_op_cfg(const struct mv_cesa_op_ctx * op) mv_cesa_get_op_cfg() argument 670 mv_cesa_set_op_cfg(struct mv_cesa_op_ctx * op,u32 cfg) mv_cesa_set_op_cfg() argument 676 mv_cesa_adjust_op(struct mv_cesa_engine * engine,struct mv_cesa_op_ctx * op) mv_cesa_adjust_op() argument 690 mv_cesa_set_crypt_op_len(struct mv_cesa_op_ctx * op,int len) mv_cesa_set_crypt_op_len() argument 695 mv_cesa_set_mac_op_total_len(struct mv_cesa_op_ctx * op,int len) mv_cesa_set_mac_op_total_len() argument 702 mv_cesa_set_mac_op_frag_len(struct mv_cesa_op_ctx * op,int len) mv_cesa_set_mac_op_frag_len() argument 724 mv_cesa_mac_op_is_first_frag(const struct mv_cesa_op_ctx * op) mv_cesa_mac_op_is_first_frag() argument [all...] |
H A D | hash.c | 1 // 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 …]
|
/openbmc/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 …]
|
/openbmc/linux/drivers/block/ |
H A D | ps3disk.c | 1 // 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 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 …]
|
/openbmc/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 …]
|
/openbmc/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. 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 …]
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | mips-cm.h | 1 /* 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 37 * mips_cm_is64 - determine CM register width 42 * or vice-versa. This variable indicates the width of the memory accesses 46 * It's set to 0 for 32-bit accesses and 1 for 64-bit accesses. 51 * mips_cm_is_l2_hci_broken - determine if HCI is broken [all …]
|
/openbmc/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 …]
|
/openbmc/u-boot/drivers/virtio/ |
H A D | virtio_blk.h | 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 …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | cmd.c | 2 * 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 …]
|
/openbmc/qemu/pc-bios/ |
HD | u-boot.e500 | ... = 0x%02lx) L1: D-cache 32 KiB enabled I-cache 32 KiB enabled ... |
/openbmc/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 …]
|
/openbmc/u-boot/drivers/mtd/nand/spi/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2016-2017 Micron Technology, Inc. 10 #define pr_fmt(fmt) "spi-nand: " fmt 21 #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() local 51 spinand->scratchbuf); in spinand_read_reg_op() [all …]
|
/openbmc/linux/block/ |
H A D | blk-zoned.c | 1 // 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 60 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 …]
|
/openbmc/linux/fs/cachefiles/ |
H A D | internal.h | 1 /* 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 …]
|