Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 25 of 1080) sorted by relevance

12345678910>>...44

/linux/drivers/md/
H A Ddm-cache-target.c11 #include "dm-cache-metadata.h"
13 #include "dm-cache-background-tracker.h"
27 #define DM_MSG_PREFIX "cache"
30 "A percentage of time allocated for copying to and/or from cache");
38 * cblock: index of a cache block
39 * promotion: movement of a block from origin to cache
40 * demotion: movement of a block from cache to origin
41 * migration: movement of a block between the origin and cache device,
243 * The block size of the device holding cache data must be
258 * dirty. If you lose the cache devic
298 struct cache { global() struct
308 cmdcache global() argument
323 cache_devcache global() argument
332 origin_sectorscache global() argument
334 cache_sizecache global() argument
339 invalidation_lockcache global() argument
340 invalidation_requestscache global() argument
342 migration_thresholdcache global() argument
348 nr_io_migrationscache global() argument
350 deferred_bioscache global() argument
352 quiesce_lockcache global() argument
376 prisoncache global() argument
382 policycache global() argument
387 featurescache global() argument
389 statscache global() argument
391 need_tick_biocache global() argument
392 sizedcache global() argument
393 invalidatecache global() argument
394 commit_requestedcache global() argument
395 loaded_mappingscache global() argument
396 loaded_discardscache global() argument
399 background_work_allowedcache global() argument
400 background_work_nrcache global() argument
401 background_work_lockcache global() argument
402 background_work_waitcache global() argument
404 committercache global() argument
428 commit_wscache global() argument
430 struct cache *cache; global() member
442 writethrough_mode(struct cache * cache) writethrough_mode() argument
447 writeback_mode(struct cache * cache) writeback_mode() argument
452 passthrough_mode(struct cache * cache) passthrough_mode() argument
459 wake_deferred_bio_worker(struct cache * cache) wake_deferred_bio_worker() argument
464 wake_migration_worker(struct cache * cache) wake_migration_worker() argument
474 alloc_prison_cell(struct cache * cache) alloc_prison_cell() argument
479 free_prison_cell(struct cache * cache,struct dm_bio_prison_cell_v2 * cell) free_prison_cell() argument
484 alloc_migration(struct cache * cache) alloc_migration() argument
559 defer_bio(struct cache * cache,struct bio * bio) defer_bio() argument
568 defer_bios(struct cache * cache,struct bio_list * bios) defer_bios() argument
579 bio_detain_shared(struct cache * cache,dm_oblock_t oblock,struct bio * bio) bio_detain_shared() argument
610 is_dirty(struct cache * cache,dm_cblock_t b) is_dirty() argument
615 set_dirty(struct cache * cache,dm_cblock_t cblock) set_dirty() argument
627 force_set_dirty(struct cache * cache,dm_cblock_t cblock) force_set_dirty() argument
634 force_clear_dirty(struct cache * cache,dm_cblock_t cblock) force_clear_dirty() argument
646 block_size_is_power_of_two(struct cache * cache) block_size_is_power_of_two() argument
658 oblocks_per_dblock(struct cache * cache) oblocks_per_dblock() argument
670 oblock_to_dblock(struct cache * cache,dm_oblock_t oblock) oblock_to_dblock() argument
676 set_discard(struct cache * cache,dm_dblock_t b) set_discard() argument
686 clear_discard(struct cache * cache,dm_dblock_t b) clear_discard() argument
693 is_discarded(struct cache * cache,dm_dblock_t b) is_discarded() argument
704 is_discarded_oblock(struct cache * cache,dm_oblock_t b) is_discarded_oblock() argument
721 remap_to_origin(struct cache * cache,struct bio * bio) remap_to_origin() argument
726 remap_to_cache(struct cache * cache,struct bio * bio,dm_cblock_t cblock) remap_to_cache() argument
743 check_if_tick_bio_needed(struct cache * cache,struct bio * bio) check_if_tick_bio_needed() argument
757 remap_to_origin_clear_discard(struct cache * cache,struct bio * bio,dm_oblock_t oblock) remap_to_origin_clear_discard() argument
767 remap_to_cache_dirty(struct cache * cache,struct bio * bio,dm_oblock_t oblock,dm_cblock_t cblock) remap_to_cache_dirty() argument
778 get_bio_block(struct cache * cache,struct bio * bio) get_bio_block() argument
790 accountable_bio(struct cache * cache,struct bio * bio) accountable_bio() argument
795 accounted_begin(struct cache * cache,struct bio * bio) accounted_begin() argument
806 accounted_complete(struct cache * cache,struct bio * bio) accounted_complete() argument
813 accounted_request(struct cache * cache,struct bio * bio) accounted_request() argument
821 struct cache *cache = context; issue_op() local
830 remap_to_origin_and_cache(struct cache * cache,struct bio * bio,dm_oblock_t oblock,dm_cblock_t cblock) remap_to_origin_and_cache() argument
852 get_cache_mode(struct cache * cache) get_cache_mode() argument
857 cache_device_name(struct cache * cache) cache_device_name() argument
862 notify_mode_switch(struct cache * cache,enum cache_metadata_mode mode) notify_mode_switch() argument
875 set_cache_mode(struct cache * cache,enum cache_metadata_mode new_mode) set_cache_mode() argument
916 abort_transaction(struct cache * cache) abort_transaction() argument
935 metadata_operation_failed(struct cache * cache,const char * op,int r) metadata_operation_failed() argument
945 load_stats(struct cache * cache) load_stats() argument
956 save_stats(struct cache * cache) save_stats() argument
996 inc_io_migrations(struct cache * cache) inc_io_migrations() argument
1001 dec_io_migrations(struct cache * cache) dec_io_migrations() argument
1011 calc_discard_block_range(struct cache * cache,struct bio * bio,dm_dblock_t * b,dm_dblock_t * e) calc_discard_block_range() argument
1027 prevent_background_work(struct cache * cache) prevent_background_work() argument
1037 allow_background_work(struct cache * cache) allow_background_work() argument
1044 background_work_begin(struct cache * cache) background_work_begin() argument
1056 background_work_end(struct cache * cache) background_work_end() argument
1066 bio_writes_complete_block(struct cache * cache,struct bio * bio) bio_writes_complete_block() argument
1072 optimisable_bio(struct cache * cache,struct bio * bio,dm_oblock_t block) optimisable_bio() argument
1105 struct cache *cache = mg->cache; copy() local
1121 bio_drop_shared_lock(struct cache * cache,struct bio * bio) bio_drop_shared_lock() argument
1133 struct cache *cache = mg->cache; overwrite_endio() local
1179 struct cache *cache = mg->cache; mg_complete() local
1248 struct cache *cache = mg->cache; mg_update_metadata() local
1350 struct cache *cache = mg->cache; mg_full_copy() local
1404 struct cache *cache = mg->cache; mg_lock_writes() local
1435 mg_start(struct cache * cache,struct policy_work * op,struct bio * bio) mg_start() argument
1464 struct cache *cache = mg->cache; invalidate_complete() local
1497 invalidate_cblock(struct cache * cache,dm_cblock_t cblock) invalidate_cblock() argument
1525 struct cache *cache = mg->cache; invalidate_committed() local
1544 struct cache *cache = mg->cache; invalidate_remove() local
1561 struct cache *cache = mg->cache; invalidate_lock() local
1602 invalidate_start(struct cache * cache,dm_cblock_t cblock,dm_oblock_t oblock,struct bio * bio) invalidate_start() argument
1630 spare_migration_bandwidth(struct cache * cache) spare_migration_bandwidth() argument
1642 inc_hit_counter(struct cache * cache,struct bio * bio) inc_hit_counter() argument
1648 inc_miss_counter(struct cache * cache,struct bio * bio) inc_miss_counter() argument
1656 map_bio(struct cache * cache,struct bio * bio,dm_oblock_t block,bool * commit_needed) map_bio() argument
1771 process_bio(struct cache * cache,struct bio * bio) process_bio() argument
1784 commit(struct cache * cache,bool clean_shutdown) commit() argument
1804 struct cache *cache = context; commit_op() local
1814 process_flush_bio(struct cache * cache,struct bio * bio) process_flush_bio() argument
1827 process_discard_bio(struct cache * cache,struct bio * bio) process_discard_bio() argument
1853 struct cache *cache = container_of(ws, struct cache, deferred_bio_worker); process_deferred_bios() local
1886 requeue_deferred_bios(struct cache * cache) requeue_deferred_bios() argument
1907 struct cache *cache = container_of(to_delayed_work(ws), struct cache, waker); do_waker() local
1919 struct cache *cache = container_of(ws, struct cache, migration_worker); check_migrations() local
1953 __destroy(struct cache * cache) __destroy() argument
1995 destroy(struct cache * cache) destroy() argument
2010 struct cache *cache = ti->private; cache_dtr() local
2311 process_config_option(struct cache * cache,const char * key,const char * value) process_config_option() argument
2326 set_config_value(struct cache * cache,const char * key,const char * value) set_config_value() argument
2339 set_config_values(struct cache * cache,int argc,const char ** argv) set_config_values() argument
2360 create_cache_policy(struct cache * cache,struct cache_args * ca,char ** error) create_cache_policy() argument
2403 set_cache_size(struct cache * cache,dm_cblock_t size) set_cache_size() argument
2422 struct cache *cache; cache_create() local
2608 copy_ctr_args(struct cache * cache,int argc,const char ** argv) copy_ctr_args() argument
2636 struct cache *cache = NULL; cache_ctr() local
2669 struct cache *cache = ti->private; cache_map() local
2701 struct cache *cache = ti->private; cache_end_io() local
2719 write_dirty_bitset(struct cache * cache) write_dirty_bitset() argument
2733 write_discard_bitset(struct cache * cache) write_discard_bitset() argument
2760 write_hints(struct cache * cache) write_hints() argument
2779 sync_metadata(struct cache * cache) sync_metadata() argument
2811 struct cache *cache = ti->private; cache_postsuspend() local
2833 struct cache *cache = context; load_mapping() local
2853 struct cache *cache = context; load_filtered_mapping() local
2875 struct cache *cache; global() member
2885 discard_load_info_init(struct cache * cache,struct discard_load_info * li) discard_load_info_init() argument
2952 get_cache_dev_size(struct cache * cache) get_cache_dev_size() argument
2959 can_resume(struct cache * cache) can_resume() argument
2997 can_resize(struct cache * cache,dm_cblock_t new_size) can_resize() argument
3023 resize_cache_dev(struct cache * cache,dm_cblock_t new_size) resize_cache_dev() argument
3039 truncate_oblocks(struct cache * cache) truncate_oblocks() argument
3060 struct cache *cache = ti->private; cache_preresume() local
3133 struct cache *cache = ti->private; cache_resume() local
3140 emit_flags(struct cache * cache,char * result,unsigned int maxlen,ssize_t * sz_ptr) emit_flags() argument
3193 struct cache *cache = ti->private; cache_status() local
3329 parse_cblock_range(struct cache * cache,char * str,struct cblock_range * result) parse_cblock_range() argument
3361 validate_cblock_range(struct cache * cache,struct cblock_range * range) validate_cblock_range() argument
3388 request_invalidation(struct cache * cache,struct cblock_range * range) request_invalidation() argument
3410 process_invalidate_cblocks_message(struct cache * cache,unsigned int count,char ** cblock_ranges) process_invalidate_cblocks_message() argument
3454 struct cache *cache = ti->private; cache_message() local
3478 struct cache *cache = ti->private; cache_iterate_devices() local
3491 disable_passdown_if_not_supported(struct cache * cache) disable_passdown_if_not_supported() argument
3513 set_discard_limits(struct cache * cache,struct queue_limits * limits) set_discard_limits() argument
3537 struct cache *cache = ti->private; cache_io_hints() local
[all...]
/linux/arch/powerpc/kernel/
H A Dcacheinfo.c44 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/fs/netfs/
H A Dfscache_cache.c26 struct fscache_cache *cache; in fscache_alloc_cache() local
28 cache = kzalloc_obj(*cache); in fscache_alloc_cache()
29 if (cache) { in fscache_alloc_cache()
31 cache->name = kstrdup(name, GFP_KERNEL); in fscache_alloc_cache()
32 if (!cache->name) { in fscache_alloc_cache()
33 kfree(cache); in fscache_alloc_cache()
37 refcount_set(&cache->ref, 1); in fscache_alloc_cache()
38 INIT_LIST_HEAD(&cache->cache_link); in fscache_alloc_cache()
39 cache->debug_id = atomic_inc_return(&fscache_cache_debug_id); in fscache_alloc_cache()
41 return cache; in fscache_alloc_cache()
[all …]
/linux/fs/cachefiles/
H A Dcache.c17 int cachefiles_add_cache(struct cachefiles_cache *cache) in cachefiles_add_cache() argument
28 cache_cookie = fscache_acquire_cache(cache->tag); in cachefiles_add_cache()
33 ret = cachefiles_get_security_ID(cache); in cachefiles_add_cache()
37 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_add_cache()
40 ret = kern_path(cache->rootdirname, LOOKUP_DIRECTORY, &path); in cachefiles_add_cache()
44 cache->mnt = path.mnt; in cachefiles_add_cache()
78 ret = cachefiles_determine_cache_security(cache, root, &saved_cred); in cachefiles_add_cache()
95 cache->bsize = stats.f_bsize; in cachefiles_add_cache()
96 cache->bshift = ilog2(stats.f_bsize); in cachefiles_add_cache()
99 cache->bsize, cache->bshift); in cachefiles_add_cache()
[all …]
/linux/arch/arm64/boot/dts/amd/
H A Damd-seattle-cpus.dtsi49 i-cache-size = <0xC000>;
50 i-cache-line-size = <64>;
51 i-cache-sets = <256>;
52 d-cache-size = <0x8000>;
53 d-cache-line-size = <64>;
54 d-cache-sets = <256>;
55 l2-cache = <&L2_0>;
65 i-cache-size = <0xC000>;
66 i-cache-line-size = <64>;
67 i-cache-sets = <256>;
[all …]
/linux/scripts/gendwarfksyms/
H A Ddwarf.c38 static void process_linebreak(struct die *cache, int n) in process_linebreak() argument
42 die_map_add_linebreak(cache, n); in process_linebreak()
109 static struct cache srcfile_cache;
147 static bool is_kabi_definition(struct die *cache, Dwarf_Die *die) in is_kabi_definition() argument
154 if (kabi_is_declonly(cache->fqn)) in is_kabi_definition()
163 static void process(struct die *cache, const char *s) in process() argument
176 if (cache) in process()
177 die_debug_r("cache %p string '%s'", cache, s); in process()
178 die_map_add_string(cache, in process()
183 process_fmt(struct die * cache,const char * fmt,...) process_fmt() argument
197 update_fqn(struct die * cache,Dwarf_Die * die) update_fqn() argument
210 process_fqn(struct die * cache,Dwarf_Die * die) process_fqn() argument
266 process_die_container(struct state * state,struct die * cache,Dwarf_Die * die,die_callback_t func,die_match_callback_t match) process_die_container() argument
300 process_type_attr(struct state * state,struct die * cache,Dwarf_Die * die) process_type_attr() argument
314 process_list_comma(struct state * state,struct die * cache) process_list_comma() argument
325 __process_list_type(struct state * state,struct die * cache,Dwarf_Die * die,const char * type) __process_list_type() argument
411 process_array_type(struct state * state,struct die * cache,Dwarf_Die * die) process_array_type() argument
425 __process_subroutine_type(struct state * state,struct die * cache,Dwarf_Die * die,const char * type) __process_subroutine_type() argument
442 process_subroutine_type(struct state * state,struct die * cache,Dwarf_Die * die) process_subroutine_type() argument
448 process_variant_type(struct state * state,struct die * cache,Dwarf_Die * die) process_variant_type() argument
461 process_variant_part_type(struct state * state,struct die * cache,Dwarf_Die * die) process_variant_part_type() argument
667 ___process_structure_type(struct state * state,struct die * cache,Dwarf_Die * die) ___process_structure_type() argument
690 __process_structure_type(struct state * state,struct die * cache,Dwarf_Die * die,const char * type,die_callback_t process_func,die_match_callback_t match_func) __process_structure_type() argument
749 process_enumerator_type(struct state * state,struct die * cache,Dwarf_Die * die) process_enumerator_type() argument
777 process_enumeration_type(struct state * state,struct die * cache,Dwarf_Die * die) process_enumeration_type() argument
784 process_base_type(struct state * state,struct die * cache,Dwarf_Die * die) process_base_type() argument
794 process_unspecified_type(struct state * state,struct die * cache,Dwarf_Die * die) process_unspecified_type() argument
804 process_cached(struct state * state,struct die * cache,Dwarf_Die * die) process_cached() argument
868 struct die *cache; process_type() local
961 struct die *cache; get_symbol_cache() local
975 struct die *cache; process_symbol() local
990 __process_subprogram(struct state * state,struct die * cache,Dwarf_Die * die) __process_subprogram() argument
1002 __process_variable(struct state * state,struct die * cache,Dwarf_Die * die) __process_variable() argument
1040 process_exported_symbols(struct state * unused,struct die * cache,Dwarf_Die * die) process_exported_symbols() argument
1106 struct die *cache; resolve_fqns() local
[all...]
H A Dcache.c14 void cache_set(struct cache *cache, unsigned long key, int value) in cache_set() argument
21 hash_add(cache->cache, &ci->hash, hash_32(key)); in cache_set()
24 int cache_get(struct cache *cache, unsigned long key) in cache_get() argument
28 hash_for_each_possible(cache->cache, ci, hash, hash_32(key)) { in cache_get()
36 void cache_init(struct cache *cache) in cache_init() argument
38 hash_init(cache->cache); in cache_init()
41 void cache_free(struct cache *cache) in cache_free() argument
46 hash_for_each_safe(cache->cache, ci, tmp, hash) { in cache_free()
50 hash_init(cache->cache); in cache_free()
/linux/Documentation/devicetree/bindings/cache/
H A Dfreescale-l2cache.txt3 L2 cache is present in Freescale's QorIQ and QorIQ Qonverge platforms.
4 The cache bindings explained below are Devicetree Specification compliant
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"
14 "fsl,mpc8536-l2-cache-controller"
15 "fsl,mpc8540-l2-cache-controller"
16 "fsl,mpc8541-l2-cache-controller"
[all …]
/linux/arch/arm64/boot/dts/ti/
H A Dk3-j784s4.dtsi63 i-cache-size = <0xc000>;
64 i-cache-line-size = <64>;
65 i-cache-sets = <256>;
66 d-cache-size = <0x8000>;
67 d-cache-line-size = <64>;
68 d-cache-sets = <256>;
69 next-level-cache = <&L2_0>;
77 i-cache-size = <0xc000>;
78 i-cache-line-size = <64>;
79 i-cache-sets = <256>;
[all …]
H A Dk3-am654.dtsi41 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 …]
H A Dk3-am652.dtsi31 i-cache-size = <0x8000>;
32 i-cache-line-size = <64>;
33 i-cache-sets = <256>;
34 d-cache-size = <0x8000>;
35 d-cache-line-size = <64>;
36 d-cache-sets = <128>;
37 next-level-cache = <&L2_0>;
45 i-cache-size = <0x8000>;
46 i-cache-line-size = <64>;
47 i-cache-sets = <256>;
[all …]
H A Dk3-am625.dtsi44 i-cache-size = <0x8000>;
45 i-cache-line-size = <64>;
46 i-cache-sets = <256>;
47 d-cache-size = <0x8000>;
48 d-cache-line-size = <64>;
49 d-cache-sets = <128>;
50 next-level-cache = <&L2_0>;
61 i-cache-size = <0x8000>;
62 i-cache-line-size = <64>;
63 i-cache-sets = <256>;
[all …]
H A Dk3-am62a7.dtsi44 i-cache-size = <0x8000>;
45 i-cache-line-size = <64>;
46 i-cache-sets = <256>;
47 d-cache-size = <0x8000>;
48 d-cache-line-size = <64>;
49 d-cache-sets = <128>;
50 next-level-cache = <&L2_0>;
61 i-cache-size = <0x8000>;
62 i-cache-line-size = <64>;
63 i-cache-sets = <256>;
[all …]
/linux/arch/arm64/boot/dts/marvell/
H A Darmada-ap806-quad.dtsi22 i-cache-size = <0xc000>;
23 i-cache-line-size = <64>;
24 i-cache-sets = <256>;
25 d-cache-size = <0x8000>;
26 d-cache-line-size = <64>;
27 d-cache-sets = <256>;
28 next-level-cache = <&l2_0>;
37 i-cache-size = <0xc000>;
38 i-cache-line-size = <64>;
39 i-cache-sets = <256>;
[all …]
H A Darmada-ap807-quad.dtsi22 i-cache-size = <0xc000>;
23 i-cache-line-size = <64>;
24 i-cache-sets = <256>;
25 d-cache-size = <0x8000>;
26 d-cache-line-size = <64>;
27 d-cache-sets = <256>;
28 next-level-cache = <&l2_0>;
37 i-cache-size = <0xc000>;
38 i-cache-line-size = <64>;
39 i-cache-sets = <256>;
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_pagemap_util.c62 struct drm_pagemap_cache *cache = arg; in drm_pagemap_cache_fini() local
65 drm_dbg(cache->shrinker->drm, "Destroying dpagemap cache.\n"); in drm_pagemap_cache_fini()
66 spin_lock(&cache->lock); in drm_pagemap_cache_fini()
67 dpagemap = cache->dpagemap; in drm_pagemap_cache_fini()
68 cache->dpagemap = NULL; in drm_pagemap_cache_fini()
71 spin_unlock(&cache->lock); in drm_pagemap_cache_fini()
76 mutex_destroy(&cache->lookup_mutex); in drm_pagemap_cache_fini()
77 kfree(cache); in drm_pagemap_cache_fini()
93 struct drm_pagemap_cache *cache = kzalloc_obj(*cache); in drm_pagemap_cache_create_devm() local
96 if (!cache) in drm_pagemap_cache_create_devm()
[all …]
/linux/arch/arm64/boot/dts/arm/
H A Dmorello.dtsi38 i-cache-size = <0x10000>;
39 i-cache-line-size = <64>;
40 i-cache-sets = <512>;
41 d-cache-size = <0x10000>;
42 d-cache-line-size = <64>;
43 d-cache-sets = <512>;
44 next-level-cache = <&l2_0>;
47 l2_0: l2-cache {
48 compatible = "cache";
49 cache-level = <2>;
[all …]
H A Djuno-r1.dts93 i-cache-size = <0xc000>;
94 i-cache-line-size = <64>;
95 i-cache-sets = <256>;
96 d-cache-size = <0x8000>;
97 d-cache-line-size = <64>;
98 d-cache-sets = <256>;
99 next-level-cache = <&A57_L2>;
110 i-cache-size = <0xc000>;
111 i-cache-line-size = <64>;
112 i-cache-sets = <256>;
[all …]
H A Djuno.dts92 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>;
110 i-cache-size = <0xc000>;
111 i-cache-line-size = <64>;
112 i-cache-sets = <256>;
[all …]
H A Djuno-r2.dts93 i-cache-size = <0xc000>;
94 i-cache-line-size = <64>;
95 i-cache-sets = <256>;
96 d-cache-size = <0x8000>;
97 d-cache-line-size = <64>;
98 d-cache-sets = <256>;
99 next-level-cache = <&A72_L2>;
111 i-cache-size = <0xc000>;
112 i-cache-line-size = <64>;
113 i-cache-sets = <256>;
[all …]
/linux/io_uring/
H A Dalloc_cache.h13 void io_alloc_cache_free(struct io_alloc_cache *cache,
15 bool io_alloc_cache_init(struct io_alloc_cache *cache,
19 void *io_cache_alloc_new(struct io_alloc_cache *cache, gfp_t gfp);
21 static inline bool io_alloc_cache_put(struct io_alloc_cache *cache, in io_alloc_cache_put() argument
24 if (cache->nr_cached < cache->max_cached) { in io_alloc_cache_put()
27 cache->entries[cache->nr_cached++] = entry; in io_alloc_cache_put()
33 static inline void *io_alloc_cache_get(struct io_alloc_cache *cache) in io_alloc_cache_get() argument
35 if (cache->nr_cached) { in io_alloc_cache_get()
36 void *entry = cache->entries[--cache->nr_cached]; in io_alloc_cache_get()
44 kasan_mempool_unpoison_object(entry, cache->elem_size); in io_alloc_cache_get()
[all …]
/linux/fs/btrfs/
H A Dlru_cache.c15 void btrfs_lru_cache_init(struct btrfs_lru_cache *cache, unsigned int max_size) in btrfs_lru_cache_init() argument
17 INIT_LIST_HEAD(&cache->lru_list); in btrfs_lru_cache_init()
18 mt_init(&cache->entries); in btrfs_lru_cache_init()
19 cache->size = 0; in btrfs_lru_cache_init()
20 cache->max_size = max_size; in btrfs_lru_cache_init()
45 struct btrfs_lru_cache_entry *btrfs_lru_cache_lookup(struct btrfs_lru_cache *cache, in btrfs_lru_cache_lookup() argument
51 head = mtree_load(&cache->entries, key); in btrfs_lru_cache_lookup()
57 list_move_tail(&entry->lru_list, &cache->lru_list); in btrfs_lru_cache_lookup()
70 void btrfs_lru_cache_remove(struct btrfs_lru_cache *cache, in btrfs_lru_cache_remove() argument
75 ASSERT(cache->size > 0); in btrfs_lru_cache_remove()
[all …]
H A Dfiemap.c19 * the fiemap cache and relock the file range and research the subvolume tree.
76 struct fiemap_cache *cache) in flush_fiemap_cache() argument
78 for (int i = 0; i < cache->entries_pos; i++) { in flush_fiemap_cache()
79 struct btrfs_fiemap_entry *entry = &cache->entries[i]; in flush_fiemap_cache()
92 cache->entries_pos = 0; in flush_fiemap_cache()
108 struct fiemap_cache *cache, in emit_fiemap_extent() argument
117 if (!cache->cached) in emit_fiemap_extent()
126 * the fiemap extents stored in the buffer (cache->entries array) and in emit_fiemap_extent()
144 * offset smaller than or equals to cache->offset, and this happens in emit_fiemap_extent()
149 * or equals to what we have in cache in emit_fiemap_extent()
291 emit_last_fiemap_cache(struct fiemap_extent_info * fieinfo,struct fiemap_cache * cache) emit_last_fiemap_cache() argument
438 fiemap_process_hole(struct btrfs_inode * inode,struct fiemap_extent_info * fieinfo,struct fiemap_cache * cache,struct extent_state ** delalloc_cached_state,struct btrfs_backref_share_check_ctx * backref_ctx,u64 disk_bytenr,u64 extent_offset,u64 extent_gen,u64 start,u64 end) fiemap_process_hole() argument
638 struct fiemap_cache cache = { 0 }; extent_fiemap() local
[all...]
/linux/arch/arm/boot/dts/broadcom/
H A Dbcm2836.dtsi43 /* Source for d/i-cache-line-size and d/i-cache-sets
47 * Source for d/i-cache-size
56 d-cache-size = <0x8000>;
57 d-cache-line-size = <64>;
58 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set
59 i-cache-size = <0x8000>;
60 i-cache-line-size = <32>;
61 i-cache-sets = <512>; // 32KiB(size)/32(line-size)=1024ways/2-way set
62 next-level-cache = <&l2>;
70 d-cache-size = <0x8000>;
[all …]
H A Dbcm2837.dtsi42 /* Source for d/i-cache-line-size and d/i-cache-sets
46 * Source for d/i-cache-size
55 d-cache-size = <0x8000>;
56 d-cache-line-size = <64>;
57 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set
58 i-cache-size = <0x8000>;
59 i-cache-line-size = <64>;
60 i-cache-sets = <256>; // 32KiB(size)/64(line-size)=512ways/2-way set
61 next-level-cache = <&l2>;
70 d-cache-size = <0x8000>;
[all …]

12345678910>>...44