/openbmc/linux/drivers/md/ |
H A D | dm-cache-target.c | 483 mg->cache = cache; in alloc_migration() 491 struct cache *cache = mg->cache; in free_migration() local 1098 struct cache *cache = mg->cache; in copy() local 1126 struct cache *cache = mg->cache; in overwrite_endio() local 1172 struct cache *cache = mg->cache; in mg_complete() local 1241 struct cache *cache = mg->cache; in mg_update_metadata() local 1343 struct cache *cache = mg->cache; in mg_full_copy() local 1397 struct cache *cache = mg->cache; in mg_lock_writes() local 1457 struct cache *cache = mg->cache; in invalidate_complete() local 1508 struct cache *cache = mg->cache; in invalidate_remove() local [all …]
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | cacheinfo.c | 43 struct cache *cache; member 158 struct cache *cache; in new_cache() local 394 struct cache *cache; in cache_do_one_devnode() local 408 struct cache *cache; in cache_lookup_or_instantiate() local 592 struct cache *cache; in size_show() local 609 struct cache *cache; in line_size_show() local 625 struct cache *cache; in nr_sets_show() local 641 struct cache *cache; in associativity_show() local 656 struct cache *cache; in type_show() local 669 struct cache *cache; in level_show() local [all …]
|
/openbmc/linux/fs/fscache/ |
H A D | cache.c | 28 cache = kzalloc(sizeof(*cache), GFP_KERNEL); in fscache_alloc_cache() 29 if (cache) { in fscache_alloc_cache() 33 kfree(cache); in fscache_alloc_cache() 41 return cache; in fscache_alloc_cache() 67 if (cache->name && name && strcmp(cache->name, name) == 0 && in fscache_lookup_cache() 94 if (cache->name && name && strcmp(cache->name, name) == 0 && in fscache_lookup_cache() 126 return cache; in fscache_lookup_cache() 135 return cache; in fscache_lookup_cache() 156 return cache; in fscache_acquire_cache() 166 return cache; in fscache_acquire_cache() [all …]
|
/openbmc/linux/fs/cachefiles/ |
H A D | daemon.c | 105 if (!cache) { in cachefiles_daemon_open() 175 kfree(cache); in cachefiles_put_unbind_pincount() 193 ASSERT(cache); in cachefiles_daemon_release() 289 ASSERT(cache); in cachefiles_daemon_write() 442 if (fcull <= cache->fstop_percent || fcull >= cache->frun_percent) in cachefiles_daemon_fcull() 616 if (cache->tag) in cachefiles_daemon_tag() 623 cache->tag = tag; in cachefiles_daemon_tag() 760 if (cache->fstop_percent >= cache->fcull_percent || in cachefiles_daemon_bind() 761 cache->fcull_percent >= cache->frun_percent || in cachefiles_daemon_bind() 765 if (cache->bstop_percent >= cache->bcull_percent || in cachefiles_daemon_bind() [all …]
|
H A D | cache.c | 99 cache->bsize, cache->bshift); in cachefiles_add_cache() 107 cache->fstop = stats.f_files * cache->fstop_percent; in cachefiles_add_cache() 108 cache->fcull = stats.f_files * cache->fcull_percent; in cachefiles_add_cache() 109 cache->frun = stats.f_files * cache->frun_percent; in cachefiles_add_cache() 119 cache->brun = stats.f_blocks * cache->brun_percent; in cachefiles_add_cache() 143 cache->cache = cache_cookie; in cachefiles_add_cache() 158 _leave(" = 0 [%px]", cache->cache); in cachefiles_add_cache() 176 cache->cache = NULL; in cachefiles_add_cache() 390 _enter("%s", cache->cache->name); in cachefiles_sync_cache() 411 struct fscache_cache *fscache = cache->cache; in cachefiles_withdraw_cache() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/amd/ |
H A D | amd-seattle-cpus.dtsi | 51 i-cache-sets = <256>; 55 l2-cache = <&L2_0>; 71 l2-cache = <&L2_0>; 86 l2-cache = <&L2_1>; 169 cache-unified; 177 cache-unified; 185 cache-unified; 193 cache-unified; 197 L3: l3-cache { 198 cache-level = <3>; [all …]
|
/openbmc/linux/mm/ |
H 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() 331 entry = cache->slots[cache->cur]; in folio_alloc_swap() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/amazon/ |
H 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>; 252 cache-level = <2>; 253 cache-unified; 262 cache-unified; 271 cache-unified; [all …]
|
/openbmc/linux/fs/btrfs/tests/ |
H A D | free-space-tests.c | 39 if (test_check_exists(cache, 0, SZ_4M)) { in test_extents() 85 btrfs_remove_free_space_cache(cache); in test_extents() 152 btrfs_remove_free_space_cache(cache); in test_bitmaps() 233 btrfs_remove_free_space_cache(cache); in test_bitmaps_and_extents() 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() 947 offset = btrfs_find_space_for_alloc(cache, cache->start, sectorsize * 3, in test_bytes_index() 991 offset = btrfs_find_space_for_alloc(cache, cache->start, sectorsize * 2, in test_bytes_index() 1008 struct btrfs_block_group *cache; in btrfs_test_free_space_cache() local 1026 if (!cache) { in btrfs_test_free_space_cache() [all …]
|
H A D | free-space-tree-tests.c | 52 end = cache->start + cache->length; in __check_free_space_extents() 157 {cache->start, cache->length}, in test_empty_block_group() 192 {cache->start + alignment, cache->length - alignment}, in test_remove_beginning() 215 {cache->start, cache->length - alignment}, in test_remove_end() 220 cache->start + cache->length - alignment, in test_remove_end() 239 {cache->start + 2 * alignment, cache->length - 2 * alignment}, in test_remove_middle() 267 cache->start, cache->length); in test_merge_left() 304 cache->start, cache->length); in test_merge_right() 342 cache->start, cache->length); in test_merge_both() 387 cache->start, cache->length); in test_merge_none() [all …]
|
/openbmc/linux/drivers/acpi/acpica/ |
H 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 …]
|
/openbmc/linux/fs/ |
H 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() 348 mb_cache_shrink(cache, cache->c_max_entries / SHRINK_DIVISOR); in mb_cache_shrink_worker() 364 if (!cache) in mb_cache_create() 373 if (!cache->c_hash) { in mb_cache_create() 374 kfree(cache); in mb_cache_create() 385 kfree(cache); in mb_cache_create() 391 return cache; in mb_cache_create() 420 kfree(cache->c_hash); in mb_cache_destroy() [all …]
|
/openbmc/qemu/migration/ |
H A D | page_cache.c | 45 PageCache *cache; in cache_init() local 61 cache = g_try_malloc(sizeof(*cache)); in cache_init() 62 if (!cache) { in cache_init() 67 cache->num_items = 0; in cache_init() 73 cache->page_cache = g_try_malloc((cache->max_num_items) * in cache_init() 77 g_free(cache); in cache_init() 87 return cache; in cache_init() 94 g_assert(cache); in cache_fini() 103 g_free(cache); in cache_fini() 110 return (address / cache->page_size) & (cache->max_num_items - 1); in cache_get_cache_pos() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/cache/ |
H A D | freescale-l2cache.txt | 9 "fsl,b4420-l2-cache-controller" 10 "fsl,b4860-l2-cache-controller" 11 "fsl,bsc9131-l2-cache-controller" 12 "fsl,bsc9132-l2-cache-controller" 13 "fsl,c293-l2-cache-controller" 24 "fsl,p1010-l2-cache-controller" 41 and "cache". 43 - cache-size : Size of the entire L2 cache 45 - cache-line-size : Size of L2 cache lines 49 L2: l2-cache-controller@20000 { [all …]
|
H A D | socionext,uniphier-system-cache.yaml | 4 $id: http://devicetree.org/schemas/cache/socionext,uniphier-system-cache.yaml# 35 cache-unified: true 37 cache-size: true 39 cache-sets: true 43 cache-level: 58 - cache-unified 59 - cache-size 60 - cache-sets 61 - cache-line-size 62 - cache-level [all …]
|
/openbmc/linux/fs/squashfs/ |
H 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 …]
|
/openbmc/linux/arch/arm64/boot/dts/ti/ |
H A D | k3-am654.dtsi | 43 i-cache-sets = <256>; 46 d-cache-sets = <128>; 57 i-cache-sets = <256>; 95 cache-level = <2>; 96 cache-unified; 99 cache-sets = <512>; 105 cache-level = <2>; 106 cache-unified; 109 cache-sets = <512>; 115 cache-level = <3>; [all …]
|
H A D | k3-am62a7.dtsi | 46 i-cache-sets = <256>; 49 d-cache-sets = <128>; 60 i-cache-sets = <256>; 63 d-cache-sets = <128>; 74 i-cache-sets = <256>; 77 d-cache-sets = <128>; 88 i-cache-sets = <256>; 97 compatible = "cache"; 98 cache-unified; 99 cache-level = <2>; [all …]
|
H A D | k3-am62p5.dtsi | 45 i-cache-sets = <256>; 48 d-cache-sets = <128>; 60 i-cache-sets = <256>; 63 d-cache-sets = <128>; 75 i-cache-sets = <256>; 78 d-cache-sets = <128>; 90 i-cache-sets = <256>; 100 compatible = "cache"; 101 cache-unified; 102 cache-level = <2>; [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H 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 …]
|
/openbmc/linux/arch/arm64/boot/dts/marvell/ |
H A D | armada-ap806-quad.dtsi | 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>; 83 cache-sets = <512>; 84 cache-level = <2>; 85 cache-unified; 92 cache-sets = <512>; 93 cache-level = <2>; [all …]
|
H A D | armada-ap807-quad.dtsi | 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>; 83 cache-sets = <512>; 84 cache-level = <2>; 85 cache-unified; 92 cache-sets = <512>; 93 cache-level = <2>; [all …]
|
/openbmc/u-boot/arch/x86/lib/ |
H A D | mrccache.c | 24 u32 mrc_size = sizeof(*cache) + cache->data_size; in next_mrc_block() 39 return cache && (cache->signature == MRC_DATA_SIGNATURE); in is_mrc_cache() 50 cache = NULL; in mrccache_find_current() 56 cache = next; in mrccache_find_current() 68 if (cache->checksum != compute_ip_checksum(cache->data, in mrccache_find_current() 76 return cache; in mrccache_find_current() 95 cache = next_mrc_block(cache); in find_next_mrc_cache() 105 return cache; in find_next_mrc_cache() 123 if (cache && (cache->data_size == cur->data_size) && in mrccache_update() 130 if (cache) in mrccache_update() [all …]
|
/openbmc/linux/io_uring/ |
H A D | alloc_cache.h | 16 if (cache->nr_cached < cache->max_cached) { in io_alloc_cache_put() 17 cache->nr_cached++; in io_alloc_cache_put() 28 return !cache->list.next; in io_alloc_cache_empty() 33 if (cache->list.next) { in io_alloc_cache_get() 38 cache->list.next = cache->list.next->next; in io_alloc_cache_get() 39 cache->nr_cached--; in io_alloc_cache_get() 49 cache->list.next = NULL; in io_alloc_cache_init() 50 cache->nr_cached = 0; in io_alloc_cache_init() 51 cache->max_cached = max_nr; in io_alloc_cache_init() 52 cache->elem_size = size; in io_alloc_cache_init() [all …]
|
/openbmc/linux/fs/nfs/ |
H A D | nfs42xattr.c | 113 cache->buckets[i].cache = cache; in nfs4_xattr_hash_init() 293 if (cache == NULL) in nfs4_xattr_alloc_cache() 299 return cache; in nfs4_xattr_alloc_cache() 442 if (cache != NULL) in nfs4_xattr_get_cache() 463 cache = NULL; in nfs4_xattr_get_cache() 500 return cache; in nfs4_xattr_get_cache() 616 if (cache == NULL) in nfs4_xattr_cache_get() 655 if (cache == NULL) in nfs4_xattr_cache_list() 698 if (cache == NULL) in nfs4_xattr_cache_add() 727 if (cache == NULL) in nfs4_xattr_cache_remove() [all …]
|