Home
last modified time | relevance | path

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

123

/linux-6.6.21/drivers/gpu/drm/amd/amdkfd/
Dkfd_crat.c56 .cache_size = 16,
65 .cache_size = 16,
74 .cache_size = 8,
89 .cache_size = 16,
98 .cache_size = 8,
107 .cache_size = 4,
136 .cache_size = 16,
145 .cache_size = 32,
154 .cache_size = 16,
163 .cache_size = 4096,
[all …]
Dkfd_crat.h167 uint32_t cache_size; member
304 uint32_t cache_size; member
/linux-6.6.21/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)");
73 cache_limit_pages = cache_size * (1024 * 1024) / PAGE_SIZE; in hfi1_can_pin_pages()
/linux-6.6.21/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()
241 if (unlikely(!mtdblk->cache_data && mtdblk->cache_size)) { in mtdblock_writesect()
273 mtdblk->cache_size = mbd->mtd->erasesize; in mtdblock_open()
/linux-6.6.21/tools/testing/selftests/resctrl/
Dcat_test.c94 unsigned long cache_size = 0; in cat_perf_miss_val() local
109 ret = get_cache_size(cpu_no, cache_type, &cache_size); in cat_perf_miss_val()
112 ksft_print_msg("Cache size :%lu\n", cache_size); in cat_perf_miss_val()
144 span = cache_size * (count_of_bits - n) / count_of_bits; in cat_perf_miss_val()
166 span = cache_size * n / count_of_bits; in cat_perf_miss_val()
Dcmt_test.c75 unsigned long cache_size = 0; in cmt_resctrl_val() local
89 ret = get_cache_size(cpu_no, "L3", &cache_size); in cmt_resctrl_val()
92 ksft_print_msg("Cache size :%lu\n", cache_size); in cmt_resctrl_val()
113 span = cache_size * n / count_of_bits; in cmt_resctrl_val()
Dresctrlfs.c140 int get_cache_size(int cpu_no, char *cache_type, unsigned long *cache_size) in get_cache_size() argument
173 *cache_size = 0; in get_cache_size()
178 *cache_size = *cache_size * 10 + (cache_str[i] - '0'); in get_cache_size()
182 *cache_size = *cache_size * 1024; in get_cache_size()
186 *cache_size = *cache_size * 1024 * 1024; in get_cache_size()
Dfill_buf.c169 size_t cache_size = span; in run_fill_buf() local
172 ret = fill_cache(cache_size, memflush, op, once); in run_fill_buf()
Dresctrl.h104 int get_cache_size(int cpu_no, char *cache_type, unsigned long *cache_size);
/linux-6.6.21/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.6.21/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.6.21/arch/arm/mm/
Dcache-uniphier.c319 u32 level, cache_size; in __uniphier_cache_init() local
365 if (of_property_read_u32(np, "cache-size", &cache_size) || in __uniphier_cache_init()
366 cache_size == 0 || cache_size % (data->nsets * data->line_size)) { in __uniphier_cache_init()
373 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.6.21/drivers/md/
Ddm-cache-policy-smq.c802 dm_cblock_t cache_size; member
1118 clear_bitset(mq->cache_hit_bits, from_cblock(mq->cache_size)); in end_cache_period()
1138 return from_cblock(mq->cache_size) * p / 100u; in percent_to_target()
1164 nr_free = from_cblock(mq->cache_size) - mq->cache_alloc.nr_allocated; in free_target_met()
1732 __smq_create(dm_cblock_t cache_size, sector_t origin_size, sector_t cache_block_size, in __smq_create() argument
1744 mq->cache_size = cache_size; in __smq_create()
1747 calc_hotspot_params(origin_size, cache_block_size, from_cblock(cache_size), in __smq_create()
1752 if (space_init(&mq->es, total_sentinels + mq->nr_hotspot_blocks + from_cblock(cache_size))) { in __smq_create()
1770 total_sentinels + mq->nr_hotspot_blocks + from_cblock(cache_size)); in __smq_create()
1779 if (from_cblock(cache_size)) { in __smq_create()
[all …]
Ddm-cache-policy.c113 dm_cblock_t cache_size, in dm_cache_policy_create() argument
126 p = type->create(cache_size, origin_size, cache_block_size); in dm_cache_policy_create()
Ddm-cache-target.c333 dm_cblock_t cache_size; member
2321 cache->cache_size, in create_cache_policy()
2364 if (nr_blocks > (1 << 20) && cache->cache_size != size) in set_cache_size()
2370 cache->cache_size = size; in set_cache_size()
2425 dm_block_t cache_size = ca->cache_sectors; in cache_create() local
2428 cache_size = block_div(cache_size, ca->block_size); in cache_create()
2429 set_cache_size(cache, to_cblock(cache_size)); in cache_create()
2491 cache->dirty_bitset = alloc_bitset(from_cblock(cache->cache_size)); in cache_create()
2496 clear_bitset(cache->dirty_bitset, from_cblock(cache->cache_size)); in cache_create()
2690 r = dm_cache_set_dirty_bits(cache->cmd, from_cblock(cache->cache_size), cache->dirty_bitset); in write_dirty_bitset()
[all …]
Ddm-cache-policy.h177 struct dm_cache_policy *(*create)(dm_cblock_t cache_size,
/linux-6.6.21/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.6.21/tools/perf/scripts/python/
Darm-cs-trace-disasm.py50 cache_size = 64*1024 variable
87 if (len(disasm_cache) > cache_size):
178 global cache_size
/linux-6.6.21/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.6.21/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()
377 const unsigned int cache_size = cache->size; in write_sph() local
387 cache_head = (cache_head + 1) % cache_size; in write_sph()
/linux-6.6.21/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.6.21/net/openvswitch/
Dflow_table.c378 new->cache_size = size; in tbl_mask_cache_alloc()
379 if (new->cache_size > 0) { in tbl_mask_cache_alloc()
381 new->cache_size), in tbl_mask_cache_alloc()
397 if (size == mc->cache_size) in ovs_flow_tbl_masks_cache_resize()
802 if (unlikely(!skb_hash || mc->cache_size == 0)) { in ovs_flow_tbl_lookup_stats()
822 int index = hash & (mc->cache_size - 1); in ovs_flow_tbl_lookup_stats()
949 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.6.21/sound/firewire/
Damdtp-stream.c504 const unsigned int cache_size = s->ctx_data.tx.cache.size; in calculate_cached_cycle_count() local
508 cycles += cache_size; in calculate_cached_cycle_count()
517 const unsigned int cache_size = s->ctx_data.tx.cache.size; in cache_seq() local
532 cache_pos = (cache_pos + 1) % cache_size; in cache_seq()
555 const unsigned int cache_size = target->ctx_data.tx.cache.size; in pool_replayed_seq() local
561 cache_pos = (cache_pos + 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()

123