| /OK3568_Linux_fs/kernel/arch/riscv/boot/dts/sifive/ |
| H A D | fu540-c000.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 /* Copyright (c) 2018-2019 SiFive, Inc */ 4 /dts-v1/; 6 #include <dt-bindings/clock/sifive-fu540-prci.h> 9 #address-cells = <2>; 10 #size-cells = <2>; 11 compatible = "sifive,fu540-c000", "sifive,fu540"; 23 #address-cells = <1>; 24 #size-cells = <0>; 28 i-cache-block-size = <64>; [all …]
|
| /OK3568_Linux_fs/buildroot/dl/stressapptest/git/ |
| H A D | stressapptest.1 | 1 .TH STRESSAPPTEST 1 2009-10-20 3 stressapptest \- stress test application for simulating high load situations 20 .B \-A 24 .B \-C <threads> 28 .B \-d <device> 29 Add a direct write disk thread with block device (or file) 'device'. 32 .B \-f <filename> 36 .B \-F 40 .B \-i <threads> 44 .B \-l <logfile> [all …]
|
| /OK3568_Linux_fs/kernel/fs/squashfs/ |
| H A D | file.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Squashfs - a compressed read only filesystem for Linux 14 * compressed fragment block (tail-end packed block). The compressed size 15 * of each datablock is stored in a block list contained within the 19 * larger), the code implements an index cache that caches the mapping from 20 * block index to datablock location on disk. 22 * The index cache allows Squashfs to handle large files (up to 1.75 TiB) while 23 * retaining a simple and space-efficient block list on disk. The cache 26 * The index cache is designed to be memory efficient, and by default uses 44 * Locate cache slot in range [offset, index] for specified inode. If [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/admin-guide/ |
| H A D | bcache.rst | 2 A block layer cache (bcache) 6 nice if you could use them as cache... Hence bcache. 11 This is the git repository of bcache-tools: 12 https://git.kernel.org/pub/scm/linux/kernel/git/colyli/bcache-tools.git/ 17 It's designed around the performance characteristics of SSDs - it only allocates 18 in erase block sized buckets, and it uses a hybrid btree/log to track cached 19 extents (which can be anywhere from a single sector to the bucket size). It's 20 designed to avoid random writes at all costs; it fills up an erase block 25 great lengths to protect your data - it reliably handles unclean shutdown. (It 29 Writeback caching can use most of the cache for buffering writes - writing [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/kernel/ |
| H A D | cacheinfo.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Processor cache information made available to userspace via sysfs; 27 /* per-cpu object for tracking: 28 * - a "cache" kobject for the top-level directory 29 * - a list of "index" objects representing the cpu's local cache hierarchy 32 struct kobject *kobj; /* bare (not embedded) kobject for cache 37 /* "index" object: each cpu's cache directory has an index 38 * subdirectory corresponding to a cache object associated with the 44 struct cache *cache; member 48 * cache type */ [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/ |
| H A D | bbt.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Boris Brezillon <boris.brezillon@free-electrons.com> 10 #define pr_fmt(fmt) "nand-bbt: " fmt 33 * nanddev_read_bbt() - Read the BBT (Bad Block Table) 35 * @block: bbt block address 36 * @update: true - get version and overwrite bbt.cache with new version; 37 * false - get bbt version only; 39 * Initialize the in-memory BBT. 43 static int nanddev_read_bbt(struct nand_device *nand, u32 block, bool update) in nanddev_read_bbt() argument 48 BITS_PER_LONG) * sizeof(*nand->bbt.cache); in nanddev_read_bbt() [all …]
|
| /OK3568_Linux_fs/kernel/fs/ext2/ |
| H A D | xattr.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2001-2003 Andreas Gruenbacher <agruen@suse.de> 18 * block. If all extended attributes of an inode are identical, these 19 * inodes may share the same extended attribute block. Such situations 20 * are automatically detected by keeping a cache of recent attribute block 21 * numbers and hashes over the block's contents in memory. 24 * Extended attribute block layout: 26 * +------------------+ 36 * +------------------+ 38 * The block header is followed by multiple entry descriptors. These entry [all …]
|
| /OK3568_Linux_fs/kernel/fs/affs/ |
| H A D | file.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * (c) 1996 Hans-Joachim Widmaier - Rewritten 7 * (C) 1993 Ray Burr - Modified for Amiga FFS filesystem. 11 * (C) 1991 Linus Torvalds - minix filesystem 25 pr_debug("open(%lu,%d)\n", in affs_file_open() 26 inode->i_ino, atomic_read(&AFFS_I(inode)->i_opencnt)); in affs_file_open() 27 atomic_inc(&AFFS_I(inode)->i_opencnt); in affs_file_open() 34 pr_debug("release(%lu, %d)\n", in affs_file_release() 35 inode->i_ino, atomic_read(&AFFS_I(inode)->i_opencnt)); in affs_file_release() 37 if (atomic_dec_and_test(&AFFS_I(inode)->i_opencnt)) { in affs_file_release() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/rkflash/ |
| H A D | sfc_nand_mtd_bbt.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Boris Brezillon <boris.brezillon@free-electrons.com> 32 * nanddev_read_bbt() - Read the BBT (Bad Block Table) 34 * @block: bbt block address 35 * @update: true - get version and overwrite bbt.cache with new version; 36 * false - get bbt version only; 38 * Initialize the in-memory BBT. 42 static int nanddev_read_bbt(struct snand_mtd_dev *nand, u32 block, bool update) in nanddev_read_bbt() argument 47 BITS_PER_LONG) * sizeof(*nand->bbt.cache); in nanddev_read_bbt() 57 if (!nand->bbt.cache) in nanddev_read_bbt() [all …]
|
| /OK3568_Linux_fs/kernel/arch/riscv/boot/dts/kendryte/ |
| H A D | k210.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 6 #include <dt-bindings/clock/k210-clk.h> 10 * Although the K210 is a 64-bit CPU, the address bus is only 32-bits 13 #address-cells = <1>; 14 #size-cells = <1>; 23 * Since this is a non-ratified draft specification, the kernel does not 28 #address-cells = <1>; 29 #size-cells = <0>; 30 timebase-frequency = <7800000>; 36 mmu-type = "none"; [all …]
|
| /OK3568_Linux_fs/kernel/arch/riscv/kernel/ |
| H A D | cacheinfo.c | 1 // SPDX-License-Identifier: GPL-2.0-only 22 if (rv_cache_ops && rv_cache_ops->get_priv_group) in cache_get_priv_group() 23 return rv_cache_ops->get_priv_group(this_leaf); in cache_get_priv_group() 32 * that cores have a homonogenous view of the cache hierarchy. That in get_cacheinfo() 33 * happens to be the case for the current set of RISC-V systems, but in get_cacheinfo() 42 for (index = 0; index < this_cpu_ci->num_leaves; index++) { in get_cacheinfo() 43 this_leaf = this_cpu_ci->info_list + index; in get_cacheinfo() 44 if (this_leaf->level == level && this_leaf->type == type) in get_cacheinfo() 55 return this_leaf ? this_leaf->size : 0; in get_cache_size() 62 return this_leaf ? (this_leaf->ways_of_associativity << 16 | in get_cache_geometry() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/ump/linux/ |
| H A D | ump_osk_low_level_mem.c | 2 * Copyright (C) 2010-2014, 2016-2017 ARM Limited. All rights reserved. 8 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 31 #include <linux/dma-mapping.h> 68 address = vmf->virtual_address; in ump_cpu_page_fault_handler() 70 MSG_ERR(("Page-fault in UMP memory region caused by the CPU\n")); in ump_cpu_page_fault_handler() 85 vma_usage_tracker = (ump_vma_usage_tracker *)vma->vm_private_data; in ump_vma_open() 88 new_val = atomic_inc_return(&vma_usage_tracker->references); in ump_vma_open() 90 …DBG_MSG(4, ("VMA open, VMA reference count incremented. VMA: 0x%08lx, reference count: %d\n", (uns… in ump_vma_open() 99 vma_usage_tracker = (ump_vma_usage_tracker *)vma->vm_private_data; in ump_vma_close() 102 new_val = atomic_dec_return(&vma_usage_tracker->references); in ump_vma_close() [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/cpu/armv8/ |
| H A D | cache_v8.c | 8 * SPDX-License-Identifier: GPL-2.0+ 27 * 63-48 47-39 38-30 29-21 20-12 11-00 29 * mask page size 31 * Lv0: FF8000000000 -- 46 for (i = 0; mem_map[i].size || mem_map[i].attrs; i++) in get_tcr() 47 max_addr = max(max_addr, mem_map[i].virt + mem_map[i].size); in get_tcr() 101 return (12 + 9 * (3 - level)); in level2shift() 112 pr_debug("addr=%llx level=%d\n", addr, level); in find_pte() 122 pte = (u64*)gd->arch.tlb_addr; in find_pte() 126 pr_debug("idx=%llx PTE %p at level %d: %llx\n", idx, pte, i, *pte); in find_pte() [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/include/asm/ |
| H A D | vdso_datapage.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 61 __u64 physicalMemorySize; /* Size of real memory(B) 0x28 */ 69 __u32 dcache_size; /* L1 d-cache size 0x60 */ 70 __u32 dcache_line_size; /* L1 d-cache line size 0x64 */ 71 __u32 icache_size; /* L1 i-cache size 0x68 */ 72 __u32 icache_line_size; /* L1 i-cache line size 0x6C */ 77 __u32 dcache_block_size; /* L1 d-cache block size */ 78 __u32 icache_block_size; /* L1 i-cache block size */ 79 __u32 dcache_log_block_size; /* L1 d-cache log block size */ 80 __u32 icache_log_block_size; /* L1 i-cache log block size */ [all …]
|
| /OK3568_Linux_fs/kernel/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 bindings for 'cpus' DT nodes 10 - Paul Walmsley <paul.walmsley@sifive.com> 11 - Palmer Dabbelt <palmer@sifive.com> 14 This document uses some terminology common to the RISC-V community 18 mandated by the RISC-V ISA: a PC and some registers. This 28 - items: 29 - enum: [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/boot/dts/ |
| H A D | iss4xx-mpic.dts | 15 /dts-v1/; 20 #address-cells = <2>; 21 #size-cells = <1>; 22 model = "ibm,iss-4xx"; 23 compatible = "ibm,iss-4xx"; 24 dcr-parent = <&{/cpus/cpu@0}>; 31 #address-cells = <1>; 32 #size-cells = <0>; 38 clock-frequency = <100000000>; // 100Mhz :-) 39 timebase-frequency = <100000000>; [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/ump/common/ |
| H A D | ump_kernel_api.c | 2 * Copyright (C) 2010-2014, 2016-2017 ARM Limited. All rights reserved. 8 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 /* ---------------- UMP kernel space API functions follows ---------------- */ 31 DBG_MSG(5, ("Returning secure ID. ID: %u\n", mem->secure_id)); in ump_dd_secure_id_get() 33 return mem->secure_id; in ump_dd_secure_id_get() 62 return mem->nr_blocks; in ump_dd_phys_block_count_get() 78 if (mem->nr_blocks != num_blocks) { in ump_dd_phys_blocks_get() 83 DBG_MSG(5, ("Returning physical block information. ID: %u\n", mem->secure_id)); in ump_dd_phys_blocks_get() 85 _mali_osk_memcpy(blocks, mem->block_array, sizeof(ump_dd_physical_block) * mem->nr_blocks); in ump_dd_phys_blocks_get() 92 …s_code ump_dd_phys_block_get(ump_dd_handle memh, unsigned long index, ump_dd_physical_block *block) in ump_dd_phys_block_get() argument [all …]
|
| /OK3568_Linux_fs/u-boot/fs/reiserfs/ |
| H A D | reiserfs.c | 2 * Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README 4 * GRUB -- GRand Unified Bootloader 7 * (C) Copyright 2003 - 2004 11 * SPDX-License-Identifier: GPL-2.0+ 52 return -1; in substring() 67 printf ("%-10s %4hd %6d %6d %9d %24.24s", in sd_print_item() 74 printf ("%-10s %4d %6d %6d %9d %24.24s", in sd_print_item() 81 journal_read (int block, int len, char *buffer) in journal_read() argument 83 return reiserfs_devread ((INFO->journal_block + block) << INFO->blocksize_shift, in journal_read() 87 /* Read a block from ReiserFS file system, taking the journal into [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/ |
| H A D | bbt_store.c | 1 // SPDX-License-Identifier: GPL-2.0 23 static int nanddev_read_bbt(struct nand_device *nand, u32 block, bool update) in nanddev_read_bbt() argument 28 BITS_PER_LONG) * sizeof(*nand->bbt.cache); in nanddev_read_bbt() 37 if (!nand->bbt.cache) in nanddev_read_bbt() 38 return -ENOMEM; in nanddev_read_bbt() 40 if (block >= nblocks) in nanddev_read_bbt() 41 return -EINVAL; in nanddev_read_bbt() 43 /* Aligned to page size, and even pages is better */ in nanddev_read_bbt() 45 mtd->writesize - 1) >> (ffs(mtd->writesize) - 1); in nanddev_read_bbt() 47 data_buf = kzalloc(bbt_page_num * mtd->writesize, GFP_KERNEL); in nanddev_read_bbt() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/stressapptest/git/src/ |
| H A D | worker.cc | 7 // http://www.apache.org/licenses/LICENSE-2.0 43 // For size of block device 89 if (retval == -1) in sat_strerror() 93 buf[len - 1] = 0; in sat_strerror() 127 worker->StartRoutine(); in ThreadSpawnerGeneric() 174 // This loop is an optimization. We use it to immediately re-check the status in ContinueRunning() 231 --num_workers_; in RemoveSelf() 264 crc_page_ = -1; in FileThread() 271 if (!os_->normal_mem()) in GetMemoryCopiedData() 298 worker_status->AddWorkers(1); in InitThread() [all …]
|
| /OK3568_Linux_fs/u-boot/fs/yaffs2/ |
| H A D | yaffs_guts.c | 2 * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. 4 * Copyright (C) 2002-2011 Aleph One Ltd. 53 chunk = (u32) (addr >> dev->chunk_shift); in yaffs_addr_to_chunk() 55 if (dev->chunk_div == 1) { in yaffs_addr_to_chunk() 57 offset = (u32) (addr & dev->chunk_mask); in yaffs_addr_to_chunk() 59 /* Non power-of-2 case */ in yaffs_addr_to_chunk() 63 chunk /= dev->chunk_div; in yaffs_addr_to_chunk() 65 chunk_base = ((loff_t) chunk) * dev->data_bytes_per_chunk; in yaffs_addr_to_chunk() 66 offset = (u32) (addr - chunk_base); in yaffs_addr_to_chunk() 128 memset(dev->temp_buffer, 0, sizeof(dev->temp_buffer)); in yaffs_init_tmp_buffers() [all …]
|
| /OK3568_Linux_fs/kernel/arch/sh/boot/dts/ |
| H A D | j2_mimas_v2.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 5 compatible = "jcore,j2-soc"; 8 #address-cells = <1>; 9 #size-cells = <1>; 11 interrupt-parent = <&aic>; 14 #address-cells = <1>; 15 #size-cells = <0>; 21 clock-frequency = <50000000>; 22 d-cache-size = <8192>; [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/ |
| H A D | sm_ftl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright © 2009 - Maxim Levitsky 27 "Timeout (in ms) for cache flush (1000 ms default"); 31 MODULE_PARM_DESC(debug, "Debug level (0-2)"); 34 /* ------------------- sysfs attributes ---------------------------------- */ 47 strncpy(buf, sm_attr->data, sm_attr->len); in sm_attr_show() 48 return sm_attr->len; in sm_attr_show() 61 vendor = kstrndup(ftl->cis_buffer + SM_CIS_VENDOR_OFFSET, in sm_create_sysfs_attributes() 62 SM_SMALL_PAGE - SM_CIS_VENDOR_OFFSET, GFP_KERNEL); in sm_create_sysfs_attributes() 72 sysfs_attr_init(&vendor_attribute->dev_attr.attr); in sm_create_sysfs_attributes() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/md/bcache/ |
| H A D | super.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * bcache setup/teardown code, and some metadata io - read a superblock and 66 unsigned int bucket_size = le16_to_cpu(s->bucket_size); in get_bucket_size() 68 if (sb->version >= BCACHE_SB_VERSION_CDEV_WITH_FEATURES) { in get_bucket_size() 72 max = sizeof(unsigned int) * BITS_PER_BYTE - 1; in get_bucket_size() 73 order = le16_to_cpu(s->bucket_size); in get_bucket_size() 79 pr_err("Bucket size (1 << %u) overflows\n", in get_bucket_size() 84 le16_to_cpu(s->obso_bucket_size_hi) << 16; in get_bucket_size() 97 sb->first_bucket= le16_to_cpu(s->first_bucket); in read_super_common() 98 sb->nbuckets = le64_to_cpu(s->nbuckets); in read_super_common() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/md/ |
| H A D | dm-cache-target.c | 8 #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 …]
|