/Linux-v4.19/drivers/md/ |
D | dm-cache-target.c | 372 struct cache { struct 498 struct cache *cache; argument 510 static bool writethrough_mode(struct cache *cache) in writethrough_mode() argument 512 return cache->features.io_mode == CM_IO_WRITETHROUGH; in writethrough_mode() 515 static bool writeback_mode(struct cache *cache) in writeback_mode() argument 517 return cache->features.io_mode == CM_IO_WRITEBACK; in writeback_mode() 520 static inline bool passthrough_mode(struct cache *cache) in passthrough_mode() argument 522 return unlikely(cache->features.io_mode == CM_IO_PASSTHROUGH); in passthrough_mode() 527 static void wake_deferred_bio_worker(struct cache *cache) in wake_deferred_bio_worker() argument 529 queue_work(cache->wq, &cache->deferred_bio_worker); in wake_deferred_bio_worker() [all …]
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | cacheinfo.c | 43 struct cache *cache; member 117 struct cache { struct 123 struct cache *next_local; /* next cache of >= level */ argument 138 static const char *cache_type_string(const struct cache *cache) in cache_type_string() argument 140 return cache_type_info[cache->type].name; in cache_type_string() 143 static void cache_init(struct cache *cache, int type, int level, in cache_init() argument 146 cache->type = type; in cache_init() 147 cache->level = level; in cache_init() 148 cache->ofnode = of_node_get(ofnode); in cache_init() 149 INIT_LIST_HEAD(&cache->list); in cache_init() [all …]
|
/Linux-v4.19/fs/cachefiles/ |
D | bind.c | 31 int cachefiles_daemon_bind(struct cachefiles_cache *cache, char *args) in cachefiles_daemon_bind() argument 34 cache->frun_percent, in cachefiles_daemon_bind() 35 cache->fcull_percent, in cachefiles_daemon_bind() 36 cache->fstop_percent, in cachefiles_daemon_bind() 37 cache->brun_percent, in cachefiles_daemon_bind() 38 cache->bcull_percent, in cachefiles_daemon_bind() 39 cache->bstop_percent, in cachefiles_daemon_bind() 43 ASSERT(cache->fstop_percent >= 0 && in cachefiles_daemon_bind() 44 cache->fstop_percent < cache->fcull_percent && in cachefiles_daemon_bind() 45 cache->fcull_percent < cache->frun_percent && in cachefiles_daemon_bind() [all …]
|
D | daemon.c | 63 int (*handler)(struct cachefiles_cache *cache, char *args); 89 struct cachefiles_cache *cache; in cachefiles_daemon_open() local 102 cache = kzalloc(sizeof(struct cachefiles_cache), GFP_KERNEL); in cachefiles_daemon_open() 103 if (!cache) { in cachefiles_daemon_open() 108 mutex_init(&cache->daemon_mutex); in cachefiles_daemon_open() 109 cache->active_nodes = RB_ROOT; in cachefiles_daemon_open() 110 rwlock_init(&cache->active_lock); in cachefiles_daemon_open() 111 init_waitqueue_head(&cache->daemon_pollwq); in cachefiles_daemon_open() 118 cache->frun_percent = 7; in cachefiles_daemon_open() 119 cache->fcull_percent = 5; in cachefiles_daemon_open() [all …]
|
D | interface.c | 32 struct cachefiles_cache *cache; in cachefiles_alloc_object() local 38 cache = container_of(_cache, struct cachefiles_cache, cache); in cachefiles_alloc_object() 40 _enter("{%s},%p,", cache->cache.identifier, cookie); in cachefiles_alloc_object() 56 fscache_object_init(&object->fscache, cookie, &cache->cache); in cachefiles_alloc_object() 111 fscache_object_destroyed(&cache->cache); in cachefiles_alloc_object() 127 struct cachefiles_cache *cache; in cachefiles_lookup_object() local 133 cache = container_of(_object->cache, struct cachefiles_cache, cache); in cachefiles_lookup_object() 142 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_lookup_object() 146 cachefiles_end_secure(cache, saved_cred); in cachefiles_lookup_object() 212 struct cachefiles_cache *cache; in cachefiles_update_object() local [all …]
|
D | namei.c | 89 static void cachefiles_mark_object_buried(struct cachefiles_cache *cache, in cachefiles_mark_object_buried() argument 98 write_lock(&cache->active_lock); in cachefiles_mark_object_buried() 100 p = cache->active_nodes.rb_node; in cachefiles_mark_object_buried() 111 write_unlock(&cache->active_lock); in cachefiles_mark_object_buried() 134 write_unlock(&cache->active_lock); in cachefiles_mark_object_buried() 141 static int cachefiles_mark_object_active(struct cachefiles_cache *cache, in cachefiles_mark_object_active() argument 151 write_lock(&cache->active_lock); in cachefiles_mark_object_active() 162 _p = &cache->active_nodes.rb_node; in cachefiles_mark_object_active() 179 rb_insert_color(&object->active_node, &cache->active_nodes); in cachefiles_mark_object_active() 181 write_unlock(&cache->active_lock); in cachefiles_mark_object_active() [all …]
|
D | security.c | 20 int cachefiles_get_security_ID(struct cachefiles_cache *cache) in cachefiles_get_security_ID() argument 25 _enter("{%s}", cache->secctx); in cachefiles_get_security_ID() 33 if (cache->secctx) { in cachefiles_get_security_ID() 34 ret = set_security_override_from_ctx(new, cache->secctx); in cachefiles_get_security_ID() 43 cache->cache_cred = new; in cachefiles_get_security_ID() 53 static int cachefiles_check_cache_dir(struct cachefiles_cache *cache, in cachefiles_check_cache_dir() argument 79 int cachefiles_determine_cache_security(struct cachefiles_cache *cache, in cachefiles_determine_cache_security() argument 94 cachefiles_end_secure(cache, *_saved_cred); in cachefiles_determine_cache_security() 101 cachefiles_begin_secure(cache, _saved_cred); in cachefiles_determine_cache_security() 106 put_cred(cache->cache_cred); in cachefiles_determine_cache_security() [all …]
|
/Linux-v4.19/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-v4.19/fs/btrfs/tests/ |
D | free-space-tests.c | 19 static int test_extents(struct btrfs_block_group_cache *cache) in test_extents() argument 26 ret = btrfs_add_free_space(cache, 0, SZ_4M); in test_extents() 32 ret = btrfs_remove_free_space(cache, 0, SZ_4M); in test_extents() 38 if (test_check_exists(cache, 0, SZ_4M)) { in test_extents() 44 ret = btrfs_add_free_space(cache, 0, SZ_4M); in test_extents() 50 ret = btrfs_remove_free_space(cache, 3 * SZ_1M, SZ_1M); in test_extents() 56 ret = btrfs_remove_free_space(cache, 0, SZ_1M); in test_extents() 62 ret = btrfs_remove_free_space(cache, SZ_2M, 4096); in test_extents() 68 if (test_check_exists(cache, 0, SZ_1M)) { in test_extents() 73 if (test_check_exists(cache, SZ_2M, 4096)) { in test_extents() [all …]
|
D | free-space-tree-tests.c | 20 struct btrfs_block_group_cache *cache, in __check_free_space_extents() argument 33 info = search_free_space_info(trans, fs_info, cache, path, 0); in __check_free_space_extents() 50 end = cache->key.objectid + cache->key.offset; in __check_free_space_extents() 58 bit = free_space_test_bit(cache, path, offset); in __check_free_space_extents() 109 struct btrfs_block_group_cache *cache, in check_free_space_extents() argument 118 info = search_free_space_info(trans, fs_info, cache, path, 0); in check_free_space_extents() 127 ret = __check_free_space_extents(trans, fs_info, cache, path, extents, in check_free_space_extents() 134 ret = convert_free_space_to_extents(trans, cache, path); in check_free_space_extents() 140 ret = convert_free_space_to_bitmaps(trans, cache, path); in check_free_space_extents() 146 return __check_free_space_extents(trans, fs_info, cache, path, extents, in check_free_space_extents() [all …]
|
D | btrfs-tests.c | 186 struct btrfs_block_group_cache *cache; in btrfs_alloc_dummy_block_group() local 188 cache = kzalloc(sizeof(*cache), GFP_KERNEL); in btrfs_alloc_dummy_block_group() 189 if (!cache) in btrfs_alloc_dummy_block_group() 191 cache->free_space_ctl = kzalloc(sizeof(*cache->free_space_ctl), in btrfs_alloc_dummy_block_group() 193 if (!cache->free_space_ctl) { in btrfs_alloc_dummy_block_group() 194 kfree(cache); in btrfs_alloc_dummy_block_group() 198 cache->key.objectid = 0; in btrfs_alloc_dummy_block_group() 199 cache->key.offset = length; in btrfs_alloc_dummy_block_group() 200 cache->key.type = BTRFS_BLOCK_GROUP_ITEM_KEY; in btrfs_alloc_dummy_block_group() 201 cache->full_stripe_len = fs_info->sectorsize; in btrfs_alloc_dummy_block_group() [all …]
|
/Linux-v4.19/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-v4.19/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-v4.19/fs/fscache/ |
D | cache.c | 99 struct fscache_cache *cache; in fscache_select_cache_for_object() local 117 cache = object->cache; in fscache_select_cache_for_object() 119 test_bit(FSCACHE_IOERROR, &cache->flags)) in fscache_select_cache_for_object() 120 cache = NULL; in fscache_select_cache_for_object() 123 _leave(" = %p [parent]", cache); in fscache_select_cache_for_object() 124 return cache; in fscache_select_cache_for_object() 151 if (!tag->cache) { in fscache_select_cache_for_object() 156 if (test_bit(FSCACHE_IOERROR, &tag->cache->flags)) in fscache_select_cache_for_object() 159 _leave(" = %p [specific]", tag->cache); in fscache_select_cache_for_object() 160 return tag->cache; in fscache_select_cache_for_object() [all …]
|
/Linux-v4.19/fs/ |
D | mbcache.c | 46 static unsigned long mb_cache_shrink(struct mb_cache *cache, 49 static inline struct hlist_bl_head *mb_cache_entry_head(struct mb_cache *cache, in mb_cache_entry_head() argument 52 return &cache->c_hash[hash_32(key, cache->c_bucket_bits)]; in mb_cache_entry_head() 73 int mb_cache_entry_create(struct mb_cache *cache, gfp_t mask, u32 key, in mb_cache_entry_create() argument 81 if (cache->c_entry_count >= cache->c_max_entries) in mb_cache_entry_create() 82 schedule_work(&cache->c_shrink_work); in mb_cache_entry_create() 84 if (cache->c_entry_count >= 2*cache->c_max_entries) in mb_cache_entry_create() 85 mb_cache_shrink(cache, SYNC_SHRINK_BATCH); in mb_cache_entry_create() 98 head = mb_cache_entry_head(cache, key); in mb_cache_entry_create() 110 spin_lock(&cache->c_list_lock); in mb_cache_entry_create() [all …]
|
/Linux-v4.19/Documentation/devicetree/bindings/arm/uniphier/ |
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-v4.19/fs/squashfs/ |
D | cache.c | 66 struct squashfs_cache *cache, u64 block, int length) in squashfs_cache_get() argument 71 spin_lock(&cache->lock); in squashfs_cache_get() 74 for (i = cache->curr_blk, n = 0; n < cache->entries; n++) { in squashfs_cache_get() 75 if (cache->entry[i].block == block) { in squashfs_cache_get() 76 cache->curr_blk = i; in squashfs_cache_get() 79 i = (i + 1) % cache->entries; in squashfs_cache_get() 82 if (n == cache->entries) { in squashfs_cache_get() 87 if (cache->unused == 0) { in squashfs_cache_get() 88 cache->num_waiters++; in squashfs_cache_get() 89 spin_unlock(&cache->lock); in squashfs_cache_get() [all …]
|
/Linux-v4.19/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-v4.19/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-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>; 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>; 108 i-cache-size = <0xc000>; 109 i-cache-line-size = <64>; 110 i-cache-sets = <256>; [all …]
|
/Linux-v4.19/Documentation/devicetree/bindings/arm/ |
D | l2c2x0.txt | 4 PL310 and variants) based level 2 cache controller. All these various implementations 5 of the L2 cache controller have compatible programming models (Note 1). 6 Some of the properties that are just prefixed "cache-*" are taken from section 10 The ARM L2 cache representation in the device tree should be done as follows: 15 "arm,pl310-cache" 16 "arm,l220-cache" 17 "arm,l210-cache" 18 "bcm,bcm11351-a2-pl310-cache": DEPRECATED by "brcm,bcm11351-a2-pl310-cache" 19 "brcm,bcm11351-a2-pl310-cache": For Broadcom bcm11351 chipset where an 21 cache controller [all …]
|
/Linux-v4.19/drivers/base/regmap/ |
D | regcache-flat.c | 28 unsigned int *cache; in regcache_flat_init() local 33 map->cache = kcalloc(regcache_flat_get_index(map, map->max_register) in regcache_flat_init() 35 if (!map->cache) in regcache_flat_init() 38 cache = map->cache; in regcache_flat_init() 44 cache[index] = map->reg_defaults[i].def; in regcache_flat_init() 52 kfree(map->cache); in regcache_flat_exit() 53 map->cache = NULL; in regcache_flat_exit() 61 unsigned int *cache = map->cache; in regcache_flat_read() local 64 *value = cache[index]; in regcache_flat_read() 72 unsigned int *cache = map->cache; in regcache_flat_write() local [all …]
|
/Linux-v4.19/drivers/infiniband/hw/hfi1/ |
D | platform.c | 238 u8 *cache = ppd->qsfp_info.cache; in qual_power() local 247 cable_power_class = get_qsfp_power_class(cache[QSFP_MOD_PWR_OFFS]); in qual_power() 267 u8 *cache = ppd->qsfp_info.cache; in qual_bitrate() local 270 cache[QSFP_NOM_BIT_RATE_250_OFFS] < 0x64) in qual_bitrate() 275 cache[QSFP_NOM_BIT_RATE_100_OFFS] < 0x7D) in qual_bitrate() 293 u8 *cache = ppd->qsfp_info.cache; in set_qsfp_high_power() local 296 cable_power_class = get_qsfp_power_class(cache[QSFP_MOD_PWR_OFFS]); in set_qsfp_high_power() 299 power_ctrl_byte = cache[QSFP_PWR_CTRL_BYTE_OFFS]; in set_qsfp_high_power() 330 u8 *cache = ppd->qsfp_info.cache; in apply_rx_cdr() local 333 if (!((cache[QSFP_MOD_PWR_OFFS] & 0x4) && in apply_rx_cdr() [all …]
|
/Linux-v4.19/Documentation/devicetree/bindings/nds32/ |
D | atl2c.txt | 1 * Andestech L2 cache Controller 3 The level-2 cache controller plays an important role in reducing memory latency 5 Level-2 cache controller in general enhances overall system performance 10 representation of an Andestech L2 cache controller. 17 - reg : Physical base address and size of cache controller's memory mapped 18 - cache-unified : Specifies the cache is a unified cache. 19 - cache-level : Should be set to 2 for a level 2 cache. 23 cache-controller@e0500000 { 26 cache-unified; 27 cache-level = <2>;
|