Lines Matching refs:cache_attrs
219 * @cache_attrs:Attributes for this cache level
224 struct node_cache_attrs cache_attrs;
234 to_cache_info(dev)->cache_attrs.name); \
243 static struct attribute *cache_attrs[] = {
290 * @cache_attrs: Attributes for the cache being added
292 void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs)
302 list_for_each_entry(info, &node->cache_attrs, node) {
303 if (info->cache_attrs.level == cache_attrs->level) {
306 cache_attrs->level);
325 if (dev_set_name(dev, "index%d", cache_attrs->level))
328 info->cache_attrs = *cache_attrs;
331 cache_attrs->level);
335 list_add_tail(&info->node, &node->cache_attrs);
348 list_for_each_entry_safe(info, next, &node->cache_attrs, node) {
357 INIT_LIST_HEAD(&node_devices[nid]->cache_attrs);