/linux-master/drivers/infiniband/hw/hfi1/ |
H A D | user_pages.c | 13 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;
|
/linux-master/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_crat.c | 56 .cache_size = 16, 66 .cache_size = 16, 76 .cache_size = 8, 92 .cache_size = 16, 102 .cache_size = 32, 112 .cache_size = 16, 134 * newer ASICs. The unit for cache_size is KiB. 142 .cache_size = 16, 152 .cache_size = 32, 162 .cache_size [all...] |
H A D | kfd_crat.h | 167 uint32_t cache_size; member in struct:crat_subtype_cache 304 uint32_t cache_size; member in struct:kfd_gpu_cache_info
|
H A D | kfd_topology.h | 98 uint32_t cache_size; member in struct:kfd_cache_properties
|
/linux-master/drivers/misc/lkdtm/ |
H A D | usercopy.c | 20 * and making sure "cache_size" isn't optimized into a const. 23 static volatile size_t cache_size = 1024; variable 234 memset(buf, 'B', cache_size); 237 offset = (cache_size / 4) + unconst; 238 size = (cache_size / 16) + unconst; 429 kmem_cache_create_usercopy("lkdtm-usercopy", cache_size, 431 cache_size / 4, 432 cache_size / 16,
|
/linux-master/tools/testing/selftests/resctrl/ |
H A D | resctrl.h | 166 int get_cache_size(int cpu_no, const char *cache_type, unsigned long *cache_size); 186 * @cache_size: Total cache size in bytes 192 static inline unsigned long cache_portion_size(unsigned long cache_size, argument 200 * smaller portions. To avoid divide by zero, return cache_size. 203 return cache_size; 205 return cache_size * count_bits(portion_mask) / bits;
|
H A D | resctrlfs.c | 163 * @cache_size: pointer to cache_size 167 int get_cache_size(int cpu_no, const char *cache_type, unsigned long *cache_size) argument 186 ksft_perror("Could not get cache_size"); 195 *cache_size = 0; 200 *cache_size = *cache_size * 10 + (cache_str[i] - '0'); 204 *cache_size = *cache_size * 1024; 208 *cache_size [all...] |
/linux-master/drivers/mtd/ |
H A D | mtdblock.c | 30 unsigned int cache_size; member in struct:mtdblk_dev 88 mtdblk->cache_offset, mtdblk->cache_size); 91 mtdblk->cache_size, mtdblk->cache_data); 114 unsigned int sect_size = mtdblk->cache_size; 162 mtdblk->cache_size = sect_size; 184 unsigned int sect_size = mtdblk->cache_size; 241 if (unlikely(!mtdblk->cache_data && mtdblk->cache_size)) { 273 mtdblk->cache_size = mbd->mtd->erasesize;
|
/linux-master/arch/sh/kernel/cpu/ |
H A D | proc.c | 68 unsigned int cache_size; local 70 cache_size = info.ways * info.sets * info.linesz; 73 type, cache_size >> 10, info.ways);
|
/linux-master/drivers/md/ |
H A D | dm-cache-policy.c | 113 dm_cblock_t cache_size, 126 p = type->create(cache_size, origin_size, cache_block_size); 112 dm_cache_policy_create(const char *name, dm_cblock_t cache_size, sector_t origin_size, sector_t cache_block_size) argument
|
H A D | dm-cache-policy.h | 177 struct dm_cache_policy *(*create)(dm_cblock_t cache_size,
|
H A D | dm-cache-policy-smq.c | 802 dm_cblock_t cache_size; member in struct:smq_policy 1118 clear_bitset(mq->cache_hit_bits, from_cblock(mq->cache_size)); 1138 return from_cblock(mq->cache_size) * p / 100u; 1164 nr_free = from_cblock(mq->cache_size) - mq->cache_alloc.nr_allocated; 1732 __smq_create(dm_cblock_t cache_size, sector_t origin_size, sector_t cache_block_size, argument 1744 mq->cache_size = cache_size; 1747 calc_hotspot_params(origin_size, cache_block_size, from_cblock(cache_size), 1752 if (space_init(&mq->es, total_sentinels + mq->nr_hotspot_blocks + from_cblock(cache_size))) { 1770 total_sentinels + mq->nr_hotspot_blocks + from_cblock(cache_size)); 1840 smq_create(dm_cblock_t cache_size, sector_t origin_size, sector_t cache_block_size) argument 1848 mq_create(dm_cblock_t cache_size, sector_t origin_size, sector_t cache_block_size) argument 1856 cleaner_create(dm_cblock_t cache_size, sector_t origin_size, sector_t cache_block_size) argument [all...] |
H A D | dm-cache-policy-internal.h | 146 struct dm_cache_policy *dm_cache_policy_create(const char *name, dm_cblock_t cache_size,
|
H A D | dm-cache-target.c | 333 dm_cblock_t cache_size; member in struct:cache 377 * cache_size entries, dirty if set 2321 cache->cache_size, 2364 if (nr_blocks > (1 << 20) && cache->cache_size != size) 2370 cache->cache_size = size; 2425 dm_block_t cache_size = ca->cache_sectors; local 2428 cache_size = block_div(cache_size, ca->block_size); 2429 set_cache_size(cache, to_cblock(cache_size)); 2491 cache->dirty_bitset = alloc_bitset(from_cblock(cache->cache_size)); [all...] |
/linux-master/arch/arm/mm/ |
H A D | cache-uniphier.c | 319 u32 level, cache_size; local 365 if (of_property_read_u32(np, "cache-size", &cache_size) || 366 cache_size == 0 || cache_size % (data->nsets * data->line_size)) { 373 data->way_mask = GENMASK(cache_size / data->nsets / data->line_size - 1,
|
/linux-master/tools/perf/scripts/python/ |
H A D | arm-cs-trace-disasm.py | 50 cache_size = 64*1024 variable 87 if (len(disasm_cache) > cache_size): 178 global cache_size
|
/linux-master/arch/microblaze/kernel/cpu/ |
H A D | cache.c | 92 #define CACHE_LOOP_LIMITS(start, end, cache_line_length, cache_size) \ 95 if (start < UINT_MAX - cache_size) \ 96 end = min(start + cache_size, end); \ 101 * Helper macro to loop over the specified cache_size/line_length and 104 #define CACHE_ALL_LOOP(cache_size, line_length, op) \ 106 unsigned int len = cache_size - line_length; \
|
/linux-master/arch/powerpc/kernel/ |
H A D | cacheinfo.c | 208 static int cache_size(const struct cache *cache, unsigned int *ret) function 211 const __be32 *cache_size; local 215 cache_size = of_get_property(cache->ofnode, propname, NULL); 216 if (!cache_size) 219 *ret = of_read_number(cache_size, 1); 227 if (cache_size(cache, &size)) 292 if (cache_size(cache, &size))
|
/linux-master/sound/firewire/motu/ |
H A D | amdtp-motu.c | 307 const unsigned int cache_size = cache->size; local 323 cache_tail = (cache_tail + 1) % cache_size; 377 const unsigned int cache_size = cache->size; local 387 cache_head = (cache_head + 1) % cache_size;
|
/linux-master/net/openvswitch/ |
H A D | flow_table.h | 32 u32 cache_size; /* Must be ^2 value. */ member in struct:mask_cache
|
H A D | flow_table.c | 375 new->cache_size = size; 376 if (new->cache_size > 0) { 378 new->cache_size), 394 if (size == mc->cache_size) 799 if (unlikely(!skb_hash || mc->cache_size == 0)) { 819 int index = hash & (mc->cache_size - 1); 946 return READ_ONCE(mc->cache_size);
|
/linux-master/drivers/md/dm-vdo/indexer/ |
H A D | volume.h | 103 size_t cache_size; member in struct:volume
|
/linux-master/drivers/block/null_blk/ |
H A D | null_blk.h | 79 unsigned long cache_size; /* disk cache size in MB */ member in struct:nullb_device
|
/linux-master/drivers/md/dm-vdo/ |
H A D | types.h | 224 unsigned int cache_size; member in struct:device_config
|
/linux-master/arch/mips/kernel/ |
H A D | pm-cps.c | 191 unsigned cache_size = cache->ways << cache->waybit; local 203 if (cache_size < 0x8000) 204 uasm_i_addiu(pp, GPR_T1, GPR_T0, cache_size); 206 UASM_i_LA(pp, GPR_T1, (long)(CKSEG0 + cache_size));
|