| /linux/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; in hfi1_can_pin_pages()
|
| /linux/drivers/mtd/ |
| H A D | mtdblock.c | 30 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/drivers/misc/lkdtm/ |
| H A D | usercopy.c | 23 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/tools/testing/selftests/resctrl/ |
| H A D | resctrl.h | 202 int get_cache_size(int cpu_no, const char *cache_type, unsigned long *cache_size); 221 * @cache_size: Total cache size in bytes 227 static inline unsigned long cache_portion_size(unsigned long cache_size, in cache_portion_size() 235 * smaller portions. To avoid divide by zero, return cache_size. in cache_portion_size() 238 return cache_size; in cache_portion_size() 240 return cache_size * count_bits(portion_mask) / bits; 225 cache_portion_size(unsigned long cache_size,unsigned long portion_mask,unsigned long full_cache_mask) cache_portion_size() argument
|
| /linux/arch/sh/kernel/cpu/ |
| H A D | proc.c | 68 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/arch/arm/mm/ |
| H A D | cache-uniphier.c | 319 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()
|
| H A D | cache-l2x0.c | 949 u32 cache_size = 0, sets = 0; in l2x0_cache_size_of_parse() local 955 of_property_read_u32(np, "cache-size", &cache_size); in l2x0_cache_size_of_parse() 960 if (!cache_size || !sets) in l2x0_cache_size_of_parse() 992 *associativity = cache_size / way_size; in l2x0_cache_size_of_parse() 1000 cache_size, cache_size >> 10); in l2x0_cache_size_of_parse()
|
| /linux/arch/powerpc/kernel/ |
| H A D | cacheinfo.c | 208 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/arch/microblaze/kernel/cpu/ |
| H A D | cache.c | 92 #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/drivers/cxl/ |
| H A D | acpi.c | 369 resource_size_t cache_size; in cxl_acpi_set_cache_size() 374 cxlrd->cache_size = 0; in cxl_acpi_set_cache_size() 378 rc = hmat_get_extended_linear_cache_size(&res, nid, &cache_size); in cxl_acpi_set_cache_size() 384 * Currently there is only support cache_size == cxl_size. CXL in cxl_acpi_set_cache_size() 388 if (cache_size && size != cache_size) { in cxl_acpi_set_cache_size() 391 &cache_size, &size); in cxl_acpi_set_cache_size() 395 cxlrd->cache_size = cache_size; in cxl_acpi_set_cache_size() 373 resource_size_t cache_size; cxl_acpi_set_cache_size() local
|
| /linux/tools/testing/cxl/test/ |
| H A D | mock.c | 104 resource_size_t *cache_size) in __wrap_acpi_evaluate_integer() 111 cache_size); in __wrap_acpi_evaluate_integer() 114 cache_size); in __wrap_hmat_get_extended_linear_cache_size() 116 __wrap_hmat_get_extended_linear_cache_size(struct resource * backing_res,int nid,resource_size_t * cache_size) __wrap_hmat_get_extended_linear_cache_size() argument
|
| H A D | mock.h | 29 resource_size_t *cache_size);
|
| /linux/drivers/md/ |
| H A D | dm-cache-policy.c | 113 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()
|
| H A D | dm-cache-target.c | 333 dm_cblock_t cache_size; member 377 * cache_size entries, dirty if set 2326 cache->cache_size, in set_config_values() 2369 if (nr_blocks > (1 << 20) && cache->cache_size != size) in calculate_discard_block_size() 2375 cache->cache_size = size; in set_cache_size() 2430 dm_block_t cache_size = ca->cache_sectors; in cache_create() 2433 cache_size = block_div(cache_size, ca->block_size); in cache_create() 2434 set_cache_size(cache, to_cblock(cache_size)); in cache_create() 2496 cache->dirty_bitset = alloc_bitset(from_cblock(cache->cache_size)); in cache_create() 2437 dm_block_t cache_size = ca->cache_sectors; cache_create() local [all...] |
| H A D | dm-cache-policy.h | 177 struct dm_cache_policy *(*create)(dm_cblock_t cache_size,
|
| 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,
|
| /linux/sound/firewire/motu/ |
| H A D | amdtp-motu.c | 307 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/drivers/gpu/drm/amd/amdkfd/ |
| H A D | kfd_crat.h | 165 uint32_t cache_size; member 302 uint32_t cache_size; member
|
| /linux/drivers/cxl/core/ |
| H A D | region.c | 766 return sysfs_emit(buf, "%pap\n", &p->cache_size); 800 cxlr->params.cache_size == 0) in cxl_region_visible() 890 return p->res->start + p->cache_size == range->start && in match_auto_decoder() 2050 if (resource_size(cxled->dpa_res) * p->interleave_ways + p->cache_size != in cxl_region_attach() 2056 (u64)p->cache_size, (u64)resource_size(p->res)); in cxl_region_attach() 3317 hpa += p->cache_size; in is_cxl_dax_region() 3782 resource_size_t cache_size, start; in is_system_ram() 3784 cache_size = cxlrd->cache_size; 3785 if (!cache_size) in shutdown_notifiers() 3546 resource_size_t cache_size, start; cxl_extended_linear_cache_resize() local [all...] |
| /linux/drivers/acpi/numa/ |
| H A D | hmat.c | 120 resource_size_t *cache_size) in hmat_get_extended_linear_cache_size() argument 140 *cache_size = tcache->cache_attrs.size; in hmat_get_extended_linear_cache_size() 144 *cache_size = 0; in hmat_get_extended_linear_cache_size() 498 cache->memory_PD, cache->cache_size, attrs, in hmat_parse_cache() 511 tcache->cache_attrs.size = cache->cache_size; in hmat_parse_cache()
|
| /linux/net/openvswitch/ |
| H A D | flow_table.h | 32 u32 cache_size; /* Must be ^2 value. */ member
|
| /linux/drivers/block/null_blk/ |
| H A D | main.c | 225 module_param_named(cache_size, g_cache_size, ulong, 0444); 226 MODULE_PARM_DESC(cache_size, "Cache size in MiB for memory-backed device. Default: 0 (none)"); 230 MODULE_PARM_DESC(fua, "Enable/disable FUA support when cache_size is used. Default: true"); 461 NULLB_DEVICE_ATTR(cache_size, ulong, NULL); 813 dev->cache_size = g_cache_size; in null_alloc_dev() 1096 if ((nullb->dev->cache_size * 1024 * 1024) > in null_make_cache_space() 1232 nullb->dev->cache_size * 1024 * 1024); in null_handle_flush() 1915 dev->cache_size = 0; in null_validate_conf() 1916 dev->cache_size = min_t(unsigned long, ULONG_MAX / 1024 / 1024, in null_validate_conf() 1917 dev->cache_size); in null_validate_conf() [all...] |
| /linux/drivers/md/dm-vdo/indexer/ |
| H A D | volume.h | 103 size_t cache_size; member
|
| /linux/drivers/md/dm-vdo/ |
| H A D | types.h | 224 unsigned int cache_size; member
|
| H A D | block-map.h | 336 page_count_t cache_size, block_count_t maximum_age,
|