Home
last modified time | relevance | path

Searched refs:cache_attrs (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/acpi/hmat/
Dhmat.c45 struct node_cache_attrs cache_attrs; member
54 struct node_cache_attrs cache_attrs; member
352 tcache->cache_attrs.size = cache->cache_size; in hmat_parse_cache()
353 tcache->cache_attrs.level = (attrs & ACPI_HMAT_CACHE_LEVEL) >> 4; in hmat_parse_cache()
354 tcache->cache_attrs.line_size = (attrs & ACPI_HMAT_CACHE_LINE_SIZE) >> 16; in hmat_parse_cache()
358 tcache->cache_attrs.indexing = NODE_CACHE_DIRECT_MAP; in hmat_parse_cache()
361 tcache->cache_attrs.indexing = NODE_CACHE_INDEXED; in hmat_parse_cache()
365 tcache->cache_attrs.indexing = NODE_CACHE_OTHER; in hmat_parse_cache()
371 tcache->cache_attrs.write_policy = NODE_CACHE_WRITE_BACK; in hmat_parse_cache()
374 tcache->cache_attrs.write_policy = NODE_CACHE_WRITE_THROUGH; in hmat_parse_cache()
[all …]
/Linux-v5.4/drivers/base/
Dnode.c219 struct node_cache_attrs cache_attrs; member
228 return sprintf(buf, fmt "\n", to_cache_info(dev)->cache_attrs.name);\
237 static struct attribute *cache_attrs[] = { variable
287 void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs) in node_add_cache() argument
297 list_for_each_entry(info, &node->cache_attrs, node) { in node_add_cache()
298 if (info->cache_attrs.level == cache_attrs->level) { in node_add_cache()
301 cache_attrs->level); in node_add_cache()
319 if (dev_set_name(dev, "index%d", cache_attrs->level)) in node_add_cache()
322 info->cache_attrs = *cache_attrs; in node_add_cache()
325 cache_attrs->level); in node_add_cache()
[all …]
/Linux-v5.4/include/linux/
Dnode.h68 void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs);
73 struct node_cache_attrs *cache_attrs) in node_add_cache() argument
92 struct list_head cache_attrs; member