Lines Matching defs:cache_attrs
224 * @cache_attrs:Attributes for this cache level
229 struct node_cache_attrs cache_attrs;
239 to_cache_info(dev)->cache_attrs.name); \
248 static struct attribute *cache_attrs[] = {
295 * @cache_attrs: Attributes for the cache being added
297 void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs)
307 list_for_each_entry(info, &node->cache_attrs, node) {
308 if (info->cache_attrs.level == cache_attrs->level) {
311 cache_attrs->level);
330 if (dev_set_name(dev, "index%d", cache_attrs->level))
333 info->cache_attrs = *cache_attrs;
336 cache_attrs->level);
340 list_add_tail(&info->node, &node->cache_attrs);
353 list_for_each_entry_safe(info, next, &node->cache_attrs, node) {
362 INIT_LIST_HEAD(&node_devices[nid]->cache_attrs);