/linux/drivers/md/ |
A D | dm-cache-target.c | 482 mg->cache = cache; in alloc_migration() 490 struct cache *cache = mg->cache; in free_migration() local 1093 struct cache *cache = mg->cache; in copy() local 1121 struct cache *cache = mg->cache; in overwrite_endio() local 1167 struct cache *cache = mg->cache; in mg_complete() local 1235 struct cache *cache = mg->cache; in mg_update_metadata() local 1337 struct cache *cache = mg->cache; in mg_full_copy() local 1390 struct cache *cache = mg->cache; in mg_lock_writes() local 1448 struct cache *cache = mg->cache; in invalidate_complete() local 1496 struct cache *cache = mg->cache; in invalidate_remove() local [all …]
|
/linux/arch/powerpc/kernel/ |
A D | cacheinfo.c | 44 struct cache *cache; member 159 struct cache *cache; in new_cache() local 395 struct cache *cache; in cache_do_one_devnode() local 409 struct cache *cache; in cache_lookup_or_instantiate() local 593 struct cache *cache; in size_show() local 610 struct cache *cache; in line_size_show() local 626 struct cache *cache; in nr_sets_show() local 642 struct cache *cache; in associativity_show() local 657 struct cache *cache; in type_show() local 670 struct cache *cache; in level_show() local [all …]
|
/linux/fs/cachefiles/ |
A D | bind.c | 40 cache->fstop_percent < cache->fcull_percent && in cachefiles_daemon_bind() 41 cache->fcull_percent < cache->frun_percent && in cachefiles_daemon_bind() 45 cache->bstop_percent < cache->bcull_percent && in cachefiles_daemon_bind() 46 cache->bcull_percent < cache->brun_percent && in cachefiles_daemon_bind() 164 cache->bsize, cache->bshift); in cachefiles_daemon_add_cache() 174 cache->frun = stats.f_files * cache->frun_percent; in cachefiles_daemon_add_cache() 216 fscache_init_cache(&cache->cache, in cachefiles_daemon_add_cache() 222 &cache->cache); in cachefiles_daemon_add_cache() 224 ret = fscache_add_cache(&cache->cache, &fsdef->fscache, cache->tag); in cachefiles_daemon_add_cache() 265 cache->cache.identifier); in cachefiles_daemon_unbind() [all …]
|
A D | daemon.c | 99 if (!cache) { in cachefiles_daemon_open() 114 cache->frun_percent = 7; in cachefiles_daemon_open() 135 ASSERT(cache); in cachefiles_daemon_release() 148 kfree(cache); in cachefiles_daemon_release() 223 ASSERT(cache); in cachefiles_daemon_write() 361 if (fcull <= cache->fstop_percent || fcull >= cache->frun_percent) in cachefiles_daemon_fcull() 433 if (bcull <= cache->bstop_percent || bcull >= cache->brun_percent) in cachefiles_daemon_bcull() 507 if (cache->secctx) { in cachefiles_daemon_secctx() 535 if (cache->tag) in cachefiles_daemon_tag() 542 cache->tag = tag; in cachefiles_daemon_tag() [all …]
|
A D | interface.c | 34 cache = container_of(_cache, struct cachefiles_cache, cache); in cachefiles_alloc_object() 36 _enter("{%s},%x,", cache->cache.identifier, cookie->debug_id); 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() 129 cache = container_of(_object->cache, struct cachefiles_cache, cache); in cachefiles_lookup_object() 276 cache = container_of(object->fscache.cache, in cachefiles_drop_object() 291 _object != cache->cache.fsdef in cachefiles_drop_object() 364 cache = object->fscache.cache; in cachefiles_put_object() 415 cache = container_of(object->fscache.cache, in cachefiles_check_consistency() 446 cache = container_of(object->fscache.cache, in cachefiles_attr_changed() [all …]
|
A D | namei.c | 93 write_lock(&cache->active_lock); in cachefiles_mark_object_buried() 95 p = cache->active_nodes.rb_node; in cachefiles_mark_object_buried() 146 write_lock(&cache->active_lock); in cachefiles_mark_object_active() 242 cache->cache.ops->put_object(&xobject->fscache, in cachefiles_mark_object_active() 247 cache->cache.ops->put_object(&xobject->fscache, in cachefiles_mark_object_active() 305 path.mnt = cache->mnt; in cachefiles_bury_object() 406 path.mnt = cache->mnt; in cachefiles_bury_object() 425 cachefiles_io_error(cache, in cachefiles_bury_object() 504 cache = container_of(parent->fscache.cache, in cachefiles_walk_to_object() 506 path.mnt = cache->mnt; in cachefiles_walk_to_object() [all …]
|
/linux/arch/arm64/boot/dts/amazon/ |
A D | alpine-v3.dtsi | 30 d-cache-sets = <256>; 33 i-cache-sets = <256>; 44 d-cache-sets = <256>; 47 i-cache-sets = <256>; 58 d-cache-sets = <256>; 61 i-cache-sets = <256>; 72 d-cache-sets = <256>; 252 cache-level = <2>; 260 cache-level = <2>; 268 cache-level = <2>; [all …]
|
/linux/mm/ |
A D | swap_slots.c | 137 if (cache->slots || cache->slots_ret) { in alloc_swap_slot_cache() 152 cache->nr = 0; in alloc_swap_slot_cache() 153 cache->cur = 0; in alloc_swap_slot_cache() 177 swapcache_free_entries(cache->slots + cache->cur, cache->nr); in drain_slots_cache_cpu() 179 cache->nr = 0; in drain_slots_cache_cpu() 188 swapcache_free_entries(cache->slots_ret, cache->n_ret); in drain_slots_cache_cpu() 264 cache->cur = 0; in refill_swap_slots_cache() 291 swapcache_free_entries(cache->slots_ret, cache->n_ret); in free_swap_slot() 294 cache->slots_ret[cache->n_ret++] = entry; in free_swap_slot() 333 entry = cache->slots[cache->cur]; in get_swap_page() [all …]
|
/linux/fs/btrfs/tests/ |
A D | free-space-tests.c | 27 ret = btrfs_add_free_space(cache, 0, SZ_4M); in test_extents() 39 if (test_check_exists(cache, 0, SZ_4M)) { in test_extents() 69 if (test_check_exists(cache, 0, SZ_1M)) { in test_extents() 109 if (test_check_exists(cache, 0, SZ_4M)) { in test_bitmaps() 457 ret = btrfs_remove_free_space(cache, in test_steal_space_from_bitmap_to_extent() 628 ret = check_cache_empty(cache); in test_steal_space_from_bitmap_to_extent() 817 ret = check_cache_empty(cache); in test_steal_space_from_bitmap_to_extent() 830 struct btrfs_block_group *cache; in btrfs_test_free_space_cache() local 848 if (!cache) { in btrfs_test_free_space_cache() 863 ret = test_extents(cache); in btrfs_test_free_space_cache() [all …]
|
A D | free-space-tree-tests.c | 51 end = cache->start + cache->length; in __check_free_space_extents() 156 {cache->start, cache->length}, in test_empty_block_group() 191 {cache->start + alignment, cache->length - alignment}, in test_remove_beginning() 214 {cache->start, cache->length - alignment}, in test_remove_end() 219 cache->start + cache->length - alignment, in test_remove_end() 238 {cache->start + 2 * alignment, cache->length - 2 * alignment}, in test_remove_middle() 266 cache->start, cache->length); in test_merge_left() 303 cache->start, cache->length); in test_merge_right() 341 cache->start, cache->length); in test_merge_both() 386 cache->start, cache->length); in test_merge_none() [all …]
|
/linux/fs/fscache/ |
A D | cache.c | 113 cache = object->cache; in fscache_select_cache_for_object() 116 cache = NULL; in fscache_select_cache_for_object() 120 return cache; in fscache_select_cache_for_object() 163 return cache; in fscache_select_cache_for_object() 185 memset(cache, 0, sizeof(*cache)); in fscache_init_cache() 248 ifsdef->cache = cache; in fscache_add_cache() 253 tag->cache = cache; in fscache_add_cache() 279 cache->tag->name, cache->ops->name); in fscache_add_cache() 375 cache->tag->cache = NULL; in fscache_withdraw_cache() 381 cache->ops->sync_cache(cache); in fscache_withdraw_cache() [all …]
|
/linux/fs/ |
A D | mbcache.c | 53 return &cache->c_hash[hash_32(key, cache->c_bucket_bits)]; in mb_cache_entry_head() 82 if (cache->c_entry_count >= cache->c_max_entries) in mb_cache_entry_create() 85 if (cache->c_entry_count >= 2*cache->c_max_entries) in mb_cache_entry_create() 335 mb_cache_shrink(cache, cache->c_max_entries / SHRINK_DIVISOR); in mb_cache_shrink_worker() 351 if (!cache) in mb_cache_create() 360 if (!cache->c_hash) { in mb_cache_create() 361 kfree(cache); in mb_cache_create() 372 kfree(cache); in mb_cache_create() 378 return cache; in mb_cache_create() 412 kfree(cache->c_hash); in mb_cache_destroy() [all …]
|
/linux/Documentation/devicetree/bindings/powerpc/fsl/ |
A D | l2cache.txt | 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" 19 "fsl,c293-l2-cache-controller" 47 and "cache". 49 - cache-size : Size of the entire L2 cache 51 - cache-line-size : Size of L2 cache lines [all …]
|
/linux/drivers/acpi/acpica/ |
A D | utcache.c | 47 if (!cache) { in acpi_os_create_cache() 58 *return_cache = cache; in acpi_os_create_cache() 81 if (!cache) { in acpi_os_purge_cache() 100 cache->current_depth--; in acpi_os_purge_cache() 135 acpi_os_free(cache); in acpi_os_delete_cache() 165 if (cache->current_depth >= cache->max_depth) { in acpi_os_release_object() 215 if (!cache) { in acpi_os_acquire_object() 228 if (cache->list_head) { in acpi_os_acquire_object() 257 if ((cache->total_allocated - cache->total_freed) > in acpi_os_acquire_object() 259 cache->max_occupied = in acpi_os_acquire_object() [all …]
|
/linux/fs/squashfs/ |
A D | cache.c | 61 for (i = cache->curr_blk, n = 0; n < cache->entries; n++) { in squashfs_cache_get() 77 wait_event(cache->wait_queue, cache->unused); in squashfs_cache_get() 95 cache->next_blk = (i + 1) % cache->entries; in squashfs_cache_get() 102 cache->unused--; in squashfs_cache_get() 142 cache->unused--; in squashfs_cache_get() 175 struct squashfs_cache *cache = entry->cache; in squashfs_cache_put() local 180 cache->unused++; in squashfs_cache_put() 214 kfree(cache); in squashfs_cache_delete() 246 cache->pages = cache->pages ? cache->pages : 1; in squashfs_cache_init() 256 entry->cache = cache; in squashfs_cache_init() [all …]
|
/linux/arch/arm64/boot/dts/ti/ |
A D | k3-am654.dtsi | 43 i-cache-sets = <256>; 46 d-cache-sets = <128>; 57 i-cache-sets = <256>; 60 d-cache-sets = <128>; 94 compatible = "cache"; 95 cache-level = <2>; 98 cache-sets = <512>; 103 compatible = "cache"; 104 cache-level = <2>; 107 cache-sets = <512>; [all …]
|
/linux/Documentation/devicetree/bindings/arm/socionext/ |
A D | socionext,uniphier-system-cache.yaml | 36 cache-unified: true 38 cache-size: true 40 cache-sets: true 44 cache-level: 59 - cache-unified 60 - cache-size 61 - cache-sets 62 - cache-line-size 63 - cache-level 72 cache-unified; [all …]
|
/linux/fs/nfs/ |
A D | nfs42xattr.c | 113 cache->buckets[i].cache = cache; in nfs4_xattr_hash_init() 294 if (cache == NULL) in nfs4_xattr_alloc_cache() 300 return cache; in nfs4_xattr_alloc_cache() 443 if (cache != NULL) in nfs4_xattr_get_cache() 464 cache = NULL; in nfs4_xattr_get_cache() 501 return cache; in nfs4_xattr_get_cache() 617 if (cache == NULL) in nfs4_xattr_cache_get() 656 if (cache == NULL) in nfs4_xattr_cache_list() 699 if (cache == NULL) in nfs4_xattr_cache_add() 728 if (cache == NULL) in nfs4_xattr_cache_remove() [all …]
|
/linux/arch/arm64/boot/dts/marvell/ |
A D | armada-ap806-quad.dtsi | 25 i-cache-size = <0xc000>; 27 i-cache-sets = <256>; 30 d-cache-sets = <256>; 42 i-cache-sets = <256>; 45 d-cache-sets = <256>; 57 i-cache-sets = <256>; 60 d-cache-sets = <256>; 72 i-cache-sets = <256>; 75 d-cache-sets = <256>; 83 cache-sets = <512>; [all …]
|
A D | armada-ap807-quad.dtsi | 25 i-cache-size = <0xc000>; 27 i-cache-sets = <256>; 30 d-cache-sets = <256>; 42 i-cache-sets = <256>; 45 d-cache-sets = <256>; 57 i-cache-sets = <256>; 60 d-cache-sets = <256>; 72 i-cache-sets = <256>; 75 d-cache-sets = <256>; 83 cache-sets = <512>; [all …]
|
/linux/fs/btrfs/ |
A D | block-group.c | 209 end = cache->start + cache->length - 1; in block_group_cache_tree_search() 1179 num_bytes = cache->length - cache->reserved - cache->pinned - in inc_block_group_ro() 1180 cache->bytes_super - cache->zone_unusable - cache->used; in inc_block_group_ro() 1894 cache = kzalloc(sizeof(*cache), GFP_NOFS); in btrfs_create_block_group_cache() 2065 } else if (cache->length == cache->used) { in read_one_block_group() 2072 add_new_free_space(cache, cache->start, in read_one_block_group() 2073 cache->start + cache->length); in read_one_block_group() 2084 cache->used, cache->bytes_super, in read_one_block_group() 2635 (cache->alloc_offset - cache->used) + in btrfs_dec_block_group_ro() 2636 (cache->length - cache->zone_capacity); in btrfs_dec_block_group_ro() [all …]
|
/linux/arch/arm64/boot/dts/arm/ |
A D | juno-r1.dts | 94 i-cache-sets = <256>; 97 d-cache-sets = <256>; 111 i-cache-sets = <256>; 114 d-cache-sets = <256>; 128 i-cache-sets = <256>; 131 d-cache-sets = <128>; 145 i-cache-sets = <256>; 148 d-cache-sets = <128>; 162 i-cache-sets = <256>; 193 cache-sets = <2048>; [all …]
|
A D | juno.dts | 93 i-cache-sets = <256>; 96 d-cache-sets = <256>; 111 i-cache-sets = <256>; 114 d-cache-sets = <256>; 129 i-cache-sets = <256>; 132 d-cache-sets = <128>; 147 i-cache-sets = <256>; 150 d-cache-sets = <128>; 165 i-cache-sets = <256>; 198 cache-sets = <2048>; [all …]
|
A D | juno-r2.dts | 94 i-cache-sets = <256>; 97 d-cache-sets = <256>; 112 i-cache-sets = <256>; 115 d-cache-sets = <256>; 130 i-cache-sets = <256>; 133 d-cache-sets = <128>; 148 i-cache-sets = <256>; 151 d-cache-sets = <128>; 166 i-cache-sets = <256>; 199 cache-sets = <2048>; [all …]
|
/linux/mm/kasan/ |
A D | common.c | 161 cache->kasan_info.alloc_meta_offset = *size; in __kasan_cache_create() 171 cache->kasan_info.alloc_meta_offset = 0; in __kasan_cache_create() 192 if ((cache->flags & SLAB_TYPESAFE_BY_RCU) || cache->ctor || in __kasan_cache_create() 196 cache->kasan_info.free_meta_offset = *size; in __kasan_cache_create() 207 optimal_size = cache->object_size + optimal_redzone(cache->object_size); in __kasan_cache_create() 218 cache->kasan_info.is_kmalloc = true; in __kasan_cache_create_kmalloc() 227 (cache->kasan_info.free_meta_offset ? in __kasan_metadata_size() 234 if (!cache->kasan_info.alloc_meta_offset) in kasan_get_alloc_meta() 295 if (!cache->ctor && !(cache->flags & SLAB_TYPESAFE_BY_RCU)) in assign_tag() 366 kasan_set_free_info(cache, object, tag); in ____kasan_slab_free() [all …]
|