Lines Matching defs:tcache
361 struct target_cache *tcache;
379 tcache = kzalloc(sizeof(*tcache), GFP_KERNEL);
380 if (!tcache) {
385 tcache->cache_attrs.size = cache->cache_size;
386 tcache->cache_attrs.level = (attrs & ACPI_HMAT_CACHE_LEVEL) >> 4;
387 tcache->cache_attrs.line_size = (attrs & ACPI_HMAT_CACHE_LINE_SIZE) >> 16;
391 tcache->cache_attrs.indexing = NODE_CACHE_DIRECT_MAP;
394 tcache->cache_attrs.indexing = NODE_CACHE_INDEXED;
398 tcache->cache_attrs.indexing = NODE_CACHE_OTHER;
404 tcache->cache_attrs.write_policy = NODE_CACHE_WRITE_BACK;
407 tcache->cache_attrs.write_policy = NODE_CACHE_WRITE_THROUGH;
411 tcache->cache_attrs.write_policy = NODE_CACHE_WRITE_OTHER;
414 list_add_tail(&tcache->node, &target->caches);
695 struct target_cache *tcache;
697 list_for_each_entry(tcache, &target->caches, node)
698 node_add_cache(mem_nid, &tcache->cache_attrs);
788 struct target_cache *tcache, *cnext;
793 list_for_each_entry_safe(tcache, cnext, &target->caches, node) {
794 list_del(&tcache->node);
795 kfree(tcache);