Home
last modified time | relevance | path

Searched refs:cache_size (Results 1 – 25 of 54) sorted by relevance

123

/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/
Dkfd_crat.c55 uint32_t cache_size; member
67 .cache_size = 16,
76 .cache_size = 16,
85 .cache_size = 8,
100 .cache_size = 16,
109 .cache_size = 8,
118 .cache_size = 4,
147 .cache_size = 16,
156 .cache_size = 32,
165 .cache_size = 16,
[all …]
/linux-6.1.9/tools/testing/selftests/resctrl/
Dcmt_test.c22 static unsigned long cache_size; variable
87 cache_size = 0; in cmt_resctrl_val()
103 ret = get_cache_size(cpu_no, "L3", &cache_size); in cmt_resctrl_val()
106 ksft_print_msg("Cache size :%lu\n", cache_size); in cmt_resctrl_val()
124 .span = cache_size * n / count_of_bits, in cmt_resctrl_val()
Dcat_test.c23 static unsigned long cache_size; variable
108 cache_size = 0; in cat_perf_miss_val()
122 ret = get_cache_size(cpu_no, cache_type, &cache_size); in cat_perf_miss_val()
125 ksft_print_msg("Cache size :%lu\n", cache_size); in cat_perf_miss_val()
158 param.span = cache_size * (count_of_bits - n) / count_of_bits; in cat_perf_miss_val()
179 param.span = cache_size * n / count_of_bits; in cat_perf_miss_val()
Dresctrlfs.c141 int get_cache_size(int cpu_no, char *cache_type, unsigned long *cache_size) in get_cache_size() argument
174 *cache_size = 0; in get_cache_size()
179 *cache_size = *cache_size * 10 + (cache_str[i] - '0'); in get_cache_size()
183 *cache_size = *cache_size * 1024; in get_cache_size()
187 *cache_size = *cache_size * 1024 * 1024; in get_cache_size()
Dfill_buf.c198 unsigned long long cache_size = span; in run_fill_buf() local
207 ret = fill_cache(cache_size, malloc_and_init_memory, memflush, op, in run_fill_buf()
Dresctrl.h108 int get_cache_size(int cpu_no, char *cache_type, unsigned long *cache_size);
/linux-6.1.9/drivers/infiniband/hw/hfi1/
Duser_pages.c13 static unsigned long cache_size = 256; variable
14 module_param(cache_size, ulong, S_IRUGO | S_IWUSR);
15 MODULE_PARM_DESC(cache_size, "Send and receive side cache size limit (in MB)");
33 size = (cache_size * (1UL << 20)); /* convert to bytes */ in hfi1_can_pin_pages()
/linux-6.1.9/drivers/mtd/
Dmtdblock.c30 unsigned int cache_size; member
88 mtdblk->cache_offset, mtdblk->cache_size); in write_cached_data()
91 mtdblk->cache_size, mtdblk->cache_data); in write_cached_data()
114 unsigned int sect_size = mtdblk->cache_size; in do_cached_write()
162 mtdblk->cache_size = sect_size; in do_cached_write()
184 unsigned int sect_size = mtdblk->cache_size; in do_cached_read()
237 if (unlikely(!mtdblk->cache_data && mtdblk->cache_size)) { in mtdblock_writesect()
269 mtdblk->cache_size = mbd->mtd->erasesize; in mtdblock_open()
/linux-6.1.9/drivers/misc/lkdtm/
Dusercopy.c23 static volatile size_t cache_size = 1024; variable
234 memset(buf, 'B', cache_size); in do_usercopy_slab_whitelist()
237 offset = (cache_size / 4) + unconst; in do_usercopy_slab_whitelist()
238 size = (cache_size / 16) + unconst; in do_usercopy_slab_whitelist()
429 kmem_cache_create_usercopy("lkdtm-usercopy", cache_size, in lkdtm_usercopy_init()
431 cache_size / 4, in lkdtm_usercopy_init()
432 cache_size / 16, in lkdtm_usercopy_init()
/linux-6.1.9/arch/sh/kernel/cpu/
Dproc.c68 unsigned int cache_size; in show_cacheinfo() local
70 cache_size = info.ways * info.sets * info.linesz; in show_cacheinfo()
73 type, cache_size >> 10, info.ways); in show_cacheinfo()
/linux-6.1.9/arch/arm/mm/
Dcache-uniphier.c317 u32 level, cache_size; in __uniphier_cache_init() local
363 if (of_property_read_u32(np, "cache-size", &cache_size) || in __uniphier_cache_init()
364 cache_size == 0 || cache_size % (data->nsets * data->line_size)) { in __uniphier_cache_init()
371 data->way_mask = GENMASK(cache_size / data->nsets / data->line_size - 1, in __uniphier_cache_init()
Dcache-l2x0.c948 u32 cache_size = 0, sets = 0; in l2x0_cache_size_of_parse() local
954 of_property_read_u32(np, "cache-size", &cache_size); in l2x0_cache_size_of_parse()
959 if (!cache_size || !sets) in l2x0_cache_size_of_parse()
991 *associativity = cache_size / way_size; in l2x0_cache_size_of_parse()
999 cache_size, cache_size >> 10); in l2x0_cache_size_of_parse()
/linux-6.1.9/drivers/md/
Ddm-cache-policy-smq.c799 dm_cblock_t cache_size; member
1109 clear_bitset(mq->cache_hit_bits, from_cblock(mq->cache_size)); in end_cache_period()
1129 return from_cblock(mq->cache_size) * p / 100u; in percent_to_target()
1155 nr_free = from_cblock(mq->cache_size) - mq->cache_alloc.nr_allocated; in free_target_met()
1721 static struct dm_cache_policy *__smq_create(dm_cblock_t cache_size, in __smq_create() argument
1736 mq->cache_size = cache_size; in __smq_create()
1739 calc_hotspot_params(origin_size, cache_block_size, from_cblock(cache_size), in __smq_create()
1744 if (space_init(&mq->es, total_sentinels + mq->nr_hotspot_blocks + from_cblock(cache_size))) { in __smq_create()
1762 total_sentinels + mq->nr_hotspot_blocks + from_cblock(cache_size)); in __smq_create()
1771 if (from_cblock(cache_size)) { in __smq_create()
[all …]
Ddm-cache-policy.c112 dm_cblock_t cache_size, in dm_cache_policy_create() argument
125 p = type->create(cache_size, origin_size, cache_block_size); in dm_cache_policy_create()
Ddm-cache-target.c332 dm_cblock_t cache_size; member
2290 cache->cache_size, in create_cache_policy()
2333 if (nr_blocks > (1 << 20) && cache->cache_size != size) in set_cache_size()
2339 cache->cache_size = size; in set_cache_size()
2394 dm_block_t cache_size = ca->cache_sectors; in cache_create() local
2397 cache_size = block_div(cache_size, ca->block_size); in cache_create()
2398 set_cache_size(cache, to_cblock(cache_size)); in cache_create()
2460 cache->dirty_bitset = alloc_bitset(from_cblock(cache->cache_size)); in cache_create()
2465 clear_bitset(cache->dirty_bitset, from_cblock(cache->cache_size)); in cache_create()
2659 r = dm_cache_set_dirty_bits(cache->cmd, from_cblock(cache->cache_size), cache->dirty_bitset); in write_dirty_bitset()
[all …]
Ddm-cache-policy.h176 struct dm_cache_policy *(*create)(dm_cblock_t cache_size,
/linux-6.1.9/tools/perf/scripts/python/
Darm-cs-trace-disasm.py51 cache_size = 64*1024 variable
88 if (len(disasm_cache) > cache_size):
179 global cache_size
/linux-6.1.9/arch/powerpc/kernel/
Dcacheinfo.c208 static int cache_size(const struct cache *cache, unsigned int *ret) in cache_size() function
211 const __be32 *cache_size; in cache_size() local
215 cache_size = of_get_property(cache->ofnode, propname, NULL); in cache_size()
216 if (!cache_size) in cache_size()
219 *ret = of_read_number(cache_size, 1); in cache_size()
227 if (cache_size(cache, &size)) in cache_size_kb()
292 if (cache_size(cache, &size)) in cache_associativity()
/linux-6.1.9/arch/microblaze/kernel/cpu/
Dcache.c92 #define CACHE_LOOP_LIMITS(start, end, cache_line_length, cache_size) \ argument
95 if (start < UINT_MAX - cache_size) \
96 end = min(start + cache_size, end); \
104 #define CACHE_ALL_LOOP(cache_size, line_length, op) \ argument
106 unsigned int len = cache_size - line_length; \
/linux-6.1.9/sound/firewire/motu/
Damdtp-motu.c307 const unsigned int cache_size = cache->size; in cache_event_offsets() local
323 cache_tail = (cache_tail + 1) % cache_size; in cache_event_offsets()
381 const unsigned int cache_size = cache->size; in write_sph() local
391 cache_head = (cache_head + 1) % cache_size; in write_sph()
/linux-6.1.9/arch/mips/kernel/
Dpm-cps.c197 unsigned cache_size = cache->ways << cache->waybit; in cps_gen_cache_routine() local
209 if (cache_size < 0x8000) in cps_gen_cache_routine()
210 uasm_i_addiu(pp, t1, t0, cache_size); in cps_gen_cache_routine()
212 UASM_i_LA(pp, t1, (long)(CKSEG0 + cache_size)); in cps_gen_cache_routine()
/linux-6.1.9/net/openvswitch/
Dflow_table.c377 new->cache_size = size; in tbl_mask_cache_alloc()
378 if (new->cache_size > 0) { in tbl_mask_cache_alloc()
380 new->cache_size), in tbl_mask_cache_alloc()
396 if (size == mc->cache_size) in ovs_flow_tbl_masks_cache_resize()
801 if (unlikely(!skb_hash || mc->cache_size == 0)) { in ovs_flow_tbl_lookup_stats()
821 int index = hash & (mc->cache_size - 1); in ovs_flow_tbl_lookup_stats()
948 return READ_ONCE(mc->cache_size); in ovs_flow_tbl_masks_cache_size()
Dflow_table.h32 u32 cache_size; /* Must be ^2 value. */ member
/linux-6.1.9/sound/firewire/
Damdtp-stream.c499 const unsigned int cache_size = s->ctx_data.tx.cache.size; in calculate_cached_cycle_count() local
503 cycles += cache_size; in calculate_cached_cycle_count()
512 const unsigned int cache_size = s->ctx_data.tx.cache.size; in cache_seq() local
528 cache_tail = (cache_tail + 1) % cache_size; in cache_seq()
554 const unsigned int cache_size = target->ctx_data.tx.cache.size; in pool_replayed_seq() local
564 cache_head = (cache_head + 1) % cache_size; in pool_replayed_seq()
582 const unsigned int cache_size = tx->ctx_data.tx.cache.size; in pool_seq_descs() local
586 if (cached_cycles > count && cached_cycles > cache_size / 2) in pool_seq_descs()
/linux-6.1.9/drivers/block/null_blk/
Dnull_blk.h91 unsigned long cache_size; /* disk cache size in MB */ member

123