/Linux-v5.15/drivers/md/ |
D | dm-cache-target.c | 296 struct cache { struct 420 struct cache *cache; argument 432 static bool writethrough_mode(struct cache *cache) in writethrough_mode() argument 434 return cache->features.io_mode == CM_IO_WRITETHROUGH; in writethrough_mode() 437 static bool writeback_mode(struct cache *cache) in writeback_mode() argument 439 return cache->features.io_mode == CM_IO_WRITEBACK; in writeback_mode() 442 static inline bool passthrough_mode(struct cache *cache) in passthrough_mode() argument 444 return unlikely(cache->features.io_mode == CM_IO_PASSTHROUGH); in passthrough_mode() 449 static void wake_deferred_bio_worker(struct cache *cache) in wake_deferred_bio_worker() argument 451 queue_work(cache->wq, &cache->deferred_bio_worker); in wake_deferred_bio_worker() [all …]
|
/Linux-v5.15/arch/powerpc/kernel/ |
D | cacheinfo.c | 44 struct cache *cache; member 118 struct cache { struct 125 struct cache *next_local; /* next cache of >= level */ argument 140 static const char *cache_type_string(const struct cache *cache) in cache_type_string() argument 142 return cache_type_info[cache->type].name; in cache_type_string() 145 static void cache_init(struct cache *cache, int type, int level, in cache_init() argument 148 cache->type = type; in cache_init() 149 cache->level = level; in cache_init() 150 cache->ofnode = of_node_get(ofnode); in cache_init() 151 cache->group_id = group_id; in cache_init() [all …]
|
/Linux-v5.15/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},%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() 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 …]
|
/Linux-v5.15/mm/ |
D | swap_slots.c | 114 struct swap_slots_cache *cache; in alloc_swap_slot_cache() local 135 cache = &per_cpu(swp_slots, cpu); in alloc_swap_slot_cache() 136 if (cache->slots || cache->slots_ret) { in alloc_swap_slot_cache() 146 if (!cache->lock_initialized) { in alloc_swap_slot_cache() 147 mutex_init(&cache->alloc_lock); in alloc_swap_slot_cache() 148 spin_lock_init(&cache->free_lock); in alloc_swap_slot_cache() 149 cache->lock_initialized = true; in alloc_swap_slot_cache() 151 cache->nr = 0; in alloc_swap_slot_cache() 152 cache->cur = 0; in alloc_swap_slot_cache() 153 cache->n_ret = 0; in alloc_swap_slot_cache() [all …]
|
/Linux-v5.15/arch/arm64/boot/dts/amazon/ |
D | alpine-v3.dtsi | 28 d-cache-size = <0x8000>; 29 d-cache-line-size = <64>; 30 d-cache-sets = <256>; 31 i-cache-size = <0xc000>; 32 i-cache-line-size = <64>; 33 i-cache-sets = <256>; 34 next-level-cache = <&cluster0_l2>; 42 d-cache-size = <0x8000>; 43 d-cache-line-size = <64>; 44 d-cache-sets = <256>; [all …]
|
/Linux-v5.15/fs/btrfs/tests/ |
D | free-space-tests.c | 20 static int test_extents(struct btrfs_block_group *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, in __check_free_space_extents() argument 34 info = search_free_space_info(trans, cache, path, 0); in __check_free_space_extents() 51 end = cache->start + cache->length; in __check_free_space_extents() 59 bit = free_space_test_bit(cache, path, offset); in __check_free_space_extents() 108 struct btrfs_block_group *cache, in check_free_space_extents() argument 117 info = search_free_space_info(trans, cache, path, 0); in check_free_space_extents() 126 ret = __check_free_space_extents(trans, fs_info, cache, path, extents, in check_free_space_extents() 133 ret = convert_free_space_to_extents(trans, cache, path); in check_free_space_extents() 139 ret = convert_free_space_to_bitmaps(trans, cache, path); in check_free_space_extents() 145 return __check_free_space_extents(trans, fs_info, cache, path, extents, in check_free_space_extents() [all …]
|
/Linux-v5.15/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.15/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.15/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(" = %s [parent]", cache ? cache->tag->name : "NULL"); 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() 156 return tag->cache; in fscache_select_cache_for_object() 160 cache = list_entry(fscache_cache_list.next, in fscache_select_cache_for_object() [all …]
|
/Linux-v5.15/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.15/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.15/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 …]
|
D | k3-am642.dtsi | 34 i-cache-size = <0x8000>; 35 i-cache-line-size = <64>; 36 i-cache-sets = <256>; 37 d-cache-size = <0x8000>; 38 d-cache-line-size = <64>; 39 d-cache-sets = <128>; 40 next-level-cache = <&L2_0>; 48 i-cache-size = <0x8000>; 49 i-cache-line-size = <64>; 50 i-cache-sets = <256>; [all …]
|
/Linux-v5.15/arch/arm64/boot/dts/marvell/ |
D | armada-ap806-quad.dtsi | 25 i-cache-size = <0xc000>; 26 i-cache-line-size = <64>; 27 i-cache-sets = <256>; 28 d-cache-size = <0x8000>; 29 d-cache-line-size = <64>; 30 d-cache-sets = <256>; 31 next-level-cache = <&l2_0>; 40 i-cache-size = <0xc000>; 41 i-cache-line-size = <64>; 42 i-cache-sets = <256>; [all …]
|
D | armada-ap807-quad.dtsi | 25 i-cache-size = <0xc000>; 26 i-cache-line-size = <64>; 27 i-cache-sets = <256>; 28 d-cache-size = <0x8000>; 29 d-cache-line-size = <64>; 30 d-cache-sets = <256>; 31 next-level-cache = <&l2_0>; 40 i-cache-size = <0xc000>; 41 i-cache-line-size = <64>; 42 i-cache-sets = <256>; [all …]
|
/Linux-v5.15/fs/nfs/ |
D | nfs42xattr.c | 64 struct nfs4_xattr_cache *cache; member 106 nfs4_xattr_hash_init(struct nfs4_xattr_cache *cache) in nfs4_xattr_hash_init() argument 111 INIT_HLIST_HEAD(&cache->buckets[i].hlist); in nfs4_xattr_hash_init() 112 spin_lock_init(&cache->buckets[i].lock); in nfs4_xattr_hash_init() 113 cache->buckets[i].cache = cache; in nfs4_xattr_hash_init() 114 cache->buckets[i].draining = false; in nfs4_xattr_hash_init() 270 struct nfs4_xattr_cache *cache; in nfs4_xattr_free_cache_cb() local 273 cache = container_of(kref, struct nfs4_xattr_cache, ref); in nfs4_xattr_free_cache_cb() 276 if (WARN_ON(!hlist_empty(&cache->buckets[i].hlist))) in nfs4_xattr_free_cache_cb() 278 cache->buckets[i].draining = false; in nfs4_xattr_free_cache_cb() [all …]
|
/Linux-v5.15/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.15/mm/kasan/ |
D | common.c | 140 void __kasan_cache_create(struct kmem_cache *cache, unsigned int *size, in __kasan_cache_create() argument 161 cache->kasan_info.alloc_meta_offset = *size; in __kasan_cache_create() 171 cache->kasan_info.alloc_meta_offset = 0; in __kasan_cache_create() 178 cache->kasan_info.free_meta_offset = KASAN_NO_FREE_META; in __kasan_cache_create() 192 if ((cache->flags & SLAB_TYPESAFE_BY_RCU) || cache->ctor || in __kasan_cache_create() 193 cache->object_size < sizeof(struct kasan_free_meta)) { in __kasan_cache_create() 196 cache->kasan_info.free_meta_offset = *size; in __kasan_cache_create() 201 cache->kasan_info.free_meta_offset = KASAN_NO_FREE_META; in __kasan_cache_create() 207 optimal_size = cache->object_size + optimal_redzone(cache->object_size); in __kasan_cache_create() 216 void __kasan_cache_create_kmalloc(struct kmem_cache *cache) in __kasan_cache_create_kmalloc() argument [all …]
|
/Linux-v5.15/fs/btrfs/ |
D | block-group.c | 117 void btrfs_get_block_group(struct btrfs_block_group *cache) in btrfs_get_block_group() argument 119 refcount_inc(&cache->refs); in btrfs_get_block_group() 122 void btrfs_put_block_group(struct btrfs_block_group *cache) in btrfs_put_block_group() argument 124 if (refcount_dec_and_test(&cache->refs)) { in btrfs_put_block_group() 125 WARN_ON(cache->pinned > 0); in btrfs_put_block_group() 126 WARN_ON(cache->reserved > 0); in btrfs_put_block_group() 133 if (WARN_ON(!list_empty(&cache->discard_list))) in btrfs_put_block_group() 134 btrfs_discard_cancel_work(&cache->fs_info->discard_ctl, in btrfs_put_block_group() 135 cache); in btrfs_put_block_group() 145 WARN_ON(!RB_EMPTY_ROOT(&cache->full_stripe_locks_root.root)); in btrfs_put_block_group() [all …]
|
/Linux-v5.15/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 …]
|