Home
last modified time | relevance | path

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

12345678910>>...40

/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/fs/squashfs/
H A Dcache.c53 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/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/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/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 …]
H A Dalloc_cache.c5 void io_alloc_cache_free(struct io_alloc_cache *cache, in io_alloc_cache_free() argument
10 if (!cache->entries) in io_alloc_cache_free()
13 while ((entry = io_alloc_cache_get(cache)) != NULL) in io_alloc_cache_free()
16 kvfree(cache->entries); in io_alloc_cache_free()
17 cache->entries = NULL; in io_alloc_cache_free()
21 bool io_alloc_cache_init(struct io_alloc_cache *cache, in io_alloc_cache_init() argument
25 cache->entries = kvmalloc_array(max_nr, sizeof(void *), GFP_KERNEL); in io_alloc_cache_init()
26 if (!cache->entries) in io_alloc_cache_init()
29 cache->nr_cached = 0; in io_alloc_cache_init()
30 cache->max_cached = max_nr; in io_alloc_cache_init()
[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 …]
/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>>...40