Lines Matching defs:tcache
362 struct target_cache *tcache;
380 tcache = kzalloc(sizeof(*tcache), GFP_KERNEL);
381 if (!tcache) {
386 tcache->cache_attrs.size = cache->cache_size;
387 tcache->cache_attrs.level = (attrs & ACPI_HMAT_CACHE_LEVEL) >> 4;
388 tcache->cache_attrs.line_size = (attrs & ACPI_HMAT_CACHE_LINE_SIZE) >> 16;
392 tcache->cache_attrs.indexing = NODE_CACHE_DIRECT_MAP;
395 tcache->cache_attrs.indexing = NODE_CACHE_INDEXED;
399 tcache->cache_attrs.indexing = NODE_CACHE_OTHER;
405 tcache->cache_attrs.write_policy = NODE_CACHE_WRITE_BACK;
408 tcache->cache_attrs.write_policy = NODE_CACHE_WRITE_THROUGH;
412 tcache->cache_attrs.write_policy = NODE_CACHE_WRITE_OTHER;
415 list_add_tail(&tcache->node, &target->caches);
696 struct target_cache *tcache;
698 list_for_each_entry(tcache, &target->caches, node)
699 node_add_cache(mem_nid, &tcache->cache_attrs);
794 struct target_cache *tcache, *cnext;
799 list_for_each_entry_safe(tcache, cnext, &target->caches, node) {
800 list_del(&tcache->node);
801 kfree(tcache);