/Linux-v5.4/arch/powerpc/kernel/ |
D | cacheinfo.c | 42 struct cache *cache; member 116 struct cache { struct 122 struct cache *next_local; /* next cache of >= level */ argument 137 static const char *cache_type_string(const struct cache *cache) in cache_type_string() argument 139 return cache_type_info[cache->type].name; in cache_type_string() 142 static void cache_init(struct cache *cache, int type, int level, in cache_init() argument 145 cache->type = type; in cache_init() 146 cache->level = level; in cache_init() 147 cache->ofnode = of_node_get(ofnode); in cache_init() 148 INIT_LIST_HEAD(&cache->list); in cache_init() [all …]
|
/Linux-v5.4/drivers/md/ |
D | dm-cache-target.c | 373 struct cache { struct 499 struct cache *cache; argument 511 static bool writethrough_mode(struct cache *cache) in writethrough_mode() argument 513 return cache->features.io_mode == CM_IO_WRITETHROUGH; in writethrough_mode() 516 static bool writeback_mode(struct cache *cache) in writeback_mode() argument 518 return cache->features.io_mode == CM_IO_WRITEBACK; in writeback_mode() 521 static inline bool passthrough_mode(struct cache *cache) in passthrough_mode() argument 523 return unlikely(cache->features.io_mode == CM_IO_PASSTHROUGH); in passthrough_mode() 528 static void wake_deferred_bio_worker(struct cache *cache) in wake_deferred_bio_worker() argument 530 queue_work(cache->wq, &cache->deferred_bio_worker); in wake_deferred_bio_worker() [all …]
|
/Linux-v5.4/fs/cachefiles/ |
D | bind.c | 27 int cachefiles_daemon_bind(struct cachefiles_cache *cache, char *args) in cachefiles_daemon_bind() argument 30 cache->frun_percent, in cachefiles_daemon_bind() 31 cache->fcull_percent, in cachefiles_daemon_bind() 32 cache->fstop_percent, in cachefiles_daemon_bind() 33 cache->brun_percent, in cachefiles_daemon_bind() 34 cache->bcull_percent, in cachefiles_daemon_bind() 35 cache->bstop_percent, in cachefiles_daemon_bind() 39 ASSERT(cache->fstop_percent >= 0 && in cachefiles_daemon_bind() 40 cache->fstop_percent < cache->fcull_percent && in cachefiles_daemon_bind() 41 cache->fcull_percent < cache->frun_percent && in cachefiles_daemon_bind() [all …]
|
D | daemon.c | 59 int (*handler)(struct cachefiles_cache *cache, char *args); 85 struct cachefiles_cache *cache; in cachefiles_daemon_open() local 98 cache = kzalloc(sizeof(struct cachefiles_cache), GFP_KERNEL); in cachefiles_daemon_open() 99 if (!cache) { in cachefiles_daemon_open() 104 mutex_init(&cache->daemon_mutex); in cachefiles_daemon_open() 105 cache->active_nodes = RB_ROOT; in cachefiles_daemon_open() 106 rwlock_init(&cache->active_lock); in cachefiles_daemon_open() 107 init_waitqueue_head(&cache->daemon_pollwq); in cachefiles_daemon_open() 114 cache->frun_percent = 7; in cachefiles_daemon_open() 115 cache->fcull_percent = 5; in cachefiles_daemon_open() [all …]
|
D | interface.c | 28 struct cachefiles_cache *cache; in cachefiles_alloc_object() local 34 cache = container_of(_cache, struct cachefiles_cache, cache); in cachefiles_alloc_object() 36 _enter("{%s},%p,", cache->cache.identifier, cookie); in cachefiles_alloc_object() 52 fscache_object_init(&object->fscache, cookie, &cache->cache); in cachefiles_alloc_object() 107 fscache_object_destroyed(&cache->cache); in cachefiles_alloc_object() 123 struct cachefiles_cache *cache; in cachefiles_lookup_object() local 129 cache = container_of(_object->cache, struct cachefiles_cache, cache); in cachefiles_lookup_object() 138 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_lookup_object() 142 cachefiles_end_secure(cache, saved_cred); in cachefiles_lookup_object() 208 struct cachefiles_cache *cache; in cachefiles_update_object() local [all …]
|
D | namei.c | 84 static void cachefiles_mark_object_buried(struct cachefiles_cache *cache, in cachefiles_mark_object_buried() argument 93 write_lock(&cache->active_lock); in cachefiles_mark_object_buried() 95 p = cache->active_nodes.rb_node; in cachefiles_mark_object_buried() 106 write_unlock(&cache->active_lock); in cachefiles_mark_object_buried() 129 write_unlock(&cache->active_lock); in cachefiles_mark_object_buried() 136 static int cachefiles_mark_object_active(struct cachefiles_cache *cache, in cachefiles_mark_object_active() argument 146 write_lock(&cache->active_lock); in cachefiles_mark_object_active() 157 _p = &cache->active_nodes.rb_node; in cachefiles_mark_object_active() 174 rb_insert_color(&object->active_node, &cache->active_nodes); in cachefiles_mark_object_active() 176 write_unlock(&cache->active_lock); in cachefiles_mark_object_active() [all …]
|
/Linux-v5.4/mm/ |
D | swap_slots.c | 117 struct swap_slots_cache *cache; in alloc_swap_slot_cache() local 138 cache = &per_cpu(swp_slots, cpu); in alloc_swap_slot_cache() 139 if (cache->slots || cache->slots_ret) in alloc_swap_slot_cache() 142 if (!cache->lock_initialized) { in alloc_swap_slot_cache() 143 mutex_init(&cache->alloc_lock); in alloc_swap_slot_cache() 144 spin_lock_init(&cache->free_lock); in alloc_swap_slot_cache() 145 cache->lock_initialized = true; in alloc_swap_slot_cache() 147 cache->nr = 0; in alloc_swap_slot_cache() 148 cache->cur = 0; in alloc_swap_slot_cache() 149 cache->n_ret = 0; in alloc_swap_slot_cache() [all …]
|
/Linux-v5.4/fs/btrfs/tests/ |
D | free-space-tests.c | 20 static int test_extents(struct btrfs_block_group_cache *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() 45 ret = btrfs_add_free_space(cache, 0, SZ_4M); in test_extents() 51 ret = btrfs_remove_free_space(cache, 3 * SZ_1M, SZ_1M); in test_extents() 57 ret = btrfs_remove_free_space(cache, 0, SZ_1M); in test_extents() 63 ret = btrfs_remove_free_space(cache, SZ_2M, 4096); in test_extents() 69 if (test_check_exists(cache, 0, SZ_1M)) { in test_extents() 74 if (test_check_exists(cache, SZ_2M, 4096)) { in test_extents() [all …]
|
D | free-space-tree-tests.c | 21 struct btrfs_block_group_cache *cache, in __check_free_space_extents() argument 34 info = search_free_space_info(trans, cache, path, 0); in __check_free_space_extents() 51 end = cache->key.objectid + cache->key.offset; in __check_free_space_extents() 59 bit = free_space_test_bit(cache, path, offset); in __check_free_space_extents() 110 struct btrfs_block_group_cache *cache, in check_free_space_extents() argument 119 info = search_free_space_info(trans, cache, path, 0); in check_free_space_extents() 128 ret = __check_free_space_extents(trans, fs_info, cache, path, extents, in check_free_space_extents() 135 ret = convert_free_space_to_extents(trans, cache, path); in check_free_space_extents() 141 ret = convert_free_space_to_bitmaps(trans, cache, path); in check_free_space_extents() 147 return __check_free_space_extents(trans, fs_info, cache, path, extents, in check_free_space_extents() [all …]
|
/Linux-v5.4/Documentation/devicetree/bindings/powerpc/fsl/ |
D | l2cache.txt | 3 L2 cache is present in Freescale's QorIQ and QorIQ Qonverge platforms. 4 The cache bindings explained below are Devicetree Specification compliant 9 "fsl,8540-l2-cache-controller" 10 "fsl,8541-l2-cache-controller" 11 "fsl,8544-l2-cache-controller" 12 "fsl,8548-l2-cache-controller" 13 "fsl,8555-l2-cache-controller" 14 "fsl,8568-l2-cache-controller" 15 "fsl,b4420-l2-cache-controller" 16 "fsl,b4860-l2-cache-controller" [all …]
|
/Linux-v5.4/drivers/acpi/acpica/ |
D | utcache.c | 36 struct acpi_memory_list *cache; in acpi_os_create_cache() local 46 cache = acpi_os_allocate(sizeof(struct acpi_memory_list)); in acpi_os_create_cache() 47 if (!cache) { in acpi_os_create_cache() 53 memset(cache, 0, sizeof(struct acpi_memory_list)); in acpi_os_create_cache() 54 cache->list_name = cache_name; in acpi_os_create_cache() 55 cache->object_size = object_size; in acpi_os_create_cache() 56 cache->max_depth = max_depth; in acpi_os_create_cache() 58 *return_cache = cache; in acpi_os_create_cache() 74 acpi_status acpi_os_purge_cache(struct acpi_memory_list *cache) in acpi_os_purge_cache() argument 81 if (!cache) { in acpi_os_purge_cache() [all …]
|
/Linux-v5.4/fs/fscache/ |
D | cache.c | 95 struct fscache_cache *cache; in fscache_select_cache_for_object() local 113 cache = object->cache; in fscache_select_cache_for_object() 115 test_bit(FSCACHE_IOERROR, &cache->flags)) in fscache_select_cache_for_object() 116 cache = NULL; in fscache_select_cache_for_object() 119 _leave(" = %p [parent]", cache); in fscache_select_cache_for_object() 120 return cache; in fscache_select_cache_for_object() 147 if (!tag->cache) { in fscache_select_cache_for_object() 152 if (test_bit(FSCACHE_IOERROR, &tag->cache->flags)) in fscache_select_cache_for_object() 155 _leave(" = %p [specific]", tag->cache); in fscache_select_cache_for_object() 156 return tag->cache; in fscache_select_cache_for_object() [all …]
|
/Linux-v5.4/fs/ |
D | mbcache.c | 47 static unsigned long mb_cache_shrink(struct mb_cache *cache, 50 static inline struct hlist_bl_head *mb_cache_entry_head(struct mb_cache *cache, in mb_cache_entry_head() argument 53 return &cache->c_hash[hash_32(key, cache->c_bucket_bits)]; in mb_cache_entry_head() 74 int mb_cache_entry_create(struct mb_cache *cache, gfp_t mask, u32 key, in mb_cache_entry_create() argument 82 if (cache->c_entry_count >= cache->c_max_entries) in mb_cache_entry_create() 83 schedule_work(&cache->c_shrink_work); in mb_cache_entry_create() 85 if (cache->c_entry_count >= 2*cache->c_max_entries) in mb_cache_entry_create() 86 mb_cache_shrink(cache, SYNC_SHRINK_BATCH); in mb_cache_entry_create() 99 head = mb_cache_entry_head(cache, key); in mb_cache_entry_create() 111 spin_lock(&cache->c_list_lock); in mb_cache_entry_create() [all …]
|
/Linux-v5.4/Documentation/devicetree/bindings/arm/socionext/ |
D | cache-uniphier.txt | 1 UniPhier outer cache controller 3 UniPhier SoCs are integrated with a full-custom outer cache controller system. 4 All of them have a level 2 cache controller, and some have a level 3 cache 8 - compatible: should be "socionext,uniphier-system-cache" 12 - cache-unified: specifies the cache is a unified cache. 13 - cache-size: specifies the size in bytes of the cache 14 - cache-sets: specifies the number of associativity sets of the cache 15 - cache-line-size: specifies the line size in bytes 16 - cache-level: specifies the level in the cache hierarchy. The value should 17 be 2 for L2 cache, 3 for L3 cache, etc. [all …]
|
/Linux-v5.4/fs/squashfs/ |
D | cache.c | 53 struct squashfs_cache *cache, u64 block, int length) in squashfs_cache_get() argument 58 spin_lock(&cache->lock); in squashfs_cache_get() 61 for (i = cache->curr_blk, n = 0; n < cache->entries; n++) { in squashfs_cache_get() 62 if (cache->entry[i].block == block) { in squashfs_cache_get() 63 cache->curr_blk = i; in squashfs_cache_get() 66 i = (i + 1) % cache->entries; in squashfs_cache_get() 69 if (n == cache->entries) { in squashfs_cache_get() 74 if (cache->unused == 0) { in squashfs_cache_get() 75 cache->num_waiters++; in squashfs_cache_get() 76 spin_unlock(&cache->lock); in squashfs_cache_get() [all …]
|
/Linux-v5.4/arch/arm64/boot/dts/ti/ |
D | k3-am654.dtsi | 41 i-cache-size = <0x8000>; 42 i-cache-line-size = <64>; 43 i-cache-sets = <256>; 44 d-cache-size = <0x8000>; 45 d-cache-line-size = <64>; 46 d-cache-sets = <128>; 47 next-level-cache = <&L2_0>; 55 i-cache-size = <0x8000>; 56 i-cache-line-size = <64>; 57 i-cache-sets = <256>; [all …]
|
/Linux-v5.4/fs/btrfs/ |
D | block-group.c | 123 void btrfs_get_block_group(struct btrfs_block_group_cache *cache) in btrfs_get_block_group() argument 125 atomic_inc(&cache->count); in btrfs_get_block_group() 128 void btrfs_put_block_group(struct btrfs_block_group_cache *cache) in btrfs_put_block_group() argument 130 if (atomic_dec_and_test(&cache->count)) { in btrfs_put_block_group() 131 WARN_ON(cache->pinned > 0); in btrfs_put_block_group() 132 WARN_ON(cache->reserved > 0); in btrfs_put_block_group() 142 WARN_ON(!RB_EMPTY_ROOT(&cache->full_stripe_locks_root.root)); in btrfs_put_block_group() 143 kfree(cache->free_space_ctl); in btrfs_put_block_group() 144 kfree(cache); in btrfs_put_block_group() 156 struct btrfs_block_group_cache *cache; in btrfs_add_block_group_cache() local [all …]
|
/Linux-v5.4/arch/arm64/boot/dts/arm/ |
D | juno-r1.dts | 92 i-cache-size = <0xc000>; 93 i-cache-line-size = <64>; 94 i-cache-sets = <256>; 95 d-cache-size = <0x8000>; 96 d-cache-line-size = <64>; 97 d-cache-sets = <256>; 98 next-level-cache = <&A57_L2>; 109 i-cache-size = <0xc000>; 110 i-cache-line-size = <64>; 111 i-cache-sets = <256>; [all …]
|
D | juno.dts | 91 i-cache-size = <0xc000>; 92 i-cache-line-size = <64>; 93 i-cache-sets = <256>; 94 d-cache-size = <0x8000>; 95 d-cache-line-size = <64>; 96 d-cache-sets = <256>; 97 next-level-cache = <&A57_L2>; 109 i-cache-size = <0xc000>; 110 i-cache-line-size = <64>; 111 i-cache-sets = <256>; [all …]
|
D | juno-r2.dts | 92 i-cache-size = <0xc000>; 93 i-cache-line-size = <64>; 94 i-cache-sets = <256>; 95 d-cache-size = <0x8000>; 96 d-cache-line-size = <64>; 97 d-cache-sets = <256>; 98 next-level-cache = <&A72_L2>; 110 i-cache-size = <0xc000>; 111 i-cache-line-size = <64>; 112 i-cache-sets = <256>; [all …]
|
/Linux-v5.4/arch/arm64/boot/dts/freescale/ |
D | fsl-lx2160a.dtsi | 29 d-cache-size = <0x8000>; 30 d-cache-line-size = <64>; 31 d-cache-sets = <128>; 32 i-cache-size = <0xC000>; 33 i-cache-line-size = <64>; 34 i-cache-sets = <192>; 35 next-level-cache = <&cluster0_l2>; 45 d-cache-size = <0x8000>; 46 d-cache-line-size = <64>; 47 d-cache-sets = <128>; [all …]
|
/Linux-v5.4/Documentation/devicetree/bindings/riscv/ |
D | sifive-l2-cache.txt | 10 - compatible: Should be "sifive,fu540-c000-ccache" and "cache" 12 - cache-block-size: Specifies the block size in bytes of the cache. 15 - cache-level: Should be set to 2 for a level 2 cache 17 - cache-sets: Specifies the number of associativity sets of the cache. 20 - cache-size: Specifies the size in bytes of the cache. Should be 2097152 22 - cache-unified: Specifies the cache is a unified cache 26 - reg: Physical base address and size of L2 cache controller registers map 30 - next-level-cache: phandle to the next level cache if present. 39 cache-controller@2010000 { 40 compatible = "sifive,fu540-c000-ccache", "cache"; [all …]
|
/Linux-v5.4/Documentation/devicetree/bindings/cpufreq/ |
D | cpufreq-qcom-hw.txt | 58 next-level-cache = <&L2_0>; 60 L2_0: l2-cache { 61 compatible = "cache"; 62 next-level-cache = <&L3_0>; 63 L3_0: l3-cache { 64 compatible = "cache"; 74 next-level-cache = <&L2_100>; 76 L2_100: l2-cache { 77 compatible = "cache"; 78 next-level-cache = <&L3_0>; [all …]
|
/Linux-v5.4/mm/kasan/ |
D | common.c | 255 void kasan_cache_create(struct kmem_cache *cache, unsigned int *size, in kasan_cache_create() argument 263 cache->kasan_info.alloc_meta_offset = *size; in kasan_cache_create() 268 (cache->flags & SLAB_TYPESAFE_BY_RCU || cache->ctor || in kasan_cache_create() 269 cache->object_size < sizeof(struct kasan_free_meta))) { in kasan_cache_create() 270 cache->kasan_info.free_meta_offset = *size; in kasan_cache_create() 274 redzone_size = optimal_redzone(cache->object_size); in kasan_cache_create() 275 redzone_adjust = redzone_size - (*size - cache->object_size); in kasan_cache_create() 280 max(*size, cache->object_size + redzone_size)); in kasan_cache_create() 285 if (*size <= cache->kasan_info.alloc_meta_offset || in kasan_cache_create() 286 *size <= cache->kasan_info.free_meta_offset) { in kasan_cache_create() [all …]
|
/Linux-v5.4/drivers/base/regmap/ |
D | regcache-flat.c | 24 unsigned int *cache; in regcache_flat_init() local 29 map->cache = kcalloc(regcache_flat_get_index(map, map->max_register) in regcache_flat_init() 31 if (!map->cache) in regcache_flat_init() 34 cache = map->cache; in regcache_flat_init() 40 cache[index] = map->reg_defaults[i].def; in regcache_flat_init() 48 kfree(map->cache); in regcache_flat_exit() 49 map->cache = NULL; in regcache_flat_exit() 57 unsigned int *cache = map->cache; in regcache_flat_read() local 60 *value = cache[index]; in regcache_flat_read() 68 unsigned int *cache = map->cache; in regcache_flat_write() local [all …]
|