Lines Matching refs:cache_attrs
298 struct node_cache_attrs cache_attrs; member
308 to_cache_info(dev)->cache_attrs.name); \
318 static struct attribute *cache_attrs[] = { variable
368 void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs) in node_add_cache() argument
378 list_for_each_entry(info, &node->cache_attrs, node) { in node_add_cache()
379 if (info->cache_attrs.level == cache_attrs->level) { in node_add_cache()
382 cache_attrs->level); in node_add_cache()
401 if (dev_set_name(dev, "index%d", cache_attrs->level)) in node_add_cache()
404 info->cache_attrs = *cache_attrs; in node_add_cache()
407 cache_attrs->level); in node_add_cache()
411 list_add_tail(&info->node, &node->cache_attrs); in node_add_cache()
424 list_for_each_entry_safe(info, next, &node->cache_attrs, node) { in node_remove_caches()
433 INIT_LIST_HEAD(&node_devices[nid]->cache_attrs); in node_init_caches()