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