| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/common/ |
| H A D | mali_l2_cache.c | 79 static void mali_l2_cache_reset(struct mali_l2_cache_core *cache); 82 struct mali_l2_cache_core *cache, u32 reg, u32 val); 84 static void mali_l2_cache_lock(struct mali_l2_cache_core *cache) in mali_l2_cache_lock() argument 86 MALI_DEBUG_ASSERT_POINTER(cache); in mali_l2_cache_lock() 87 _mali_osk_spinlock_irq_lock(cache->lock); in mali_l2_cache_lock() 90 static void mali_l2_cache_unlock(struct mali_l2_cache_core *cache) in mali_l2_cache_unlock() argument 92 MALI_DEBUG_ASSERT_POINTER(cache); in mali_l2_cache_unlock() 93 _mali_osk_spinlock_irq_unlock(cache->lock); in mali_l2_cache_unlock() 101 struct mali_l2_cache_core *cache = NULL; in mali_l2_cache_create() local 114 cache = _mali_osk_malloc(sizeof(struct mali_l2_cache_core)); in mali_l2_cache_create() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/md/ |
| H A D | dm-cache-target.c | 366 struct cache { struct 490 struct cache *cache; argument 502 static bool writethrough_mode(struct cache *cache) in writethrough_mode() argument 504 return cache->features.io_mode == CM_IO_WRITETHROUGH; in writethrough_mode() 507 static bool writeback_mode(struct cache *cache) in writeback_mode() argument 509 return cache->features.io_mode == CM_IO_WRITEBACK; in writeback_mode() 512 static inline bool passthrough_mode(struct cache *cache) in passthrough_mode() argument 514 return unlikely(cache->features.io_mode == CM_IO_PASSTHROUGH); in passthrough_mode() 519 static void wake_deferred_bio_worker(struct cache *cache) in wake_deferred_bio_worker() argument 521 queue_work(cache->wq, &cache->deferred_bio_worker); in wake_deferred_bio_worker() [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/kernel/ |
| H A D | cacheinfo.c | 44 struct cache *cache; member 118 struct cache { struct 124 struct cache *next_local; /* next cache of >= level */ argument 139 static const char *cache_type_string(const struct cache *cache) in cache_type_string() argument 141 return cache_type_info[cache->type].name; in cache_type_string() 144 static void cache_init(struct cache *cache, int type, int level, in cache_init() argument 147 cache->type = type; in cache_init() 148 cache->level = level; in cache_init() 149 cache->ofnode = of_node_get(ofnode); in cache_init() 150 INIT_LIST_HEAD(&cache->list); in cache_init() [all …]
|
| /OK3568_Linux_fs/kernel/fs/cachefiles/ |
| H A 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 …]
|
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/amazon/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/fs/btrfs/tests/ |
| H A 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 …]
|
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/mm/ |
| H A D | swap_slots.c | 126 struct swap_slots_cache *cache; in alloc_swap_slot_cache() local 155 cache = &per_cpu(swp_slots, cpu); in alloc_swap_slot_cache() 156 if (cache->slots || cache->slots_ret) { in alloc_swap_slot_cache() 166 if (!cache->lock_initialized) { in alloc_swap_slot_cache() 167 mutex_init(&cache->alloc_lock); in alloc_swap_slot_cache() 168 spin_lock_init(&cache->free_lock); in alloc_swap_slot_cache() 169 cache->lock_initialized = true; in alloc_swap_slot_cache() 171 cache->nr = 0; in alloc_swap_slot_cache() 172 cache->cur = 0; in alloc_swap_slot_cache() 173 cache->n_ret = 0; in alloc_swap_slot_cache() [all …]
|
| /OK3568_Linux_fs/kernel/fs/fscache/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/fs/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/powerpc/fsl/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/fs/squashfs/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/acpi/acpica/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/ti/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/fs/nfs/ |
| H A 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 …]
|
| /OK3568_Linux_fs/u-boot/arch/x86/lib/ |
| H A D | mrccache.c | 22 struct mrc_data_container *cache) in next_mrc_block() argument 25 u32 mrc_size = sizeof(*cache) + cache->data_size; in next_mrc_block() 26 u8 *region_ptr = (u8 *)cache; in next_mrc_block() 38 static int is_mrc_cache(struct mrc_data_container *cache) in is_mrc_cache() argument 40 return cache && (cache->signature == MRC_DATA_SIGNATURE); in is_mrc_cache() 45 struct mrc_data_container *cache, *next; in mrccache_find_current() local 51 cache = NULL; in mrccache_find_current() 57 cache = next; in mrccache_find_current() 69 if (cache->checksum != compute_ip_checksum(cache->data, in mrccache_find_current() 70 cache->data_size)) { in mrccache_find_current() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/marvell/ |
| H A 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 …]
|
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/dma-buf/ |
| H A D | dma-buf-cache.c | 27 struct dma_buf_cache *cache, *tmp; in dma_buf_cache_destructor() local 33 list_for_each_entry_safe(cache, tmp, &data->head, list) { in dma_buf_cache_destructor() 34 if (!IS_ERR_OR_NULL(cache->sg_table)) in dma_buf_cache_destructor() 35 dma_buf_unmap_attachment(cache->attach, in dma_buf_cache_destructor() 36 cache->sg_table, in dma_buf_cache_destructor() 37 cache->direction); in dma_buf_cache_destructor() 39 dma_buf_detach(dmabuf, cache->attach); in dma_buf_cache_destructor() 40 list_del(&cache->list); in dma_buf_cache_destructor() 41 kfree(cache); in dma_buf_cache_destructor() 54 struct dma_buf_cache *cache; in dma_buf_cache_get_cache() local [all …]
|
| /OK3568_Linux_fs/kernel/fs/btrfs/ |
| H A D | block-group.c | 116 void btrfs_get_block_group(struct btrfs_block_group *cache) in btrfs_get_block_group() argument 118 refcount_inc(&cache->refs); in btrfs_get_block_group() 121 void btrfs_put_block_group(struct btrfs_block_group *cache) in btrfs_put_block_group() argument 123 if (refcount_dec_and_test(&cache->refs)) { in btrfs_put_block_group() 124 WARN_ON(cache->pinned > 0); in btrfs_put_block_group() 125 WARN_ON(cache->reserved > 0); in btrfs_put_block_group() 132 if (WARN_ON(!list_empty(&cache->discard_list))) in btrfs_put_block_group() 133 btrfs_discard_cancel_work(&cache->fs_info->discard_ctl, in btrfs_put_block_group() 134 cache); in btrfs_put_block_group() 144 WARN_ON(!RB_EMPTY_ROOT(&cache->full_stripe_locks_root.root)); in btrfs_put_block_group() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/arm/ |
| H A 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 …]
|
| H A 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 …]
|
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/mm/kasan/ |
| H A D | common.c | 137 void __kasan_cache_create(struct kmem_cache *cache, unsigned int *size, in __kasan_cache_create() argument 158 cache->kasan_info.alloc_meta_offset = *size; in __kasan_cache_create() 168 cache->kasan_info.alloc_meta_offset = 0; in __kasan_cache_create() 175 cache->kasan_info.free_meta_offset = KASAN_NO_FREE_META; in __kasan_cache_create() 189 if ((cache->flags & SLAB_TYPESAFE_BY_RCU) || cache->ctor || in __kasan_cache_create() 190 cache->object_size < sizeof(struct kasan_free_meta)) { in __kasan_cache_create() 193 cache->kasan_info.free_meta_offset = *size; in __kasan_cache_create() 198 cache->kasan_info.free_meta_offset = KASAN_NO_FREE_META; in __kasan_cache_create() 204 optimal_size = cache->object_size + optimal_redzone(cache->object_size); in __kasan_cache_create() 213 void __kasan_cache_create_kmalloc(struct kmem_cache *cache) in __kasan_cache_create_kmalloc() argument [all …]
|